/* =========================================================
   3.19 Кофе — одностраничный прототип
   Палитра логотипа: бордовый #6B1719 · кремовый #F5F1DF · серо-голубой #BBC5D0
   ========================================================= */

/* ---------- Fonts (local, cyrillic + latin subsets) ---------- */
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/lora-0QIvMX1D_JOuMw77I-NP.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/lora-0QIvMX1D_JOuMwT7I-NP.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/lora-0QIvMX1D_JOuMwr7Iw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/lora-0QI8MX1D_JOuMw_hLdO6T2wV9KnW-PgFoqt2nOeZ.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/lora-0QI8MX1D_JOuMw_hLdO6T2wV9KnW-PgFoqF2nOeZ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/lora-0QI8MX1D_JOuMw_hLdO6T2wV9KnW-PgFoq92nA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/manrope-xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/manrope-xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/manrope-xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(assets/fonts/caveat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(assets/fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --wine: #6b1719;
  --wine-deep: #4a0f12;
  --wine-ink: #2c0809;
  --wine-soft: #8a2a2c;
  --cream: #f5f1df;
  --cream-2: #ece5cc;
  --paper: #fbf8ec;
  --blue: #bbc5d0;
  --blue-soft: #dfe4ea;
  --brass: #c9a25a;
  --glow: #f2b56b;
  --ink: #2a1a17;
  --ink-2: #5a4440;
  --line: rgba(107, 23, 25, .16);

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-1: 0 2px 6px rgba(44, 8, 9, .06), 0 14px 32px -12px rgba(44, 8, 9, .22);
  --shadow-2: 0 4px 10px rgba(20, 3, 4, .18), 0 30px 60px -20px rgba(20, 3, 4, .55);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--wine); color: var(--cream); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .site-header :focus-visible, .promo :focus-visible, .footer :focus-visible, .dock :focus-visible { outline-color: var(--glow); }
html { scrollbar-color: var(--wine) var(--cream-2); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); }
.hand { font-family: var(--hand); font-weight: 600; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--wine);
  text-wrap: balance;
}
.section-lead { margin-top: 14px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 46ch; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--wine); --fg: var(--cream); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(20, 3, 4, .55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--cream { --bg: var(--cream); --fg: var(--wine); }
.btn--cream:hover { --bg: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--cream); --bd: rgba(245, 241, 223, .45); }
.btn--ghost:hover { --bd: var(--cream); --bg: rgba(245, 241, 223, .08); }
.btn--wine:hover { --bg: var(--wine-deep); }
.btn--outline { --bg: transparent; --fg: var(--wine); --bd: var(--wine); }
.btn--outline:hover { --bg: var(--wine); --fg: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(74, 15, 18, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  color: var(--cream);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(20, 3, 4, .7); background: rgba(58, 11, 14, .94); }
.site-header__inner {
  height: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 42px; height: 42px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 2px rgba(245, 241, 223, .25); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }

.nav-toggle {
  width: 46px; height: 46px; display: grid; place-content: center; gap: 7px;
  border: 1.5px solid rgba(245, 241, 223, .35); border-radius: 50%; background: transparent; cursor: pointer;
}
.nav-toggle__bar { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform .35s var(--ease-out); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--wine-deep);
  padding: 8px var(--gutter) 24px;
  box-shadow: 0 24px 40px -20px rgba(20, 3, 4, .8);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .45s var(--ease-out), visibility 0s .45s;
}
.site-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease-out), visibility 0s; }
.site-nav__list a {
  display: block; padding: 14px 0; border-bottom: 1px solid rgba(245, 241, 223, .12);
  font-family: var(--serif); font-size: 1.6rem; text-decoration: none;
}
.site-nav__cta { margin-top: 20px; width: 100%; }
html:not(.js) .site-nav { position: static; clip-path: none; visibility: visible; }

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; clip-path: none; visibility: visible; background: none; box-shadow: none; padding: 0;
    display: flex; align-items: center; gap: 28px; transition: none;
  }
  .site-nav__list { display: flex; gap: 6px; }
  .site-nav__list a {
    position: relative; border: 0; padding: 10px 12px;
    font-family: var(--sans); font-size: .98rem; font-weight: 600; color: rgba(245, 241, 223, .82);
    transition: color .2s;
  }
  .site-nav__list a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--glow);
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
  }
  .site-nav__list a:hover, .site-nav__list a.is-current { color: var(--cream); }
  .site-nav__list a:hover::after, .site-nav__list a.is-current::after { transform: scaleX(1); }
  .site-nav__cta { margin: 0; width: auto; min-height: 44px; padding: 0 20px; font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  background:
    radial-gradient(120% 70% at 85% 10%, rgba(242, 181, 107, .20), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(187, 197, 208, .10), transparent 60%),
    linear-gradient(180deg, var(--wine-deep) 0%, #5a1215 55%, var(--wine) 100%);
  padding: 22px var(--gutter) 48px;
  display: grid; gap: 30px;
  overflow: hidden;
  align-content: start;
}
/* paper grain */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  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 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* огромное «3.19» на фоне */
.hero::after {
  content: "3.19"; position: absolute; z-index: -1; right: -.06em; bottom: -.28em;
  font-family: var(--hand); font-weight: 700; font-size: clamp(11rem, 52vw, 34rem); line-height: 1;
  color: rgba(245, 241, 223, .055); pointer-events: none; letter-spacing: -.02em;
}

.hero__media { position: relative; height: clamp(250px, 40svh, 380px); }
.hero__frame {
  position: absolute; right: 0; top: 0; bottom: 0; width: 66%;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(245, 241, 223, .12);
  background: var(--wine-ink);
}
.hero__frame::after { /* мягкий свет ламп */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 20%, rgba(242, 181, 107, .22), transparent 70%), linear-gradient(180deg, transparent 60%, rgba(44, 8, 9, .35));
  pointer-events: none;
}
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; transform-origin: 50% 30%; }

