/* ═══════════════════════════════════════════════
   МИСТЕР БУЛЛ — фирменный стиль
   Палитра брендбука: чёрный / белый / серый #9D9E9E / красный #C70000
   Промо-акценты (≤10%): #2C3696 синий, #FF8C00 оранжевый
   Шрифты: Unbounded (заголовки), Oswald ≈ Bebas Neue Cyrillic
   (названия блюд), Montserrat ≈ Gilroy (наборный)
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1B1B1B;
  --border: #272727;
  --white: #FFFFFF;
  --text: #FFFFFF;    /* основной цвет текста (меняется темой) */
  --on-red: #FFFFFF;  /* текст на красных элементах (в обеих темах) */
  --gray: #9D9E9E;
  --red: #C70000;
  --red-hover: #E00E0E;
  --red-light: #FF3B3B;
  --orange: #FF8C00;
  --blue: #2C3696;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-condensed: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 72px;
  --speed: 220ms;
}

/* ── Бежевая тема (как бумажное меню) ── */
[data-theme="light"] {
  --bg: #F2ECDB;
  --surface: #F9F4E6;
  --surface-2: #EAE3CD;
  --border: #DBD1B5;
  --text: #26201A;
  --gray: #6F675A;
  --red-hover: #A50000;
  --red-light: #C70000;
}
[data-theme="light"] .site-header { background: rgba(242, 236, 219, 0.92); }
[data-theme="light"] .hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23C70000' stroke-width='2' opacity='0.09'%3E%3Cpath d='M38 22c3-5 2-9-1-13 7 2 12 8 12 15 0 3-1 5-2 8 4-1 6-4 8-7 1 3 2 6 2 9 0 10-8 18-18 18s-18-8-18-18c0-7 4-13 9-16-1 2 0 4 1 5 2 2 4 2 6 0z'/%3E%3Cpath d='M116 96l-10 18h8l-6 16 18-22h-9l7-12z'/%3E%3C/g%3E%3Cg fill='%2326201A' opacity='0.05'%3E%3Cellipse cx='120' cy='36' rx='14' ry='5'/%3E%3Cellipse cx='120' cy='44' rx='14' ry='5'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme="light"] .hero-glow { opacity: 0.4; }
[data-theme="light"] .hero-media > img {
  box-shadow: 0 0 60px rgba(199, 0, 0, 0.12), 0 22px 46px rgba(80, 60, 30, 0.3);
}
[data-theme="light"] .about-section,
[data-theme="light"] .address-section { background: #ECE5CF; }
[data-theme="light"] .cart-overlay { background: rgba(60, 45, 25, 0.45); }
[data-theme="light"] .toast { box-shadow: 0 8px 26px rgba(90, 70, 40, 0.3); }
/* логотип с белой надписью — на фирменной чёрной плашке */
[data-theme="light"] .header-logo,
[data-theme="light"] .footer-brand img { background: #0C0C0C; border-radius: 8px; }
[data-theme="light"] .header-logo { padding: 5px 10px; }
[data-theme="light"] .footer-brand img { padding: 8px 14px; width: 214px; }
[data-theme="light"] .cart-empty img { opacity: 0.8; }

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ── Утилиты ── */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--red); color: var(--on-red);
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: top var(--speed) ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.section-title .accent { color: var(--red); }
h1 .accent { color: var(--red); }

.section { padding-block: clamp(56px, 9vw, 110px); }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background var(--speed) ease, border-color var(--speed) ease,
              transform 120ms ease, color var(--speed) ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-hover); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gray); }

.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: border-color var(--speed) ease, background var(--speed) ease;
}
.icon-btn:hover { border-color: var(--red); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}

.header-logo { flex-shrink: 0; display: flex; }
.header-logo img { width: 190px; height: auto; }

