/* NightCup. Страница — чередование глав: светлая Stone / винная Deep Red / почти чёрная Dark Red.
   Палитра из референса: Deep Red #660810, Stone #f1ebeb, Dark Red #270707, Grey Orange #d6c0b1.
   Бокал с обложки при прокрутке «опускается» в винную главу; заголовки и блоки появляются от прокрутки. */
:root {
  --stone: #f1ebeb;
  --stone-2: #e8dfdd;
  --sand: #d6c0b1;
  --deep: #660810;
  --dark: #270707;
  --wine: #8c1222;            /* кнопки: приглушённый винный, без алого */
  --serif: "Bodoni Moda", "Playfair Display", Didot, "Times New Roman", serif;   /* у Bodoni нет кириллицы — русские буквы берутся из Playfair */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --maxw: 1160px;
  --head-h: 68px;
  --radius-l: 22px;
  --radius-m: 14px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  overflow-x: clip; margin: 0;
  background: var(--stone); color: var(--dark);
  font: 400 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
/* зерно бумаги поверх всей страницы — фактура вместо картинки */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Тона глав: цвет текста и второстепенного */
.tone-light { --fg: var(--dark); --muted: rgba(39,7,7,.62); --line: rgba(39,7,7,.14); --accent: var(--deep); background: var(--stone); color: var(--fg); }
.tone-deep  { --fg: var(--stone); --muted: rgba(241,235,235,.7); --line: rgba(241,235,235,.16); --accent: var(--sand); background: var(--deep); color: var(--fg); }
.tone-dark  { --fg: var(--stone); --muted: rgba(241,235,235,.6); --line: rgba(241,235,235,.12); --accent: var(--sand); background: var(--dark); color: var(--fg); }

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Шапка: разделы | знак | телефон. Цвет меняется вместе с главой ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: var(--head-h); padding: 0 max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  color: var(--dark); background: rgba(241,235,235,.82);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(39,7,7,.08);
  transition: background-color .4s, color .4s, border-color .4s;
}
.topbar[data-tone="dark"] { color: var(--stone); background: rgba(39,7,7,.72); border-bottom-color: rgba(241,235,235,.1); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 14px; opacity: .78; white-space: nowrap; transition: opacity .2s, background-color .2s; }
.nav a:hover { opacity: 1; background: rgba(127,127,127,.12); }
.brand { justify-self: center; display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 44px; height: 26px; color: var(--deep); transition: color .4s; }
.topbar[data-tone="dark"] .brand__mark { color: var(--stone); }
.brand__word { font: 700 15px/1 var(--serif); font-variation-settings: "opsz" 11; letter-spacing: .22em; text-transform: uppercase; }
.contact { justify-self: end; display: flex; align-items: center; gap: 14px; }
.contact__phone { font-weight: 600; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  background: var(--wine); color: var(--stone); font-weight: 600; font-size: 14px;
  transition: transform .15s, background-color .2s, color .2s;
}
.btn:hover { background: var(--deep); }
.btn:active { transform: scale(.97); }
.btn--big { padding: 15px 26px; font-size: 16px; }
.tone-deep .btn, .tone-dark .btn, .topbar[data-tone="dark"] .btn { background: var(--stone); color: var(--deep); }
.tone-deep .btn:hover, .tone-dark .btn:hover, .topbar[data-tone="dark"] .btn:hover { background: #fff; }
.link { font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 2px; opacity: .85; }
.link:hover { opacity: 1; }

@media (max-width: 860px) {
  :root { --head-h: 96px; }
  .topbar { grid-template-columns: auto 1fr; grid-template-rows: 56px 40px; height: auto; row-gap: 0; }
  .brand { justify-self: start; grid-column: 1; grid-row: 1; }
  .contact { grid-column: 2; grid-row: 1; }
  .nav { grid-column: 1 / -1; grid-row: 2; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
  .btn:not(.btn--big) { width: 40px; height: 40px; padding: 0; }
  .btn:not(.btn--big) .btn__text { display: none; }
  .contact { gap: 10px; }
  .contact__phone { font-size: 14px; }
  .brand__word { font-size: 13px; letter-spacing: .16em; }
  .brand__mark { width: 38px; height: 22px; }
}
@media (max-width: 380px) { .brand__word { display: none; } }

/* ---------- 1. Обложка ---------- */
.hero {
  position: relative; z-index: 3; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr);
  min-height: min(calc(100svh - var(--head-h)), 880px);
  padding: 8px max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))) 36px;
}
.hero::before { /* мост «гравюрой»: едва проступает на Stone, как водяной знак */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/spb-bridge-hero-800.webp") 50% 62% / cover; /* бледный фон — хватает малой копии (tools/optimize_images.py) */
  filter: grayscale(1) sepia(.35) contrast(.55) brightness(1.55);
  opacity: .32; mix-blend-mode: multiply;
}
@media (min-width: 901px) { .hero::before { background-image: url("../img/spb-bridge-hero-1400.webp"); } }
.hero::after { /* светлая дымка у низа обложки — текст и кнопки не лежат на пёстром фото */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 52%, rgba(241,235,235,.78) 74%, rgba(241,235,235,.9));
}
.hero__side {
  position: absolute; left: max(10px, calc((100% - var(--maxw)) / 2 - 14px)); top: 50%; margin: 0;
  transform: translate(-50%, -50%) rotate(-90deg); transform-origin: center;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: rgba(39,7,7,.55); white-space: nowrap;
}
.hero__word {
  grid-row: 1; grid-column: 1; align-self: center; justify-self: center; z-index: 0; margin: 0;
  font: 700 min(15.5vw, 180px)/.82 var(--serif); font-variation-settings: "opsz" 24;
  letter-spacing: .02em; text-transform: uppercase; color: var(--deep);
  user-select: none;
}
.hero__stage { grid-row: 1; grid-column: 1; position: relative; z-index: 1; pointer-events: none; }
.hero__glassbox {
  position: absolute; left: 33%; top: 46%; height: 96%; aspect-ratio: 1100 / 1375;
  transform: translate(-50%, -50%);
}
.hero__glass {
  width: 100%; height: 100%; object-fit: contain;
  transform: rotate(-4deg);
  filter: drop-shadow(0 36px 44px rgba(90,20,30,.35));
  animation: float 7s ease-in-out infinite;
}
.hero__cherry {
  position: absolute; height: 28%; width: auto; max-width: none; right: 4%; bottom: 2%;
  transform: rotate(-18deg); filter: drop-shadow(0 18px 24px rgba(90,20,30,.35));
  animation: float 6s ease-in-out -2s infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* печать-эмблема: кольцо надписи медленно вращается */
.seal { position: absolute; right: 6%; top: 4%; width: clamp(110px, 13vw, 168px); color: var(--deep); overflow: visible; }
.seal text { font: 600 11.5px var(--serif); font-variation-settings: "opsz" 11; letter-spacing: .12em; fill: currentColor; }
.seal__ring { transform-origin: 100px 100px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__foot {
  grid-row: 2; position: relative; z-index: 2;
  margin-bottom: clamp(40px, 7vw, 110px); /* = высота .surface: текст и кнопки над изгибом «поверхности напитка» */
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
}
.hero__lead { margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 30em; }
.hero__tag { font: 600 clamp(26px, 2.8vw, 38px)/1.08 var(--serif); font-variation-settings: "opsz" 24; color: var(--dark); }
.hero__tag em { font-style: italic; font-weight: 500; color: var(--deep); }
.hero__note {
  position: relative; padding-left: 44px; max-width: 34em;
  font-size: clamp(14px, 1.2vw, 15.5px); line-height: 1.5; font-weight: 500; color: rgba(39,7,7,.82);
}
.hero__note::before { content: ""; position: absolute; left: 0; top: .75em; width: 30px; height: 1px; background: var(--deep); }   /* тонкая черта, как у надзаголовков */
.hero__actions { display: flex; align-items: center; gap: 22px; }

/* невысокие экраны ноутбуков: печать меньше и выше, чтобы не заходить на слово */
@media (min-width: 721px) and (max-height: 820px) {
  .seal { width: 104px; top: -2%; right: 2%; }
}
@media (max-width: 720px) {
  .hero { min-height: 660px; }
  .hero__side { display: none; }
  .hero__word { align-self: start; margin-top: 3vh; font-size: 15.2vw; }
  .hero__glassbox { height: 72%; top: 50%; left: 42%; }
  .hero__cherry { height: 14%; right: -2%; bottom: 8%; }
  .seal { width: 78px; right: -2%; top: 30%; }
  .hero__lead { gap: 10px; }
  .hero__tag { font-size: 27px; }
  .hero__note { padding-left: 0; }
  .hero__note::before { display: none; }
  .hero__actions { width: 100%; flex-wrap: wrap; gap: 14px 22px; }
}

/* ---------- Главы ---------- */
.chapter { position: relative; padding: clamp(72px, 10vw, 128px) 0; overflow: clip; }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.title {
  margin: 0; font: 600 clamp(38px, 6vw, 76px)/1 var(--serif); font-variation-settings: "opsz" 28;
  letter-spacing: .005em; color: var(--fg);
}
.title em { font-style: italic; font-weight: 500; color: var(--accent); }
.title--xl { font-size: clamp(44px, 8vw, 112px); }
.sub { margin: 16px 0 0; max-width: 52ch; font-size: clamp(15px, 1.6vw, 17px); color: var(--muted); }

/* огромное слово на фоне главы, едет при прокрутке */
.bigword {
  position: absolute; z-index: 0; left: 0; top: clamp(28px, 5vw, 64px); margin: 0; white-space: nowrap;
  font: 700 clamp(110px, 19vw, 300px)/1 var(--serif); font-variation-settings: "opsz" 24;
  text-transform: uppercase; color: var(--fg); opacity: .06; pointer-events: none; user-select: none;
}

/* 2. Меню: верхний край — изогнутая «поверхность напитка», в которую опускается бокал */
.chapter--menu { padding-top: clamp(80px, 10vw, 130px); overflow: visible; }
.chapter--menu .bigword { top: clamp(40px, 6vw, 80px); }
/* лежит внизу обложки (под бокалом), цветом винной главы — граница «как поверхность напитка» */
.surface { position: absolute; z-index: 0; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 110px); fill: var(--deep); pointer-events: none; }

.menu { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
@media (min-width: 600px) { .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .menu { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.cat { scroll-margin-top: calc(var(--head-h) + 10px); }
.cat:not([open]) .tile { height: 100%; box-sizing: border-box; }   /* все плитки в ряду одной высоты */
.cat[open] { grid-column: 1 / -1; }
/* светлые карточки товара на винном фоне — продукт виден сразу */
.tile {
  list-style: none; cursor: pointer; position: relative;
  display: flex; flex-direction: column;
  padding: 6px 6px 12px; border-radius: var(--radius-m);
  background: var(--stone); color: var(--dark);
  transition: transform .2s, box-shadow .2s;
}
.tile::-webkit-details-marker { display: none; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,0,4,.35); }
.tile:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
/* Плитка раздела — та же сцена, что в карусели: круг цвета напитка, бутылка стоит на мягкой тени */
.tile__img {
  --tone: var(--deep);
  position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: #fbf8f7;
}
.tile__img::after {
  content: ""; position: absolute; left: 50%; bottom: 6%; width: 56%; height: 8%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(39,7,7,.22), transparent); pointer-events: none;
}
.tile__disc {
  position: absolute; left: 50%; top: 12%; width: 66%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--tone) 70%, #fff) 0, var(--tone) 64%);
  transform: translateX(-50%); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.tile__bottle {
  position: absolute; left: 50%; bottom: 9%; height: calc(82% * var(--s, 1)); width: auto; max-width: none;
  transform: translateX(calc(-50% + var(--k, 0) * 30%)) rotate(calc(var(--k, 0) * 7deg));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 8px rgba(39,7,7,.25));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.tile__img[data-n="3"] .tile__bottle { height: 74%; }
.tile__img[data-n="3"] .tile__bottle:nth-child(3) { z-index: 1; height: 80%; }      /* средняя бутылка — впереди */
.tile:hover .tile__disc { transform: translateX(-50%) scale(1.06); }
.tile:hover .tile__bottle { transform: translateX(calc(-50% + var(--k, 0) * 30%)) translateY(-5%) rotate(calc(var(--k, 0) * 7deg)); }
@media (prefers-reduced-motion: reduce) { .tile__disc, .tile__bottle { transition: none; } }
.tile__name { display: block; margin: 9px 5px 0; font: 600 15px/1.15 var(--serif); font-variation-settings: "opsz" 11; hyphens: auto; -webkit-hyphens: auto; }
/* подпись плитки: место под 2 строки названия (на телефоне — 3), чтобы все плитки были одной высоты */
.tile__text { display: block; min-height: 64px; }
@media (max-width: 599px) { .tile__text { min-height: 81px; } }
@media (max-width: 380px) { .tile__name { font-size: 13.5px; } }   /* «Ром, джин, текила, ликёры» — не больше 3 строк */
.tile__count { display: block; margin: 3px 5px 0; color: rgba(39,7,7,.68); font-size: 12px; }
.tile__close { display: none; }

.cat[open] .tile { flex-direction: row; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius-l) var(--radius-l) 0 0; transform: none; box-shadow: none; }
.cat[open] .tile__img { width: 58px; flex: none; }
.cat[open] .tile__text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; min-height: 0; }
.cat[open] .tile__name { hyphens: manual; -webkit-hyphens: manual; margin: 0; font-size: clamp(22px, 3vw, 32px); }
.cat[open] .tile__count { margin: 0; }
.cat[open] .tile__close { display: block; position: relative; margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--deep); }
.cat[open] .tile__close::before, .cat[open] .tile__close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--stone);
  transform: translate(-50%, -50%) rotate(45deg);
}
.cat[open] .tile__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Плитка «Дополнительная опция»: заказ из магазина — цена опции и три шага */
.extra { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(16px, 3vw, 40px); margin: 14px 8px 4px; padding: clamp(22px, 3vw, 40px); border-radius: 18px; background: #fbf8f7; box-shadow: inset 0 0 0 1px rgba(39,7,7,.07); }
.extra__title { margin: 0; font: 600 clamp(28px, 3.4vw, 40px)/1.05 var(--serif); font-variation-settings: "opsz" 11; }
.extra__title + .slide__price { margin-top: 18px; }
.extra__kicker { margin: 0 0 14px; color: var(--deep); font: 600 12px var(--font); letter-spacing: .14em; text-transform: uppercase; }
.extra__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.extra__steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--stone); }
.extra__steps p { margin: 0; font-size: 16px; line-height: 1.4; }
.extra__no { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: var(--stone); font: 600 18px var(--serif); font-variant-numeric: lining-nums; }
.extra__note { margin: 14px 0 0; color: rgba(39,7,7,.55); font-size: 13px; }
@media (max-width: 720px) { .extra { grid-template-columns: 1fr; } }

