/* ============================================
   VKUSY.COM — Премиальные стили
   Стиль: дорогая кулинарная книга, русский колорит
   ============================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p { overflow-wrap: break-word; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700;800&display=swap');

/* === DESIGN TOKENS — Light theme (default) === */
:root {
  /* Палитра: тёплая, ресторанная */
  --bg: #faf3e8;             /* кремовый бумажный */
  --bg-alt: #f5e9d6;         /* охра светлая */
  --surface: #ffffff;
  --surface-2: #f9f1e2;      /* палевый */
  --surface-3: #efe2c9;
  --bg-3: #e6d4b3;
  --border: #e0cca5;         /* тёплый бежевый */
  --border-strong: #c8a878;
  
  --text: #2d1f15;           /* шоколадный */
  --text-2: #5a4434;         /* кофейный */
  --text-3: #8a7458;         /* бежевый темный */
  
  /* Акценты */
  --accent: #c44536;         /* терракот / красная глина */
  --accent-deep: #7a1d18;    /* бордовый, премиум */
  --accent-hover: #a0322a;
  --accent-bg: rgba(196, 69, 54, 0.09);
  --gold: #b8862e;           /* золото традиционное */
  --gold-light: #d4a574;     /* шафран */
  --gold-bright: #e8c898;
  --gold-bg: rgba(184, 134, 46, 0.1);
  --green-spice: #6b8e4e;    /* зелень специй */
  --rust: #c97c5d;           /* ржавчина */
  
  /* Тени — мягкие, тёплые */
  --shadow-xs: 0 1px 2px rgba(122, 29, 24, 0.04);
  --shadow-sm: 0 2px 8px rgba(122, 29, 24, 0.06), 0 1px 2px rgba(122, 29, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(122, 29, 24, 0.08), 0 2px 6px rgba(122, 29, 24, 0.04);
  --shadow-lg: 0 16px 48px rgba(122, 29, 24, 0.12), 0 4px 12px rgba(122, 29, 24, 0.06);
  --shadow-xl: 0 32px 80px rgba(122, 29, 24, 0.18), 0 8px 24px rgba(122, 29, 24, 0.08);
  --shadow-glow: 0 0 0 4px rgba(196, 69, 54, 0.12);
  --shadow-inset: inset 0 1px 3px rgba(122, 29, 24, 0.06);
  
  /* Типография */
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --serif-script: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  
  /* Radii */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --radius-xl: 20px; --radius-2xl: 28px; --radius-pill: 999px;
  
  --z-header: 100; --z-modal: 1000; --z-toast: 1100;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === DARK THEME === */
[data-theme="dark"] {
  --bg: #1a120b;
  --bg-alt: #221610;
  --surface: #261910;
  --surface-2: #2e1f15;
  --surface-3: #38271a;
  --bg-3: #4a3424;
  --border: #4a3424;
  --border-strong: #6b4d35;
  
  --text: #f5e9d6;
  --text-2: #c8a878;
  --text-3: #8a7458;
  
  --accent: #e06b5c;
  --accent-deep: #c44536;
  --accent-hover: #ed8478;
  --accent-bg: rgba(224, 107, 92, 0.14);
  --gold: #e0bc6e;
  --gold-light: #f0d590;
  --gold-bg: rgba(224, 188, 110, 0.12);
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.7);
}

/* === BASE === */
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  scroll-padding-top: 90px;
}

/* Бумажная текстура для всего сайта */
body {
  background-image:
    radial-gradient(ellipse at top left, rgba(196, 69, 54, 0.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(184, 134, 46, 0.04), transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(122, 29, 24, 0.008) 2px,
      rgba(122, 29, 24, 0.008) 4px
    );
}

main { min-height: 60vh; padding-bottom: var(--space-7); }

/* === ТИПОГРАФИКА === */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-3);
}

h4 { font-size: 1.1rem; margin-bottom: var(--space-2); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-2);
  font-size: 1.02rem;
}

.lead {
  font-family: var(--serif-script);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 500;
}

a { color: var(--accent); transition: all var(--transition); }
a:hover { color: var(--accent-deep); }

