

/* ===== Переменные (используются в шапке) ===== */
:root {
    --color-white: #f7f7f7;
    --color-grays: #bdbdbd;
    --color-gray: #636363;
    --color-dark: rgba(60, 60, 59, 0.7);
    --color-green: rgba(60, 60, 59, 0.7);
    --color-gold: #c1a17b;
}

/* ===== Контейнер ===== */
.box {
    width: 100%;
    max-width: 1747px;
    margin: auto;
    padding-right: 14px;
    padding-left: 14px;
}
@media (max-width: 520px)  { .box { padding-right: 12px; padding-left: 12px; } }
@media (min-width: 1080px) { .box { padding-right: 19px; padding-left: 19px; } }

/* ===== Логотип ===== */
.logo     { display: block; width: 192px; }
.logo__img{ width: 100%; }
@media (min-width: 768px)  { .logo { width: 154px; } }
@media (min-width: 1580px) { .logo { width: 288px; } }

/* ===== Кнопка ===== */
.btn {
    font-size: 10.5px;
    font-weight: 600;
    display: inline-flex;
    width: 100%;
    padding: 10.5px 33px;
    cursor: pointer;
    transition: all 0.32s;
    white-space: nowrap;
    color: var(--color-white);
    border: 0;
    border-radius: 38px;
    background-color: var(--color-green);
    justify-content: center;
    align-items: center;
}
.btn:hover { background-color: var(--color-dark); }
@media (min-width: 768px)  { .btn { width: auto; } }
@media (min-width: 880px)  { .btn { font-size: min(13.5px + 0.1vw, 15.4px); font-weight: 400; } }
@media (min-width: 1080px) { .btn { padding: 23px 36.5px; } }

/* ===== Ссылки меню ===== */
.nav__link        { transition: 0.32s; font-weight: 500; color: #3c3c3bb3; }
.nav__link:hover  { color: var(--color-gold); }

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    padding: 14.4px 0;
    transition: transform 0.32s ease, box-shadow 0.32s ease, background-color 0.32s ease;
    transform: translateZ(0);
    background-color: var(--color-white);
    box-shadow: 0 7.7px 19px #09152d14;
}
.header--hidden    { transform: translate3d(0, -100%, 0); }
.header--menu-open { box-shadow: none; }
header.header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--color-white);
}

.header__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11.5px;
}

/* Верхний бар: бургер | лого | телефон (мобилка) */
.header__bar {
    display: grid;
    width: 100%;
    grid-template-columns: auto 1fr auto;
    gap: 11.5px;
    align-items: center;
}

.header__logo {
    position: relative;
    z-index: 99;
    margin: auto;
    flex-shrink: 0;
}

.header__ico { width: 14.4px; height: 14.4px; }

.header__phone {
    position: relative;
    z-index: 99;
    display: flex;
    width: 38.4px;
    height: 38.4px;
    border-radius: 50%;
    background-color: var(--color-green);
    fill: var(--color-white);
    justify-content: center;
    align-items: center;
    justify-self: end;
}

/* Контакты справа (появляются только с 1280px) */
.header__contacts {
    display: none;
    color: var(--color-white);
}

.header__left,
.header__right {
    padding: min(4.8px + 0.26vw, 9.6px) min(13.4px + 0.73vw, 26.9px);
}

.header__left {
    border-radius: 38.4px 0 0 38.4px;
    background: var(--color-gold);
}

.header__right {
    font-size: min(13.9px + 0.22vw, 18.2px);
    font-weight: 700;
    display: flex;
    transition: 0.32s;
    white-space: nowrap;
    border-radius: 0 38.4px 38.4px 0;
    background: var(--color-green);
    align-items: center;
}
.header__right:hover { background: var(--color-dark); }

.header__num  { font-size: min(14.9px + 0.35vw, 21.1px); font-weight: 600; }
.header__time { font-size: min(13.9px + 0.05vw, 13.9px); }

/* Мобильное меню (выезжает сверху) */
.header__inner {
    position: fixed;
    z-index: 98;
    inset: 0;
    display: flex;
    flex-direction: column;
    height: 100dvh;                 /* было 100vh */
    max-height: 100dvh;
    padding: 115px 14.4px calc(40px + env(safe-area-inset-bottom));
    padding-top: calc(115px + env(safe-area-inset-top));
    transition: transform 0.32s ease, opacity 0.32s ease;
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    background: var(--color-white);
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
}
.header__inner::-webkit-scrollbar       { width: 5.8px; }
.header__inner::-webkit-scrollbar-thumb { border-radius: 28.8px; background: #95c11f59; }

.header__inner.open {
    transform: translateZ(0);
    opacity: 1;
    pointer-events: auto;
}

/* Кнопка внутри мобильного меню */
.header__menuButtonsSimple {
    display: flex;
    flex-direction: column;
    margin-top: 28.8px;
    gap: 11.5px;
}
.header__menuButtonsSimple .btn {
    width: 100%;
    font-size: 12px;
}
@media (min-width: 768px)  { .header__menuButtonsSimple { max-width: 100%; } }
@media (min-width: 1280px) { .header__menuButtonsSimple { display: none; } }

/* Список ссылок меню */
.headerNav {
    font-size: 19.2px;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    gap: min(19.2px + 1.04vw, 38.4px) min(12.5px + 0.68vw, 25px);
}
@media (min-width: 1080px) {
    .headerNav { font-size: min(14.6px + 0.08vw, 15.8px); }
}
@media (min-width: 1580px) {
    .headerNav {
        font-size: min(15.8px + 0.15vw, 19.7px);
        gap: 0 min(22px + 1.2vw, 44.2px);
    }
}

/* Бургер */
.header__toggl {
    position: relative;
    z-index: 99;
    width: 38.4px;
    height: 38.4px;
    padding: 0;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    background-color: var(--color-gold);
}
.header__toggl:before,
.header__toggl:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14.4px;
    height: 14.4px;
    content: "";
    transition: 0.32s;
    transform: translate(-50%, -50%);
}
.header__toggl:before { background: url(image/ico_menu.svg); }
.header__toggl:after  { background: url(image/ico_close.svg); }
.header__toggl:after,
.header__toggl.open:before { opacity: 0; }
.header__toggl.open:after  { opacity: 1; }

/* ===== Адаптив шапки ===== */

@media (min-width: 768px) and (max-width: 1279px) {
    .header__inner { padding: 96px clamp(19px, 4vw, 43px) 48px; }
    .headerNav {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 63px 28.8px;
    }
    .headerNav .nav__link {
        font-size: clamp(17.3px, 2vw, 22px);
        font-weight: 600;
		color: #3c3c3bb3;
    }
}

@media (min-width: 1280px) {
    .header__bar {
        display: flex;
        width: auto;
        gap: 19.2px;
    }
    .header__logo    { margin: 0; }
    .header__phone   { display: none; }
    .header__contacts { display: flex; }

    .header__inner {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        display: block;
        height: auto;
        padding: 0;
        transition: 0s;
        transform: none;
        opacity: 1;
        background: transparent;
        pointer-events: auto;
        overflow: visible;
    }
    .headerNav {
        font-size: min(14.6px + 0.2vw, 19.2px);
        flex-direction: row;
    }
    .header__toggl { display: none; }
}

@media (max-width: 520px) {
    .header__btns .btn { width: 100%; }
}

@media (min-width: 860px) {
    .breadcrumbs--absolute {
        position: absolute;
        z-index: 2;
        right: 0;
        left: 0;
    }
}