/* Значок вместо бутылки на плитке (доп. опция) */
.tile__sign { position: absolute; left: 50%; top: 17%; width: 56%; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(39,7,7,.18)); }
.cat[open] .tile__sign { top: 12%; width: 76%; }
.cat--extra .tile__img::after { display: none; }
.add__step button:disabled, .bill__ctrl button:disabled { opacity: .35; cursor: default; pointer-events: none; }

.panel { background: var(--stone); color: var(--dark); border-radius: 0 0 var(--radius-l) var(--radius-l); padding: 4px 8px 10px; animation: reveal .2s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }
/* Карусель позиций внутри раздела: в центре одна карточка, соседние выглядывают по краям.
   Бутылка стоит на цветном круге (цвет — из напитка), под ней мягкая тень вместо полосы «стола». */
.car { padding: 6px 0 4px; }
.car__track {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 9% 14px; outline: none;
}
.car__track::-webkit-scrollbar { display: none; }
.car__track:focus-visible { box-shadow: inset 0 0 0 2px var(--deep); border-radius: var(--radius-m); }

.slide {
  --tone: var(--deep);
  position: relative; flex: 0 0 100%; scroll-snap-align: center;
  display: grid; grid-template-columns: .75fr 1.25fr 1.1fr; align-items: center; gap: clamp(12px, 2.5vw, 36px);
  min-height: 460px; padding: 26px clamp(18px, 3vw, 40px); border-radius: 18px; overflow: hidden;
  background: #fbf8f7;
  box-shadow: inset 0 0 0 1px rgba(39,7,7,.07);
  opacity: .42; transform: scale(.93); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.slide.is-active { opacity: 1; transform: none; cursor: auto; }

.slide__stage { position: relative; align-self: stretch; display: grid; place-items: end center; min-height: 400px; }
.slide__stage::before {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: min(240px, 80%); height: 30px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(39,7,7,.2), transparent); pointer-events: none;
}
.slide__disc {
  position: absolute; left: 50%; top: 6%; width: min(290px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--tone) 72%, #fff) 0, var(--tone) 62%);
  transform: translateX(-50%) scale(.86); transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.slide__bottle {
  position: relative; height: calc(410px * var(--s, 1)); max-width: 100%; object-fit: contain;
  filter: var(--look, saturate(1)) drop-shadow(0 24px 18px rgba(39,7,7,.28));
  transform: translateY(18px); transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.slide.is-active .slide__disc { transform: translateX(-50%); }
.slide.is-active .slide__bottle { transform: none; }

.slide__facts { margin: 0; display: grid; gap: 14px; align-self: start; padding-top: 24px; }
.fact { padding-bottom: 12px; border-bottom: 1px solid rgba(39,7,7,.1); }
.fact dt { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(39,7,7,.5); }
.fact dd { margin: 4px 0 0; font: 600 17px/1.2 var(--serif); font-variation-settings: "opsz" 11; }

.slide__info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.slide__no { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--deep); }
.slide__no span { color: rgba(39,7,7,.4); }
.slide__name { margin: 0; font: 600 clamp(26px, 3vw, 40px)/1.05 var(--serif); font-variation-settings: "opsz" 24; }
.slide__desc { margin: 0; color: rgba(39,7,7,.62); font-size: 14px; }
.slide__price { margin: 8px 0 0; color: var(--deep); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); font-variant-numeric: tabular-nums; line-height: 1; }
.slide__price2 { font-weight: 500; font-size: .6em; color: rgba(39,7,7,.5); }
.slide__note { margin: -4px 0 0; color: rgba(39,7,7,.5); font-size: 12px; }
.slide__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 10px; }
/* «Позвонить» — вторая кнопка рядом с «В счёт»: той же высоты, винная обводка */
.slide__call { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--wine); color: var(--wine); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .2s, color .2s; }
.slide__call:hover { background: var(--wine); color: var(--stone); }
.slide__call:active { transform: scale(.97); }
@media (max-width: 720px) { .slide__actions { gap: 8px; } .slide__call { padding: 0 14px; gap: 6px; } .slide__actions .add__btn { padding: 12px 18px; } }