/* Стилизованные drop caps в первом параграфе статьи */
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 4em;
  font-weight: 800;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--accent);
  font-style: italic;
}

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--space-5); }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-5); }

@media (max-width: 600px) {
  .container, .container-narrow, .container-wide { padding: 0 var(--space-4); }
}

/* === HEADER (FIXED — надёжно на iOS Safari, Chrome, всех браузерах) === */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-header);
  background: rgba(250, 243, 232, 0.95);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), border-bottom-color var(--transition);
  /* Гарантирует видимость на iOS даже когда сворачивается адресная строка */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Spacer — компенсирует высоту fixed header */
body {
  padding-top: 72px;
}
@media (max-width: 980px) {
  body {
    padding-top: 64px;
  }
}

[data-theme="dark"] header.site-header {
  background: rgba(26, 18, 11, 0.92);
}

header.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

/* Декоративная золотая полоса под хедером */
header.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-link img,
.logo-link svg {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: visible;
  scrollbar-width: none;
}

/* Dropdown в навигации */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: var(--sans);
}

.nav-dropdown__btn:hover,
.nav-dropdown:hover .nav-dropdown__btn {
  background: var(--surface-2);
  color: var(--accent);
}

.nav-dropdown__btn.active {
  background: var(--accent-bg);
  color: var(--accent-deep);
  font-weight: 600;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-5);
  display: none;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: var(--space-5);
  min-width: 600px;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown__menu:hover,
.nav-dropdown__btn[aria-expanded="true"] + .nav-dropdown__menu {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Декоративный треугольничек сверху */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.nav-dropdown__col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: var(--space-3);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
}

.nav-dropdown__col a {
  display: block;
  padding: 6px 10px;
  margin: 2px -10px;
  font-size: 0.92rem;
  color: var(--text);
  border-radius: var(--radius-md);
  transition: all 0.15s;
  text-decoration: none;
}

.nav-dropdown__col a:hover {
  background: var(--accent-bg);
  color: var(--accent);
  padding-left: 14px;
}

/* Мобильное меню — категории-аккордеон */
.mobile-nav__group {
  border-bottom: 1px solid var(--border);
}

.mobile-nav__group summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.mobile-nav__group summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__group[open] summary {
  background: var(--accent-bg);
  color: var(--accent-deep);
}

.mobile-nav__group .sub {
  padding-left: 50px !important;
  font-size: 0.95rem !important;
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  color: var(--text-2) !important;
  border-bottom: 0 !important;
  background: var(--surface-2);
}

.mobile-nav__group .sub:last-child {
  margin-bottom: 8px;
}
.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}

.main-nav a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.main-nav a.active {
  background: var(--accent-bg);
  color: var(--accent-deep);
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
}

.icon-btn {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.05rem;
  color: var(--text);
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle { padding: 0; }

/* === MOBILE === */
.mobile-menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3) var(--space-4);
  z-index: calc(var(--z-header) - 1);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}

.mobile-nav.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a .icon { font-size: 1.4rem; opacity: 0.7; }
.mobile-nav a:hover { background: var(--surface-2); }
.mobile-nav a:hover .icon { opacity: 1; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-inner { gap: var(--space-2); height: 64px; }
  .logo-link img { height: 36px; }
  .mobile-nav { top: 64px; }
}

/* === BREADCRUMBS === */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: var(--space-5) 0 var(--space-3);
  font-size: 0.85rem;
  color: var(--text-3);
  font-family: var(--sans);
  line-height: 1.4;
  word-break: break-word;
}

.breadcrumbs > a, .breadcrumbs > span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumbs a { color: var(--text-3); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--gold); margin: 0 4px; font-size: 0.9em; flex-shrink: 0; }
.breadcrumbs > span:last-child { color: var(--text); font-weight: 500; }

@media (max-width: 720px) {
  .breadcrumbs { font-size: 0.78rem; padding: var(--space-3) 0; gap: 4px; }
  .breadcrumbs .sep { margin: 0 2px; }
}
@media (max-width: 380px) {
  .breadcrumbs { font-size: 0.72rem; }
}

