:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --card: #171717;
  --card-2: #1e1e1e;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #ffb800;
  --accent-2: #ff7a00;
  --glow: rgba(255, 184, 0, .35);
  --ok: #4caf50;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* clip, а не hidden — обрезает декоративное свечение героя по краям окна,
   но НЕ создаёт скролл-контейнер, поэтому sticky-шапка продолжает липнуть */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

.section-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 48px;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 184, 0, .2);
}
.section-title--left { text-align: left; color: var(--text); margin-bottom: 14px; }

.btn {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 15px 34px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1200;
  box-shadow: 0 10px 30px -8px var(--glow);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px -8px var(--glow); filter: brightness(1.05); }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { font-size: 24px; filter: drop-shadow(0 0 10px var(--glow)); }
.logo__text { font-size: 24px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

/* ── шапка ────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.header.is-scrolled { background: rgba(10, 10, 10, .9); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted);
  position: relative; padding: 4px 0; transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__aside { display: flex; align-items: center; gap: 22px; }

.phone { display: flex; align-items: center; gap: 10px; }
.phone__ico { color: var(--accent); flex: none; }
.phone__col { display: flex; flex-direction: column; line-height: 1.15; }
.phone__num { font-size: 16px; font-weight: 600; letter-spacing: .5px; font-variant-numeric: tabular-nums; transition: color .2s var(--ease); }
.phone__num:hover { color: var(--accent); }
.phone__call { align-self: flex-start; margin-top: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); transition: color .2s var(--ease); }
.phone__call:hover { color: var(--accent); }

.basket { position: relative; color: var(--text); padding: 11px; transition: color .2s var(--ease); }
@media (hover: hover) { .basket:hover { color: var(--accent); } }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
.basket__count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #1a1200; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.basket__count[hidden] { display: none; }
.basket__count.is-bump { animation: bump .4s var(--ease); }

/* 44×44 — минимально рекомендуемый tap target; gap 6px → translateY(8px) при открытии */
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; }
.burger span { width: 22px; height: 2px; background: var(--text); transition: transform .28s ease-in-out, opacity .2s ease; }

/* ── hero ────────────────────────────────────────── */
.hero { position: relative; padding: 40px 0 80px; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 122, 0, .18), transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 0.88fr 1.12fr; align-items: center; gap: 20px; min-height: 560px; }

.hero__title {
  font-size: clamp(46px, 7.5vw, 90px);
  font-weight: 700; line-height: .95; text-transform: uppercase; letter-spacing: 1px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.hero__sub { margin: 26px 0 34px; font-size: 18px; font-weight: 300; color: var(--muted); }

.hero__visual { position: relative; height: 560px; }
/* сцена держит позицию и размер (прижата вправо, чтобы слева было место
   под подписи), а пицца с кольцом внутри крутятся чистым rotate() —
   так вращение не конфликтует с центрированием */
.hero__stage {
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%);
  width: min(100%, 560px); aspect-ratio: 1;
  opacity: 0; transition: opacity 0.6s ease;
}
.hero__stage.is-loaded { opacity: 1; }
.hero__pizza {
  width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7));
  animation: spin 40s linear infinite;
}
/* inset: -4% при stage=560px даёт тот же визуальный диаметр кольца, что был при stage=480px + inset=-13% */
.hero__ring {
  position: absolute; inset: -4%; border-radius: 50%;
  border: 2px dashed rgba(255, 184, 0, .35);
  animation: spin 60s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* JS (hero.js) ставит точки ровно на кольцо — CSS задаёт только внешний вид.
   Позиции top/right переопределяются инлайном из JS. */
.hero__points { list-style: none; position: absolute; inset: 0; z-index: 3; display: none; }
@media (min-width: 1100px) { .hero__points { display: block; } }
.hero__point {
  position: absolute; text-align: right; padding-right: 16px; white-space: nowrap;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted);
}
.hero__point::before {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow);
}

