
.hero-contacts {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-contacts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/hero-slide-3.f3386b771cd0.jpg");
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.phone-input-wrapper .iti {
    flex-grow: 1;
    width: 100%;
}

.hero-contacts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.hero-contacts-content {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    position: relative;
    z-index: 10;
}

/* === АНИМАЦИИ === */
@keyframes slideUpFromWhite {
    0% {
        transform: translateY(150px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.contacts-page-title {
    color: #ffffff;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1px;
    transform: translateY(150px);
    opacity: 0;
    animation: slideUpFromWhite 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.scroll-anim-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-anim-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-anim-left.is-visible,
.scroll-anim-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-section {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.contact-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-left {
    flex: 1;
    max-width: 420px;
    width: 100%;
}

.contact-right {
    flex: 1;
    width: 100%;
    max-width: 600px;
    height: 550px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.contact-left h2 {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    margin-top: 0;
    margin-bottom: 30px;
}

.contact-phone-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.contact-phone-block svg {
    width: 20px;
    height: 20px;
    fill: #333333;
}

.contact-phone-text {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    color: #111111;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #003893;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Обёртка для инпута телефона с флагом */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: visible;
    transition: border-color 0.3s;
}

.phone-input-wrapper:focus-within {
    border-color: #003893;
}

.flag-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
}

.phone-input-wrapper input {
    border: none !important;
    border-radius: 0 !important;
    flex-grow: 1;
}

.submit-btn {
    background-color: #003893;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    display: inline-block;
}

.submit-btn:hover {
    background-color: #002270;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 992px) {
    .header .main-nav, .header .lang-switcher {
        display: none;
    }

    .burger-btn {
        display: block;
    }

    .contacts-page-title {
        font-size: 52px;
    }

    /* Адаптивность для блока контактов: перестраиваем в колонку */
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .contact-left {
        max-width: 600px;
    }

    .contact-right {
        max-width: 100%;
        height: 450px;
    }
}

@media (max-width: 576px) {
    .mobile-menu {
        padding: 30px 20px;
        width: 60%;
    }

    .mobile-logo {
        font-size: 26px;
    }

    .mobile-nav a {
        font-size: 24px;
    }

    .contacts-page-title {
        font-size: 42px;
    }

    .hero-contacts-content {
        padding-bottom: 40px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-right {
        height: 350px;
    }

    .submit-btn {
        width: 100%;
        padding: 16px 32px;
    }
}