/* === КНОПКИ === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--sans);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  border-color: var(--accent-deep);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  border-color: var(--accent-hover);
  color: white;
  box-shadow: 0 8px 24px rgba(196, 69, 54, 0.35);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #4a3a1f;
  border-color: var(--gold);
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  box-shadow: none;
}

.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.badge-accent {
  background: var(--accent-bg);
  color: var(--accent-deep);
  border-color: rgba(196, 69, 54, 0.2);
}

.badge-gold {
  background: var(--gold-bg);
  color: #6e5419;
  border-color: rgba(184, 134, 46, 0.3);
}

/* === КАРТОЧКИ === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

/* === DISH/REGION CARDS — премиальный стиль === */
.dish-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.dish-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}

.dish-card:hover::before { opacity: 1; }

.dish-card__img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.dish-card__img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
  position: relative;
}

.dish-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(45, 31, 21, 0.5) 100%);
  pointer-events: none;
}

.dish-card__cat-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.dish-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dish-card__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dish-card__lead {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
  font-family: var(--serif-script);
  font-style: italic;
}

.dish-card__meta {
  display: flex;
  gap: var(--space-3);
  font-size: 0.78rem;
  color: var(--text-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2);
  font-family: var(--sans);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* === GRID === */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Catalog grid — компактнее для каталогов /bliuda/, /goroda/, /regiony/ */
.catalog-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (min-width: 768px) {
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

/* Компактная карточка */
.catalog-grid .dish-card__img { aspect-ratio: 1/1; font-size: 3.5rem; }
.catalog-grid .dish-card__body { padding: var(--space-3) var(--space-4); }
.catalog-grid .dish-card__title { font-size: 1rem; line-height: 1.2; }
.catalog-grid .dish-card__lead { font-size: 0.82rem; -webkit-line-clamp: 2; line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-grid .dish-card__meta { font-size: 0.7rem; padding-top: var(--space-2); }
.catalog-grid .dish-card__cat-tag { font-size: 0.62rem; padding: 3px 8px; top: 8px; left: 8px; }

/* === HERO === */
.hero {
  position: relative;
  text-align: center;
  padding: var(--space-9) 0 var(--space-8);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 1000px;
  background: radial-gradient(circle, var(--accent-bg) 0%, transparent 60%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-family: var(--serif-script);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0; right: 0;
  height: 6px;
  background: var(--gold);
  opacity: 0.3;
  border-radius: 4px;
  z-index: -1;
}

.hero .lead {
  max-width: 720px;
  margin: 0 auto var(--space-6);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

/* Декоративная виньетка над hero */
.hero-vignette {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-family: var(--serif-script);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-vignette::before, .hero-vignette::after {
  content: '';
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  position: relative;
}

.hero-stats::before {
  content: '✦';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--gold);
  padding: 0 12px;
  font-size: 1rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat .num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-style: italic;
}

.hero-stat .lbl {
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
  font-weight: 500;
}

/* === SECTION TITLE с орнаментом === */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: var(--space-7) 0 var(--space-5);
  position: relative;
  padding-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  margin-top: var(--space-3);
  border-radius: 3px;
}

.section-title-centered {
  text-align: center;
}

.section-title-centered::after {
  margin-left: auto;
  margin-right: auto;
}

/* Декоративный разделитель */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-7) 0;
  color: var(--gold);
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.divider .ornament {
  font-size: 1.1rem;
}

/* === SHARE BAR === */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

.share-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.share-bar__label {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-2);
  margin-right: var(--space-2);
  align-self: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--sans);
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* === ТАБЛИЦЫ === */
table.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

table.data-table th {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  padding: 14px 18px;
  text-align: left;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-bottom: 1px solid var(--border);
}

table.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

table.data-table tr:last-child td { border-bottom: 0; }
table.data-table tr:hover td { background: var(--surface-2); }

/* === РЕЙТИНГИ === */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.stars .star { color: var(--gold); }
.stars .star.empty { color: var(--border-strong); opacity: 0.5; }
.stars--big { font-size: 1.6rem; }
.stars--small { font-size: 0.9rem; }
.stars--input .star { cursor: pointer; transition: transform 0.15s; user-select: none; }
.stars--input .star:hover { transform: scale(1.25); }

.rating-summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--gold-bg) 0%, var(--accent-bg) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
}

