/* ===== CONTACTS.CSS ===== */

/* Секция-хедер (как на проектах/услугах) */
.contacts-header-bg {
    width: 96vw;
    min-width: 320px;
    min-height: 260px;
    margin: 0 auto 54px auto;
    background: #eaf4fe;
    padding: 80px 36px 40px 36px;
    text-align: center;
    box-shadow: 0 8px 40px #3270a312, 0 1.5px 6px #1341800a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Заголовок и подзаголовок */
.contacts-header-container h1 {
    color: #2E3B4E;       /* Графитовый — цвет заголовков */
    font-size: 2.7em;
    font-weight: 800;
    margin: 0 0 22px;
    letter-spacing: 0.01em;
}
.contacts-header-container p {
    color: #1B2A41;       /* Тёмно-синий — основной текст */
    font-size: 1.29em;
    font-weight: 500;
    max-width: 1280px;
    margin: 0;
}

/* Основной контейнер с белым фоном */
.contacts-content-container {
    background: #fff;
    box-shadow: 0 2px 12px rgba(40, 120, 180, 0.08);
    margin: 0 auto 40px auto;
    max-width: 1400px;
    padding: 38px 0 40px;
}

/* Сетка трёх колонок */
.contacts-flex {
    display: grid;
    grid-template-columns: 390px 1fr 240px;
    gap: 0 48px;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

/* Левая колонка: информация */
.contacts-info h2 {
    color: #2E3B4E;
    font-size: 1.23em;
    margin-bottom: 11px;
}
.contacts-info h3 {
    color: #2E3B4E;
    font-size: 1em;
    margin: 24px 0 5px;
}
.contacts-info p,
.contacts-info a {
    color: #1B2A41;
    font-size: 1.1em;
    line-height: 1.4;
}
.contacts-info a {
    text-decoration: underline;
    transition: color 0.16s;
}

/* Центр: карта */
.contacts-map-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contacts-map-col .map-title {
    color: #2E3B4E;
    font-size: 1.1em;
    margin-bottom: 10px;
}
/* Обёртка для карты */
.map-box {
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(21, 120, 183, 0.09);
    margin-bottom: 18px;
}
.map-box iframe {
    width: 450px;
    height: 300px;
    border: 0;
    display: block;
    margin: 0 auto;
}

/* Правая колонка: соц-ссылки */
.contacts-socials {
    text-align: center;
}
.contacts-socials h2 {
    color: #2E3B4E;
    font-size: 1.14em;
    margin-bottom: 13px;
}
.social-btn {
    display: block;
    width: 98%;
    max-width: 220px;
    margin: 0 auto 16px;
    padding: 13px 0;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1.13em;
    letter-spacing: 0.03em;
    text-decoration: none;
    box-shadow: 0 1px 7px rgba(21, 120, 183, 0.09);
    transition: box-shadow .13s, transform .13s;
}
.social-btn.whatsapp { background: #19b37e; }
.social-btn.twogis    { background: #35b963; }
.social-btn:hover {
    box-shadow: 0 5px 17px rgba(21, 120, 183, 0.15);
    transform: translateY(-2px) scale(1.05);
}
.social-btn.twogis:hover { background: #22964a; }

/* ===== АДАПТИВ ===== */
@media (max-width: 950px) {
    .contacts-header-bg {
        padding: 34px 2vw 19px 2vw;
        min-height: 150px;
    }
    .contacts-header-container h1 { font-size: 1.9em; }
    .contacts-header-container p  { font-size: 1em; }
    .contacts-content-container {
        padding: 22px 0;
    }
    .contacts-flex {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 6vw;
    }
    .map-box {
        margin: 0 auto 12px auto;
        width: 99vw;
        max-width: 99vw;
        height: 140px !important;
    }
    .map-box iframe {
        width: 99vw !important;
        max-width: 99vw;
        min-width: 120px;
        height: 140px !important;
        display: block;
        margin: 0 auto;
    }
}
@media (max-width: 700px) {
    .contacts-header-bg {
        padding: 14px 2vw 7px 2vw;
        min-height: 110px;
        margin-top: 58px;    /* --- Смещение секции вниз под header --- */
        margin-bottom: 15px;
    }
    .contacts-header-container h1 { font-size: 1.13em; }
    .contacts-header-container p  { font-size: 0.92em; }
    .contacts-content-container {
        padding: 10px 0;
        margin: 10px 0 0;
    }
    .contacts-flex {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 2vw;
    }
    .contacts-info,
    .contacts-map-col,
    .contacts-socials {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 1px 8px rgba(21, 120, 183, 0.07);
        padding: 14px 10px;
        margin-bottom: 22px;
        width: 100%;
    }
    .map-box {
        width: 320px;
        min-width: 200px;
        margin: 0 auto 12px 30px;
        display: block;
    }
    .map-box iframe {
        height: 180px !important;
        width: 320px !important;
        min-width: 160px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        border: 0;
    }
    .social-btn {
        width: 99%;
        font-size: 1em;
        padding: 11px 0;
    }
}

/* --- Подсвечивание почты и номера телефона красным --- */
.contacts-info a[href^="mailto:"],
.contacts-info a[href^="tel:"] {
    color: #1B2A41;
    text-decoration: underline;
    transition: color 0.16s;
    font-weight: 500;
}

.contacts-info a[href^="mailto:"]:hover,
.contacts-info a[href^="tel:"]:hover {
    color: #e52628;
    cursor: pointer;
}
