/* ============================================================
   MOBILE ADAPTIVE — подключать после main.css
   ============================================================ */

/* ===== TYPOGRAPHY ===== */
@media (max-width: 768px) {
  .type--lgx { font-size: 28px; }
  .type--md { font-size: 18px; }
  .type--sm { font-size: 12px; }
}

/* ===== SECTIONS ===== */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 28px; margin-bottom: 32px; }
}

/* ===== HERO ===== */
@media (max-width: 768px) {
  .hero-slide { padding: 40px 0; }
  .hero-slide__title { font-size: 36px; }
  .hero-slide__subtitle { font-size: 16px; }
}

/* ===== ORDER CARD ===== */
@media (max-width: 640px) {
  .order-card__image { display: none; }
  .order-card__header { padding: 24px; }
  .order-card__body { padding: 24px;font-size: 14px; }
}
@media (max-width: 768px) {
  .order-card__badge { right: 20px; bottom: 20px; }
}

/* ===== COMPARISON ===== */
@media (max-width: 768px) {
  .comparison { grid-template-columns: 1fr; }
}

/* ===== DELIVERY ===== */
@media (max-width: 768px) {
  .delivery-section { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== HELP BANNER ===== */
@media (max-width: 768px) {
  .help-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .help-banner__form { justify-content: center; }
}

/* ===== PROMO BANNER ===== */
@media (max-width: 992px) {
  .promo-banner__image { width: 100px; height: 60px; }
}
@media (max-width: 768px) {
  .promo-banner__inner {
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
  }
  .promo-banner__image {
    width: 100%;
    max-width: 300px;
    height: 60px;
  }
  .promo-banner__image--left { order: 1; }
  .promo-banner__content { order: 2; flex-direction: column; gap: 10px; }
  .promo-banner__image--right { order: 3; }
  .promo-banner__text {
    font-size: 0.95rem;
    text-align: center;
  }
  .promo-banner__code { font-size: 0.9rem; padding: 4px 16px; }
  .promo-banner__btn { padding: 6px 24px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .promo-banner { padding: 8px 0; }
  .promo-banner__image { max-width: 200px; height: 50px; }
  .promo-banner__text { font-size: 0.85rem; }
}

/* ===== FOOTER ===== */
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-scroll-top { margin: 0 auto; }
}
@media (max-width: 640px) {
  .footer-apps { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom__info { justify-content: center; }
}

/* ===== PROGRAM GROUP CARDS ===== */
@media (max-width: 768px) {
  .program-group-cards > div {
    min-width: 160px;
    max-width: 200px;
  }
  .program-group-cards .type--24 { font-size: 22px !important; }
  .program-group-cards .type--16 { font-size: 12px !important; }
  .program-group-cards .br-12 {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }
  .program-group-cards .w40 { width: 40px !important; }
  .program-group-cards .pt-20 {
    padding: 12px 12px 10px 12px !important;
    min-height: 80px;
  }
}
/* Для планшетов — 2 карточки */
@media (max-width: 992px) {
  .program-group-cards > div {
    flex: 0 0 calc(50% - 10px);
    min-width: 220px;
    max-width: 350px;
  }
}

/* Для мобильных — 1.5 карточки (показываем часть следующей) */
@media (max-width: 640px) {
  .program-group-cards > div {
    flex: 0 0 calc(70% - 10px);
    min-width: 200px;
    max-width: 280px;
  }
}

/* Для очень маленьких экранов — 1 карточка */
@media (max-width: 480px) {
  .program-group-cards > div {
    flex: 0 0 calc(100%);
    min-width: 0;
    max-width: 400px;
  }
  .btn--sm {display:none}
  
/* Принудительное растяжение на всю ширину */
@media (max-width: 768px) {
    .dishesContainer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
    }
    
    /* Блок КБЖУ на всю ширину */
    .dishesContainer .deckkal-wrapper {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    .dishesContainer .deckkal {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 16px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Внутренние контейнеры */
    .deckkal > div {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
	.btn--sm {
		font-size: 18px;
		padding: 10px 0px;
	}
}
}
/* Адаптив для мобильных */
@media (max-width: 768px) {
    .program-categories {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 4px 0 12px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
		margin-bottom:0px
    }
	.oko {
		font-size:12px;
		margin-top:-30px
	}
	.section {
		padding: 20px 0;
	}
    
    .program-categories::-webkit-scrollbar {
        display: none;
    }
    
    .program-category {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 22px;
        border-bottom: 2px solid transparent;
    }
    
    .program-category svg {
        width: 18px;
        height: 18px;
    }
    
    .plan-group {
        gap: 20px;
    }
    
    .plan-group .program-card-wrapper {
        min-width: 180px;
        max-width: 240px;
    }
}


/* ===== REVIEWS SCROLL ===== */
@media (max-width: 768px) {
  .section--gradient { padding: 40px 0; }
  .section-subtitle { font-size: 1rem; }
  .reviews-scroll .review-card { flex: 0 0 82%; padding: 22px 18px; }
  .reviews-scroll { gap: 16px; padding: 5px 5px 15px 5px; }
}
@media (max-width: 480px) {
  .reviews-scroll .review-card { flex: 0 0 88%; padding: 18px 14px; }
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 640px) {
  .sm__hide { display: none !important; }
  .sm__show { display: block !important; }
}
@media (min-width: 641px) {
  .sm__show { display: none !important; }
}
@media (max-width: 1024px) {
  .lg__hide { display: none !important; }
}
@media (min-width: 1025px) {
  .lg__show { display: none !important; }
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА — МОБИЛЬНАЯ ВЕРСИЯ (центр + затемнение)
   ============================================================ */

/* Для dish-modal (модалка блюда) */
@media (max-width: 480px) {
    .dish-modal-content {
        /* Убираем fullscreen */
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 92% !important;
        max-width: 400px !important;
        height: auto !important;
        max-height: 90vh !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
        overflow: hidden !important;
    }

    /* Затемнение (уже есть, но убедимся что работает) */
    .dish-modal-overlay {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }

    .dish-detail__image {
        height: 180px;
    }

    .dish-modal .p-20 {
        padding: 16px 18px 20px;
    }

    .dish-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Для program-modal (модалка "О программе") */
@media (max-width: 480px) {
    .program-modal-content {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 92% !important;
        max-width: 420px !important;
        height: auto !important;
        max-height: 90vh !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
        overflow: hidden !important;
    }

    .program-modal-overlay {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }

    .program-modal-body {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }

    .program-modal-image-wrap {
        min-height: 160px;
        max-height: 200px;
    }

    .program-modal-image {
        min-height: 160px;
        object-fit: cover;
    }

    .program-modal-info {
        padding: 20px 18px 24px;
    }

    .program-modal-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .program-modal-text {
        max-height: 95%;
        font-size: 14px;
        line-height: 1.6;
        padding-right: 4px;
    }

    .program-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        z-index: 20;
    }
	.dishName {
		font-size: 14px;
		}
	.slotLabel{
		font-size: 12px;
	}
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .dish-modal-content {
        width: 96% !important;
        max-height: 92vh !important;
        border-radius: 16px !important;
    }

    .program-modal-content {
        width: 96% !important;
        max-height: 92vh !important;
        border-radius: 16px !important;
    }

    .dish-detail__image {
        height: 140px;
    }

    .program-modal-image-wrap {
        min-height: 130px;
        max-height: 160px;
    }

    .program-modal-image {
        min-height: 130px;
    }

    .program-modal-text {
        max-height: 95%;
        font-size: 13px;
    }
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ (гамбургер) — ТЁМНАЯ ВЕРСИЯ
   ============================================================ */

/* Кнопка гамбургера - всегда видна на мобильных */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    color: #1E2A1E;
    line-height: 1;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

/* Оверлей (затемнение) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Само меню — ТЁМНОЕ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #0a0a0a;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    z-index: 9999;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

/* Шапка меню — тёмная */
.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.mobile-menu__title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.mobile-menu__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu__close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* Тело меню — список пунктов */
.mobile-menu__body {
    padding: 16px 0 32px;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu__list li {
    margin: 0;
    padding: 0;
}

.mobile-menu__list a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.3px;
}

.mobile-menu__list a:hover,
.mobile-menu__list a:focus {
    background: rgba(126, 202, 29, 0.12);
    color: #7eca1d;
    padding-left: 28px;
}

.mobile-menu__list a:active {
    background: rgba(126, 202, 29, 0.2);
    color: #7eca1d;
}

/* Активный пункт меню — подсветка зелёным */
.mobile-menu__list .current-menu-item a,
.mobile-menu__list .current_page_item a {
    color: #7eca1d;
    background: rgba(126, 202, 29, 0.08);
    border-right: 3px solid #7eca1d;
}

/* Иконки для пунктов меню (опционально) */
.mobile-menu__list a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin-right: 14px;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu__list a:hover::before {
    background: #7eca1d;
    transform: scale(1.3);
}

.mobile-menu__list .current-menu-item a::before,
.mobile-menu__list .current_page_item a::before {
    background: #7eca1d;
    transform: scale(1.3);
}

/* Стили для декоративной полоски внизу */
.mobile-menu__footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
    flex-shrink: 0;
}

.mobile-menu__footer .social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.mobile-menu__footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-menu__footer .social-links a:hover {
    background: rgba(126, 202, 29, 0.15);
    color: #7eca1d;
    transform: translateY(-2px);
}

.mobile-menu__footer .social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================================
   АДАПТИВ: показываем гамбургер и мобильное меню
   ============================================================ */

@media (max-width: 768px) {
    /* Скрываем обычную навигацию */
    nav .container > ul {
        display: none !important;
    }
    
    /* Показываем кнопку гамбургера */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Личный кабинет оставляем как есть */
    nav .container > div:last-child {
        margin-left: auto;
    }
}

@media (min-width: 769px) {
    /* На десктопе скрываем мобильное меню */
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-menu {
        width: 92%;
        max-width: 360px;
    }
    
    .mobile-menu__list a {
        padding: 14px 20px;
        font-size: 18px;
    }
    
    .mobile-menu__list a:hover {
        padding-left: 24px;
    }
    
    .mobile-menu__header {
        padding: 16px 20px 14px;
    }
    
    .mobile-menu__title {
        font-size: 20px;
    }

    .mobile-menu__list a::before {
        width: 5px;
        height: 5px;
        margin-right: 12px;
    }
	.deckkal {
		font-size:14px
	}
}

/* Стили для скролла в тёмном меню */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(126, 202, 29, 0.3);
    border-radius: 10px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(126, 202, 29, 0.5);
}

/* Для Firefox */
.mobile-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 202, 29, 0.3) rgba(255, 255, 255, 0.02);
}

