/* ==========================================
🎨 MODERN CAFE UI - COMPLETE REDESIGN
========================================== */
/* 🎨 CSS VARIABLES */
:root {
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F5F5F7;
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --accent: #ff7000;
  --accent-hover: #e66500;
  --accent-light: rgba(255, 112, 0, 0.1);
  --accent-rgb: 255, 112, 0;
  --border: #E5E7EB;
  --border-focus: var(--accent);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --header-height: 70px;
  --header-height-mobile: 65px;
}
[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1F2937;
  --bg-tertiary: #374151;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --border: #374151;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;
  --info: #60A5FA;
}

/* 🔧 RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease;
}

/* 🔹 ПОДСКАЗКА "МЕНЮ" — ВИДИМА ПО УМОЛЧАНИЮ НА ВСЕХ ЭКРАНАХ */
.scroll-hint {
    display: flex;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 1;
    transition: opacity 0.4s ease;
    animation: scrollHintBounce 2s ease-in-out infinite;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}
.scroll-hint:hover {
    color: var(--accent);
}
/* 🔹 СКРЫВАЕМ ПРИ СВОРАЧИВАНИИ ХЕДЕРА */
.header.scrolled .scroll-hint {
    display: none;
    opacity: 0;
    pointer-events: none;
}
.scroll-hint svg {
    width: 20px;
    height: 20px;
}
@keyframes scrollHintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ==========================================
🌈 АНИМИРОВАННЫЙ ГРАДИЕНТНЫЙ ФОН (СВЕТЛАЯ ТЕМА)
========================================== */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 225deg;
  inherits: false;
}
@keyframes rotateGradient {
  0%, 100% {
    --gradient-angle: 225deg;
  }
  50% {
    --gradient-angle: 405deg;
  }
}
body:not([data-theme="dark"]) {
  background: linear-gradient(var(--gradient-angle), #ff7000, #ffc700);
  animation: rotateGradient 10s ease-in-out infinite;
  min-height: 100vh;
}

/* ==========================================
🌙 ТЁМНАЯ ТЕМА - ЭФФЕКТ ПРОЗРАЧНЫХ БУКВ
========================================== */
[data-theme="dark"] body {
  background: #0a0a0a;
}
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--gradient-angle), #ff7000, #ffc700);
  animation: rotateGradient 10s ease-in-out infinite;
  z-index: -1;
  opacity: 0.3;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .modal-title,