/* «В счёт» → после нажатия превращается в «− 1 +» */
.tone-deep .add__btn, .add__btn { width: auto; height: auto; padding: 12px 24px; background: var(--wine); color: var(--stone); font-size: 15px; }
.tone-deep .add__btn:hover { background: var(--deep); }
.add__step { display: inline-flex; align-items: center; height: 46px; border-radius: 999px; background: var(--wine); color: var(--stone); }
.add__step button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.add__step button:hover { background: rgba(255,255,255,.12); }
.add__step output { min-width: 24px; text-align: center; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }

.car__nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 0 8px; }
.car__arrow {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(102,8,16,.35);
  background: transparent; cursor: pointer; transition: background .2s, opacity .2s;
}
.car__arrow::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  border: solid var(--deep); border-width: 0 0 1.6px 1.6px; transform: translate(-30%, -50%) rotate(45deg);
}
.car__arrow--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.car__arrow:hover:not(:disabled) { background: rgba(102,8,16,.08); }
.car__arrow:disabled { opacity: .3; cursor: default; }
.car__arrow:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.car__count { font-size: 13px; color: rgba(39,7,7,.45); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.car__count b { color: var(--deep); }
.car__bar { width: clamp(80px, 14vw, 160px); height: 2px; background: rgba(39,7,7,.12); overflow: hidden; }
.car__bar i { display: block; height: 100%; background: var(--deep); transform-origin: left; transform: scaleX(0); transition: transform .45s cubic-bezier(.2,.8,.2,1); }

@media (max-width: 760px) {
  .car__track { padding-inline: 6%; gap: 10px; }
  .slide {
    grid-template-columns: 1fr; grid-template-areas: "stage" "info" "facts"; align-items: start;
    min-height: 0; padding: 14px 18px 20px; gap: 14px;
  }
  .slide__stage { grid-area: stage; min-height: 300px; }
  .slide__disc { width: 210px; top: 4%; }
  .slide__bottle { height: calc(300px * var(--s, 1)); }
  .slide__info { grid-area: info; }
  .slide__facts { grid-area: facts; padding-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide__disc, .slide__bottle, .car__bar i { transition: none; }
}

/* 3. Петербург ночью: фото на всю ширину, медленно сдвигается при прокрутке */
.city { position: relative; min-height: clamp(520px, 90vh, 860px); display: flex; align-items: flex-end; overflow: clip; padding: 96px 0 clamp(56px, 8vw, 96px); }
.city__media { position: absolute; inset: -12% 0; z-index: 0; }
.city__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: saturate(1.05) contrast(1.08); }
.city__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(39,7,7,.6) 0%, rgba(39,7,7,0) 28%, rgba(39,7,7,.2) 58%, rgba(39,7,7,.94) 100%),
    linear-gradient(180deg, rgba(122,14,24,.5), rgba(102,8,16,.5));
}
.city__text { width: 100%; }
.city .sub { color: rgba(241,235,235,.82); }