.hero__polaroid {
  position: absolute; left: 0; bottom: 6%; width: 42%;
  padding: 7px 7px 26px; background: var(--paper); border-radius: 6px;
  box-shadow: var(--shadow-2);
  transform: rotate(-6deg);
}
.hero__polaroid img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 60% 40%; border-radius: 3px; }

.hero__cup {
  position: absolute; left: 30%; top: -2%; width: 21%; max-width: 110px;
  transform: rotate(10deg);
  filter: drop-shadow(0 16px 18px rgba(20, 3, 4, .45));
}

.hero__content { position: relative; display: grid; gap: 18px; align-content: start; }
.hero__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(3.3rem, 2rem + 7vw, 6rem);
  line-height: .92; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__line { display: inline-block; }
.hero__line--em { font-style: italic; font-weight: 500; color: var(--blue); }
.hero__lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.45; color: rgba(245, 241, 223, .9); max-width: 32ch; }
.hero__lead .hand { display: inline-block; text-wrap: balance; margin-top: 4px; font-size: 1.55em; line-height: 1.1; color: var(--cream); transform: rotate(-1.5deg); transform-origin: left; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__actions .btn { flex: 1 1 140px; }
.hero__strip {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  margin-top: 4px; padding: 10px 16px 10px 12px;
  border-radius: 999px; background: rgba(245, 241, 223, .08); border: 1px solid rgba(245, 241, 223, .16);
  font-size: .9rem; font-weight: 600; color: rgba(245, 241, 223, .92);
  font-variant-numeric: tabular-nums;
}
.hero__strip .icon { color: var(--glow); width: 18px; height: 18px; }

@media (min-width: 640px) {
  .hero__media { height: 460px; }
  .hero__frame { width: 58%; right: 4%; }
  .hero__polaroid { width: 36%; left: 4%; }
  .hero__cup { left: 32%; max-width: 130px; }
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.05fr 1fr; align-items: center; align-content: center;
    gap: clamp(40px, 5vw, 90px);
    padding: 40px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 70px;
    min-height: min(calc(100svh - var(--header-h)), 900px);
  }
  .hero__content { order: -1; gap: 24px; }
  .hero__media { height: min(72svh, 640px); }
  .hero__frame { width: 72%; right: 0; }
  .hero__polaroid { width: 40%; left: 0; bottom: 4%; }
  .hero__cup { left: 14%; top: 2%; width: 22%; max-width: 150px; }
  .hero__title { font-size: clamp(4.6rem, 2rem + 4.6vw, 6rem); }
}