[data-theme="dark"] .dish-name,
[data-theme="dark"] .category-name,
[data-theme="dark"] .announcement-text strong {
  background: linear-gradient(var(--gradient-angle), #ff7000, #ffc700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rotateGradient 10s ease-in-out infinite;
}

/* ==========================================
📌 LAYOUT
========================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
main {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 40px;
  min-height: calc(100vh - 140px);
}

/* ==========================================
🏠 HEADER & SLOGAN
========================================== */
.header {
    position: fixed;
    top: 0;
    left: -16px;
    right: 0;
    z-index: 4000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .header {
    background: rgba(20, 20, 20, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 🔹 Обёртка для логотипа и слогана */
.header-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🔹 Логотип (базовое состояние) */
.logo-icon {
    height: auto;
    width: 50vw;
    max-width: 280px;
    min-width: 140px;
    object-fit: contain;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    cursor: pointer;
}
.logo-icon:hover { transform: scale(1.02); }

/* 🔹 Слоган: базовые стили */
.header-slogan {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 12vh; /* 🔹 На десктопе отступ ~половины высоты логотипа (логотип 22vh) */
    text-align: center;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.5px;
    min-height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

/* 🔹 На мобильных отступ тоже пропорционален ширине экрана */
@media (max-width: 768px) and (orientation: portrait) {
    .header-slogan {
        margin-top: 20vw; /* Логотип занимает до 50vw, половина — это 25vw. 20vw выглядит гармонично */
        font-size: 1rem;
    }
}


/* ==========================================
📱 МОБИЛЬНЫЙ ВЕРТИКАЛЬНЫЙ (Полноэкранный)
========================================== */
@media (max-width: 768px) and (orientation: portrait) {
    .header.fullscreen {
        height: 100vh;
        height: 100dvh;
        padding: 0 16px;
        border-bottom: none;
    }
    /* Сдвигаем контент чуть выше центра */
    .header.fullscreen .header-content-wrapper {
        transform: translateY(-25%); 
    }
    /* Логотип не более 50% ширины экрана */
    .header.fullscreen .logo-icon {
        width: 65vw;
        max-width: 50vw; 
        min-width: 160px;
    }
}

/* ==========================================
💻 ДЕСКТОП И ЛАНДШАФТ (Полноэкранный)
========================================== */
@media (min-width: 769px), (orientation: landscape) {
    .header.fullscreen {
        height: 100vh;
        height: 100dvh;
        justify-content: center;
    }
    .header.fullscreen .header-content-wrapper {
        transform: translateY(-35%); /* Чуть выше центра */
    }
    .header.fullscreen .logo-icon {
        width: auto;
        height: 12vh;
        max-width: 35vw;
    }
    .header.fullscreen .header-slogan {
        font-size: 1rem;
    }
}

/* ==========================================
📌 СОКРАЩЁННЫЙ ХЕДЕР (ВСЕ ЭКРАНЫ)
========================================== */
.header.scrolled {
    height: 65px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    justify-content: flex-start; /* 🔹 КРИТИЧНО: Логотип слева */
}
.header.scrolled .header-content-wrapper {
    flex-direction: row;
    transform: none;
    width: 100%;
}
.header.scrolled .logo-icon {
    height: calc(65px - 16px); /* 49px - идеальная пропорция */
    width: auto;
    max-width: 180px;
    min-width: auto;
    margin: 0 0 0 3mm;
    margin-right: auto;
}
.header.scrolled .header-slogan {
    display: none; /* Скрываем слоган */
}
.header.scrolled .scroll-hint {
    display: none;
}

/* Отступы для основного контента */
main {
    padding-top: 100vh;
    padding-top: 100dvh;
    transition: padding-top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
body.header-collapsed main {
    padding-top: calc(65px + 65px);
}

/* ==========================================
🎛 FLOATING BUTTONS ROW
========================================== */
.floating-buttons-row {
  position: fixed;
  top: calc(var(--header-height) + 3mm);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4001;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2mm;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all 1s ease;
}

/* Десктоп ИЛИ мобильный горизонтальный */
@media (min-width: 769px), (orientation: landscape) {
    .floating-buttons-row {
        top: calc(var(--header-height) / 2);
        left: auto;
        right: 3mm;
        transform: translateY(-50%);
        gap: 2mm;
        padding: 6px 12px;
        
        /* 🔹 НОВОЕ: СКРЫВАЕМ ПРИ РАЗВЁРНУТОМ ХЕДЕРЕ */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.6s ease, transform 0.6s ease, gap 0.4s ease, padding 0.4s ease;
    }
    
    /* 🔹 ПОЯВЛЯЕМ ПРИ СВОРАЧИВАНИИ */
    .floating-buttons-row.scrolled {
        opacity: 1;
        pointer-events: auto;
        gap: 1mm;
        padding: 3px 6px;
    }
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  flex-shrink: 0;
}
[data-theme="dark"] .floating-btn {
  background: rgba(50, 50, 50, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.floating-btn svg {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
}
.floating-buttons-row.scrolled .floating-btn {
  width: 38px;
  height: 38px;
}
.floating-buttons-row.scrolled .floating-btn svg {
  width: 18px;
  height: 18px;
}

/* Сброс индивидуальных позиций */
.floating-home-btn,
.floating-cart,
.floating-orders-btn,
.floating-profile-btn,
.floating-theme-btn {
  position: static !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
}

/* ==========================================
🛒 CHECKOUT BUTTON
========================================== */
.floating-checkout-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  border: none;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.floating-checkout-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}
.floating-checkout-btn svg {
  width: 28px;
  height: 28px;
  color: white;
}
.floating-checkout-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: 2px solid white;
}
.floating-checkout-btn.hidden {
  display: none !important;
}

/* ==========================================
BADGES
========================================== */
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
  border: 2px solid var(--bg-secondary);
}
.badge.hidden {
  display: none !important;
}
.floating-orders-btn .order-status-badge {
  background: var(--text-muted);
  box-shadow: none;
  top: -4px !important;
  bottom: auto !important;
  right: auto !important;
  left: 4px !important;
}
.floating-orders-btn .order-status-badge.status-new { background: #EF4444; }
.floating-orders-btn .order-status-badge.status-in_progress { background: #F59E0B; }
.floating-orders-btn .order-status-badge.status-done,
.floating-orders-btn .order-status-badge.status-completed { background: #10B981; }

/* ==========================================
📢 ANNOUNCEMENTS - 2.5CM ОТ ВЕРХА
========================================== */
.announcements-container {
  max-width: 1200px;
  margin: 2.5cm auto 2rem;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.announcement-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  position: relative;
  overflow: visible;
  transition: transform 0.2s ease;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .announcement-banner {
  background: rgba(30, 30, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.announcement-banner:hover {
  transform: translateY(-2px);
}
.announcement-banner.warning {
  background: linear-gradient(135deg, rgba(255, 243, 224, 0.85), rgba(255, 224, 178, 0.85));
}
.announcement-banner.promo {
  background: linear-gradient(135deg, rgba(252, 228, 236, 0.85), rgba(248, 187, 208, 0.85));
}
.announcement-banner.info {
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.85), rgba(187, 222, 251, 0.85));
}
.announcement-banner.neutral {
  background: rgba(255, 255, 255, 0.65);
}
.announcement-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.announcement-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.announcement-icon svg {
  width: 100%;
  height: 100%;
}
.announcement-image-large {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.3);
}
.announcement-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.announcement-image-large::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
.announcement-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.announcement-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.announcement-text span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}
.announcement-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.announcement-close svg {
  width: 14px;
  height: 14px;
}
.announcement-close:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--text-primary);
  transform: rotate(90deg);
}
.announcement-banner.hidden {
  display: none;
}

/* ==========================================
🍽 ЗАГОЛОВОК "НАШЕ МЕНЮ" - БЕЛЫЙ 65%
========================================== */
h1 {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 2rem;
}
[data-theme="dark"] h1 {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================
🃏 КАТЕГОРИИ И БЛЮДА - ТОНКАЯ БЕЛАЯ ГРАНИЦА
========================================== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.category-card {
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
}
[data-theme="dark"] .category-card {
}
.category-card:hover {
  transform: translateY(-4px);
}
.category-image {
  height: 140px;

  overflow: hidden;
}
.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-name {
  padding: 14px;
  font-weight: 500;
  text-align: center;
}

/* Сетка дочерних категорий */
.child-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* По умолчанию 2 колонки (мобильные) */
    gap: 12px;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .child-categories-grid {
        grid-template-columns: repeat(3, 1fr); /* Планшет: 3 колонки */
        gap: 15px;
    }
}

@media (min-width: 900px) {
    .child-categories-grid {
        grid-template-columns: repeat(4, 1fr); /* Десктоп: 4 колонки */
        gap: 18px;
    }
}

/* Карточка дочерней категории (как на главной) */
.child-category-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .child-category-card {
    background: rgba(50, 50, 50, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.child-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

.child-category-card .category-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.child-category-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.child-category-card:hover .category-image img {
    transform: scale(1.03);
}

.child-category-card .category-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: var(--bg-tertiary);
}

.child-category-card .category-name {
    padding: 14px;
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .child-category-card .category-image,
    .child-category-card .category-icon {
        height: 140px;
    }
}

@media (min-width: 1024px) {
    .child-category-card .category-image,
    .child-category-card .category-icon {
        height: 160px;
    }
    .child-category-card .category-icon {
        font-size: 4rem;
    }
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.dish-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}
[data-theme="dark"] .dish-card {
  background: rgba(50, 50, 50, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dish-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}
.dish-image {
  height: 160px;
  background: var(--bg-tertiary);
  overflow: hidden;
  cursor: pointer;
}
.dish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.dish-card:hover .dish-image img {
  transform: scale(1.03);
}
.dish-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dish-name {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
}
.dish-price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.dish-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==========================================
⏰ COOK TIME BADGE
========================================== */
.cook-time-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

/* ==========================================
🧩 DISH OPTIONS
========================================== */
.dish-options {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}
.dish-options h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.option-item:last-child {
  border-bottom: none;
}
.option-info {
  flex: 1;
}
.option-name {
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.option-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.option-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.option-qty-btn {
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-qty-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}
.option-qty-value {
  min-width: 40px;
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
}

/* ==========================================
🚗 DELIVERY SECTION
========================================== */
.delivery-section {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}
.delivery-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.delivery-fields {
  display: none;
}
.delivery-fields.active {
  display: block;
}
.delivery-fields select,
.delivery-fields input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.delivery-price {
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* ==========================================
⏰ READY TIME SECTION
========================================== */
.ready-time-section {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}
.ready-time-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.ready-time-fields {
  display: none;
  gap: 1rem;
  flex-wrap: wrap;
}
.ready-time-fields.active {
  display: flex;
}
.ready-time-fields input {
  flex: 1;
  min-width: 150px;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* 🔹 Стили для типа оплаты */

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.payment-method-option:hover {
    border-color: var(--accent);
}
.payment-method-option.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}
.payment-method-option input[type="radio"] {
    width: auto !important;
    accent-color: var(--accent);
    margin: 0;
}

/* ==========================================
🔘 BUTTONS
========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.btn:hover {
  background: var(--border);
}
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-details {
  flex: 1;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 0.8rem;
}
.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #DC2626;
}

/* ==========================================
📝 FORMS & INPUTS
========================================== */
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================
🔀 TOGGLES & QUANTITY
========================================== */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle.active {
  background: var(--success);
}
.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.toggle.active .toggle-slider {
  transform: translateX(20px);
}
.quantity-controls {
  display: none;
  align-items: center;
  gap: 4px;
}
.quantity-controls.visible {
  display: inline-flex;
}
.qty-btn {
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.qty-btn:active {
  transform: scale(0.95);
}
.qty-input {
  width: 60px;
  height: 40px;
  font-size: 1.2rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ==========================================
📦 CART ITEMS
========================================== */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  align-items: center;
}
.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cart-item-name {
  font-weight: 500;
  font-size: 0.95rem;
}
.cart-item-price {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
}
.cart-item-sum {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 4px 0;
}
.cart-item-quantity {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 6px;
  white-space: nowrap;
}
.cart-item-quantity .qty-btn {
  flex-shrink: 0;
  flex-grow: 0;
  width: 28px;
  height: 28px;
}
.cart-item-quantity span {
  flex-shrink: 1;
  min-width: 40px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-item-options {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--accent-light);
  border-radius: 6px;
  font-size: 0.85rem;
}
.cart-item-options .option-line {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  color: var(--text-secondary);
}
.cart-item-options .option-line .option-price {
  color: var(--accent);
  font-weight: 500;
}
.cart-item-total {
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}
.remove-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-secondary);
  color: var(--danger);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.remove-btn:hover {
  background: var(--danger);
  color: white;
}
.cart-total-section {
  background: var(--bg-secondary);
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: right;
  margin: 16px -20px -20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.cart-total-amount {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}
.empty-cart, .empty-orders-msg {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================
📋 ORDER LIST
========================================== */
.order-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.order-list-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.order-info strong {
  font-size: 1rem;
  font-weight: 500;
}
.order-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.order-total {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}
.order-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}
.order-delete-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================
📖 DETAIL MODAL
========================================== */
.detail-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;

}
.ingredients-list {
  list-style: none;
  margin: 12px 0;
}
.ingredients-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.ingredients-list li:last-child {
  border-bottom: none;
}

/* ==========================================
🪟 MODALS
========================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  padding: 90px 20px 20px 20px;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: min(85vh, calc(100vh - 120px));
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  z-index: 10;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-body {
  padding: 20px;
}
.modal-content .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}
.back-btn, .close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
}
.back-btn svg, .close-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}
.back-btn:hover, .close-btn:hover {
  background: var(--border);
  color: var(--text-primary);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
#paymentModal {
  z-index: 3004 !important;
}
#orderDetailModal {
  z-index: 3001 !important;
}
#detailModal {
  z-index: 2100 !important;
}

/* ==========================================
📦 DYNAMIC CONTENT
========================================== */
#dynamic-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.info-block-top {
  margin: 32px 0 40px;
}
.info-block-middle {
  margin: 40px 0;
}
.info-block-bottom {
  margin: 40px 0 20px;
}
.info-block-full {
  margin: 40px -16px;
  padding: 0 16px;
}
.info-block-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.25rem;
  text-align: center;
  letter-spacing: -0.02em;
}
.info-block-content {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .info-block-content {
  background: rgba(50, 50, 50, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.info-text-image {
  display: grid;
  gap: 24px;
  align-items: center;
}
.info-text-image--left {
  grid-template-columns: 1fr 1fr;
}
.info-text-image--right {
  grid-template-columns: 1fr 1fr;
}
.info-text-image--right .info-text-body {
  order: 2;
}
.info-text-image--top {
  grid-template-columns: 1fr;
  text-align: center;
}
.info-block-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
}
.info-text-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* ==========================================
🏆 ПРЕИМУЩЕСТВА - МИНИМАЛИСТИЧНЫЕ ПЛАШКИ
========================================== */
.info-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.info-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: transform 0.2s ease;
}

.info-feature-item:hover {
    transform: translateY(-4px);
}

.info-feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.info-feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.info-feature-item span:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-feature-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.info-feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Убираем фон и окантовку у контейнера для блока features */
#block-advantages .info-block-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 16px 0;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .info-features-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-feature-item {
        padding: 20px 12px;
    }
}

.info-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.info-service-card {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}
.info-service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.info-service-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.info-service-name {
  font-weight: 600;
  margin: 0 0 6px;
}
.info-service-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}
.info-service-price {
  font-weight: 700;
  color: var(--accent);
  margin: 10px 0;
}

/* ==========================================
ПРЕИМУЩЕСТВА И УСЛУГИ
========================================== */
.advantages-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}
.advantage-card, .service-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .advantage-card,
[data-theme="dark"] .service-card {
  background: rgba(50, 50, 50, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.advantage-card:hover, .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}
.advantage-icon, .service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 112, 0, 0.15);
  border: 1px solid rgba(255, 112, 0, 0.25);
  border-radius: 50%;
  padding: 12px;
  color: var(--accent);
}
.advantage-icon svg, .service-icon svg {
  width: 100%;
  height: 100%;
}
.advantage-title, .service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.advantage-text, .service-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.advantage-text p, .service-text p {
  margin: 0;
}
.external-html-block {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.external-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 0.5rem;
}
.external-loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
FOOTER
========================================== */
.site-footer {
  background: rgba(255, 255, 255, 0.95); /* Сделано чуть белее (было 0.85) */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 24px 0 16px;
  margin-top: 40px;
}
[data-theme="dark"] .site-footer {
  background: rgba(20, 20, 20, 0.95); /* Сделано чуть белее (было 0.85) */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 0 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom {
  text-align: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-address,
.footer-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: var(--text-secondary);
}
.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

/* 📞 ТЕЛЕФОН В ФУТЕРЕ — ОРАНЖЕВЫЙ */
.footer-contact-item a,
.footer-contacts a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-contact-item a:hover,
.footer-contacts a:hover {
  color: var(--accent-hover);
}

/* ==========================================
📱 RESPONSIVE
========================================== */
/* Общие мобильные стили (не зависящие от ориентации) */
@media (max-width: 768px) {
  main {
    padding-top: calc(var(--header-height) + 65px);
    padding-bottom: 24px;
  }
  .announcements-container {
    margin-top: 2.5cm;
    padding: 0 16px;
  }
  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dishes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category-image, .dish-image {
    height: 120px;
  }
  .modal {
    padding: 80px 20px 20px 20px;
    align-items: flex-start;
  }
  .modal-content {
    max-height: 90vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0 auto;
    padding-bottom: 20px;
  }
  .announcement-banner {
    padding: 10px;
    gap: 12px;
  }
  .announcement-image-large {
    width: 100px;
    height: 100px;
  }
  .announcement-content {
    gap: 10px;
  }
  .announcement-icon {
    width: 20px;
    height: 20px;
  }
  .announcement-text strong {
    font-size: 0.95rem;
  }
  .announcement-text span {
    font-size: 0.85rem;
  }
  .announcement-close {
    width: 26px;
    height: 26px;
    top: 6px;
    right: 6px;
  }
  .announcement-close svg {
    width: 12px;
    height: 12px;
  }
  .info-text-image--left,
  .info-text-image--right {
    grid-template-columns: 1fr;
  }
  .info-block-img {
    height: 200px;
  }
  .info-services-grid {
    grid-template-columns: 1fr;
  }
  .info-block-title {
    font-size: 1.25rem;
  }
  .external-html-block.info-block-full {
    margin: 40px -16px;
  }
}

/* ==========================================
📱 ПОЛНОЭКРАННЫЙ ХЕДЕР НА МОБИЛЬНЫХ (вертикальных)
========================================== */
@media (max-width: 768px) and (orientation: portrait) {

    /* --- Хедер: изначально на всю высоту экрана --- */
    .header {
        height: 100vh;
        height: 100dvh; /* для современных браузеров */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        border-bottom: none;
        transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    background 0.6s ease;
    }

    /* --- Хедер после свайпа/скролла: обычный размер --- */
    .header.scrolled {
        height: var(--header-height-mobile, 65px);
        align-items: center;
        justify-content: flex-start;
        padding: 8px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    /* --- Логотип: крупный, по центру экрана --- */
    .logo-icon {
        width: 65vw;
        max-width: 320px;
        min-width: 180px;
        margin: 0 auto;
        transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    margin 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* --- Логотип после скролла: маленький, слева --- */
    .header.scrolled .logo-icon {
        width: calc(50vw * 0.65);
        max-width: calc(220px * 0.65);
        min-width: calc(120px * 0.65);
        margin-left: 3mm;
        margin-right: auto;
    }

    /* --- Плавающие кнопки: изначально за экраном внизу --- */
    .floating-buttons-row {
        top: auto;
        bottom: -80px;
        left: 50%;
        transform: translateX(-50%) translateY(0);
        opacity: 0;
        transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                    opacity 0.4s ease 0.15s,
                    top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    right 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    gap 0.4s ease;
    }

    /* --- Плавающие кнопки после скролла: появляются на своём месте --- */
    .floating-buttons-row.scrolled {
        bottom: auto;
        top: calc(var(--header-height-mobile, 65px) / 2);
        left: auto;
        right: 3mm;
        transform: translateY(-50%);
        opacity: 1;
        gap: 1mm;
        padding: 3px 6px;
    }

    /* --- Основной контент: скрыт за полноэкранным хедером --- */
    main {
        padding-top: 100vh;
        padding-top: 100dvh;
        transition: padding-top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* После скролла — обычный отступ */
    body.header-collapsed main {
        padding-top: calc(var(--header-height-mobile, 65px) + 65px);
    }

}

@media (max-width: 480px) and (orientation: portrait) {
  .logo-icon {
    width: 50vw;
    max-width: 180px;
    min-width: 100px;
  }
  .header.scrolled .logo-icon {
    width: calc(50vw * 0.65);
    max-width: calc(180px * 0.65);
    min-width: calc(100px * 0.65);
    margin-left: 3mm;
    margin-right: auto;
  }
  .floating-buttons-row {
    gap: 2mm;
    padding: 4px 8px;
  }
  .floating-buttons-row.scrolled {
    right: 3mm;
    gap: 1mm;
  }
  .floating-btn {
    width: 38px;
    height: 38px;
  }
  .floating-btn svg {
    width: 18px;
    height: 18px;
  }
  .floating-buttons-row.scrolled .floating-btn {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================
♿ ACCESSIBILITY
========================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hidden {
  display: none !important;
}
.unavailable {
  opacity: 0.5;
  filter: grayscale(0.8);
  pointer-events: none;
  position: relative;
}
.unavailable::after {
  content: 'Недоступно';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  color: var(--danger);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: inherit;
}
:target {
  scroll-margin-top: 90px;
}
#pricing {
  scroll-margin-top: 90px;
}
[data-theme="dark"] .info-block-content,
[data-theme="dark"] .info-service-card,
[data-theme="dark"] .info-feature-item {
  background: var(--bg-tertiary);
}

/* ==========================================
🎯 STATUS SLIDER
========================================== */
.status-slider {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1rem 0;
  position: relative;
  padding: 0 10px;
}
.status-step {
  flex: 1;
  text-align: center;
  position: relative;
  cursor: default;
  padding: 8px 4px;
}
.status-step .step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
  border: 3px solid var(--bg-secondary);
}
.status-step.completed .step-dot {
  background: var(--success);
}
.status-step.current .step-dot {
  background: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.status-step.canceled .step-dot {
  background: #757575;
}
.status-step .step-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
.status-step.current .step-label {
  color: var(--accent);
  font-weight: 600;
}
.status-step.completed .step-label {
  color: var(--success);
}
.status-slider::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border);
  z-index: 1;
}
.status-slider.admin .status-step {
  cursor: pointer;
}
.status-slider.admin .status-step:hover .step-dot {
  transform: scale(1.1);
}
.status-slider.admin .status-step.disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* ==========================================
💳 PAYMENT BADGE
========================================== */
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 8px;
}
.payment-badge.paid {
  background: #e8f5e9;
  color: #2e7d32;
}
.payment-badge.unpaid {
  background: #fff3e0;
  color: #ef6c00;
}
.btn-cancel-order {
  background: var(--danger);
  color: white;
}

/* ==========================================
📋 ORDER DETAIL
========================================== */
#orderDetailModal .modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#orderDetailModal .modal-header .modal-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent);
}
#orderDetailModal .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
#orderDetailModal .detail-row:last-child {
  border-bottom: none;
}
#orderDetailModal .detail-row span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
#orderDetailModal .detail-row strong {
  color: var(--text-primary);
}
.order-item {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.order-item:last-child {
  border-bottom: none;
}
.order-item-info {
  flex: 1;
}
.order-item-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.order-item-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.order-item-options {
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}
.order-item-option {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.15rem 0;
  word-break: break-word;
}
.order-item-price {
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.order-item-edit-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  transition: color 0.2s;
}
.order-item-edit-btn:hover {
  color: var(--accent);
}

/* ==========================================
💬 CHAT
========================================== */
.chat-modal .modal-content {
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.chat-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-primary);
  min-height: 300px;
  max-height: 50vh;
}
.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}
.chat-message.client {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-message.admin {
  align-self: flex-start;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-message-time {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}
.chat-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-style: italic;
}
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.chat-send-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}
.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.chat-send-btn svg {
  width: 20px !important;
  height: 20px !important;
  pointer-events: none;
}

/*1*/

.chat-open-btn {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1600;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
  font-size: 1.5rem;
}
.chat-open-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}
.chat-open-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  border-radius: 10px;
  background: var(--danger);
  color: white;
  font-weight: 600;
  border: 2px solid white;
}
.chat-open-btn.hidden {
  display: none !important;
}
@keyframes chatPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
  }
}
.chat-open-btn.has-new {
  animation: chatPulse 2s infinite;
}
.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 350px;
  height: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  z-index: 3003;
  overflow: hidden;
}
.chat-panel.active {
  display: flex;
}
.chat-panel-header {
  padding: 12px 16px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-panel-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-message-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  word-wrap: break-word;
}
.chat-message-bubble.client {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-message-bubble.admin,
.chat-message-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-message-bubble.assistant {
  background: #e3f2fd;
  color: #1976d2;
  font-style: italic;
}
.chat-input-container {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 0.9rem;
  outline: none;
  resize: none;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.4;
  min-height: 40px;
  max-height: 120px;
  transition: height 0.15s ease;
}
.chat-input:focus {
  border-color: var(--accent);
}
.order-chat-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3002;
  box-shadow: 0 4px 12px rgba(255, 112, 0, 0.4);
  transition: all 0.2s;
}
.order-chat-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 112, 0, 0.5);
}
.order-chat-btn svg {
  width: 28px !important;
  height: 28px !important;
  pointer-events: none;
}
.order-chat-btn.active {
  display: flex;
}
.order-chat-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  border-radius: 10px;
  background: var(--danger);
  color: white;
  font-weight: 600;
  border: 2px solid white;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}
