/**
 * Страница «Контакты» — layout v2
 * Иконки: Font Awesome (подключён в css/style.css темы)
 */

.contacts-section .contactCard {
    display: flex;
    flex-direction: column;
}

.contacts-section .contactCard__title {
    color: #f5f3f3;
}

.contacts-section .contactCard__desc {
    color: rgba(255, 255, 255, 0.72) !important;
    margin-bottom: 12px;
}

/* Фон на весь экран, шапка полупрозрачная */
:root {
    --contacts-overlay-black: rgba(6, 0, 2, 0.92);
    --contacts-overlay-red-deep: rgba(42, 6, 12, 0.62);
    --contacts-overlay-red-soft: rgba(120, 18, 32, 0.28);
}

.contacts-page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: var(--contacts-bg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center -400px;
    pointer-events: none;
}

body .containe_body {
    background:
        radial-gradient(
            ellipse 140% 90% at 50% 0%,
            var(--contacts-overlay-red-soft) 0%,
            transparent 55%
        ),
        linear-gradient(
            168deg,
            var(--contacts-overlay-black) 0%,
            rgba(14, 2, 6, 0.82) 22%,
            var(--contacts-overlay-red-deep) 48%,
            rgba(24, 4, 10, 0.72) 72%,
            rgba(8, 0, 2, 0.9) 100%
        ) !important;
    position: relative;
    z-index: 2;
}

body .containe_body .headerBlock {
    background: transparent !important;
}

.contacts-page {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.contacts-page .headBlock {
    background: transparent !important;
}

section.contacts-section,
.contacts-section {
    padding: 32px 5vw 72px !important;
    min-height: auto !important;
    background: transparent !important;
    position: relative;
    overflow: visible;
}

.contacts-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

/* Intro */
.contactsPage__head {
    text-align: center;
    margin-bottom: 36px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.contactsPage__label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fac031;
    margin-bottom: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(250, 192, 49, 0.1);
    border: 1px solid rgba(250, 192, 49, 0.25);
}

.contactsPage__subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    margin: 0;
}

/* Alert */
.contactsPage__alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    margin-bottom: 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.12) 0%, rgba(220, 38, 38, 0.06) 100%);
    border: 1px solid rgba(255, 59, 59, 0.35);
    border-left: 4px solid #ff3b3b;
    box-shadow: 0 4px 24px rgba(255, 59, 59, 0.12);
}

.contactsPage__alertIcon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 59, 59, 0.15);
    color: #ff6b6b;
    font-size: 20px;
}

.contactsPage__alertBody {
    flex: 1;
    min-width: 0;
}

.contactsPage__alertTitle {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.35;
}

.contactsPage__alertText {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.contactsPage__alertDomain {
    color: #fbcb2d;
    font-weight: 600;
}

/* ——— Кнопки страницы (alert + quick nav) ——— */
.contacts-section .contactsPage__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "OpenRunde", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.contacts-section .contactsPage__btn--danger {
    flex-shrink: 0;
    align-self: center;
    padding: 11px 20px;
    color: #fff !important;
    background: #ff3b3b;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(255, 59, 59, 0.35);
    white-space: nowrap;
}

.contacts-section .contactsPage__btn--danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 59, 0.45);
    color: #fff !important;
    background: #ff5252;
}

.contactsPage__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}

.contacts-section .contactsPage__btn--pill {
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
}

.contacts-section .contactsPage__btn--pill:hover {
    background: rgba(251, 203, 45, 0.14);
    border-color: rgba(251, 203, 45, 0.4);
    color: #fbcb2d !important;
    transform: translateY(-1px);
}

/* Sections */
.contactsPage__section {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.contactsPage__section:last-of-type {
    margin-bottom: 24px;
}

.contactsPage__sectionHead {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contactsPage__sectionTitle {
    font-family: "OpenRunde", sans-serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: #f5f3f3;
    margin: 0 0 8px;
    line-height: 1.25;
}

.contactsPage__sectionDesc {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* Grids */
.contactsPage__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 0;
}

.contactsPage__grid--featured {
    grid-template-columns: 1.15fr 1fr;
}

.contactsPage__grid--triple {
    grid-template-columns: repeat(3, 1fr);
}

/* Card extensions */
.contactCard {
    position: relative;
}

.contactCard__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(251, 203, 45, 0.2);
    color: #fbcb2d;
    border: 1px solid rgba(251, 203, 45, 0.35);
}

.contactCard__badge--muted {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Иконки Font Awesome в карточках */
.contacts-section .contactCard__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 203, 45, 0.1);
    border-radius: 18px;
    border: 1px solid rgba(251, 203, 45, 0.22);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.contacts-section .contactCard:hover .contactCard__icon {
    transform: scale(1.05);
    background: rgba(251, 203, 45, 0.16);
    box-shadow: 0 8px 24px rgba(251, 203, 45, 0.15);
}

.contactCard__iconEl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    color: #fbcb2d;
}

