header {background-color: #fff;margin-left: -100px;margin-right: -100px;padding: 0px 0;border-bottom: 3px solid #151517;z-index: 3;}
.header-container {display: flex;justify-content: space-between;align-items: center;padding: 0 100px;height: 70px;}
header .logo {position: relative;top: 28px;}
header .logo img {height: 128px;}
header .logo-right {width: 150px;position: absolute;left: 15%;top: 20px;}
header .logo-right img {width: 150px;}

/* Скрываем обычное меню и телефон на всех устройствах */
header .menu-container,
header .phone {
    display: none;
}

/* Стили для бургер-меню */
.burger-menu {
    display: inline-block;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #3fa80d;
    order: 3;
    z-index: 1001;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .close-menu {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 32px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.mobile-nav .menu li a {
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    background: linear-gradient(to bottom, #239425 50%, #91b790 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    display: block;
    padding: 12px 25px;
    transition: transform 0.3s ease;
}

.mobile-nav .menu li a:hover {
    transform: scale(1.05);
    background: linear-gradient(to bottom, #239425 50%, #91b790 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mobile-phone {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.mobile-phone a {
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.mobile-phone a:hover {
    color: #3fa80d;
}

.mobile-phone .elementor-icon-list-icon i {
    color: #3fa80d;
    font-size: 22px;
}

/* Адаптивные стили для header */
@media (max-width: 1440px) {
    header .logo-right {
        left: 12%;
    }
}

/* Планшеты (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    header {
        margin-left: 0;
        margin-right: 0;
    }

    .header-container {
        padding: 0 50px;
    }

    header .logo {
        top: 15px;
    }

    header .logo img {
        height: 110px;
    }

    header .logo-right {
        position: static;
        width: auto;
    }

    header .logo-right img {
        width: 130px;
    }

    .burger-menu {
        font-size: 32px;
    }
}

/* Мобильные устройства (до 768px) - FIXED */
@media (max-width: 768px) {
    header {
        margin-left: 0;       /* фикс: было -20px */
        margin-right: 0;      /* фикс: было -20px */
        width: 100%;
    }

    .header-container {
        padding: 0 20px;
        height: 60px;
        box-sizing: border-box;
    }

    header .logo {
        top: 15px;
    }

    header .logo img {
        height: 90px;
    }

    header .logo-right {
        position: static;
        width: auto;
        margin-left: 10px;
    }

    header .logo-right img {
        width: 100px;
        height: auto;
    }

    .burger-menu {
        font-size: 28px;
    }

    .mobile-nav .menu li a {
        font-size: 20px;
        padding: 10px 20px;
    }

    .mobile-phone a {
        font-size: 18px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
        box-sizing: border-box; /* добавлено */
    }

    header .logo {
        top: 10px;
    }

    header .logo img {
        height: 70px;
    }

    header .logo-right img {
        width: 80px;
    }

    .burger-menu {
        font-size: 24px;
    }

    .mobile-nav .menu {
        gap: 20px;
    }

    .mobile-nav .menu li a {
        font-size: 18px;
        padding: 8px 16px;
    }

    .mobile-phone {
        gap: 15px;
        margin-top: 30px;
    }

    .mobile-phone a {
        font-size: 16px;
    }

    .mobile-phone .elementor-icon-list-icon i {
        font-size: 18px;
    }
}

/* Десктопы (1025px и выше) - показываем обычное меню */
@media (min-width: 1025px) {
    header .menu-container,
    header .phone {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }

    header .phone a {
        text-decoration: none;
        font-weight: bold;
        font-size: 20px;
        color: #000;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        position: relative;
        top: 18px;
    }
    header .phone a .email {
        color: #009aff;
        font-size: 20px;
        padding-right: 0;
    }

    .burger-menu {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    header nav .menu {
        list-style: none;
        display: flex;
        gap: 20px;
    }

    header nav .menu li a {
        text-decoration: none;
        font-weight: bold;
        padding: 5px 10px;
        transition: color 0.3s;
        font-size: 19px;
        background: linear-gradient(to bottom, #239425 50%, #91b790 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        text-transform: uppercase;
    }

    header nav .menu li a:hover {
        background: linear-gradient(to bottom, #239425 50%, #91b790 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    header .phone a {
        text-decoration: none;
        font-weight: bold;
        font-size: 20px;
        color: #000;
        display: flex;
    }

    .elementor-icon-list-icon i {
        color: #3fa80d;
        font-size: 20px;
        padding-right: 5px;
    }
}

/* Планшеты в альбомной ориентации */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: landscape) {
    .mobile-nav {
        gap: 20px;
    }

    .mobile-nav .menu {
        gap: 15px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-nav .menu li a {
        font-size: 18px;
        padding: 8px 15px;
    }

    .mobile-phone {
        flex-direction: row;
        gap: 25px;
        margin-top: 20px;
    }
}

/* Анимация для мобильного меню */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav .menu li {
    animation: slideIn 0.4s ease forwards;
}

.mobile-nav .menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav .menu li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav .menu li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav .menu li:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav .menu li:nth-child(5) { animation-delay: 0.5s; }