.order-list-chat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 20px;
  border-radius: 10px;
  background: var(--info);
  color: white;
  font-weight: 600;
  margin-left: 8px;
  animation: pulse-badge 2s infinite;
}
@media (min-width: 768px) {
  .chat-panel {
    right: 20px;
    bottom: 20px;
  }
}
/* ==========================================
💬 ЧАТ — НИЖЕ ХЕДЕРА НА МОБИЛЬНЫХ
========================================== */
@media (max-width: 767px) {
    .chat-panel {
        width: 100%;
        height: auto;
        right: 0;
        bottom: 0;
        top: calc(var(--header-height-mobile) + 10px); /* 🔹 Отступ от хедера */
        border-radius: 16px 16px 0 0;
        max-height: calc(100vh - var(--header-height-mobile) - 20px);
    }
    
    /* Кнопка чата тоже не должна залезать под хедер */
    .order-chat-btn {
        bottom: 20px;
        right: 20px;
        z-index: 3002;
    }
}

/* ==========================================
🏷 INFO BADGES
========================================== */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.info-badge.status-new {
  background: #ffebee;
  color: #d32f2f;
}
.info-badge.status-agreed {
  background: #e3f2fd;
  color: #1976d2;
}
.info-badge.status-in_progress {
  background: #fff3e0;
  color: #ef6c00;
}
.info-badge.status-done {
  background: #e8f5e9;
  color: #2e7d32;
}
.info-badge.status-completed {
  background: #f5f5f5;
  color: #757575;
}
.info-badge.status-canceled {
  background: #f5f5f5;
  color: #757575;
}
.info-badge.status-archived {
  background: #f5f5f5;
  color: #757575;
}
.info-badge.paid {
  background: #e8f5e9;
  color: #2e7d32;
}
.info-badge.unpaid {
  background: #fff3e0;
  color: #ef6c00;
}
.info-badge.chat {
  background: #e3f2fd;
  color: #1976d2;
  min-width: 20px;
  justify-content: center;
  margin-left: 8px;
  animation: pulse-badge 2s infinite;
}