.header-nav {
  display: flex; gap: 28px; margin-inline: auto;
}
.header-nav a {
  font-family: var(--font-condensed);
  font-weight: 500; font-size: 16px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--speed) ease, border-color var(--speed) ease;
}
.header-nav a:hover { color: var(--red-light); border-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; color: var(--text);
  transition: color var(--speed) ease;
  white-space: nowrap;
}
.header-phone:hover { color: var(--red-light); }
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--on-red);
  border: none; border-radius: var(--radius-sm);
  padding: 11px 18px; min-height: 44px;
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--speed) ease, transform 120ms ease;
}
.cart-btn:hover { background: var(--red-hover); }
.cart-btn:active { transform: scale(0.96); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.cart-count {
  position: absolute; top: -8px; right: -8px;
  min-width: 22px; height: 22px; padding-inline: 6px;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; color: var(--red);
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.nav-toggle { display: none; }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 8px clamp(16px, 4vw, 32px) 16px;
}
.mobile-nav a {
  font-family: var(--font-condensed);
  font-weight: 500; font-size: 18px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav-phone { color: var(--red-light) !important; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  overflow: hidden;
  /* фирменный паттерн: огоньки и молнии из брендбука */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23C70000' stroke-width='2' opacity='0.07'%3E%3Cpath d='M38 22c3-5 2-9-1-13 7 2 12 8 12 15 0 3-1 5-2 8 4-1 6-4 8-7 1 3 2 6 2 9 0 10-8 18-18 18s-18-8-18-18c0-7 4-13 9-16-1 2 0 4 1 5 2 2 4 2 6 0z'/%3E%3Cpath d='M116 96l-10 18h8l-6 16 18-22h-9l7-12z'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='0.05'%3E%3Cellipse cx='120' cy='36' rx='14' ry='5'/%3E%3Cellipse cx='120' cy='44' rx='14' ry='5'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 54px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--gray);
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
}
.hero-chips li {
  display: flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 14.5px; color: var(--gray);
}
.hero-chips svg { width: 19px; height: 19px; fill: none; stroke: var(--red-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.hero-media { position: relative; }
.hero-media > img {
  position: relative; z-index: 1;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(199, 0, 0, 0.22), 0 24px 56px rgba(0, 0, 0, 0.5);
}

.hero-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 118%; height: 108%;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(199, 0, 0, 0.3), rgba(199, 0, 0, 0) 100%);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.halal-badge {
  position: absolute; z-index: 2;
  right: -14px; top: -22px;
  width: clamp(96px, 11vw, 132px);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}
.halal-badge svg { width: 100%; height: auto; animation: spin 26s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  background: var(--red);
  overflow: hidden;
  padding-top: 11px;
  padding-bottom: 15px;
  border-block: 1px solid rgba(0, 0, 0, 0.25);
}
.marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 78s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--on-red);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ MENU ═══════════ */
.menu-tabs {
  display: flex; gap: 10px;
  margin: 30px 0 34px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  flex-shrink: 0;
  font-family: var(--font-condensed);
  font-weight: 500; font-size: 16px;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 22px; min-height: 44px;
  cursor: pointer;
  transition: background var(--speed) ease, border-color var(--speed) ease;
}
.menu-tab:hover { border-color: var(--red); }
.menu-tab[aria-selected="true"] {
  background: var(--red); border-color: var(--red);
  color: var(--on-red);
  font-weight: 600;
}

.menu-note {
  color: var(--gray); font-size: 14.5px; margin: -18px 0 26px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 18px;
}

.menu-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--speed) ease, transform var(--speed) ease;
}
.menu-card:hover { border-color: #3a3a3a; transform: translateY(-3px); }

.menu-card-top { display: flex; align-items: flex-start; gap: 10px; }

.menu-card h3 {
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 21px;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.2;
  margin-right: auto;
}

.badge {
  flex-shrink: 0;
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  margin-top: 2px;
}
.badge-hit { background: var(--orange); color: #1a1000; }

.spicy-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; }
.spicy-icon path { fill: var(--red-light); }

.menu-card-desc {
  color: var(--gray); font-size: 14px; line-height: 1.55;
  flex-grow: 1;
}

.size-switch {
  display: flex; gap: 8px;
}
.size-btn {
  flex: 1;
  padding: 8px 10px; min-height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gray);
  font-family: var(--font-condensed);
  font-weight: 500; font-size: 14.5px;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color var(--speed) ease, color var(--speed) ease, background var(--speed) ease;
}
.size-btn:hover { border-color: var(--red); }
.size-btn[aria-pressed="true"] {
  background: rgba(199, 0, 0, 0.14);
  border-color: var(--red);
  color: var(--text);
  font-weight: 600;
}