/* 5. Доставка */
.chapter--delivery { overflow: visible; }
.delivery__cherry { position: absolute; z-index: 2; right: max(4%, calc((100% - var(--maxw)) / 2)); top: -70px; width: clamp(90px, 12vw, 160px); height: auto; transform: rotate(14deg); filter: drop-shadow(0 18px 24px rgba(90,20,30,.35)); }
.delivery { margin-top: 36px; display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-l); background: #fbf8f7; box-shadow: inset 0 0 0 1px var(--line); }
.delivery__lead { margin: 0; font: 600 clamp(20px, 2.4vw, 28px)/1.25 var(--serif); font-variation-settings: "opsz" 24; max-width: 34ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius-m); background: var(--stone); }
.facts b { color: var(--deep); font: 700 clamp(24px, 3vw, 34px)/1 var(--serif); font-variation-settings: "opsz" 24; white-space: nowrap; }
.facts span { color: var(--muted); font-size: 13px; line-height: 1.3; }
.delivery .btn--big { justify-self: start; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts li { flex-direction: row; align-items: baseline; gap: 12px; }
  .facts b { font-size: 24px; }
  .delivery .btn--big { justify-self: stretch; }
}

/* 6. Частые вопросы */
.faq { margin-top: 36px; display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 56px 22px 0; font: 600 clamp(18px, 2vw, 22px)/1.25 var(--serif); font-variation-settings: "opsz" 11; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--accent); font: 400 20px/1 var(--font);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq p { margin: 0; padding: 0 0 22px; max-width: 60ch; color: var(--muted); }