/* ── меню ─────────────────────────────────────────── */
.menu { padding: 40px 0 90px; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 96px; }
.tabs__btn {
  font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted);
  padding: 11px 26px; border-radius: 999px; border: 1px solid var(--line); transition: .25s var(--ease);
}
.tabs__btn:hover { color: var(--text); border-color: var(--accent); }
.tabs__btn.is-active { color: #1a1200; background: var(--accent); border-color: var(--accent); }

.menu__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 26px; row-gap: 108px;
}
/* display:grid у класса перебивал UA-правило [hidden]{display:none} —
   поэтому неактивные категории надо гасить явно, иначе видно всё меню сразу */
.menu__grid[hidden] { display: none; }

/* торчащий кадр рисуется поверх карточки — потому overflow не режем */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 92px 22px 24px; text-align: center;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card__media {
  position: absolute; top: -64px; left: 50%; transform: translateX(-50%);
  width: 170px; height: 170px; pointer-events: none;
}
/* тень отдельным слоем и НЕ вращается вместе с кадром */
.card__shadow {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 62%; height: 16px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 72%);
  filter: blur(4px); z-index: 0;
  transition: width .3s var(--ease), opacity .3s var(--ease);
}
.card__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; will-change: transform; }

.card__title { font-size: 21px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.card__desc { margin: 8px 0 18px; font-size: 13px; font-weight: 300; color: var(--muted); min-height: 38px; }
.card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card__price { font-size: 23px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.card__btn {
  position: relative; overflow: hidden;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background-color: var(--card-2);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: center bottom; background-size: 100% 0%;
  transition: .25s var(--ease); white-space: nowrap;
}
/* подпись держим над волной, чтобы жёлтый круг проходил под текстом */
.card__btn-txt { position: relative; z-index: 1; }
/* налив жёлтым по наведению — только там, где есть мышь */
@media (hover: hover) {
  .card__btn:hover:not(.is-draining) { background-size: 100% 100%; color: #1a1200; border-color: var(--accent); }
}
/* лёгкое вдавливание при нажатии — работает и на десктопе, и на тач */
.card__btn:active { transform: scale(.95); }

.card:hover {
  transform: translateY(-8px); border-color: rgba(255, 184, 0, .35);
  box-shadow: 0 26px 44px -18px var(--glow), 0 0 0 1px rgba(255, 184, 0, .12);
}
.card:hover .card__shadow { width: 70%; opacity: .8; }

/* напитки сняты сбоку — качаются как маятник от основания (саму анимацию
   ведёт JS, здесь только точка опоры) */
.card[data-anim="sway"] .card__img { transform-origin: 50% 88%; }

/* ── акции ────────────────────────────────────────── */
.promo { padding: 70px 0; background: var(--bg-soft); }
.promo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.promo__card {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  min-height: 220px; display: flex; align-items: center; padding: 32px;
  background: radial-gradient(120% 140% at 100% 50%, rgba(255, 122, 0, .22), transparent 60%), var(--card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.promo__card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px var(--glow); }
.promo__card img {
  position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  width: 230px; height: 230px; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55));
  transition: transform .5s var(--ease);
}
.promo__card:hover img { transform: translateY(-50%) rotate(18deg) scale(1.05); }
.promo__text { position: relative; z-index: 1; }
.promo__off { display: block; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.promo__off b { font-size: 44px; color: var(--accent); }
.promo__name { display: block; font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ── отзывы ───────────────────────────────────────── */
.reviews { padding: 90px 0; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.review:hover { transform: translateY(-6px); border-color: rgba(255, 184, 0, .3); }
.review--featured { background: var(--card-2); box-shadow: 0 20px 50px -30px var(--glow); }
.review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review__ava {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px; color: #fff; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.review__name { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.review__text { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.7; }

/* ── видео ────────────────────────────────────────── */
.video { padding: 20px 0 100px; }
.video__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.video__note { color: var(--muted); font-weight: 300; font-size: 16px; }
.video__thumb {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; width: 100%; background: var(--card);
}
.video__thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.video__thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.video__thumb:hover img { transform: scale(1.06); }
.video__play {
  position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1200; font-size: 24px; padding-left: 5px;
  box-shadow: 0 0 0 0 var(--glow); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 22px rgba(255, 184, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); } }

/* ── футер ────────────────────────────────────────── */
.footer { padding: 60px 0 40px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer__soc-title { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--muted); }
.socials { list-style: none; display: flex; gap: 14px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: .25s var(--ease);
}
.socials a:hover { color: #1a1200; background: var(--accent); border-color: var(--accent); transform: translateY(-4px); }
.footer__copy { font-size: 12px; color: #5f5f5f; margin-top: 8px; }

/* ── корзина (выезжает справа) ────────────────────── */
.cart { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.cart.is-open { visibility: visible; }
.cart__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s var(--ease); }
.cart.is-open .cart__overlay { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--bg-soft); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
}
.cart.is-open .cart__panel { transform: translateX(0); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart__title { font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.cart__close { font-size: 16px; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; transition: .2s var(--ease); }
.cart__close:hover { color: var(--text); background: var(--card); }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart__foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.cart__total span:last-child { font-size: 26px; font-weight: 700; color: var(--accent); }
.cart__checkout { width: 100%; text-align: center; }

.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 260px; color: var(--muted); text-align: center; }
.cart-empty__ico { font-size: 44px; opacity: .5; }
.cart-empty p { font-size: 20px; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
.cart-empty__hint { font-size: 13px; font-weight: 300; }

.cart-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row__img { width: 52px; height: 52px; flex: none; object-fit: contain; }
.cart-row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-row__name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-row__price { font-size: 12px; color: var(--muted); }
.cart-row__qty { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px; flex: none; }
.cart-row__qty button { width: 22px; height: 22px; border-radius: 50%; color: var(--accent); font-size: 15px; display: flex; align-items: center; justify-content: center; transition: .2s var(--ease); }
.cart-row__qty button:hover { background: var(--card-2); }
.cart-row__qty span { min-width: 16px; text-align: center; font-size: 14px; font-weight: 500; }
.cart-row__del { flex: none; color: #6a6a6a; font-size: 12px; width: 22px; height: 22px; transition: color .2s var(--ease); }
.cart-row__del:hover { color: #e0563a; }

/* ── экран оплаты (демо) ──────────────────────────── */
.payment-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, 0); display: flex; align-items: center; justify-content: center; padding: 20px;
  transition: background .3s var(--ease);
}
.payment-overlay.is-in { background: rgba(0, 0, 0, .68); }
.payment-card {
  position: relative; width: min(420px, 100%); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: translateY(18px) scale(.97); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.payment-overlay.is-in .payment-card { transform: none; opacity: 1; }
.payment-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  color: var(--muted); font-size: 14px; transition: .2s var(--ease);
}
.payment-close:hover { color: var(--text); background: var(--card); }
.payment-title { font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 18px; }
.payment-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; max-height: 240px; overflow-y: auto; }
.payment-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.payment-row__name { color: var(--muted); }
.payment-total {
  display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px;
  border-top: 1px solid var(--line); margin-bottom: 18px;
  font-size: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.payment-total span:last-child { font-size: 24px; font-weight: 700; color: var(--accent); }
.payment-demo {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin-bottom: 20px;
  border: 1px dashed var(--muted); border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--muted);
}
.payment-demo__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent); }
.payment-pay { width: 100%; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 52px; }
.payment-pay.is-loading { cursor: default; opacity: .85; }
.payment-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(26, 18, 0, .35); border-top-color: #1a1200;
  animation: payment-spin .7s linear infinite; display: block;
}
@keyframes payment-spin { to { transform: rotate(360deg); } }

.payment-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 0 4px; }
.payment-done__ico {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 184, 0, .14);
  color: var(--accent); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.payment-done__num { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: .5px; }
.payment-done__hint { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 300px; }
.payment-done .btn { width: 100%; margin-top: 8px; }

/* ── всплывашки ───────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 12px; max-width: min(360px, calc(100vw - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); cursor: pointer;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast--success { border-left-color: var(--ok); }
.toast__ico {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-style: normal; background: var(--accent); color: #1a1200;
}
.toast--success .toast__ico { background: var(--ok); color: #fff; }
.toast__msg { font-size: 13px; font-weight: 300; line-height: 1.5; color: var(--text); }

/* ── адаптив ──────────────────────────────────────── */

/* планшеты и небольшие ноутбуки: 2 колонки меню, навигация прячется в бургер.
   бургер включаем именно здесь (а не на 860) — иначе в зоне 861–1024 не было
   бы ни меню-навигации, ни бургера */
@media (max-width: 1024px) {
  .menu__grid { grid-template-columns: repeat(2, 1fr); column-gap: 22px; row-gap: 96px; }

  /* absolute (не fixed) — header sticky сам держит его у верха,
     backdrop-filter на вложенном fixed глючит на части Android */
  .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 10, 10, .98); border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px; transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }

  .burger { display: flex; }
  /* gap=6px → расстояние между центрами линий = 8px */
  .burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .promo__name { font-size: 24px; }
  .promo__off b { font-size: 38px; }
}

/* планшет-портрет / крупные телефоны: одноколоночный герой, секции компактнее */
@media (max-width: 860px) {
  .hero { padding: 24px 0 60px; }
  .hero__inner { grid-template-columns: 1fr; min-height: auto; gap: 26px; text-align: center; }
  .hero__content { order: 2; }
  .hero__visual { order: 1; height: 360px; }
  .hero__stage { right: 50%; transform: translate(50%, -50%); width: min(72%, 320px); }
  .hero__sub { margin: 20px 0 28px; font-size: 16px; }

  .video__inner, .promo__grid, .reviews__grid { grid-template-columns: 1fr; }
  .video__inner { gap: 26px; }
  .promo { padding: 54px 0; }
  .reviews { padding: 60px 0; }
  .video { padding: 10px 0 70px; }

  .phone__col { display: none; }
}

/* телефоны */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .header__inner { height: 64px; gap: 12px; }
  .header__aside { gap: 12px; }
  .phone { display: none; }

  .hero__visual { height: 300px; }
  .hero__stage { width: min(78%, 260px); }
  .hero__sub { font-size: 15px; }
  .btn { padding: 13px 28px; }

  .menu { padding: 30px 0 66px; }
  .tabs { margin-bottom: 86px; gap: 8px; }
  .tabs__btn { padding: 11px 18px; font-size: 13px; letter-spacing: 1px; min-height: 44px; }
  .menu__grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 96px; }

  .card__btn { padding: 13px 18px; min-height: 44px; }

  .promo__card { padding: 26px; min-height: 180px; }
  .promo__card img { opacity: .35; width: 190px; height: 190px; right: -24px; }
  .promo__name { font-size: 22px; }
  .promo__off { font-size: 18px; }
  .promo__off b { font-size: 34px; }

  .review { padding: 24px; }
  .section-title { margin-bottom: 32px; }
  .footer { padding: 48px 0 32px; }

  .cart__panel { width: 100%; }
  .cart__head { padding: 18px; }
  .cart__body { padding: 8px 18px; }
  .cart__foot { padding: 18px; }

  .toasts { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

/* маленькие / слабые телефоны */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .logo__mark, .logo__text { font-size: 21px; }
  .header__aside { gap: 10px; }

  .hero__visual { height: 258px; }
  .hero__stage { width: min(82%, 216px); }

  .tabs { margin-bottom: 78px; }
  .tabs__btn { padding: 10px 13px; font-size: 12px; min-height: 44px; }

  .card { padding: 82px 16px 20px; }
  .card__media { width: 150px; height: 150px; top: -56px; }
  .card__title { font-size: 19px; }
  .card__desc { font-size: 12px; min-height: 34px; }
  .card__price { font-size: 21px; }
  .card__btn { padding: 13px 14px; min-height: 44px; }

  .menu__grid { row-gap: 86px; }
  .promo__card { padding: 20px; }
  .promo__name { font-size: 20px; }
  .promo__off b { font-size: 30px; }
}