/* hero entrance — единственный «авторский» момент */
.js .hero__frame { animation: frameIn 1.3s var(--ease-out) both .05s; }
.js .hero__photo { animation: photoIn 2.2s var(--ease-out) both .05s; }
.js .hero__polaroid { animation: dropIn 1.1s var(--ease-out) both .45s; }
.js .hero__cup { animation: cupIn 1.2s var(--ease-out) both .7s; }
.js .hero__line { animation: lineUp 1s var(--ease-out) both; }
.js .hero__line:nth-child(2) { animation-delay: .12s; }
.js .hero__lead, .js .hero__actions, .js .hero__strip { animation: fadeUp .9s var(--ease-out) both; }
.js .hero__lead { animation-delay: .25s; }
.js .hero__actions { animation-delay: .35s; }
.js .hero__strip { animation-delay: .45s; }

@keyframes frameIn { from { clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px); } to { clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); } }
@keyframes photoIn { from { transform: scale(1.18); filter: brightness(.6); } to { transform: scale(1); filter: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(40px) rotate(-14deg); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes cupIn { from { opacity: 0; transform: translateY(-30px) rotate(-8deg); } to { opacity: 1; transform: rotate(10deg); } }
@keyframes lineUp { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveals ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { position: relative; background: var(--cream); overflow-x: clip; }
.about__grid { display: grid; gap: 48px; }
.about__visual { position: relative; max-width: 460px; width: 88%; margin-inline: auto; }
.about__photo {
  border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1); outline: 1px solid var(--line); outline-offset: 10px;
}
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; }
.about__pourover {
  position: absolute; right: -9%; bottom: -8%; width: 32%;
  filter: drop-shadow(0 18px 20px rgba(44, 8, 9, .25));
  transform: rotate(6deg);
}
.about__body { display: grid; gap: 30px; }
.perks { display: grid; gap: 0; }
.perk {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.perk:last-child { border-bottom: 1px solid var(--line); }
.perk__icon {
  width: 48px; height: 48px; padding: 10px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  fill: none; stroke: var(--wine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease-out), background-color .3s;
}
.perk:hover .perk__icon { transform: rotate(-8deg) scale(1.06); background: var(--blue-soft); }
.perk__title { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; line-height: 1.2; color: var(--wine); }
.perk__text { margin-top: 4px; color: var(--ink-2); }

@media (min-width: 768px) {
  .perks { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .perk:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(56px, 7vw, 110px); }
  .about__visual { width: 100%; }
}

/* ---------- Menu ---------- */
.menu {
  position: relative;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(187, 197, 208, .55), transparent 70%),
    var(--cream-2);
}
.menu__head { display: grid; gap: 4px; margin-bottom: 34px; }
.menu__board {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  padding: 10px 10px 26px;
}

.tabs {
  position: relative; display: flex; gap: 4px;
  padding: 5px; border-radius: 999px; background: var(--cream-2);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: 1 0 auto;
  min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-weight: 700; font-size: .98rem; color: var(--ink-2); white-space: nowrap;
  transition: color .35s var(--ease-out);
}
.tab:hover { color: var(--wine); }
.tab[aria-selected="true"] { color: var(--cream); }
.tabs__ink {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0;
  border-radius: 999px; background: var(--wine);
  box-shadow: 0 6px 14px -6px rgba(107, 23, 25, .7);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
html:not(.js) .tab[aria-selected="true"] { background: var(--wine); }

.menu__layout { display: grid; gap: 8px; padding: 18px 10px 0; }
.menu__art { display: none; }
.menu__panels { min-width: 0; }
.panel:focus-visible { outline-offset: 8px; }
.js .panel.is-entering .dish { animation: dishIn .6s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 35ms); }
@keyframes dishIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dishes { display: grid; }
.dish { padding: 14px 4px; border-bottom: 1px dashed rgba(107, 23, 25, .2); }
.dish:last-child { border-bottom: 0; }
.dish__row { display: flex; align-items: baseline; gap: 10px; }
.dish__name { flex: 0 1 auto; min-width: 0; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.25; color: var(--ink); }
.dish__lead { flex: 1 1 12px; min-width: 12px; border-bottom: 1.5px dotted rgba(107, 23, 25, .35); transform: translateY(-4px); }
.dish__vol { flex: none; font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dish__price { flex: none; min-width: 4.4em; text-align: right; font-weight: 800; color: var(--wine); font-variant-numeric: tabular-nums; }
.dish__desc { margin-top: 4px; max-width: 52ch; font-size: .93rem; line-height: 1.45; color: var(--ink-2); }

.bubble-groups { display: grid; gap: 18px; }
.bubble-group__title {
  display: inline-block; margin: 6px 0 2px; padding: 4px 14px; border-radius: 999px;
  background: var(--blue-soft); color: var(--wine);
  font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1.1;
}
.menu__note { margin-top: 18px; text-align: center; font-size: .9rem; color: var(--ink-2); }

@media (max-width: 380px) {
  .dish__row { gap: 8px; }
  .dish__lead { min-width: 6px; }
  .tab { padding: 0 13px; font-size: .94rem; }
}

@media (min-width: 768px) {
  .menu__board { padding: 14px 14px 34px; }
  .tabs { display: inline-flex; overflow: visible; }
  .tab { flex: 0 0 auto; padding: 0 24px; }
  .menu__layout { padding: 26px 22px 0; }
  .bubble-groups { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .bubble-groups .dish__row { flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .menu__head { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .menu__head .section-lead { margin: 0 0 6px; }
  .menu__layout { grid-template-columns: 280px 1fr; gap: 48px; padding: 32px 32px 0; }
  .menu__art { display: block; }
  .menu__stamp {
    position: sticky; top: calc(var(--header-h) + 30px);
    aspect-ratio: 4 / 5; border-radius: 160px 160px var(--radius-sm) var(--radius-sm);
    background: radial-gradient(80% 60% at 50% 40%, #fff9e9, var(--cream) 70%);
    box-shadow: inset 0 0 0 1px var(--line);
    display: grid; place-items: center;
  }
  .menu__pic {
    grid-area: 1 / 1; width: 72%; max-height: 78%; object-fit: contain;
    opacity: 0; transform: translateY(16px) rotate(-6deg) scale(.94);
    transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
    filter: drop-shadow(0 18px 18px rgba(44, 8, 9, .18));
  }
  .menu__pic[data-art-pic="tea"] { width: 86%; }
  .menu__pic.is-active { opacity: 1; transform: none; }
  .panel .dishes { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .panel .dish:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .bubble-groups .dishes { grid-template-columns: 1fr; }
}

/* ---------- Promo ---------- */
.promo {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--wine); color: var(--cream);
  padding-block: clamp(72px, 10vw, 130px) 190px;
}
.promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 85% 55%, rgba(242, 181, 107, .22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 38px);
}
.promo__inner { display: grid; gap: 44px; }
.promo__text { display: grid; gap: 18px; justify-items: start; }
.promo__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance; max-width: 14ch;
}
.promo__seven { font-style: italic; font-weight: 500; color: var(--glow); white-space: nowrap; }
.promo__lead { font-size: 1.1rem; color: rgba(245, 241, 223, .88); max-width: 36ch; }

.cups {
  display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: clamp(6px, 1.6vw, 18px);
  max-width: 620px;
}
.cup { width: 100%; height: auto; overflow: visible; }
.cup { --body: transparent; --stroke: rgba(245, 241, 223, .55); }
svg.cup, .cup--gift svg { color: var(--stroke); }
.cups svg use { stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; fill: var(--body); }
.cups .cup:not(.cup--gift) { --body: rgba(245, 241, 223, .07); }
.js .promo .cup:not(.cup--gift) { opacity: .25; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i) * 140ms); }
.js .promo.is-in .cup:not(.cup--gift) { opacity: 1; transform: none; }

.cup--gift { position: relative; transform-origin: 50% 100%; }
.cup--gift svg:first-child { color: var(--wine-ink); --body: var(--cream); filter: drop-shadow(0 0 22px rgba(242, 181, 107, .65)) drop-shadow(0 12px 14px rgba(20, 3, 4, .45)); }
.cup--gift::before { /* ореол */
  content: ""; position: absolute; left: 50%; top: 55%; width: 230%; aspect-ratio: 1; translate: -50% -50%; z-index: -1;
  background: radial-gradient(circle, rgba(242, 181, 107, .5), transparent 62%);
  border-radius: 50%;
}
.cup--gift::after { /* ярлык подарка */
  content: ""; position: absolute; left: 50%; top: 47%; width: 34%; aspect-ratio: 1; translate: -50% -50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b1719' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.4-7.5-10A4.2 4.2 0 0 1 12 8a4.2 4.2 0 0 1 7.5 2.5c0 5.6-7.5 10-7.5 10z' fill='%236b1719'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cup__steam {
  position: absolute; left: 0; right: 0; bottom: 100%; width: 100%;
  fill: none; stroke: rgba(245, 241, 223, .8); stroke-width: 2; stroke-linecap: round;
}
.cup__steam path { stroke-dasharray: 40; stroke-dashoffset: 0; }
.js .promo .cup--gift { opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .6s var(--ease-out) 1s, transform .9s cubic-bezier(.34, 1.56, .64, 1) 1s; }
.js .promo.is-in .cup--gift { opacity: 1; transform: none; }
.js .promo.is-in .cup__steam path { animation: steam 3.2s ease-in-out 1.8s infinite; }
@keyframes steam { 0% { stroke-dashoffset: 40; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: -40; opacity: 0; } }

.promo__dog {
  position: absolute; right: -10px; bottom: -6px; width: min(66vw, 300px); z-index: 1;
  filter: drop-shadow(0 10px 14px rgba(20, 3, 4, .35));
}
.js .promo__dog { transform: translateX(110%); transition: transform 1.6s var(--ease-out) .4s; }
.js .promo.is-in .promo__dog { transform: none; }

@media (min-width: 1024px) {
  .promo { padding-bottom: clamp(110px, 12vw, 150px); }
  .promo__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
  .promo__dog { width: 380px; right: max(20px, calc((100vw - 1240px) / 2)); }
}

/* ---------- Reviews ---------- */
.reviews { background: var(--blue-soft); position: relative; overflow: hidden; }

.reviews__head { display: grid; gap: 14px; margin-bottom: 34px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--ink-2); font-weight: 600; }
.rating__num { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); margin-right: 4px; }
.rating__stars { position: relative; display: block; width: 120px; height: 22px; }
.rating__stars > svg { width: 120px; height: 22px; fill: rgba(107, 23, 25, .16); }
.rating__fill { position: absolute; inset: 0; width: calc(var(--rate) * 100%); overflow: hidden; }
.rating__fill svg { width: 120px; height: 22px; max-width: none; fill: var(--wine); }

.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 22px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline-offset: -3px; }
.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  min-height: 230px; padding: 26px 24px 22px;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.review__quote p {
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.4; color: var(--ink);
  text-wrap: pretty;
}
.review__by { display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; font-weight: 700; color: var(--wine); }
.review__by span:last-child { font-weight: 500; color: var(--ink-2); }
.review--wine { background: var(--wine); }
.review--wine .review__quote p { color: var(--cream); }
.review--wine .review__by, .review--wine .review__by span:last-child { color: rgba(245, 241, 223, .85); }
.review--blue { background: var(--blue); }
.review--blue .review__by span:last-child { color: var(--ink); }