/* Подвал */
.footer { padding: 64px var(--gutter) 48px; text-align: center; border-top: 1px solid var(--line); }
.footer__mark { width: 84px; height: 49px; color: var(--stone); }
.footer__word { margin: 14px 0 24px; font: 700 16px/1 var(--serif); font-variation-settings: "opsz" 11; letter-spacing: .3em; text-transform: uppercase; }
.footer__warn { margin: 0 0 8px; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.footer__note { margin: 0; color: var(--muted); font-size: 12px; }
.footer__note--fine { margin-bottom: 4px; font-size: 11px; line-height: 1.5; }   /* мелко, но читаемо (контраст ~7:1) — не скрытый текст */

/* Пузырьки на обложке */
.bubbles { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.bubble {
  position: absolute; bottom: -24px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.9) 0 14%, rgba(102,8,16,.12) 34%, rgba(102,8,16,.04) 62%);
  box-shadow: inset 0 0 0 1px rgba(102,8,16,.3);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate(var(--sway), -50cqh); }
  100% { transform: translate(0, calc(-100cqh - 40px)); opacity: 0; }
}

/* ---------- Переходы от прокрутки (где браузер умеет; иначе страница статична) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* бокал опускается в винную главу и уменьшается; слово уходит вверх */
    .hero__glassbox { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
    /* бокал «погружается» в винную поверхность: опускается, уменьшается и растворяется, не наезжая на текст */
    @keyframes sink {
      60%  { opacity: 1; }
      to   { transform: translate(-50%, -50%) translateY(18vh) scale(.72) rotate(8deg); opacity: 0; }
    }
    .hero__word { animation: word-up linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    @keyframes word-up { to { transform: translateY(-14vh); opacity: .25; } }

    .reveal { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes rise-in { from { opacity: 0; transform: translateY(44px); } }

    .bigword { animation: slide-x linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes slide-x { from { transform: translateX(6%); } to { transform: translateX(-30%); } }


    .city__media { animation: parallax linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes parallax { from { transform: translateY(-8%); } to { transform: translateY(8%); } }

    .delivery__cherry { animation: drop linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes drop { from { transform: translateY(-80px) rotate(-20deg); opacity: 0; } }
  }
}

/* View Transitions: плитки меню плавно перестраиваются при открытии раздела */
/* stylelint-disable-next-line no-duplicate-selectors -- правила View Transitions держим вместе */
.topbar { view-transition-name: topbar; }
::view-transition-group(topbar) { z-index: 10; animation: none; }
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; overflow: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .bubble, .hero__glass, .hero__cherry, .seal__ring { animation: none; }
  .bubble { display: none; }
  ::view-transition-group(*) { animation: none; }
}

/* ---------- Счёт ---------- */
.nav__bill sup { margin-left: 3px; font-size: 11px; font-weight: 700; color: var(--accent, var(--deep)); }
.topbar[data-tone="dark"] .nav__bill sup { color: var(--sand); }

.bill-fab {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--dark); color: var(--stone); font: 600 15px var(--font);
  box-shadow: 0 14px 34px rgba(20,0,4,.4), inset 0 0 0 1px rgba(241,235,235,.14);
  animation: fab-in .35s cubic-bezier(.2,.8,.2,1);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s, background-color .35s, color .35s, box-shadow .35s;
}
.bill-fab[hidden] { display: none; }
/* кружок с количеством позиций */
.bill-fab span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--sand); color: var(--dark); font: 700 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.bill-fab b { color: var(--sand); font-variant-numeric: tabular-nums; }
/* над бордовой и тёмной главой — светлая, как бумага счёта (контраст с фоном ≥ 12:1) */
.bill-fab.is-on-dark { background: #fbf8f7; color: var(--dark); box-shadow: 0 14px 34px rgba(0,0,0,.45), inset 0 0 0 1px rgba(39,7,7,.12); }
.bill-fab.is-on-dark span { background: var(--wine); color: var(--stone); }
.bill-fab.is-on-dark b { color: var(--wine); }
/* добавили позицию — кнопка «толкается», сумма вспыхивает */
.bill-fab.is-bump { animation: fab-bump .45s cubic-bezier(.2,.8,.2,1); }
.bill-fab.is-bump b { animation: fab-flash .6s ease-out; }
@keyframes fab-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes fab-bump { 40% { transform: scale(1.09); } }
@keyframes fab-flash { 0%, 30% { color: inherit; } }
.bill-fab span, .bill-fab b { transition: background-color .35s, color .35s; }
.bill-fab.is-tucked { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }

/* <dialog>: фокус и Esc держит браузер; стили диалога по умолчанию сброшены, затемнение — свой .bill__shade */
.bill { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: end;
  width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.bill:not([open]) { display: none; }
.bill::backdrop { background: transparent; }
.bill__shade { position: absolute; inset: 0; background: rgba(20,0,4,.55); opacity: 0; transition: opacity .3s; }
.bill.is-open .bill__shade { opacity: 1; }
html.bill-open { overflow: hidden; }

/* лист счёта: бумага, зубчатый нижний край, как у ресторанного счёта */
.bill__paper {
  position: relative; align-self: start; width: min(420px, 100%); max-height: calc(100% - 40px); overflow: auto;
  margin: 20px 20px 0 0; padding: 30px 28px 34px;
  background: #fbf8f7; color: var(--dark);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100%;
          mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100%;
  transform: translateX(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 20px 60px rgba(20,0,4,.35);
}
.bill.is-open .bill__paper { transform: none; }
.bill__close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--stone-2); cursor: pointer; }
.bill__close::before, .bill__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--dark); transform: translate(-50%, -50%) rotate(45deg); }
.bill__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.bill__head { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed rgba(39,7,7,.3); }
.bill__mark { width: 52px; height: 30px; color: var(--deep); }
.bill__brand { margin: 4px 0 0; font: 700 14px/1 var(--serif); font-variation-settings: "opsz" 11; letter-spacing: .26em; text-transform: uppercase; }
.bill__title { margin: 16px 0 0; font: 600 34px/1 var(--serif); font-variation-settings: "opsz" 24; }
.bill__meta { margin: 8px 0 0; color: rgba(39,7,7,.55); font-size: 12.5px; }