/* ==========================================
🔊 SOUND BADGE
========================================== */
.floating-profile-btn .sound-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  animation: soundPulse 2s ease-in-out infinite;
}
.floating-profile-btn .sound-badge svg {
  width: 12px;
  height: 12px;
  color: white;
}
@keyframes soundPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.profile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.profile-toggle-row label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-toggle-row label svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}
.profile-toggles {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ==========================================
🎬 ANIMATIONS
========================================== */
@keyframes toggle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 112, 0, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 112, 0, 0);
    transform: scale(1.05);
  }
}
@keyframes plus-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    transform: scale(1.1);
  }
}
.toggle.pulse-attention {
  animation: toggle-pulse 1.5s ease-in-out infinite;
}
.qty-btn.pulse-plus {
  animation: plus-pulse 1.5s ease-in-out infinite;
  background: var(--success) !important;
  color: white !important;
  border-color: var(--success) !important;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}


/* ==========================================
🍽 АДАПТИВНАЯ ШИРИНА МОДАЛКИ КАТЕГОРИЙ
========================================== */
/* Расширяем модалку на планшетах и десктопах, чтобы сетка блюд могла показать 3-4 колонки */
@media (min-width: 768px) {
    #categoryModal .modal-content {
        max-width: 90vw;
        width: 800px;
    }
}

