﻿body.page-contacts {
    background: #000;
    color: #fff;
}

.page-contacts .site-header {
    padding-top: 16px;
}

.page-contacts .site-header.is-floating {
    background: rgba(0, 0, 0, 0.75);
}

.page-contacts .site-header__inner {
    min-height: 56px;
    padding-bottom: 16px;
}

.page-contacts .site-header__inner::after {
    background: rgba(255, 255, 255, 0.3);
}

.page-contacts .site-header__nav a,
.page-contacts .site-header__meta,
.page-contacts .site-header__meta a,
.page-contacts .site-header a {
    color: #fff;
}

.page-contacts .site-header__nav a.is-active {
    border-bottom: 0;
}

.page-contacts .site-header .button--header,
.page-contacts .site-header .button--header span {
    color: #1d3042 !important;
}

.contacts-hero {
    position: relative;
    overflow: hidden;
    min-height: 982px;
    padding: 120px 0;
}

.contacts-hero__bg {
    position: absolute;
    inset: 0;
    background:
        url("../assets/contacts/contact-bg.jpg") center 38% / cover no-repeat;
}

.contacts-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 64px);
    align-items: stretch;
}

.contacts-hero__grid > * {
    min-width: 0;
}

.contacts-hero__info {
    display: grid;
    grid-template-rows: auto auto auto auto auto auto auto;
    align-content: start;
    color: #fff;
    text-shadow: 0 4px 4px rgba(12, 12, 13, 0.1), 0 4px 4px rgba(12, 12, 13, 0.05);
}

.contacts-hero__title h1 {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-weight: 500;
    font-size: 52px;
    line-height: 76px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.contacts-hero__title p {
    margin: 0;
    font-family: "Golos Text", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
}

.contacts-hero__divider {
    width: 48px;
    height: 4px;
    margin: 32px 0;
    background: rgba(255, 255, 255, 0.25);
}

.contacts-hero__block {
    display: grid;
    gap: 16px;
}

.contacts-hero__phone {
    font-family: "Unbounded", sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contacts-hero__email {
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 26px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contacts-hero__telegram {
    width: fit-content;
}

.contacts-hero__address p {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
}

.contacts-hero__route {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #ffda36;
}

.contacts-hero__route img {
    width: 16px;
    height: 16px;
    transform: rotate(-45deg);
}

.contacts-hero__legal {
    color: #ffffff;
    opacity: 0.9;
}

.contacts-hero__legal p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 16px;
}

.contacts-hero__legal p:last-child {
    margin-bottom: 0;
}

.contacts-hero__map-wrap {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    overflow: hidden;
    min-height: 742px;
    background: rgba(10, 20, 30, 0.4);
}

.contacts-hero__map {
    width: 100%;
    height: 100%;
    min-height: 742px;
    object-fit: cover;
}

@media (max-width: 1279px) {
    .page-contacts .site-header {
        padding-top: 0;
    }

    .contacts-hero {
        min-height: 0;
        padding: 104px 0 72px;
    }

    .contacts-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contacts-hero__map-wrap,
    .contacts-hero__map {
        min-height: 520px;
    }

    .contacts-hero__title h1 {
        font-size: 46px;
        line-height: 56px;
    }

    .contacts-hero__title p {
        font-size: 26px;
        line-height: 34px;
    }

    .contacts-hero__address p {
        font-size: 20px;
        line-height: 28px;
    }
}

@media (max-width: 767px) {
    .contacts-hero {
        padding: 84px 0 48px;
    }

    .contacts-hero__grid {
        gap: 24px;
    }

    .contacts-hero__info {
        gap: 0;
    }

    .contacts-hero__title h1 {
        font-size: 32px;
        line-height: 38px;
        letter-spacing: 0.02em;
    }

    .contacts-hero__title p {
        font-size: 20px;
        line-height: 26px;
    }

    .contacts-hero__phone {
        font-size: 18px;
        line-height: 24px;
    }

    .contacts-hero__email {
        font-size: 15px;
        line-height: 21px;
    }

    .contacts-hero__address p {
        font-size: 16px;
        line-height: 22px;
    }

    .contacts-hero__route {
        font-size: 14px;
        line-height: 20px;
    }

    .contacts-hero__legal p {
        font-size: 13px;
        line-height: 18px;
    }

    .contacts-hero__map-wrap,
    .contacts-hero__map {
        min-height: 150px;
    }

    .contacts-hero__divider {
        margin: 20px 0;
    }
}

@media (max-width: 430px) {
    .contacts-hero {
        padding: 78px 0 42px;
    }

    .contacts-hero__title h1 {
        font-size: 30px;
        line-height: 36px;
    }

    .contacts-hero__title p {
        font-size: 18px;
        line-height: 24px;
    }

    .contacts-hero__phone {
        font-size: 16px;
        line-height: 22px;
    }

    .contacts-hero__email {
        font-size: 14px;
        line-height: 20px;
    }

    .contacts-hero__map-wrap,
    .contacts-hero__map {
        max-height: 380px;
    }
}


/* Contact section override: use shared form-bg without overlays */
.page-contacts .contact {
    background: url("../assets/form-bg.png") center / cover no-repeat !important;
}

.page-contacts .contact::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Keep 32px gap from header to first title on contacts page */
.page-contacts .contacts-hero {
    padding-top: calc(var(--site-header-height, 88px) + var(--secondary-title-gap, 32px));
}

