.page-banner {
    position: relative;
    height: 350px;
    background:
        linear-gradient(to right, rgba(10,18,25,0.82), rgba(10,18,25,0.35)),
        url("../images/banner12.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,18,25,0.5);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner-content h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 46px;
    letter-spacing: -0.01em;
}

/* MAP */
.contact-map {
    position: relative;
    height: 900px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(30%);
    z-index: 1;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,18,25,0.25);
    z-index: 1;
}

/* CARD */
.contact-card {
    position: absolute;
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
    background: var(--paper);
    padding: 50px;
    margin-left: 2%;
    width: 600px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(184,145,47,0.15);
    border-top: 3px solid var(--gold);
    z-index: 2;
}

.contact-card h2 {
    font-family: var(--font-display);
    font-weight: 500;
    margin-bottom: 36px;
    font-size: 38px;
}
.contact-info p {
    font-family: var(--font-body);
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--ink);
}



/* FORM */
.contact-form-section {
    padding: 110px 0;
    background: var(--paper);
}

.contact-form {
    margin-top: 50px;
}

.form-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 16px;
    background: transparent;
    color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom: 1px solid var(--ink);
}

.contact-form textarea {
    height: 120px;
    resize: none;
    margin-bottom: 50px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}


.contact-form-section .gold-btn {
    background: var(--ink);
    border: 1px solid var(--ink);
    padding: 17px 46px;
    border-radius: 2px;
    color: var(--navy-900);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.35s ease;
}

.contact-form-section .gold-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-900);
    transform: translateY(-2px);
}


/* ================= CONTACTS ADAPTIVE ================= */

@media (max-width: 1024px) {
    .contact-card {
        width: 500px;
        padding: 50px;
        left: 5%;
    }
    
    .contact-card h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    /* 1. Убираем наложение карточки на карту */
    .contact-map {
        height: auto; /* Снимаем фиксированную высоту */
        display: flex;
        flex-direction: column;
    }

    .contact-map iframe {
        height: 350px; /* Карта становится компактнее */
        order: 1;
    }

    .contact-card {
        position: static; /* Карточка больше не "летает" над картой */
        transform: none;
        width: 100%;
        padding: 40px 20px;
        box-shadow: none;
        order: 2; /* Форма идет под картой */
    }

    /* 2. Адаптация формы */
    .form-row {
        flex-direction: column; /* Поля ввода в колонку */
        gap: 20px;
        margin-bottom: 20px;
    }

    .contact-card h2 {
        font-size: 32px;
        text-align: center;
        margin-bottom: 30px;
    }

    .contact-info {
        text-align: center;
        margin-bottom: 30px;
    }

    .contact-form {
        margin-top: 30px;
    }

    .contact-form textarea {
        margin-bottom: 30px;
    }

    .gold-btn {
        width: 100%; /* Кнопка на всю ширину */
        padding: 15px;
    }
    
    /* 3. Баннер */
    .banner-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 250px;
    }

    .contact-card h2 {
        font-size: 28px;
    }
    
    .contact-map iframe {
        height: 300px;
    }
}