/* =========================================
   ОСНОВНА СТРУКТУРА
========================================= */

.page-hero {
    background-color: var(--bg-light-gray);
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

.contacts-main-section {
    background-color: var(--bg-white);
    padding: 80px 0 120px;
    position: relative;
}

.contacts-main-section .container {
    position: relative;
    z-index: 3;
    padding-top: 50px;
}

.wave-top, .wave-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; transform: rotate(180deg); }

.wave-top svg, .wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-top .shape-fill { fill: var(--bg-light-gray); }
.wave-bottom .shape-fill { fill: var(--text-dark); }

/* =========================================
   СІТКА НА ПК
========================================= */

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto 1fr;
    gap: 0 80px;
    align-items: stretch;
    position: relative;
    z-index: 3;
}

.contacts-grid > h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.contacts-info-col {
    grid-column: 1;
    grid-row: 2;
}

.contacts-map-col {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e5e7eb;
}
.map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}

.contacts-grid.no-map {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}
.contacts-grid.no-map > h2,
.contacts-grid.no-map .contacts-info-col {
    grid-column: 1;
}

/* =========================================
   ІНФО
========================================= */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background-color: var(--bg-light-gray);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-text .label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.contact-text .value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

a.value:hover {
    color: var(--text-gray);
}

.feedback-promo {
    margin-top: 50px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
}

.feedback-promo p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-outline-dark {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: var(--bg-light-gray);
}

/* =========================================
   ПЛАНШЕТ (≤992px)
========================================= */
@media (max-width: 992px) {
    .contacts-main-section .container { padding-top: 40px; }

    .contacts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0;
    }
    .contacts-grid > h2 {
        grid-column: 1; grid-row: auto; margin-bottom: 30px;
    }
    .contacts-info-col {
        grid-column: 1; grid-row: auto;
    }
    .contacts-map-col {
        grid-column: 1; grid-row: auto;
        margin-top: 40px;
        height: 400px;
    }

    .map-wrapper { min-height: 400px; height: 400px; position: relative; }
    .map-wrapper iframe {
        position: absolute;
        top: 0; left: 0;
        width: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 768px) {
    .page-hero { padding: 40px 0; }
    .page-title { font-size: 32px; letter-spacing: -0.5px; margin-bottom: 10px; }
    .page-subtitle { font-size: 14px; padding: 0 15px; }

    .contacts-main-section { padding: 60px 0 90px; }
    .contacts-main-section .container { padding-top: 30px; }

    .contacts-grid {
        display: flex;
        flex-direction: column;
    }

    /* 🔻 Скрываем заголовок на телефоне */
    .contacts-grid > h2 {
        display: none;
    }

    .contacts-map-col {
        order: -1;
        height: auto;
        margin: 0 0 30px 0;
    }

    /* Фикс карты */
    .map-wrapper {
        min-height: 320px;
        height: 320px;
        position: relative;
        border-radius: 10px;
    }
    .map-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border: none !important;
    }

    .contacts-info-col {
        order: 0;
    }

    /* остальные стили контактов без изменений */
    .contact-item { gap: 15px; margin-bottom: 25px; }
    .contact-icon { width: 40px; height: 40px; min-width: 40px; }
    .contact-icon svg { width: 18px; height: 18px; }
    .contact-text .value { font-size: 15px; }

    .feedback-promo { margin-top: 35px; padding: 25px 20px; }
    .feedback-promo p { font-size: 14px; }

    .btn-outline-dark { padding: 11px 22px; font-size: 12px; }

    .wave-top svg, .wave-bottom svg { height: 40px; }
}

/* =========================================
   МАЛЕНЬКИЙ ТЕЛЕФОН (≤480px)
========================================= */
@media (max-width: 480px) {
    .page-hero { padding: 30px 0; }

    .contacts-main-section { padding: 40px 0 70px; }
    .contacts-main-section .container { padding-top: 25px; }

    .contacts-grid > h2 { font-size: 22px; }
    .contact-text .value { font-size: 14px; }
    .feedback-promo { padding: 20px 15px; }

    .map-wrapper {
        min-height: 260px;
        height: 260px;
    }
}