.menu-card-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px;
}

.menu-price {
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; height: 44px; padding-inline: 16px;
  background: var(--red); color: var(--on-red);
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--speed) ease, transform 120ms ease;
}
.add-btn:hover { background: var(--red-hover); }
.add-btn:active { transform: scale(0.95); }
.add-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.qty-stepper {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  height: 44px;
}
.qty-stepper button {
  width: 42px; height: 100%;
  background: none; border: none; color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color var(--speed) ease;
}
.qty-stepper button:hover { color: var(--red-light); }
.qty-stepper button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.qty-stepper .qty {
  min-width: 24px; text-align: center;
  font-family: var(--font-condensed); font-weight: 600; font-size: 17px;
  font-variant-numeric: tabular-nums;
}

/* ═══════════ ABOUT ═══════════ */
.about-section { background: #0D0D0D; }

.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about-media img {
  border-radius: 24px;
  border: 1px solid var(--border);
}

.feature-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 26px;
}
.feature-list li { display: flex; gap: 18px; }

.feature-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(199, 0, 0, 0.14);
  border: 1px solid rgba(199, 0, 0, 0.4);
  border-radius: 14px;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--red-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.feature-list h3 {
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 19px;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.feature-list p { color: var(--gray); font-size: 15px; }

/* ═══════════ DELIVERY ═══════════ */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.delivery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--speed) ease;
}
.delivery-card:hover { border-color: var(--red); }
.delivery-card svg {
  width: 34px; height: 34px;
  fill: none; stroke: var(--red-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 16px;
}
.delivery-card h3 {
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 20px;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 8px;
}
.delivery-card p { color: var(--gray); font-size: 15px; }
.delivery-card strong { color: var(--text); }

/* ═══════════ ADDRESS ═══════════ */
.address-section { background: #0D0D0D; }

.address-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.address-list {
  list-style: none; padding: 0;
  margin: 28px 0 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.address-list li { display: flex; gap: 16px; align-items: flex-start; }
.address-list svg {
  flex-shrink: 0;
  width: 24px; height: 24px; margin-top: 3px;
  fill: none; stroke: var(--red-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.address-list h3 {
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}
.address-list p { font-size: 17px; font-weight: 500; }
.address-list a { text-decoration: none; }
.address-list a:hover { color: var(--red-light); }

.address-media img {
  border-radius: 24px;
  border: 1px solid var(--border);
}

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(40px, 6vw, 64px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { color: var(--gray); font-size: 14.5px; }

.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-family: var(--font-condensed);
  font-weight: 500; font-size: 16px;
  letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  transition: color var(--speed) ease;
  width: fit-content;
}
.footer-nav a:hover { color: var(--red-light); }

.footer-contacts a[href^="tel"] {
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 21px;
  text-decoration: none;
  display: inline-block; margin-bottom: 10px;
}
.footer-contacts a[href^="tel"]:hover { color: var(--red-light); }
.footer-contacts p { color: var(--gray); font-size: 14.5px; margin-bottom: 18px; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--speed) ease, color var(--speed) ease;
}
.footer-socials a:hover { border-color: var(--red); color: var(--red-light); }
.footer-socials svg { width: 22px; height: 22px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--border);
  padding-block: 22px;
}
.footer-bottom p { color: #6b6b6b; font-size: 13.5px; }

/* ═══════════ CART DRAWER ═══════════ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--speed) ease;
}
.cart-overlay.open { opacity: 1; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(440px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-head h2 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 21px;
  text-transform: uppercase;
}

.cart-view {
  display: flex; flex-direction: column;
  flex-grow: 1; min-height: 0;
  overflow-y: auto;
}

.cart-items { padding: 8px 24px; flex-grow: 1; }

.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-info { flex-grow: 1; min-width: 0; }
.cart-item-name {
  font-family: var(--font-condensed);
  font-weight: 500; font-size: 16.5px;
  letter-spacing: 0.03em; text-transform: uppercase;
  margin-bottom: 3px;
}
.cart-item-price { color: var(--gray); font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-item .qty-stepper { height: 38px; flex-shrink: 0; }
.cart-item .qty-stepper button { width: 34px; }

.cart-item-remove {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--gray);
  cursor: pointer; border-radius: 8px;
  transition: color var(--speed) ease;
}
.cart-item-remove:hover { color: var(--red-light); }
.cart-item-remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.cart-empty {
  flex-grow: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 40px 24px; text-align: center;
}
.cart-empty img { opacity: 0.4; margin-bottom: 10px; }
.cart-empty-title {
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 21px; text-transform: uppercase; letter-spacing: 0.05em;
}
.cart-empty-sub { color: var(--gray); font-size: 15px; margin-bottom: 16px; }

.cart-foot {
  flex-shrink: 0;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.cart-total-row span { color: var(--gray); font-size: 15px; }
.cart-total-row strong {
  font-family: var(--font-condensed);
  font-weight: 600; font-size: 26px;
  font-variant-numeric: tabular-nums;
}

/* ── Форма заказа ── */
#orderForm { padding: 20px 24px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; border: none; padding: 0; margin: 0; }
.field label, .field legend {
  font-weight: 600; font-size: 14px; color: var(--text);
}
.field > label > span, .field > legend > span { color: var(--red-light); }

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color var(--speed) ease;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
}
.field input::placeholder, .field textarea::placeholder { color: #6f6f6f; }

.field.invalid input { border-color: var(--red-light); }
.field-error { color: var(--red-light); font-size: 13px; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { position: relative; cursor: pointer; }
.radio-pill input {
  position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer;
}
.radio-pill span {
  display: inline-flex; align-items: center;
  padding: 11px 18px; min-height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-condensed);
  font-weight: 500; font-size: 15px;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: background var(--speed) ease, border-color var(--speed) ease;
}
.radio-pill input:checked + span { background: var(--red); border-color: var(--red); color: var(--on-red); font-weight: 600; }
.radio-pill input:focus-visible + span { outline: 2px solid var(--red-light); outline-offset: 2px; }

.pickup-note {
  background: rgba(199, 0, 0, 0.1);
  border: 1px solid rgba(199, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px; color: var(--gray);
}

.order-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14.5px;
}
.order-summary .sum-row { display: flex; justify-content: space-between; color: var(--gray); }
.order-summary .sum-row.total {
  color: var(--text); font-weight: 700; font-size: 17px;
  border-top: 1px solid var(--border); padding-top: 10px; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.order-summary .sum-row span:last-child { font-variant-numeric: tabular-nums; }
.sum-free { color: #4caf50 !important; }

/* ── Успех ── */
.cart-success {
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 32px; gap: 10px;
}
.success-icon {
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(199, 0, 0, 0.14);
  border: 2px solid var(--red);
  border-radius: 50%;
  margin-bottom: 12px;
}
.success-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--red-light); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cart-success h3 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 24px; text-transform: uppercase;
}
.cart-success p { color: var(--gray); font-size: 15.5px; max-width: 30ch; margin-bottom: 20px; }

/* ═══════════ TOAST ═══════════ */
.toast-zone {
  position: fixed; z-index: 160;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  width: min(360px, calc(100vw - 32px));
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 14.5px; font-weight: 500;
  text-align: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
  animation: toast-in 240ms ease both;
}
.toast.hide { animation: toast-out 200ms ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

body.no-scroll { overflow: hidden; }

/* ═══════════ АДАПТИВ ═══════════ */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); cursor: pointer; }
  .nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mobile-nav:not([hidden]) { display: flex; }
  .header-phone span { display: none; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 480px; }
  .halal-badge { right: 6px; top: -16px; }
  .about-inner, .address-inner { grid-template-columns: 1fr; }
  .about-media { order: 2; max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .cart-btn-label { display: none; }
  .cart-btn { padding-inline: 13px; }
  .header-logo img { width: 134px; }
  /* Телефон убираем из шапки — он есть в меню-гамбургере и в подвале */
  .header-phone { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  /* В светлой теме у логотипа плашка с отступами — на мобильном делаем её компактнее */
  [data-theme="light"] .header-logo { padding: 4px 8px; }
  .menu-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .section-title { font-size: clamp(24px, 7.4vw, 30px); }
  .delivery-card { padding: 24px 20px; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .halal-badge svg, .marquee-track { animation: none; }
  .toast { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