@media (min-width: 1024px) {
    #categoryModal .modal-content {
        width: 1000px;
    }
}

@media (min-width: 1280px) {
    #categoryModal .modal-content {
        width: 1200px;
    }
}

/* Гарантируем, что сетки не вылезут за пределы модалки и не будут перекрывать друг друга */
#categoryModal .dishes-grid,
#categoryModal .child-categories-grid {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Блок дочерних категорий внутри сетки блюд занимает всю ширину */
.dishes-grid .child-categories-grid {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}


/* ==========================================
🔧 ИСПРАВЛЕНИЕ: Бейджи статуса в тёмной теме
========================================== */
[data-theme="dark"] .modal-title .info-badge,
[data-theme="dark"] .order-detail-header .info-badge {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    border: 1px solid var(--border);
}

/* Цветные бейджи статусов */
[data-theme="dark"] .info-badge.status-new {
    background: rgba(211, 47, 47, 0.2) !important;
    color: #ff6b6b !important;
    -webkit-text-fill-color: #ff6b6b !important;
}

[data-theme="dark"] .info-badge.status-agreed {
    background: rgba(25, 118, 210, 0.2) !important;
    color: #64b5f6 !important;
    -webkit-text-fill-color: #64b5f6 !important;
}

[data-theme="dark"] .info-badge.status-in_progress {
    background: rgba(239, 108, 0, 0.2) !important;
    color: #ffb74d !important;
    -webkit-text-fill-color: #ffb74d !important;
}

