/* =========================================
   ПОЛНАЯ АДАПТИВНОСТЬ ДЛЯ ТЕМЫ
   ========================================= */

/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ АДАПТИВНОСТИ
   ========================================= */

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопка контактов и меню контактов скрываются на ПК */
.contacts-menu-toggle,
.contacts-menu-overlay,
.mobile-green-bar {
    display: none !important;
}

/* =========================================
   ЗЕЛЕНАЯ ПОЛОСА ДЛЯ МОБИЛЬНЫХ
   ========================================= */

.mobile-green-bar {
    background: linear-gradient(135deg, #2f9938, #27ae60);
    padding: 10px 0;
    position: relative;
    z-index: 1001;
}

.mobile-green-bar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Кнопка меню контактов — прозрачный фон */
.contacts-menu-toggle {
    background: transparent;
    color: #ffffff;
    border: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.contacts-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.contacts-menu-toggle:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

/* =========================================
   ПРЕИМУЩЕСТВА (TRUST) — большие иконки (200px на ПК)
   ========================================= */
@media (min-width: 769px) {
    .trust-card__icon {
        width: 200px !important;
        height: 200px !important;
        max-width: 100% !important;
    }
    .trust-card__icon img {
        width: 170px !important;
        height: 170px !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .trust-card__icon {
        width: 160px !important;
        height: 160px !important;
        max-width: 100% !important;
    }
    .trust-card__icon img {
        width: 140px !important;
        height: 140px !important;
    }
}

/* ⢬?��?��� �'��>��"�?�� (SVG, �+��>���?) �?" �'�?>�?��? �?�� �??�+��>?��?��<�: */
@media (max-width: 768px) {
    .contacts-menu-toggle::before {
        content: "";
        display: block;
        width: 22px;
        height: 22px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.24.2 2.45.57 3.57a1 1 0 0 1-.24 1.02l-2.2 2.2z'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
}

/* =========================================
   2. ШАПКА И КОНТАКТЫ
   ========================================= */

.site-header.has-banner {
    position: relative;
    z-index: 10;
}

.header-banner-wrap {
    position: relative;
    width: 100%;
}

.header-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Контакты на шапке */
.header-contacts-top {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
}



/* Сетка товаров настраивается в style.css */

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact-item img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.icons-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-contact-item .contact-info {
    display: flex;
    flex-direction: column;
}

.header-contact-item a,
.header-contact-item span {
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    text-decoration: none;
    margin-bottom: 3px;
}

.header-contact-item a:last-child {
    margin-bottom: 0;
}

.header-contact-item a:hover {
    opacity: 0.8;
}

/* Корзина - зафиксированная в правом верхнем углу */
.floating-cart {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    bottom: auto !important;
    z-index: 9999;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.3s;
}

.floating-cart img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.floating-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #c52d2f;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}



/* =========================================
   3. МЕНЮ ПОД ШАПКОЙ
   ========================================= */

.header-menu-bar {
    padding: 8px 0;
    position: relative;
    z-index: 100;
    background: white;
    border-bottom: 2px solid #2f9938;
}

.header-menu-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: inline-flex;
    align-items: center;
}

.main-navigation a {
    font-family: 'Comfortaa', cursive;
    color: #333;
    font-weight: 700;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2f9938;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover {
    color: #2f9938;
    background: rgba(47, 153, 56, 0.05);
}

.main-navigation a:hover::after {
    width: 80%;
}

.menu-item-home a {
    color: #2f9938 !important;
}

.menu-item-home a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.menu-item-home a:hover svg {
    transform: scale(1.1);
}

/* Кнопка мобильного меню */
.mobile-menu-toggle {
    display: none;
    background: #2f9938;
    border: 2px solid #2f9938;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 1001;
    align-items: center;
    gap: 5px;
}

.mobile-menu-toggle .menu-icon {
    color: white;
    font-size: 20px;
}

/* =========================================
   4. КАТЕГОРИИ ПОДАРКОВ
   ========================================= */

.categories-section {
    padding: 40px 0;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* =========================================
   5. ФИЛЬТР ТОВАРОВ
   ========================================= */

.filter-section {
    padding: 40px 0;
    text-align: center;
}

.filter-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.filter-3-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-column {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.filter-column-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.filter-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.filter-category-option {
    display: block;
    cursor: pointer;
}

.filter-cat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.filter-cat-box:hover {
    border-color: var(--theme-primary);
    background: #e8f5e9;
}

.filter-cat-icon-small {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-cat-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.filter-emoji-small {
    font-size: 28px;
    line-height: 1;
}

.filter-cat-name-small {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    color: #333;
}

.filter-category-option {
    display: block;
    cursor: pointer;
}

.filter-cat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.filter-category-option:hover .filter-cat-box {
    background: #e8f5e9;
}

.filter-cat-icon-small img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.filter-cat-name-small {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #333;
}

.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-options-list label:hover {
    background: #e8f5e9;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px;
}

.filter-btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.filter-btn-primary {
    background: #2f9938;
    color: white;
    border: none;
}

.filter-btn-primary:hover {
    background: #267a2d;
    transform: translateY(-2px);
}

.filter-btn-secondary {
    background: #fff;
    color: #333;
    border: 2px solid #2f9938;
}

.filter-btn-secondary:hover {
    background: #e8f5e9;
}

/* =========================================
   6. ПОДОБРАЛИ ДЛЯ ВАС ТОВАРЫ
   ========================================= */

.recommended-section {
    padding: 40px 0;
    text-align: center;
}

.recommended-products {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.recommended-product {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommended-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.recommended-product img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* =========================================
   7. НАМ ДОВЕРЯЮТ
   ========================================= */

.trust-section {
    padding: 40px 0;
    text-align: center;
    background: #f9f9f9;
}

.trust-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.trust-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: 350px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.trust-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.trust-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.trust-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   8. КАРТА И КОНТАКТЫ
   ========================================= */

.map-contacts-section {
    padding: 40px 0;
    text-align: center;
}

.map-contacts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacts-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contacts-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* =========================================
   9. АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ
   ========================================= */

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .filter-3-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .trust-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* =========================================
   10. АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ
   ========================================= */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Зеленая полоса для мобильных */
    .mobile-green-bar {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    body {
        padding-top: 60px;
    }

    /* Шапка - контакты скрываются на мобильных */
    .header-contacts-top {
        display: none !important;
    }

    .header-contact-item {
        gap: 5px;
    }

    .header-contact-item img {
        width: 33px;
        height: 33px;
    }

    .header-contact-item a,
    .header-contact-item span {
        font-size: 12px;
    }

    /* Контейнер: 3 колонки (контакты / гамбургер по центру / корзина) */
    .mobile-green-bar .container {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    /* Кнопка меню контактов — слева */
    .contacts-menu-toggle {
        display: flex !important;
        justify-self: start;
        order: 1;
    }

    /* Кнопка мобильного меню — строго по центру */
    .mobile-menu-toggle {
        display: flex !important;
        justify-self: center;
        order: 2;
    }

    /* Корзина — справа */
    .mobile-bar-cart {
        justify-self: end;
    }
    
    /* Меню контактов по умолчанию скрыто */
    .contacts-menu-overlay {
        display: none !important;
    }
    
    /* Показываем меню контактов при активации */
    .contacts-menu-overlay.active {
        display: block !important;
    }
    
    /* =========================================
       АДАПТИВНАЯ КНОПКА КОНТАКТОВ
       ========================================= */
    
    /* Базовая иконка для мобильных задаётся выше отдельным блоком */

    /* БОЛЬШОЙ экран (>375px) */
    @media (min-width: 376px) {
        .contacts-menu-toggle {
            width: 44px;
            height: 44px;
            min-width: 44px;
        }
    }

    /* СРЕДНИЙ экран (320px-375px) */
    @media (max-width: 375px) and (min-width: 320px) {
        .contacts-menu-toggle {
            width: 40px;
            height: 40px;
            min-width: 40px;
        }
    }

    /* МАЛЕНЬКИЙ экран (<320px) */
    @media (max-width: 319px) {
        .contacts-menu-toggle {
            width: 38px;
            height: 38px;
            min-width: 38px;
        }
    }
    
    /* =========================================
       КОРЗИНА - В ЗЕЛЁНОЙ ПОЛОСЕ НА МОБИЛЬНЫХ
       ========================================= */

    /* Скрываем плавающую корзину на мобильных (она теперь в зелёной полосе) */
    .floating-cart {
        display: none !important;
    }

    /* Корзина внутри зелёной полосы (прозрачный фон) */
    .mobile-bar-cart {
        order: 3;
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        min-width: 40px;
        background: transparent;
        color: #ffffff;
        border-radius: 50%;
        text-decoration: none;
        box-shadow: none;
    }

    .mobile-bar-cart-icon {
        display: block;
        width: 22px;
        height: 22px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM2 3v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42a.25.25 0 0 1-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03L21.7 5H5.21l-.94-2H2z'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .mobile-bar-cart .cart-count {
        position: absolute;
        top: -2px;
        right: -2px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        background: #c52d2f;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
        border-radius: 999px;
        box-sizing: border-box;
    }
    
    /* =========================================
       АДАПТИВНОСТЬ ДЛЯ КНОПКИ "ВЫБРАТЬ ПОДАРОК"
       ========================================= */
    
    .hero-button-text {
        font-size: 16px !important;
        padding: 10px 20px !important;
        border-radius: 20px !important;
    }
    
    .hero-button img {
        max-width: 150px !important;
        height: auto !important;
    }
    
    /* =========================================
       АДАПТИВНОСТЬ ДЛЯ СЕТКИ ТОВАРОВ (ТОЛЬКО МОБИЛЬНЫЕ)
       ========================================= */
    
    /* ТОВАРЫ - УМЕНЬШЕННЫЕ ИЗОБРАЖЕНИЯ ДЛЯ МОБИЛЬНЫХ */
    .product-card {
        padding: 10px;
        border-radius: 8px;
    }

    .product-image {
        max-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
    }

    .product-image img {
        max-height: 150px;
        object-fit: contain;
        width: 100%;
        max-width: 150px;
    }

    .product-title {
        font-size: 12px;
        line-height: 1.2;
    }

    .product-price {
        font-size: 14px;
    }

    .add-to-cart-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    /* =========================================
       ФИЛЬТР - ИКОНКИ КРУПНЕЕ (МОБИЛЬНЫЕ)
       ========================================= */
    
    .filter-cat-icon-small {
        width: 60px !important;
        height: 60px !important;
    }
    
    .filter-cat-icon-small img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .filter-cat-box {
        gap: 10px !important;
    }
    
    .filter-cat-name-small {
        font-size: 12px !important;
    }
    
    /* =========================================
       КАТЕГОРИИ ПОДАРКОВ (МОБИЛЬНЫЕ) - НЕ БОЛЬШЕ 200PX
       ========================================= */
    
    .category-card {
        text-align: center;
    }
    
    .category-card-image {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px;
        max-height: 200px;
        margin: 0 auto 15px;
    }
    
    .category-card-image img {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px;
        max-height: 200px;
    }
    
    .category-card h3 {
        font-size: 14px !important;
    }
    
    /* =========================================
       АДАПТИВНОСТЬ ДЛЯ ПРЕИМУЩЕСТВ (TRUST) - мобильная часть
       ========================================= */

    .trust-card__title {
        font-size: 14px !important;
    }

    .trust-card__text {
        font-size: 12px !important;
    }

    .trust-card {
        padding: 15px 10px !important;
    }
    
    .floating-cart {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        top: auto;
    }
    
    .floating-cart img {
        width: 35px;
        height: 35px;
    }
    
    /* Меню */
    .header-menu-bar .container {
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    /* Кнопка меню в .header-menu-bar не нужна (есть в .mobile-green-bar) */
    .header-menu-bar .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #2f9938;
        transition: right 0.3s ease;
        z-index: 9999;
        padding: 60px 20px 20px;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    .main-navigation.mobile-open {
        right: 0;
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .main-navigation a {
        padding: 15px 10px;
        display: block;
        color: white;
        font-size: 14px;
    }
    
    .main-navigation a:hover {
        background: rgba(255,255,255,0.15);
    }
    
    /* Скрыть кнопку контактов на ПК */
    .contacts-menu-toggle {
        display: none !important;
    }
    
    /* Скрыть меню контактов по умолчанию */
    .contacts-menu-overlay {
        display: none !important;
    }
    
    .contacts-menu-overlay.active {
        display: block !important;
    }
    
    .mobile-menu-contacts h3 {
        color: white;
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .mobile-menu-contacts .contact-item {
        color: white;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    /* Отдельное меню контактов */
    /* Контакты в мобильном меню - убираем дублирование */
    
    /* Отдельное меню контактов - только для мобильных */
    .contacts-menu-overlay {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #2f9938;
        z-index: 9999;
        padding: 60px 20px 20px;
        overflow-y: auto;
        box-shadow: 5px 0 20px rgba(0,0,0,0.5);
    }
    
    .contacts-menu-overlay.active {
        display: block !important;
    }
    
    .contacts-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255,255,255,0.2);
        border: 2px solid white;
        color: white;
        font-size: 30px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }
    
    .contacts-menu-close:hover {
        background: rgba(255,255,255,0.3);
    }
    
    .contacts-section {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contacts-section h3 {
        color: white;
        font-size: 18px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .mobile-menu-contacts .contact-item {
        color: white;
        margin-bottom: 10px;
    }

    /* Категории */
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .category-card-image {
        width: 190px !important;
        height: 190px !important;
    }

    .category-card-image img {
        width: 100% !important;
        height: 100% !important;
    }

    .category-card-image img {
        width: 100% !important;
        height: 100% !important;
    }
    
    .category-card h3 {
        font-size: 14px;
    }
    
    /* Фильтр */
    .filter-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .filter-3-columns {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .filter-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .filter-cat-icon-small {
        width: 45px;
        height: 45px;
    }

    .filter-cat-name-small {
        font-size: 10px;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Рекомендованные товары */
    .recommended-products {
        padding: 0 10px;
    }
    
    /* Нам доверяют */
    .trust-cards {
        gap: 15px;
        padding: 0 10px;
    }
    
    .trust-card {
        flex: 0 0 calc(50% - 7px);
        padding: 20px;
        max-width: none;
    }
    
    .trust-card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }
    
    .trust-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .trust-card p {
        font-size: 13px;
    }
    
    /* Карта */
    .map-contacts-container {
        padding: 0 10px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header-contacts-top {
        top: 5px;
        left: 5px;
        gap: 8px;
    }

    .header-contact-item img {
        width: 26px;
        height: 26px;
    }

    .header-contact-item a,
    .header-contact-item span {
        font-size: 11px;
    }

    .product-card {
        padding: 12px;
    }

    .product-image {
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border-radius: 8px;
        overflow: hidden;
    }

    .product-image img {
        max-height: 180px;
        max-width: 180px;
        object-fit: contain;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 15px;
    }

    .add-to-cart-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .product-card {
        padding: 10px;
        border-radius: 8px;
    }

    .product-image {
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border-radius: 8px;
        overflow: hidden;
    }

    .product-image img {
        max-height: 150px;
        max-width: 150px;
        object-fit: contain;
    }

    .product-title {
        font-size: 12px;
        line-height: 1.2;
    }

    .product-price {
        font-size: 14px;
    }

    .add-to-cart-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .product-card {
        padding: 12px;
    }

    .product-image {
        max-height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
    }

    .product-image img {
        max-height: 180px;
        object-fit: contain;
        width: 100%;
        max-width: 180px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 15px;
    }

    .add-to-cart-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .section-title {
        font-size: 20px;
    }
    
    .categories-grid {
        gap: 8px;
    }
    
    .category-card-image img {
        height: 240px !important;
    }
    
    .category-card h3 {
        font-size: 12px;
    }
    
    .trust-card {
        flex: 0 0 100%;
        padding: 15px;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

/* =========================================
   11. ДОПОЛНИТЕЛЬНЫЕ АДАПТИВНЫЕ СТИЛИ
   ========================================= */

/* Адаптивные размеры шрифтов */
h1, h2, h3 {
    word-wrap: break-word;
}

/* Адаптивные изображения */
.product-image,
.category-image,
.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Адаптивные кнопки */
.button {
    width: auto;
    max-width: 100%;
    padding: 12px 24px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Центрирование контента */
.centered-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Адаптивные отступы */
.section-padding {
    padding: 40px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 30px 0;
    }
}

/* =========================================
   ИСПРАВЛЕНИЯ v5.0
   ========================================= */

/* Мобильное меню - закрытие */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Преимущества на планшетах */
@media (max-width: 768px) {
    /* Иконка преимуществ: 1/1 aspect с max-width */
    .trust-card__icon {
        width: 100% !important;
        max-width: 140px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto 10px !important;
    }

    .trust-card__icon img {
        width: 78% !important;
        height: 78% !important;
        max-width: 110px !important;
        max-height: 110px !important;
    }

    .trust-card {
        padding: 20px 15px !important;
    }

    .trust-card h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .trust-card p {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .trust-section__title {
        font-size: 28px !important;
        margin-bottom: 5px !important;
    }

    .trust-section__subtitle {
        font-size: 14px !important;
        margin-bottom: 25px !important;
    }

    .trust-grid {
        gap: 14px !important;
    }
}

/* Преимущества на телефонах — 2 колонки, адаптивные иконки */
@media (max-width: 480px) {
    .trust-card__icon {
        width: 100% !important;
        max-width: 90px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto 8px !important;
    }

    .trust-card__icon img {
        width: 70% !important;
        height: 70% !important;
        max-width: 70px !important;
    }

    .trust-card {
        padding: 14px 8px 12px !important;
    }

    .trust-card h3 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .trust-card p {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .trust-section__title {
        font-size: 22px !important;
        margin-bottom: 5px !important;
    }

    .trust-section__subtitle {
        font-size: 13px !important;
        margin-bottom: 25px !important;
    }

    .trust-grid {
        gap: 12px !important;
    }
}

/* Карта на мобильных */
@media (max-width: 768px) {
    .map-contacts__map {
        min-height: 300px !important;
    }

    .map-contacts__map iframe {
        min-height: 300px !important;
    }
}

@media (max-width: 480px) {
    .map-contacts__map {
        min-height: 250px !important;
    }

    .map-contacts__map iframe {
        min-height: 250px !important;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 20px 0;
    }
}