/* ================================================================
   mobile.css — Professional Mobile Styles for Karinabento
   Подключается поверх основных стилей, работает на ≤ 768px
   ================================================================ */

/* ─── Запрет горизонтального скролла ─── */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* ─── Bottom Navigation — скрыта на десктопе ─── */
.mobile-bottom-nav {
    display: none;
}

/* ================================================================
   PRIMARY MOBILE BREAKPOINT ≤ 768px
   ================================================================ */
@media (max-width: 768px) {

    /* ─── БАЗОВЫЙ LAYOUT ─── */
    body {
        font-size: 15px;
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden !important;
        position: relative;
    }

    /* Ничего не выходит за пределы экрана */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Исключения для позиционированных элементов */
    .mobile-bottom-nav,
    .side-menu,
    .side-menu-overlay,
    .cart-modal-overlay,
    .cart-modal,
    .product-modal,
    .modal,
    .loader {
        max-width: none;
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 64px 0;
    }

    /* ─── ШАПКА (HEADER) ─── */
    header {
        top: 8px !important;
        left: 8px !important;
        transform: none !important;
        width: calc(100% - 16px) !important;
        max-width: none !important;
        border-radius: 18px !important;
        padding: 10px 12px 10px 58px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
    }

    .header-content {
        align-items: center;
        gap: 8px;
        min-height: 38px;
    }

    .logo {
        font-size: 1rem !important;
        gap: 7px !important;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 50px) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: -0.01em;
    }

    .logo img {
        width: 34px !important;
        height: 34px !important;
        flex-shrink: 0;
        display: block;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        overflow: hidden;
    }

    /* Бургер — вписан в левый отступ шапки, поверх бокового меню */
    .side-menu-trigger {
        left: 10px !important;
        top: 9px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: 1210 !important; /* выше side-menu (1201) */
    }

    .side-menu-trigger:hover,
    .side-menu-trigger.active {
        background: rgba(212, 165, 165, 0.12) !important;
        box-shadow: none !important;
    }

    .cart-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
        flex-shrink: 0;
        background: #f8f2ef !important;
        box-shadow: none !important;
    }

    /* Навигационное меню — скрыто */
    .nav-menu {
        display: none !important;
    }

    /* ─── HERO СЕКЦИЯ ─── */
    .hero {
        min-height: auto !important;
        padding-top: 90px !important;
        padding-bottom: 48px !important;
    }

    .hero-layout {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        padding: 16px 0 0 !important;
    }

    .hero-content {
        max-width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        order: 1;
    }

    .hero-media {
        order: 2;
        justify-content: center !important;
    }

    .hero-brand {
        display: none; /* Скрываем дублирующий бейдж на мобиле */
    }

    .hero-subtitle {
        font-size: 0.72rem !important;
        letter-spacing: 2.5px !important;
        margin-bottom: 10px !important;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 10.5vw, 3.2rem) !important;
        margin-bottom: 14px !important;
        line-height: 1.05 !important;
    }

    .hero-description {
        font-size: 0.93rem !important;
        line-height: 1.65 !important;
        margin-bottom: 22px !important;
        max-width: 100% !important;
        color: #666 !important;
    }

    .hero-buttons {
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
        justify-content: center !important;
    }

    .hero .btn {
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 0.92rem !important;
        letter-spacing: 0.3px;
    }

    .hero-photo-wrap {
        width: min(100%, 420px) !important;
        border-radius: 20px 10px 20px 10px !important;
        padding: 8px !important;
        transform: none !important;
    }

    .hero-photo {
        border-radius: 14px 8px 14px 8px !important;
        transform: none !important;
        aspect-ratio: 4 / 3 !important;
    }

    .hero-photo-badge {
        position: static !important;
        margin-top: 10px !important;
        transform: none !important;
        border-radius: 12px !important;
        padding: 8px 14px !important;
        font-size: 0.78rem !important;
        text-align: center !important;
        white-space: normal !important;
    }

    /* ─── ЗАГОЛОВКИ СЕКЦИЙ ─── */
    .section-title {
        font-size: clamp(2rem, 8.5vw, 2.8rem) !important;
        margin-bottom: 10px !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 36px !important;
        padding: 0 8px;
    }

    /* ─── КАРТОЧКИ (Cards grid — для Hero категорий если есть) ─── */
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 24px !important;
    }

    .card {
        border-radius: 24px !important;
        padding: 20px !important;
    }

    .card-image {
        min-height: 220px !important;
        aspect-ratio: 3 / 2 !important;
        border-radius: 18px !important;
        margin-bottom: 16px !important;
    }

    .card h3 {
        font-size: 1.5rem !important;
    }

    .card-price {
        font-size: 1.5rem !important;
        margin-bottom: 14px !important;
    }

    /* ─── ТАБЫ ─── */
    .menu-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
        justify-content: flex-start !important;
        /* убираем padding чтобы крайние табы были у края */
        padding-left: 0;
    }

    .menu-tabs::-webkit-scrollbar {
        display: none;
    }

    .menu-tab {
        flex-shrink: 0 !important;
        padding: 9px 16px !important;
        font-size: 0.76rem !important;
        border-radius: 999px !important;
        white-space: nowrap;
    }

    /* ─── BENTO BUILDER ─── */
    .bento-tabs-wrap {
        gap: 8px !important;
        margin-bottom: 32px !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        scrollbar-width: none !important;
        padding-bottom: 4px;
    }

    .bento-tabs-wrap::-webkit-scrollbar {
        display: none;
    }

    .bento-tab {
        flex-shrink: 0;
        padding: 10px 20px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    .bento-builder {
        padding: 0 !important;
        border-radius: 0 !important;
    }

    /* Шаги — 2 колонки компактные */
    .bento-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .bento-step {
        padding: 8px 10px !important;
        justify-content: flex-start !important;
        border-radius: 12px !important;
    }

    .bento-step-dot {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.72rem !important;
    }

    .bento-step-label {
        font-size: 0.68rem !important;
        letter-spacing: 0.2px !important;
    }

    .bento-step-current {
        font-size: 0.76rem !important;
        margin-bottom: 12px !important;
    }

    /* Сетка начинок / дизайнов — 2 колонки */
    .bento-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .bento-option-media {
        height: 180px !important;
    }

    .bento-option-title {
        font-size: 1.1rem !important;
    }

    .bento-option-desc {
        font-size: 0.75rem !important;
    }

    /* Начинки — горизонтальный скролл */
    .bento-fillings-grid .bento-option-card {
        flex-basis: min(260px, calc(100vw - 52px)) !important;
        width: min(260px, calc(100vw - 52px)) !important;
    }

    .bento-fillings-grid .bento-option-media {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
    }

    .bento-fillings-grid .bento-option-media img {
        object-fit: cover !important;
        object-position: center 55% !important;
    }

    .bento-fillings-nav {
        display: none !important;
    }

    /* Дизайны — горизонтальный скролл как начинки */
    .bento-designs-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 14px !important;
        padding-bottom: 8px !important;
        scroll-snap-type: x proximity !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        grid-template-columns: unset !important;
        justify-content: flex-start !important;
    }

    .bento-designs-grid::-webkit-scrollbar {
        display: none !important;
    }

    .bento-designs-grid .bento-option-card {
        flex: 0 0 min(260px, calc(100vw - 52px)) !important;
        width: min(260px, calc(100vw - 52px)) !important;
        scroll-snap-align: start !important;
    }

    /* Размеры — горизонтальный скролл как начинки */
    .bento-sizes-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 14px !important;
        padding-bottom: 8px !important;
        scroll-snap-type: x proximity !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        grid-template-columns: unset !important;
        justify-content: flex-start !important;
    }

    .bento-sizes-grid::-webkit-scrollbar {
        display: none !important;
    }

    .bento-sizes-grid .bento-option-card {
        flex: 0 0 min(260px, calc(100vw - 52px)) !important;
        width: min(260px, calc(100vw - 52px)) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: unset !important;
        padding: unset !important;
        scroll-snap-align: start !important;
    }

    .bento-sizes-grid .bento-option-card .bento-option-media {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: 0 !important;
        flex-shrink: unset !important;
    }

    /* Футер бенто-строителя */
    .bento-footer-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .bento-summary-price,
    .bento-add-btn,
    .bento-clarify-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .bento-summary-price {
        font-size: 1.6rem !important;
        text-align: left !important;
    }

    /* ─── КАТАЛОГ ПРОДУКТОВ (Торты / Сладкое меню) ─── */
    .cakes-toolbar {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }

    .cakes-code-search {
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .product-card {
        border-radius: 18px !important;
    }

    /* Портретный контейнер — торт по центру, без полос */
    .product-card-image {
        aspect-ratio: 3 / 4 !important;
    }

    .product-card-image img,
    .card-img-slider img {
        object-fit: cover !important;
        object-position: center center !important;
    }

    .product-card-body {
        padding: 12px 12px 14px !important;
    }

    .product-card-title {
        font-size: 1.05rem !important;
        margin-bottom: 4px !important;
    }

    .product-card-desc {
        font-size: 0.74rem !important;
    }

    .product-card-price-tag {
        font-size: 0.88rem !important;
        padding: 5px 10px !important;
    }

    .product-card-btn {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 12px !important;
    }

    /* Пагинация каталога */
    .catalog-pagination {
        gap: 6px !important;
        margin-top: 24px !important;
    }

    /* ─── СПЕЦЗАКАЗ ─── */
    .special-order-shell {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
        border-radius: 20px !important;
        gap: 24px !important;
    }

    .special-order-title {
        font-size: 1.6rem !important;
    }

    .special-order-text {
        font-size: 0.88rem !important;
    }

    .special-order-input,
    .special-order-textarea {
        font-size: 16px !important; /* Предотвращает zoom на iOS при фокусе */
        padding: 12px 14px !important;
    }

    .special-order-textarea {
        min-height: 110px !important;
    }

    /* ─── ГАЛЕРЕЯ ─── */
    .gallery-carousel {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .gallery-grid {
        width: 100% !important;
        order: 1 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 12px !important;
        padding: 0 2px 8px !important;
        scroll-snap-type: x proximity !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        touch-action: pan-y !important;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none !important;
    }

    .gallery-item {
        border-radius: 18px !important;
        flex: 0 0 min(260px, calc(100vw - 52px)) !important;
        width: min(260px, calc(100vw - 52px)) !important;
        scroll-snap-align: start !important;
    }

    /* Стрелки галереи скрыты — листается свайпом */
    .gallery-nav {
        display: none !important;
    }

    /* Индикатор страниц галереи — маленькие точки */
    .gallery-carousel {
        position: relative;
    }

    /* ─── КОНТАКТЫ ─── */
    .contacts-grid {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
        border-radius: 24px !important;
        gap: 8px !important;
    }

    .contact-item {
        padding: 14px !important;
        border-radius: 16px !important;
        gap: 14px !important;
    }

    .contact-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        flex-shrink: 0 !important;
    }

    .contact-text h4 {
        font-size: 1.05rem !important;
        margin-bottom: 3px !important;
    }

    .contact-text a {
        font-size: 0.95rem !important;
    }

    /* ─── PROMO BLOCK ─── */
    .promo-block {
        padding: 36px 20px !important;
        border-radius: 28px !important;
    }

    .promo-block h3 {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        margin-bottom: 16px !important;
    }

    .promo-block p {
        font-size: 0.95rem !important;
    }

    /* ─── STATS ─── */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
        margin-top: 28px !important;
    }

    .stat-number {
        font-size: 2.4rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
    }

    /* ─── КОРЗИНА (Cart Modal) ─── */
    .cart-modal {
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: translateY(20px) !important;
        padding: 16px !important;
    }

    .cart-modal.active {
        transform: translateY(0) !important;
    }

    .cart-header {
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
    }

    .cart-header h3 {
        font-size: 1.4rem !important;
    }

    .btn-checkout {
        padding: 15px !important;
        font-size: 0.95rem !important;
    }

    .cart-schedule-row {
        grid-template-columns: 1fr !important;
    }

    /* ─── МОДАЛЬНОЕ ОКНО ПРОДУКТА ─── */
    .product-modal {
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: translateY(20px) !important;
    }

    .product-modal.active {
        transform: translateY(0) !important;
    }

    .product-modal-image {
        border-radius: 0 !important;
        height: 44dvh !important;
        min-height: 210px !important;
        max-height: 340px !important;
        background: #faf4f1 !important;
    }

    .product-modal-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .product-modal-close {
        top: 12px !important;
        right: 12px !important;
    }

    .product-modal-body {
        max-height: calc(56dvh - 90px) !important;
        overflow-y: auto !important;
        padding: 18px 16px 20px !important;
        gap: 14px !important;
    }

    .product-modal-title {
        font-size: 1.55rem !important;
    }

    .product-modal-price {
        font-size: 1.7rem !important;
    }

    .product-modal-footer {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .product-modal-price,
    .product-modal-add-btn {
        width: 100% !important;
        flex: 1 1 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* ─── МОДАЛЬНОЕ ОКНО (галерея lightbox) ─── */
    .modal-content {
        width: 100vw !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        padding: 8px !important;
    }

    /* ─── ФУТЕР ─── */
    footer {
        padding: 40px 0 calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        margin-bottom: 24px !important;
    }

    .footer-content > div,
    .footer-main {
        align-items: center !important;
        text-align: center !important;
        padding-left: 0 !important;
    }

    .footer-logo {
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
    }

    .footer-text {
        font-size: 0.85rem !important;
    }

    .footer-brand-image img {
        width: min(100%, 160px) !important;
    }

    .footer-legal {
        width: 100% !important;
        text-align: left !important;
        padding: 14px 16px !important;
        margin-top: 0 !important;
    }

    .footer-legal h4 {
        font-size: 0.85rem !important;
    }

    .footer-legal li {
        font-size: 0.82rem !important;
    }

    .footer-bottom {
        font-size: 0.78rem !important;
        padding-top: 20px !important;
    }

    .social-links {
        justify-content: center !important;
    }

    .social-links a {
        width: 44px !important;
        height: 44px !important;
    }

    /* ─── НИЖНЯЯ НАВИГАЦИЯ (НОВЫЙ ЭЛЕМЕНТ) ─── */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(212, 165, 165, 0.18) !important;
        box-shadow: 0 -6px 24px rgba(45, 30, 20, 0.07) !important;
        padding: 8px 4px !important;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        justify-content: space-around !important;
        align-items: flex-end !important;
    }

    .mobile-bottom-nav a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        text-decoration: none !important;
        color: #baa6a0 !important;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.58rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.4px !important;
        text-transform: uppercase !important;
        padding: 4px 6px 2px !important;
        border-radius: 12px !important;
        transition: color 0.2s ease !important;
        min-width: 48px !important;
        flex: 1 !important;
        text-align: center !important;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav a i {
        font-size: 1.22rem !important;
        line-height: 1 !important;
        transition: transform 0.18s ease !important;
    }

    .mobile-bottom-nav a:active i {
        transform: scale(0.88) !important;
    }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover {
        color: #d4a5a5 !important;
    }

    .mobile-bottom-nav a.active i {
        color: #d4a5a5 !important;
    }

    /* Кнопка корзины в нижней навигации */
    .mobile-bottom-nav .bnav-cart {
        position: relative !important;
    }

    .mobile-bottom-nav .bnav-cart-count {
        position: absolute !important;
        top: 0px !important;
        right: 6px !important;
        background: #d4a5a5 !important;
        color: white !important;
        font-size: 0.58rem !important;
        font-weight: 700 !important;
        width: 16px !important;
        height: 16px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid white !important;
        pointer-events: none !important;
    }

    .mobile-bottom-nav .bnav-cart-count.hidden {
        display: none !important;
    }

    /* ─── SIDE MENU на маленьком экране — полная ширина ─── */
    .side-menu {
        width: 100% !important;
        border-right: none !important;
        border-radius: 0 !important;
        padding-top: 72px !important;
    }

    /* Когда открыто боковое меню — скрываем нижний нав */
    body.side-menu-open .mobile-bottom-nav {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Подпись "Листайте стрелками" — скрыта на мобиле */
    .bento-hint--mobile-hide {
        display: none !important;
    }

    /* Стрелки внутри карточек продуктов — скрыты, листаются свайпом */
    .card-img-nav {
        display: none !important;
    }

    /* Свайп по слайдеру фото внутри карточки */
    .card-img-slider {
        touch-action: pan-y !important;
    }

} /* конец @media 768px */

/* AOS - убираем анимации если пользователь против движения */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ================================================================
   SMALL PHONES ≤ 540px
   ================================================================ */
@media (max-width: 540px) {

    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    /* Карточки продуктов — 2 колонки, маленькие */
    .product-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .product-card-image {
        aspect-ratio: 3 / 4 !important;
    }

    .product-card-title {
        font-size: 0.95rem !important;
    }

    .product-card-desc {
        font-size: 0.72rem !important;
    }

    .product-card-price-tag {
        font-size: 0.82rem !important;
    }

    .product-card-btn {
        font-size: 0.75rem !important;
        padding: 9px 10px !important;
    }

    /* Бенто варианты — 2 колонки */
    .bento-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .bento-option-media {
        height: 150px !important;
    }

    .bento-option-title {
        font-size: 1rem !important;
    }

    } /* конец @media 540px */


/* ================================================================
   EXTRA SMALL ≤ 390px (iPhone 14 mini, Galaxy A-series)
   ================================================================ */
@media (max-width: 390px) {

    body {
        font-size: 14px !important;
    }

    .container {
        padding: 0 12px !important;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 11.5vw, 2.4rem) !important;
    }

    .section-title {
        font-size: clamp(1.75rem, 9.5vw, 2.3rem) !important;
    }

    /* Карточки продуктов — 1 колонка на очень маленьких */
    .product-catalog {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .product-card-image {
        aspect-ratio: 3 / 4 !important;
    }

    /* Бенто — тоже 1 колонка */
    .bento-options-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .bento-option-media {
        height: 200px !important;
    }

    /* Бенто размеры */
    .bento-sizes-grid {
        grid-template-columns: 1fr !important;
    }

    /* Шапка — ещё меньше текст */
    .logo {
        font-size: 0.85rem !important;
    }

    /* Stats — вертикально */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: left;
        background: #fff;
        border-radius: 16px;
        padding: 14px 18px;
    }

    .stat-number {
        font-size: 2.2rem !important;
        margin-bottom: 0 !important;
    }

    .stat-label {
        font-size: 0.72rem !important;
    }

    /* Footer bottom nav spacing */
    .mobile-bottom-nav a {
        font-size: 0.52rem !important;
        min-width: 40px !important;
    }

    .mobile-bottom-nav a i {
        font-size: 1.1rem !important;
    }

} /* конец @media 390px */


/* ================================================================
   TOUCH DEVICES — убираем hover-эффекты
   ================================================================ */
@media (hover: none) and (pointer: coarse) {

    .card:hover,
    .product-card:hover,
    .gallery-item:hover,
    .contact-item:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-card:hover,
    .bento-option-card:hover,
    .product-card-btn:hover,
    .side-menu-link:hover {
        transform: none !important;
    }

    .contact-item:hover {
        background: transparent !important;
    }

    .gallery-item:hover {
        transform: none !important;
    }

    /* Тактильная реакция на нажатие вместо hover */
    .btn:active,
    .btn-card:active,
    .product-card-btn:active,
    .bento-tab:active,
    .menu-tab:active {
        transform: scale(0.97) !important;
        opacity: 0.9 !important;
    }

}