.bill__lines { list-style: none; margin: 0; padding: 8px 0; }
.bill__line {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name sum" "qty ctrl";
  gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px dotted rgba(39,7,7,.22);
}
.bill__name { grid-area: name; font: 600 16px/1.25 var(--serif); font-variation-settings: "opsz" 11; }
.bill__name small { font: 500 12px var(--font); color: rgba(39,7,7,.5); }
.bill__qty { grid-area: qty; color: rgba(39,7,7,.6); font-size: 13px; font-variant-numeric: tabular-nums; }
.bill__sum { grid-area: sum; font-weight: 700; font-variant-numeric: tabular-nums; }
.bill__ctrl { grid-area: ctrl; display: flex; gap: 6px; justify-self: end; }
.bill__ctrl button { width: 30px; height: 30px; border: 1px solid rgba(102,8,16,.3); border-radius: 50%; background: transparent; color: var(--deep); font-size: 17px; line-height: 1; cursor: pointer; }
.bill__ctrl button:hover { background: rgba(102,8,16,.08); }
.bill__empty { padding: 26px 0; text-align: center; color: rgba(39,7,7,.55); font-size: 14px; }

.bill__total { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 0; padding: 14px 0; border-top: 2px solid var(--dark); border-bottom: 1px dashed rgba(39,7,7,.3); }
.bill__total span { font: 600 20px var(--serif); font-variation-settings: "opsz" 11; text-transform: uppercase; letter-spacing: .12em; }
.bill__total b { color: var(--deep); font-size: 26px; font-variant-numeric: tabular-nums; }
.bill__notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; color: rgba(39,7,7,.6); font-size: 12px; line-height: 1.45; }
.bill__actions .btn { width: auto; height: auto; padding: 12px 22px; }
.bill__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.bill__clear { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; color: var(--dark); cursor: pointer; font: 600 14px var(--font); }
.bill__clear:disabled { opacity: .35; cursor: default; }