[data-theme="dark"] .info-badge.status-done {
    background: rgba(46, 125, 50, 0.2) !important;
    color: #81c784 !important;
    -webkit-text-fill-color: #81c784 !important;
}

[data-theme="dark"] .info-badge.status-completed,
[data-theme="dark"] .info-badge.status-canceled {
    background: rgba(117, 117, 117, 0.2) !important;
    color: #bdbdbd !important;
    -webkit-text-fill-color: #bdbdbd !important;
}

[data-theme="dark"] .info-badge.paid {
    background: rgba(46, 125, 50, 0.2) !important;
    color: #81c784 !important;
    -webkit-text-fill-color: #81c784 !important;
}

[data-theme="dark"] .info-badge.unpaid {
    background: rgba(239, 108, 0, 0.2) !important;
    color: #ffb74d !important;
    -webkit-text-fill-color: #ffb74d !important;
}

/* ==========================================
💾 СОХРАНЕНИЕ СОСТОЯНИЯ ХЕДЕРА
========================================== */
/* Если хедер был свёрнут при обновлении — сразу применяем стили свёрнутого хедера */
.header-was-collapsed .header {
    /* Мобильный портрет */
}

@media (max-width: 768px) and (orientation: portrait) {
    .header-was-collapsed .header {
        height: var(--header-height-mobile, 65px);
        align-items: center;
        justify-content: flex-start;
        padding: 8px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }
    .header-was-collapsed .logo-icon {
        width: calc(50vw * 0.65);
        max-width: calc(220px * 0.65);
        min-width: calc(120px * 0.65);
        margin-left: 3mm;
        margin-right: auto;
    }
    .header-was-collapsed .floating-buttons-row {
        bottom: auto;
        top: calc(var(--header-height-mobile, 65px) / 2);
        left: auto;
        right: 3mm;
        transform: translateY(-50%);
        opacity: 1;
        gap: 1mm;
        padding: 3px 6px;
    }
    .header-was-collapsed .scroll-hint {
        display: none;
        opacity: 0;
        pointer-events: none;
    }
}