/* сенсорные экраны: снимаем «залипающий» hover-подъём после тапа
   (декоративные ховеры оставляем только для мыши) */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .card:hover .card__shadow { width: 62%; opacity: 1; }
  .promo__card:hover { transform: none; box-shadow: none; }
  .promo__card:hover img { transform: translateY(-50%); }
  .review:hover { transform: none; border-color: var(--line); }
  .socials a:hover { transform: none; }

  /* тап по карточке ведёт себя как ховер на десктопе: та же высота −8px,
     плавно поднялась и сразу так же плавно опустилась (будто курсор навели и убрали) */
  @keyframes card-pop {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
  }
  .card.is-popping { animation: card-pop .62s var(--ease); }
  /* свечение держится, пока не тапнут по другой карточке или пустому месту */
  .card.is-selected {
    border-color: rgba(255, 184, 0, .55);
    box-shadow: 0 24px 42px -20px var(--glow), 0 0 0 1px rgba(255, 184, 0, .28);
  }

  /* кнопка «В корзину»: без налива фоном. волна расходится от точки касания,
     а границы светятся, пока палец на кнопке */
  .card__btn { transition: transform .12s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
  .card__btn.is-pressed {
    border-color: var(--accent);
    box-shadow: 0 0 12px 1px var(--glow), inset 0 0 8px rgba(255, 184, 0, .22);
  }
  .btn-ripple {
    position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 205, 60, .6), rgba(255, 184, 0, .18) 55%, transparent 72%);
    transform: scale(0); opacity: .95;
    animation: btn-ripple .5s var(--ease) forwards;
  }
  @keyframes btn-ripple { to { transform: scale(1); opacity: 0; } }
}