.contactCard__iconEl i {
    line-height: 1;
}

.contactCard__iconEl i.fas,
.contactCard__iconEl i.far,
.contactCard__iconEl i.fal {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
}

.contactCard__iconEl i.fab {
    font-family: "Font Awesome 5 Brands", sans-serif;
    font-weight: 400;
}

.contacts-section .contactCard__btn i.fas,
.contacts-section .contactCard__btn i.far {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
}

.contacts-section .contactCard__btn i.fab {
    font-family: "Font Awesome 5 Brands", sans-serif;
    font-weight: 400;
}

.contactCard__iconEl--whatsapp { color: #25d366; }
.contactCard__iconEl--telegram { color: #2aabee; }
.contactCard__iconEl--bot { color: #5ec8f7; }
.contactCard__iconEl--phone { color: #fbcb2d; }
.contactCard__iconEl--chat { color: #ec5738; }

.contactCard__hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    width: fit-content;
    max-width: 100%;
}

.contactCard__hours i {
    font-size: 12px;
    color: #fbcb2d;
    flex-shrink: 0;
}

.contactCard__hoursLabel {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.contactCard--primary .contactCard__hours {
    background: rgba(251, 203, 45, 0.08);
    border-color: rgba(251, 203, 45, 0.2);
}

.contactCard__value,
.contactCard__values .contactCard__value {
    font-size: 17px;
    font-weight: 600;
    color: #fbcb2d;
    margin: 0 0 16px;
    line-height: 1.4;
    word-break: break-word;
}

.contactCard__values {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.contactCard__value--muted {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.contactCard__note {
    margin: 14px 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.contactCard__note--rf {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 152, 0, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 152, 0, 0.25);
    border-left: 3px solid #ff9800;
}

.contactCard__note--rf i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 14px;
    color: #ff9800;
}

/* ——— Кнопки в карточках ——— */
.contacts-section .contactCard__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin-top: auto;
    padding: 10px 18px;
    font-family: "OpenRunde", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0.01em;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    align-self: flex-start;
}

.contacts-section .contactCard__btn i {
    font-size: 14px;
    line-height: 1;
}

/* Срочная помощь — компактные CTA */
.contactsPage__grid--featured .contactCard__btn {
    padding: 9px 16px;
    font-size: 13px;
    min-height: 40px;
}

.contacts-section .contactCard__btn--primary {
    color: #fff !important;
    background: linear-gradient(135deg, #ec5738 0%, #fbcb2d 100%);
    box-shadow: 0 4px 18px rgba(236, 87, 56, 0.4);
}

.contacts-section .contactCard__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(236, 87, 56, 0.5);
    color: #fff !important;
}

.contacts-section .contactCard__btn--outline {
    color: #fbcb2d !important;
    background: transparent;
    border: 2px solid rgba(251, 203, 45, 0.45);
}

.contacts-section .contactCard__btn--outline:hover {
    color: #1a1a1a !important;
    background: #fbcb2d;
    border-color: #fbcb2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 203, 45, 0.3);
}

.contacts-section .contactCard__btn--whatsapp {
    color: #fff !important;
    background: #25d366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.contacts-section .contactCard__btn--whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    color: #fff !important;
}

.contacts-section .contactCard__btn--telegram {
    color: #fff !important;
    background: #2aabee;
    box-shadow: 0 4px 16px rgba(42, 171, 238, 0.35);
}

.contacts-section .contactCard__btn--telegram:hover {
    background: #229ad9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.45);
    color: #fff !important;
}

.contacts-section .contactCard__btn--soft {
    background: rgba(42, 171, 238, 0.15);
    color: #5ec8f7 !important;
    border: 1px solid rgba(42, 171, 238, 0.35);
    box-shadow: none;
}

.contacts-section .contactCard__btn--soft:hover {
    background: rgba(42, 171, 238, 0.28);
    color: #fff !important;
    transform: translateY(-2px);
}

.contacts-section .contactCard__btn--ghost {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contacts-section .contactCard__btn--ghost:hover {
    background: rgba(251, 203, 45, 0.1);
    border-color: rgba(251, 203, 45, 0.3);
    color: #fbcb2d !important;
}

.contacts-section .contactCard__btn--sm {
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}

.contactCard__btnRow {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.contactCard__btnRow--stack .contactCard__btn {
    width: 100%;
    justify-content: flex-start;
}

/* Соцсети */
.contacts-section .contactCard__social {
    display: flex;
    gap: 12px;
    margin: 16px 0 20px;
    flex-wrap: wrap;
}

.contacts-section .contactCard__soc {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none !important;
    font-size: 22px;
    color: #fbcb2d;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contacts-section .contactCard__soc:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.contactCard__soc--instagram:hover { color: #e4405f; border-color: rgba(228, 64, 95, 0.4); background: rgba(228, 64, 95, 0.12); }
.contactCard__soc--vk:hover { color: #4c75a3; border-color: rgba(76, 117, 163, 0.4); background: rgba(76, 117, 163, 0.12); }
.contactCard__soc--telegram:hover { color: #2aabee; border-color: rgba(42, 171, 238, 0.4); background: rgba(42, 171, 238, 0.12); }

.contacts-section .contactCard__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.contactCard--primary {
    min-height: 260px;
    grid-column: span 1 !important;
}

.contactCard--messenger .contactCard__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contactCard--social {
    grid-column: span 1;
}

/* Map block */
.contactsPage__map {
    padding: 56px 5vw 80px !important;
    position: relative;
    background: #0a0e1a00 !important;
}

footer.footer {
    position: relative;
    z-index: 3;
}

.contactsPage__map .section__header {
    text-align: center;
    margin-bottom: 32px;
}

.contactsPage__mapDesc {
    max-width: 680px;
    margin: 12px auto 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.contactsPage__map .h2 {
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .contactsPage__grid--featured {
        grid-template-columns: 1fr;
    }

    .contactsPage__grid--triple {
        grid-template-columns: 1fr 1fr;
    }

    .contactCard--social {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    body .containe_body {
        background:
            radial-gradient(
                ellipse 120% 70% at 50% 8%,
                rgba(90, 14, 28, 0.32) 0%,
                transparent 50%
            ),
            linear-gradient(
                180deg,
                rgba(8, 0, 2, 0.94) 0%,
                rgba(22, 4, 10, 0.78) 28%,
                rgba(48, 10, 18, 0.52) 52%,
                rgba(28, 6, 12, 0.7) 78%,
                rgba(6, 0, 1, 0.94) 100%
            ) !important;
    }

    .contacts-page-bg {
        background-position: center -280px;
        background-size: 120% auto;
    }

    .contacts-section {
        padding: 24px 16px 48px !important;
    }

    .contactsPage__alert {
        flex-direction: column;
        align-items: stretch;
    }

    .contacts-section .contactsPage__btn--danger {
        align-self: stretch;
        width: 100%;
    }

    .contactsPage__quick {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 36px;
        padding: 0;
        overflow: visible;
    }

    .contacts-section .contactsPage__btn--pill {
        width: 100%;
        flex-shrink: unset;
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.35;
        text-align: center;
        white-space: normal;
        min-height: 44px;
    }

    .contactsPage__section {
        margin-bottom: 40px;
        scroll-margin-top: 80px;
    }

    .contactsPage__grid,
    .contactsPage__grid--triple {
        grid-template-columns: 1fr;
    }

    .contactCard--primary {
        grid-column: span 1;
    }

    .contactCard--social {
        grid-column: span 1;
    }

    .contacts-section .contactCard__btn {
        width: 100%;
        justify-content: center;
    }

    .contactsPage__grid--featured .contactCard__btn {
        width: 100%;
        max-width: 280px;
    }

    .contacts-section .contactCard__btn--primary,
    .contacts-section .contactCard__btn--outline,
    .contacts-section .contactCard__btn--whatsapp,
    .contacts-section .contactCard__btn--telegram {
        width: 100%;
    }

    .contactCard__badge {
        top: 16px;
        right: 16px;
    }
}
