/* ===== БАЗОВЫЙ HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    z-index: 1000;

    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);

    transition:
            height 0.35s ease,
            background 0.35s ease,
            backdrop-filter 0.35s ease,
            box-shadow 0.35s ease;
}

/* ===== ЭФФЕКТ ПРИ СКРОЛЛЕ (ДЕСКТОП) ===== */
.header.scrolled {
    height: 90px; /* <-- сжатие только для десктопа */

    background: rgba(5, 24, 57, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* ===== ВНУТРЕННИЙ БЛОК ===== */
.header__inner {
    max-width: 1650px;
    height: 100%;
    padding: 0 60px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    transition: padding 0.35s ease;
}

.header.scrolled .header__inner {
    padding: 0 50px;
}

/* ===== ОТКЛЮЧАЕМ СЖАТИЕ НА МОБИЛЕ ===== */
@media (max-width: 768px) {
    .header.scrolled {
        height: 70px; /* ← возвращаем исходный размер */
    }

    .header.scrolled .header__inner {
        padding: 0px; /* адаптивный паддинг */
    }
}


.header__logo img {
    display: block;
    height: 40px;
    margin-top: -16px;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 35px;
}

/* Адрес и телефон */
.header__info {

    display: flex;
    gap: 35px;
    align-items: center;
}

.header__address {
    font-family: 'SangBleu Sunrise', serif;
    display: flex;
    align-items: center;
    gap: 6px; /* ← твой отступ */
    font-size: 15px;
    opacity: 0.9;
}

.address-icon img {
    display: block;
    width: 10px;
    height: auto;
    vertical-align: middle;
}


.header__phone {
    font-family: 'SangBleu Sunrise', serif;
    font-size: 15px;
    text-decoration: none;
    color: #fff;
}


/* ===== БУРГЕР ===== */
.header__burger {
    width: 34px;
    height: 22px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.header__burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: 0.3s ease;
}

.header__burger span:nth-child(1) {
    top: 0;
}

.header__burger span:nth-child(2) {
    top: 9px;
}

.header__burger span:nth-child(3) {
    top: 18px;
}

/* Панель меню (сверху) */
.menu__panel {
    position: absolute;
    top: -100%;
    right: 0;
    width: 320px;
    height: 50vh;
    background: #061830;
    padding: 60px 30px;
    box-shadow: -4px 0 14px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    opacity: 0;
    --line-width: 0%;
}


@media (max-width: 900px) {
    .header__address {
        display: none;
    }

    .menu__panel {
        width: 90%;
        padding: 20px;
    }

    .header__burger {
        margin-right: 10px;
    }

    .header__phone {
        font-size: 13px;
    }

    .header__info {
        padding-top: 0px;
    }


    .header__logo img {
        height: 30px;
        padding: 10px;
        margin-top: -8px;
    }

    .header__logo {
        width: 120px;
    }

    .header {
        height: 80px;
    }

    .header__inner {
        padding: 0 10px;
    }
}

/* Анимация бургер → крестик */
.header__burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* Меню */
.menu {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

/* Overlay */
.menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
}


/* Золотая линия */
.menu__panel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--line-width);
    height: 3px;
    background-color: #D4BFA1;
}

/* Закрыть */
.menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu__close::before,
.menu__close::after {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 28px;
    height: 3px;
    background: #fff;
}

.menu__close::before {
    transform: rotate(45deg);
}

.menu__close::after {
    transform: rotate(-45deg);
}

/* Список */
.menu__list {
    list-style: none;
    margin-top: 90px;
    padding: 0;
}

.menu__list li {
    margin-bottom: 26px;
    opacity: 0;
    transform: translateY(10px);
}

.menu__list a {
    font-size: 22px;
    font-family: 'SangBleu Sunrise', serif;
    color: #ffffff;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 5px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.menu__list a:hover {
    color: #D4BFA1;
    border-bottom-color: #D4BFA1;
}

.menu__list a:link,
.menu__list a:visited,
.menu__list a:hover,
.menu__list a:active {
    text-decoration: none !important;
}

