.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Анимация бургера в крестик */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #850015;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

/* Заголовок меню */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    background: #850015;
    z-index: 2;
}

.mobile-logo img {
    height: 35px;
    width: auto;
}

/* Кнопка закрытия */
.close-menu {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.close-menu span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

.close-menu span:first-child {
    transform: rotate(45deg);
}

.close-menu span:last-child {
    transform: rotate(-45deg);
}

/* Навигация в меню */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: #0056b3;
}

/* Контакты в меню */
.mobile-contacts {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-phone p {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mobile-contact-btn {
    width: 100%;
    padding: 14px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.mobile-contact-btn:hover {
    background: #003d82;
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
        margin-right: 90%;
    }
    
    .nav-con {
        display: flex;
        align-items: center;
    }
    
    /* Скрываем ненужные элементы в мобильной версии */
    .heading,
    .TEXTP,
    .ug {
        display: none;
    }
    
    /* Оставляем только лого и бургер */
    .img-header {
        display: block;
    }
}

@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
        margin-right: 85%;
    }
    
    .nav-con {
        width: 1024px;
        display: flex;
        align-items: center;
    }
    
    /* Скрываем ненужные элементы в мобильной версии */
    .heading,
    .TEXTP,
    .ug {
        display: none;
    }
    
    /* Оставляем только лого и бургер */
    .img-header {
        display: block;
    }
}