.burger-menu,
.mobile-nav,
.menu-overlay {
    display: none;
}

:root {
    
    --header-scale: 1;
}

@media screen and (min-width: 7680px) {
    :root {
        --header-scale: 4;
    }
}

@media screen and (min-width: 5760px) and (max-width: 7679px) {
    :root {
        --header-scale: 3;
    }
}

@media screen and (min-width: 3840px) and (max-width: 5759px) {
    :root {
        --header-scale: 2;
    }
}

@media screen and (min-width: 2880px) and (max-width: 3839px) {
    :root {
        --header-scale: 1.5;
    }
}

@media screen and (min-width: 2560px) and (max-width: 2879px) {
    :root {
        --header-scale: 1.333;
    }
}

@media screen and (min-width: 2400px) and (max-width: 2559px) {
    :root {
        --header-scale: 1.25;
    }
}

@media screen and (min-width: 2133px) and (max-width: 2399px) {
    :root {
        --header-scale: 1.111;
    }
}

@media screen and (min-width: 1920px) and (max-width: 2132px) {
    :root {
        --header-scale: 1;
    }
}

@media screen and (min-width: 1728px) and (max-width: 1919px) {
    :root {
        --header-scale: 0.9;
    }
}

@media screen and (min-width: 1600px) and (max-width: 1727px) {
    :root {
        --header-scale: 0.833;
    }
}

@media screen and (min-width: 1536px) and (max-width: 1599px) {
    :root {
        --header-scale: 0.8;
    }
}

@media screen and (min-width: 1366px) and (max-width: 1535px) {
    :root {
        --header-scale: 0.711;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1365px) {
    :root {
        --header-scale: 0.667;
    }
}

@media screen and (min-width: 1097px) and (max-width: 1279px) {
    :root {
        --header-scale: 0.571;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1096px) {
    :root {
        --header-scale: 0.533;
    }
}

@media screen and (min-width: 960px) and (max-width: 1023px) {
    :root {
        --header-scale: 0.5;
    }
}

@media screen and (min-width: 769px) and (max-width: 959px) {
    :root {
        --header-scale: 0.4;
    }
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-logo-link {
    margin-left: calc(80px * var(--header-scale));
    margin-top: calc(50px * var(--header-scale));
}

.header-logo-img {
    height: calc(80px * var(--header-scale));
}

.header-nav {
    background-color: white;
    width: calc(598px * var(--header-scale));
    height: calc(85px * var(--header-scale));
    border-radius: calc(50px * var(--header-scale));
    box-shadow: 0 0 calc(70px * var(--header-scale)) 0 rgba(2, 10, 46, 0.25);
    margin-right: calc(100px * var(--header-scale));
    margin-top: calc(50px * var(--header-scale));
    position: relative;
    display: flex;
    align-items: center;
}

.header-nav-link {
    text-decoration: none;
    font-family: 'Russo One', sans-serif;
    color: #0c7070;
    font-size: calc(18px * var(--header-scale));
    z-index: 3;
    position: relative;
    transition: color 0.3s;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    padding: calc(15px * var(--header-scale)) 0;
    position: absolute;
}

/* Позиции слов в шапке */
.header-nav-link[data-target="main"] { 
    left: calc(26px * var(--header-scale));
    width: calc(100px * var(--header-scale));
}
.header-nav-link[data-target="catalog"] { 
    left: calc(178px * var(--header-scale));
    width: calc(110px * var(--header-scale));
}
.header-nav-link[data-target="contacts"] { 
    left: calc(340px * var(--header-scale));
    width: calc(120px * var(--header-scale));
}
.header-nav-link[data-target="faq"] { 
    left: calc(512px * var(--header-scale));
    width: calc(60px * var(--header-scale));
}

.nav-indicator {
    position: absolute;
    background: rgb(61 121 121);
    height: calc(85px * var(--header-scale));
    border-radius: calc(50px * var(--header-scale));
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    top: 0;
    opacity: 0;
    overflow: hidden;
    box-shadow: 0 0 0 calc(1px * var(--header-scale)) rgb(61 121 121);
}

/* Фиксированные размеры и позиции индикатора в шапке */
.nav-indicator.main { 
    width: calc(152px * var(--header-scale));
    left: 0;
}
.nav-indicator.catalog { 
    width: calc(162px * var(--header-scale));
    left: calc(152px * var(--header-scale));
}
.nav-indicator.contacts { 
    width: calc(172px * var(--header-scale));
    left: calc(314px * var(--header-scale));
}
.nav-indicator.faq { 
    width: calc(112px * var(--header-scale));
    left: calc(486px * var(--header-scale));
}

.header-nav-link:hover,
.header-nav-link.active {
    color: white;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (до 768px) ===== */
@media screen and (max-width: 768px) {
    
    .burger-menu,
    .mobile-nav,
    .menu-overlay {
        display: block;
    }
    
    /* Белая шапка на всю ширину */
    .site-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: white;
        width: 100%;
        height: 70px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    /* Зеленый логотип */
    .header-logo-link {
        margin: 0;
        flex-shrink: 0;
    }
    
    .header-logo-img {
        height: 40px;
        content: url('/images/logogreen.png'); 
    }
    
    /* Скрываем обычное десктопное меню */
    .header-nav {
        display: none !important;
    }
    
    /* Скрываем индикатор */
    .nav-indicator {
        display: none !important;
    }
    
    /* ===== БУРГЕР-КНОПКА ===== */
    .burger-menu {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
        padding: 0;
        margin-left: auto; 
        margin-right: 5px; 
        flex-shrink: 0;
    }
    
    .burger-line {
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #0c7070;
        border-radius: 2px;
        left: 0;
        transition: all 0.3s ease;
    }
    
    .burger-line:nth-child(1) {
        top: 5px;
    }
    
    .burger-line:nth-child(2) {
        top: 13.5px;
    }
    
    .burger-line:nth-child(3) {
        top: 22px;
    }
    
    /* Состояние "открыто" (крестик) */
    .burger-menu.active .burger-line:nth-child(1) {
        top: 13.5px;
        transform: rotate(45deg);
        transform-origin: center;
    }
    
    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .burger-menu.active .burger-line:nth-child(3) {
        top: 13.5px;
        transform: rotate(-45deg);
        transform-origin: center;
    }
    
    /* ===== МОБИЛЬНОЕ МЕНЮ ===== */
    .mobile-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .mobile-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav-link {
        display: block;
        text-decoration: none;
        font-family: 'Russo One', sans-serif;
        color: #0c7070;
        font-size: 18px;
        text-align: center;
        padding: 15px 20px;
        transition: all 0.3s ease;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: #0c7070;
        background-color: #f9f9f9;
        transform: translateX(10px);
    }
    
    /* Темный фон при открытом меню */
    .menu-overlay {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100% - 70px);
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media screen and (max-width: 480px) {
    .site-header {
        padding: 0 15px; 
    }
    
    .burger-menu {
        margin-right: 8px; 
    }
}

/* Для экранов 360px и меньше */
@media screen and (max-width: 360px) {
    .site-header {
        padding: 0 10px; 
    }
    
    .burger-menu {
        margin-right: 10px; 
    }
}