/* Десктоп / ландшафт */
@media (min-width: 769px), (orientation: landscape) {
    .header-was-collapsed .header {
        height: 65px;
        padding: 8px 16px;
    }
    .header-was-collapsed .logo-icon {
        height: calc(65px - 16px);
        max-width: calc(180px * 0.65);
        min-width: calc(120px * 0.65);
    }
}

/* Логотип — курсор pointer, когда хедер свёрнут (подсказка, что можно кликнуть) */
.header.scrolled .logo-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header.scrolled .logo-icon:hover {
    transform: scale(1.05);
}


/* ==========================================
🛠 ДОПОЛНИТЕЛЬНЫЕ УСЛУГИ — СТИЛИ КАК У ПРЕИМУЩЕСТВ
========================================== */
#block-services .info-block-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 16px 0;
}

/* Гарантируем, что service-card выглядит идентично advantage-card */
#block-services .service-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] #block-services .service-card {
    background: rgba(50, 50, 50, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#block-services .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

#block-services .service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 112, 0, 0.15);
    border: 1px solid rgba(255, 112, 0, 0.25);
    border-radius: 50%;
    padding: 12px;
    color: var(--accent);
}

#block-services .service-icon svg {
    width: 100%;
    height: 100%;
}

#block-services .service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

#block-services .service-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

#block-services .service-text p {
    margin: 0;
}

/* Сетка услуг — такая же, как у преимуществ */
#block-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    #block-services .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    #block-services .service-card {
        padding: 20px 12px;
    }
}