.rating-summary__big {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1;
  font-style: italic;
}

/* === ОТЗЫВЫ / Q&A === */
.review {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.review:last-child { border-bottom: 0; }

.review::before {
  content: '"';
  position: absolute;
  top: 8px; left: -8px;
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  font-style: italic;
}

.review__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.review__author {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.review__date {
  font-size: 0.82rem;
  color: var(--text-3);
  font-family: var(--sans);
}

.review__body {
  color: var(--text-2);
  line-height: 1.7;
  font-family: var(--serif-script);
  font-size: 1.05rem;
}

/* === ФОРМЫ === */
.form-group { margin-bottom: var(--space-4); }
.form-group label {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: all var(--transition);
  font-family: var(--sans);
  box-shadow: var(--shadow-inset);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* === FAQ / AI BLOCKS === */
.faq-section { margin: var(--space-6) 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.faq-item summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  padding-right: var(--space-2);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.faq-item__content {
  padding-top: var(--space-3);
  padding-right: var(--space-7);
  color: var(--text-2);
  line-height: 1.8;
}

/* AI Answer Block — премиум */
.ai-answer {
  background:
    linear-gradient(135deg, rgba(196, 69, 54, 0.06) 0%, rgba(184, 134, 46, 0.06) 100%),
    var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-5) 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.ai-answer::before {
  content: '✦ Краткий ответ';
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
  padding: 4px 12px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold);
}

.ai-answer p {
  margin-bottom: var(--space-2);
  color: var(--text);
  font-family: var(--serif-script);
  font-size: 1.1rem;
  line-height: 1.65;
}

.ai-answer p strong {
  font-family: var(--serif);
  color: var(--accent-deep);
  font-style: normal;
}

/* === FOOTER === */
footer.site-footer {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
  position: relative;
}

footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-2);
}

.footer-grid h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-grid ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-grid a {
  color: var(--text-2);
  font-size: 0.92rem;
  font-family: var(--serif-script);
  font-style: italic;
  transition: color var(--transition);
}
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: var(--text-3);
  font-family: var(--sans);
}

.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  z-index: var(--z-toast);
  font-size: 0.92rem;
  font-family: var(--serif-script);
  font-style: italic;
}

.cookie-banner.hidden { display: none; }
.cookie-banner p { margin: 0; flex: 1; min-width: 280px; color: var(--text-2); }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(196, 69, 54, 0.4);
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: var(--space-7);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--serif-script);
  font-style: italic;
  font-size: 1rem;
  z-index: var(--z-toast);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-xl);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === УТИЛИТЫ === */
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.italic { font-style: italic; }
.serif { font-family: var(--serif); }
.script { font-family: var(--serif-script); font-style: italic; }

.mt-0 { margin-top: 0; } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }

.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

/* === SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--bg-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === PRINT === */
@media print {
  header.site-header, footer.site-footer, .share-bar, .back-to-top, .cookie-banner { display: none !important; }
  body { background: white !important; color: black !important; }
  a { color: black !important; text-decoration: underline; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* === SCROLLBAR (необязательно) === */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 3px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === Selection === */
::selection { background: var(--gold); color: var(--text); }
::-moz-selection { background: var(--gold); color: var(--text); }

/* ════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE OPTIMIZATIONS (v3.1)
   Добавлено для аудита 2026-05-07
   ════════════════════════════════════════════════════ */

/* === Touch targets — все интерактивные элементы минимум 44px === */
button, .btn, a.btn, .servings-control button, [role="button"] {
  min-height: 44px;
  touch-action: manipulation;
}

/* iOS: убираем синюю подсветку при тапе */
* {
  -webkit-tap-highlight-color: rgba(196, 69, 54, 0.15);
}

/* === Большие touch для калькулятора порций === */
.servings-control button {
  min-width: 44px;
  min-height: 44px;
}

/* === iPhone SE (320-375px) === */
@media (max-width: 380px) {
  body { font-size: 15px; }
  
  /* Hero — менее агрессивный padding */
  .dish-hero, .city-hero, .region-hero {
    padding: var(--space-5) var(--space-3) !important;
  }
  
  .dish-hero h1, .city-hero h1, .region-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }
  
  /* Чипы и метки */
  .city-hero__meta span, .dish-hero__meta span {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  /* Stats компактнее */
  .city-stats, .dish-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Карточки в каталоге */
  .dishes-grid, .catalog-grid, .grid-3 {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }
  
  /* Tabs — горизонтальная прокрутка более выражена */
  .city-tabs, .dish-tabs {
    margin-left: -12px;
    margin-right: -12px;
    padding: 0 12px;
  }
  
  .city-tab, .dish-tab {
    padding: 12px 14px !important;
    font-size: 0.85rem !important;
  }
  
  /* Ингредиенты — кнопки больше */
  .ingredients-list__head {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start !important;
  }
  
  .servings-control {
    align-self: stretch;
    justify-content: center;
  }
  
  /* Route stop */
  .route-stop {
    padding: var(--space-3) !important;
  }
  
  .route-stop__num {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
  }
  
  .route-stop__details {
    grid-template-columns: 1fr !important;
  }
}

/* === Mobile стандарт (380-600px) === */
@media (max-width: 600px) {
  /* Header высота */
  header.site-header, .site-header {
    height: 56px;
  }
  
  body { padding-top: 56px; }
  
  /* Sticky tabs over header */
  .city-tabs, .dish-tabs {
    top: 56px !important;
  }
  
  /* Партнёрские блоки */
  .partner-block .grid {
    grid-template-columns: 1fr !important;
  }
  
  .partner-link {
    padding: 14px 12px !important;
  }
  
  /* Tips компактнее */
  .tips-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Must-try grid */
  .must-try-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }
  
  /* Booking cards */
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
  
  /* Pagination — кнопки крупнее */
  .pagination .btn-sm {
    min-height: 40px !important;
    padding: 8px 12px !important;
  }
  
  /* Hide на мобильных вспомогательные блоки */
  .hide-mobile, .desktop-only {
    display: none !important;
  }
}

/* === Tablet (601-980px) === */
@media (min-width: 601px) and (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .city-stats, .dish-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .must-try-grid, .dishes-grid, .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* === iPad Pro / маленький desktop (981-1200px) === */
@media (min-width: 981px) and (max-width: 1200px) {
  .city-page, .dish-page, .region-page {
    padding: 0 var(--space-4);
  }
}

/* === Большие экраны === */
@media (min-width: 1400px) {
  .city-page, .dish-page, .region-page {
    max-width: 1200px;
  }
}

/* === Альбомная ориентация на мобильных === */
@media (max-width: 900px) and (orientation: landscape) {
  .city-hero, .dish-hero, .region-hero {
    padding: var(--space-4) var(--space-5) !important;
  }
  
  .city-hero h1, .dish-hero h1, .region-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem) !important;
  }
}

/* === Высокий DPI (Retina и т.п.) === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* SVG-картинки и так выглядят хорошо, тут только тонкие границы */
  .card, .dish-card, .city-card {
    border-width: 0.5px;
  }
}

/* === Print === */
@media print {
  header, footer, .city-tabs, .dish-tabs, .partner-block,
  .booking-block, button, .btn, nav {
    display: none !important;
  }
  
  body { padding-top: 0 !important; }
  
  .ingredient-row, .route-stop, .faq-item {
    page-break-inside: avoid;
  }
}

/* === Сафари iOS — fix sticky на iPad === */
@supports (-webkit-touch-callout: none) {
  .city-tabs, .dish-tabs {
    -webkit-position: -webkit-sticky;
  }
}

/* === Скролл-индикаторы === */
.city-tabs, .dish-tabs {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.city-tab, .dish-tab {
  scroll-snap-align: start;
}