@media (max-width: 720px) {
  .bill { justify-items: stretch; }
  .bill__paper { align-self: end; width: 100%; margin: 0; max-height: 88%; padding: 26px 20px calc(30px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0; -webkit-mask: none; mask: none; transform: translateY(105%); }
  .bill-fab { padding: 11px 16px; font-size: 14px; }
  html.has-bill .footer { padding-bottom: calc(48px + 76px); }   /* место под плашку счёта — внутри подвала, того же цвета */
}
@media (prefers-reduced-motion: reduce) { .bill__paper, .bill__shade, .bill-fab, .bill-fab b { transition: none; animation: none; } }

/* правило раздела над каруселью (например, «Пиво подаём от 4 шт.») и подсказка в счёте */
.panel__rule { margin: 8px 8px 0; padding: 10px 14px; border-radius: 12px; background: rgba(102,8,16,.08); color: var(--deep); font-weight: 600; font-size: 14px; text-align: center; }
.bill__warns { list-style: none; margin: 0; padding: 0; }
.bill__warn { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(102,8,16,.08); color: var(--deep); font-size: 13px; font-weight: 600; }
.bill__delivery { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(102,8,16,.07); color: var(--dark); font-size: 15px; line-height: 1.3; }
.bill__dtitle { margin: 0 0 6px; color: var(--deep); font: 600 12px var(--font); letter-spacing: .14em; text-transform: uppercase; }
.bill__drow { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 3px 0; }
.bill__drow b { color: var(--deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
