/* ===== МОБИЛЬНАЯ ШАПКА (до 992px) ===== */

@media screen and (min-width: 992px) {
    .mobile-bottom-nav {display:none;}
    .burger-toggle {display: none;}
}

@media screen and (max-width: 992px) {
    .header .grid-container {
        display: grid;
        align-items: center;
grid-template-columns:auto auto auto;
        position: relative;

    }
	.phone-dropdown span {color:#fff;}
    /* Логотип */
    .logo {
        flex: 0 0 auto;
        margin-right: auto; /* Прижимаем влево */
    }
    .logo img {
        height: 32px;
        width: auto;
        display: block;
    }

    /* Контакты в шапке */
    .header-contacts {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        margin-right: 10px; /* Отступ от бургера */
    }

    .email-block {
        display: none; /* Прячем email на мобильных */
    }

    .phone-dropdown-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(255,255,255,0.1);
        padding: 6px 12px;
        border-radius: 30px;
        font-size: 14px;
        white-space: nowrap;
    }

    .phone-dropdown-btn .icon-phone {
        font-size: 16px;
    }

    .phone-dropdown-btn span:not(.icon-phone) {
        color: #fff;
    }

    .dropdown-arrow svg {
        width: 8px;
        height: 6px;
    }

    .dropdown-content {
        min-width: 200px;
        right: 0;
        left: auto;
    }

    /* Бургер-меню */
    .burger-toggle {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        cursor: pointer;
        z-index: 1100;
        flex: 0 0 auto; /* Не сжимается */
        margin-left: 0;
    }

    .burger-toggle span,
    .burger-toggle span::before,
    .burger-toggle span::after {
        display: block;
        position: absolute;
        width: 26px;
        height: 2px;
        background: white;
        transition: 0.3s;
        content: '';
    }

    .burger-toggle span {
        top: 14px;
    }

    .burger-toggle span::before {
        top: -8px;
    }

    .burger-toggle span::after {
        top: 8px;
    }

    .burger-toggle.active span {
        background: transparent;
    }

    .burger-toggle.active span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .burger-toggle.active span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    /* Навигационное меню (выпадающее) */
    .nav-wrapper {
        order: 3;
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(45, 45, 45, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        z-index: 1000;
        margin: 0;
        list-style: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        list-style: none;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        text-align: center;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .smeg-site-link a {
        background: transparent;
        padding: 12px 0;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 40px;
    }
}

/* Планшеты (768px - 992px) */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .phone-dropdown-btn {
        font-size: 15px;
        padding: 7px 14px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .header-contacts {
        gap: 10px;
        margin-right: 15px;
    }
}

/* Маленькие экраны (до 768px) */
@media screen and (max-width: 768px) {
    .header .grid-container {
        padding: 0px !important;
		gap:20px !important;
    }

    .phone-dropdown-btn {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .phone-dropdown-btn .icon-phone {
        font-size: 14px;
    }

    .burger-toggle {
        width: 28px;
        height: 28px;
    }

    .burger-toggle span,
    .burger-toggle span::before,
    .burger-toggle span::after {
        width: 24px;
    }
    
    .burger-toggle span {
        top: 13px;
    }
    
    .logo img {
        height: 28px;
    }
    
    .header-contacts {
        margin-right: 8px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media screen and (max-width: 480px) {
    .header .grid-container {
        padding: 6px 10px;
    }

    .logo img {
        height: 24px;
    }

    .phone-dropdown-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .phone-dropdown-btn .icon-phone {
        font-size: 13px;
    }
    
    .phone-dropdown-btn span:last-of-type {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .burger-toggle {
        width: 24px;
        height: 24px;
    }

    .burger-toggle span,
    .burger-toggle span::before,
    .burger-toggle span::after {
        width: 20px;
    }
    
    .burger-toggle span {
        top: 11px;
    }
    
    .burger-toggle span::before {
        top: -7px;
    }
    
    .burger-toggle span::after {
        top: 7px;
    }
    
    .header-contacts {
        margin-right: 5px;
        gap: 4px;
    }
}

/* ===== НИЖНЕЕ МЕНЮ С ИКОНКАМИ (до 992px) ===== */
@media screen and (max-width: 992px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(45, 45, 45, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0 12px;
        z-index: 1000;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: rgba(255,255,255,0.7);
        font-size: 11px;
        gap: 4px;
        transition: color 0.2s;
        flex: 1;
        max-width: 80px;
    }

    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a.active {
        color: #b31e1a;
    }

    .mobile-bottom-nav svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    /* Добавляем отступ внизу контента, чтобы не перекрывалось меню */
    body {
        padding-bottom: 70px;
    }
}

/* Для планшетов делаем иконки чуть крупнее */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .mobile-bottom-nav a {
        font-size: 12px;
        max-width: 100px;
    }
    
    .mobile-bottom-nav svg {
        width: 24px;
        height: 24px;
    }
    
    body {
        padding-bottom: 75px;
    }
}