.reviews__progress { height: 3px; margin: 2px auto 0; max-width: 160px; background: rgba(107, 23, 25, .15); border-radius: 3px; overflow: hidden; }
.reviews__progress span { display: block; height: 100%; width: 30%; background: var(--wine); border-radius: 3px; transform-origin: left; transition: transform .2s linear; }
.reviews__cta { margin-top: 34px; display: flex; justify-content: center; }
.reviews__cta .btn { white-space: normal; text-align: center; }

@media (min-width: 768px) {
  .reviews__track { grid-auto-columns: 46%; }
}
@media (min-width: 1024px) {
  .reviews__head { grid-template-columns: 1fr auto; align-items: end; }
  .reviews__track {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto;
    overflow: visible; margin: 0; padding: 0; gap: 22px;
  }
  .review:nth-child(3n + 2) { transform: translateY(28px); }
  .js .review[data-reveal]:nth-child(3n + 2) { transform: translateY(54px); }
  .js .review[data-reveal].is-in:nth-child(3n + 2) { transform: translateY(28px); }
  .review { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
  .reviews__progress { display: none; }
  .reviews__cta { margin-top: 64px; }
}

/* ---------- Visit ---------- */
.visit { background: var(--cream); }
.visit__grid { display: grid; gap: 28px; }
.visit__card { display: grid; gap: 26px; align-content: start; }
.facts { display: grid; gap: 14px; }
.fact { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; color: var(--ink); font-weight: 500; }
.fact .icon { color: var(--wine); margin-top: 1px; }
.fact--big { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; font-weight: 600; color: var(--wine); }
.fact--big .icon { margin-top: 3px; }
.fact a { font-weight: 700; color: var(--wine); text-decoration: underline; text-decoration-color: rgba(107, 23, 25, .35); }
.fact a:hover { text-decoration-color: currentColor; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__actions .btn { flex: 1 1 180px; }
.visit__map {
  position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden;
  background: var(--blue-soft); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 1024px) {
  .visit__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: stretch; }
  .visit__map { min-height: 520px; }
  .visit__actions .btn { flex: 0 0 auto; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden;
  background: var(--wine-ink); color: rgba(245, 241, 223, .82);
  padding: 64px 0 150px;
}
.footer__inner { display: grid; gap: 28px; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__logo { width: 84px; height: 84px; border-radius: 18px; }
.footer__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--cream); }
.footer__tag { font-size: 1.5rem; line-height: 1.1; color: var(--blue); }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--cream); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(245, 241, 223, .3); }
.footer__links a:hover { text-decoration-color: var(--cream); }
.footer__copy { font-size: .88rem; color: rgba(245, 241, 223, .6); }
.footer__dog { position: absolute; right: 4%; bottom: -4px; width: min(46vw, 230px); opacity: .95; }

@media (min-width: 900px) {
  .footer { padding: 70px 0 70px; }
  .footer__inner { grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 40px; padding-right: 280px; }
  .footer__copy { grid-column: 1 / -1; }
  .footer__dog { right: max(24px, calc((100vw - 1240px) / 2 + 24px)); width: 250px; }
}

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 7px;
  border-radius: 999px;
  background: rgba(44, 8, 9, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px -12px rgba(20, 3, 4, .6), 0 0 0 1px rgba(245, 241, 223, .1);
  transform: translateY(140%); transition: transform .55s var(--ease-out);
}
.dock.is-visible { transform: none; }
@media (min-width: 560px) { .dock { left: 50%; right: auto; width: 460px; margin-left: -230px; } }
.dock .btn { min-height: 48px; }
.dock__main { flex: 1 1 auto; }
.btn--dockcall { --bg: transparent; --fg: var(--cream); --bd: rgba(245, 241, 223, .35); padding: 0 18px; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .cup__steam path { animation: none !important; }
}