/* ── появление блоков при скролле (телефоны/планшеты-портрет) ──
   класс reveal-ready вешает JS — если скрипт не отработал, контент остаётся видимым */
@media (max-width: 860px) {
  .reveal-ready .reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    will-change: opacity, transform;
  }
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-ready .card.reveal { transition-delay: var(--card-delay, 0ms); }
}

/* ── пузырёк «В корзину» ──────────────────────────── */
.cart-bubble {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffe566, var(--accent) 60%);
  box-shadow: 0 0 8px var(--glow);
  transform-origin: center center;
  will-change: transform, left, top;
}

/* желтый «вытекает» из кнопки в пузырёк, затем разгорается обратно */
@keyframes btn-drain {
  0%   { background-size: 100% 100%; color: #1a1200; border-color: var(--accent); box-shadow: inset 0 0 0 0 rgba(255,184,0,0); }
  25%  { background-size: 100% 0%;  color: var(--text); border-color: var(--line); box-shadow: inset 0 0 0 0 rgba(255,184,0,0); }
  60%  { background-size: 100% 0%;  color: var(--text); border-color: var(--line); box-shadow: inset 0 0 0 0 rgba(255,184,0,0); }
  75%  { background-size: 100% 0%;  color: var(--text); border-color: rgba(255,184,0,.8); box-shadow: inset 0 0 18px 3px rgba(255,184,0,.45); }
  85%  { background-size: 100% 100%; color: #1a1200; border-color: var(--accent); box-shadow: inset 0 0 0 0 rgba(255,184,0,0); }
  100% { background-size: 100% 100%; color: #1a1200; border-color: var(--accent); box-shadow: inset 0 0 0 0 rgba(255,184,0,0); }
}
.card__btn.is-draining { animation: btn-drain 1.3s var(--ease) forwards; }

/* всплеск краски на иконке корзины: жёлтое → белое */
@keyframes cart-splash {
  0%   { color: var(--text); filter: none; }
  18%  { color: var(--accent); filter: drop-shadow(0 0 10px var(--glow)) brightness(1.3); }
  100% { color: var(--text); filter: none; }
}
.basket.is-splashed { animation: cart-splash .85s var(--ease) forwards; }

/* уважаем системную настройку — без бесконечных вращений */
@media (prefers-reduced-motion: reduce) {
  .hero__pizza, .hero__ring, .video__play { animation: none; }
  html { scroll-behavior: auto; }
}
