.hero__wrapper {
    width: 100%;
    height: 100%;
}

.hero__bg {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero__bg--img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: .2;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(38, 38, 38, 1);
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 2;
}

.hero__content {
    padding: 120px 0 40px;
    max-width: 660px;
    width: 100%;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.hero__text h1 {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 39px;
    line-height: 120%;
    color: #fff;
}

.hero__text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 19px;
    line-height: 165%;
    color: rgba(255, 255, 255, 0.75);
}

.contacts {
    padding: 48px 0 80px;
    background: #f7f4ee;
}

.contacts__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 20px;
}

.contact__card {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 16px;
    padding: 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.contact__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.contact__text span {
    width: 36px;
    height: 2px;
    background: #c6a65e;
}

.contact__text h2 {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 30px;
    line-height: 150%;
    color: #000;
}

.contact__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.contact__item {
    display: flex;
    align-items: start;
    gap: 20px;
}

.contact__img {
    border-radius: 14px;
    width: 48px;
    height: 48px;
    background: #ede8de;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.contact__content p {
    padding-bottom: 2px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c6a65e;
}

.contact__content--link {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 150%;
    color: #282828;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact__content--link:hover {
    color: #1a573d;
}

.contact__content span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: rgba(40, 40, 40, 0.45);
}

.contact__content--social {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact__content--social:hover {
    opacity: 0.7;
}

.contact__content--social span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 150%;
    color: #282828;
}

.contact__map {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(18, 61, 43, 0.07);
    overflow: hidden;
}

.contact__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact__date {
    margin-top: 20px;
    border-radius: 16px;
    padding: 48px;
    background: #262626;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    height: 100%;
}

.contact__date--top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact__date--top svg {
    flex-shrink: 0;
}

.contact__date--top span {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 30px;
    line-height: 150%;
    color: #fff;
}

.contact__date--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

.contact__date--card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    height: 100%;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.contact__date--card:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(198, 166, 94, 0.35);
}

.contact__date--card span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    color: #c6a65e;
}

.contact__date--card p {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 26px;
    line-height: 150%;
    color: #fff;
}


/* ==========================================================================
   991px — планшет: паддинги у карточки контактов и графика поменьше,
   карте задаём минимальную высоту (иначе тянется по высоте текстовой карточки)
   ========================================================================== */
@media (max-width: 991px) {

    .hero__content {
        padding: 110px 0 36px;
    }

    .contact__card {
        padding: 32px;
        gap: 24px;
    }

    .contact__map {
        min-height: 360px;
    }

    .contact__date {
        padding: 36px 32px;
    }
}


/* ==========================================================================
   768px — узкий планшет: карточка контактов и карта в 1 колонку,
   график работы 3 → 2 колонки
   ========================================================================== */
@media (max-width: 768px) {

    .hero__content {
        padding: 100px 0 32px;
        max-width: 100%;
    }

    .hero__text h1 {
        font-size: 32px;
    }

    /* Контакты + карта — друг под другом */
    .contacts__cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact__map {
        min-height: 320px;
    }

    /* ГРАФИК РАБОТЫ — 3 → 2 колонки */
    .contact__date--grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__date {
        padding: 32px 24px;
        gap: 28px;
    }

    .contact__date--top span {
        font-size: 24px;
    }
}


@media (max-width: 575px) {

    /* ===== HERO ===== */
    .hero__content {
        padding: 100px 0 32px;
        max-width: 100%;
    }

    .hero__text {
        gap: 12px;
    }

    .hero__text h1 {
        font-size: 24px;
    }

    .hero__text p {
        font-size: 15px;
    }

    /* ===== CONTACTS ===== */
    .contacts {
        padding: 32px 0 40px;
    }

    .contacts__cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact__card {
        padding: 24px;
        gap: 24px;
    }

    .contact__text {
        gap: 14px;
    }

    .contact__text h2 {
        font-size: 22px;
    }

    .contact__list {
        gap: 20px;
    }

    .contact__item {
        gap: 14px;
    }

    .contact__img {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .contact__content p {
        font-size: 12px;
    }

    .contact__content--link,
    .contact__content--social span {
        font-size: 15px;
    }

    /* Карта — задаём высоту явно, чтобы не схлопывалась в grid из 1 колонки */
    .contact__map {
        height: 260px;
        min-height: 260px;
    }

    /* ===== ГРАФИК РАБОТЫ ===== */
    .contact__date {
        margin-top: 16px;
        padding: 24px;
        gap: 24px;
    }

    .contact__date--top span {
        font-size: 20px;
    }

    .contact__date--grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact__date--card {
        padding: 18px;
    }

    .contact__date--card span {
        font-size: 13px;
    }

    .contact__date--card p {
        font-size: 20px;
    }
}