/* Cremm coffee & food — стиль повторяет печатное меню: белый «Завтрак», графитовое «Основное», шалфейные «Напитки».
   Шрифт Onest, крупные вертикальные заголовки, радужный акцент из детского меню. */

:root {
  --paper: #f5f4f0;
  --surface: #ffffff;
  --on-ink: #ffffff;
  --fill: rgba(31, 31, 29, 0.06);
  --glass: rgba(245, 244, 240, 0.88);
  --footer: #1f1f1d;
  color-scheme: light;
  --ink: #1f1f1d;
  --graphite: #45453f;
  --graphite-2: #34342f;
  --sage: #b4b7b0;
  --sage-2: #c9cbc5;
  --muted: #74746c;
  --line: rgba(31, 31, 29, 0.12);
  --rainbow: linear-gradient(90deg, #f3a6c6, #f6cf86 25%, #a9df9b 50%, #8fcff2 75%, #c3a7f5);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 72px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* Тёмная тема: по умолчанию как в системе; кнопка в шапке ставит data-theme и запоминает выбор */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
  --paper: #131311;
  --surface: #1e1e1b;
  --ink: #efede7;
  --on-ink: #151513;
  --graphite: #2c2c28;
  --graphite-2: #232320;
  --muted: #a09f97;
  --line: rgba(255, 255, 255, 0.12);
  --fill: rgba(255, 255, 255, 0.08);
  --glass: rgba(19, 19, 17, 0.86);
  --footer: #0c0c0b;
  color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #131311;
  --surface: #1e1e1b;
  --ink: #efede7;
  --on-ink: #151513;
  --graphite: #2c2c28;
  --graphite-2: #232320;
  --muted: #a09f97;
  --line: rgba(255, 255, 255, 0.12);
  --fill: rgba(255, 255, 255, 0.08);
  --glass: rgba(19, 19, 17, 0.86);
  --footer: #0c0c0b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1320px, 100% - 64px); } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Типографика ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.h1 { margin: 0; font-weight: 300; font-size: clamp(48px, 10vw, 150px); line-height: 0.92; letter-spacing: -0.045em; text-transform: uppercase; }
.h2 { margin: 0; font-weight: 300; font-size: clamp(36px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.04em; }
.h3 { margin: 0; font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); max-width: 560px; }
.rainbow-text { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.split-line > span { display: inline-block; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--ink); --fg: var(--on-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: 16px; text-decoration: none;
  overflow: hidden; isolation: isolate; transition: transform 0.4s var(--ease);
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--rainbow); opacity: 0; transition: opacity 0.4s var(--ease); }
.btn:hover::after { opacity: 0.18; }
.btn svg { width: 20px; height: 20px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { --bg: #fff; --fg: #1f1f1d; }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::before { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--fg); border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fill); }
.icon-btn svg { width: 20px; height: 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Переход между страницами ---------- */
.curtain { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--graphite-2); color: #fff; pointer-events: none; transform: translateY(0); }
.curtain__logo { display: grid; justify-items: center; gap: 10px; font-size: 14px; letter-spacing: 0.5em; padding-left: 0.5em; }
.curtain__logo .cup-icon { width: 56px; height: 56px; }
html:not(.js) .curtain { display: none; }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: transform 0.5s var(--ease), background 0.3s, color 0.3s; }
.header.is-scrolled { background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header--on-dark:not(.is-scrolled) { color: #fff; }
.header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__cup { width: 34px; height: 34px; }
.logo__word { font-size: 15px; font-weight: 500; letter-spacing: 0.42em; }
.nav { display: none; gap: 30px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: 15px; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header__phone { display: none; font-size: 15px; font-weight: 500; text-decoration: none; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; }
.header--on-dark:not(.is-scrolled) .cart-btn { background: #fff; color: #1f1f1d; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rainbow); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.cart-btn.is-bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } }
.theme-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fill); color: inherit; overflow: hidden; }
.theme-btn svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform 0.6s var(--ease), opacity 0.4s; }
.theme-btn__sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
.header--on-dark:not(.is-scrolled) .theme-btn { background: rgba(255, 255, 255, 0.14); }
/* В тёмной теме показываем солнце (переключить на светлую), в светлой — луну */
:root[data-theme='dark'] .theme-btn__sun { transform: none; opacity: 1; }
:root[data-theme='dark'] .theme-btn__moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-btn__sun { transform: none; opacity: 1; }
  :root:not([data-theme='light']) .theme-btn__moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
}
/* Плавная смена темы — только в момент переключения, чтобы не замедлять остальное */
.theme-anim, .theme-anim *, .theme-anim *::before { transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease) !important; }
@media (max-width: 380px) { .cart-btn__sum { display: none; } }
.burger { display: inline-grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 11px; border: 0; background: none; }
.burger span { height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__actions { margin-left: 24px; }
  .burger { display: none; }
}
@media (min-width: 1240px) { .header__phone { display: inline; margin-right: 8px; } }

.mnav { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 24px) 16px 32px; background: var(--paper); }
.mnav__links { display: grid; }
.mnav__links a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: clamp(36px, 10vw, 56px); font-weight: 300; letter-spacing: -0.03em; text-decoration: none; }
.mnav__links small { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.mnav__foot { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.mnav__foot a { font-size: 22px; color: var(--ink); text-decoration: none; font-weight: 500; }

/* ---------- Главная: hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 32px) 0 40px; background: var(--graphite-2); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; opacity: 0.5; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 30, 27, 0.55), rgba(30, 30, 27, 0.15) 40%, rgba(30, 30, 27, 0.85)); }
.hero__inner { position: relative; display: grid; min-height: calc(100svh - var(--header-h) - 72px); align-content: space-between; gap: 40px; }
.hero__top { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.hero__title { margin: 0; font-weight: 300; font-size: clamp(76px, 23vw, 340px); line-height: 0.8; letter-spacing: -0.06em; }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__bottom { display: grid; gap: 28px; }
.hero__lead { margin: 0; max-width: 520px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge { position: absolute; right: 0; top: 18%; width: 132px; height: 132px; display: none; }
.hero__badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 300; }
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; }
  .hero__badge { display: block; }
}

/* Бегущая строка */
.marquee { overflow: hidden; padding: 22px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(22px, 3vw, 38px); font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; }
.marquee__track i { width: 10px; height: 10px; border-radius: 50%; background: var(--rainbow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Секции */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section__head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .section__head { grid-template-columns: 1fr auto; align-items: end; } }

/* Три меню — как три листа печатного меню */
.sheets { display: grid; gap: 16px; }
@media (min-width: 700px) { .sheets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .sheets { grid-template-columns: repeat(4, 1fr); } .sheet__vert { font-size: 56px; } }
.sheet { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; min-height: 520px; padding: 28px 28px 28px 20px; border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: transform 0.6s var(--ease); }
.sheet:hover { transform: translateY(-8px); }
.sheet--light { background: #fff; color: #1f1f1d; }
.sheet--dark { background: linear-gradient(160deg, #55554f, var(--graphite-2)); color: #fff; }
.sheet--sage { background: linear-gradient(160deg, var(--sage-2), var(--sage)); color: #1f1f1d; }
.sheet--blush { background: linear-gradient(160deg, #f7e6df, #ecc8bc); color: #1f1f1d; }
.sheet__vert { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(48px, 5vw, 76px); font-weight: 400; line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; }
.sheet--light .sheet__vert { transform: none; }
.sheet__body { display: flex; flex-direction: column; gap: 10px; }
.sheet__pill { align-self: flex-start; padding: 4px 14px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; }
.sheet__list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.sheet__list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); padding-bottom: 8px; }
.sheet__list b { font-weight: 500; white-space: nowrap; }
.sheet__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.sheet__go svg { width: 20px; height: 20px; transition: transform 0.4s var(--ease); }
.sheet:hover .sheet__go svg { transform: translateX(6px); }

/* Конструктор-тизер */
.builder-teaser { background: linear-gradient(180deg, var(--sage-2), var(--sage)); border-radius: calc(var(--radius) * 1.6); padding: clamp(32px, 6vw, 80px); display: grid; gap: 40px; align-items: center; overflow: hidden; color: #1f1f1d; }
@media (min-width: 900px) { .builder-teaser { grid-template-columns: 1.1fr 1fr; } }
.builder-teaser__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.builder-teaser__stage { display: grid; place-items: center; min-height: 360px; }

/* Хиты */
.hits { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; }
.hits > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .hits { grid-auto-columns: calc((100% - 48px) / 4); } }

/* Сервисы */
.services { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
.service { display: flex; flex-direction: column; gap: 16px; min-height: 340px; padding: 36px; background: var(--surface); text-decoration: none; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.service:hover { background: var(--ink); color: var(--on-ink); }
.service__num { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.service:hover .service__num { color: rgba(255, 255, 255, 0.6); }
.service p { margin: 0; color: var(--muted); }
.service:hover p { color: rgba(255, 255, 255, 0.75); }
.service .link-arrow { margin-top: auto; align-self: flex-start; }

/* Детская */
.kids { position: relative; display: grid; gap: 40px; padding: clamp(32px, 6vw, 80px); border-radius: calc(var(--radius) * 1.6); background: var(--graphite-2); color: #fff; overflow: hidden; }
@media (min-width: 900px) { .kids { grid-template-columns: 1fr 1fr; align-items: center; } }
.kids__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.kids__img img { width: 100%; height: 115%; object-fit: cover; }
.kids__blob { position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: var(--rainbow); filter: blur(90px); opacity: 0.35; pointer-events: none; }
.features { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.features b { display: block; font-weight: 500; margin-bottom: 4px; }
.features span { color: rgba(255, 255, 255, 0.7); font-size: 15px; }

/* Галерея с параллаксом */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 120%; object-fit: cover; }
.gallery figure:nth-child(1) { grid-column: span 12; aspect-ratio: 16 / 10; }
.gallery figure:nth-child(2), .gallery figure:nth-child(3) { grid-column: span 6; aspect-ratio: 3 / 4; }
@media (min-width: 900px) {
  .gallery figure:nth-child(1) { grid-column: span 7; aspect-ratio: auto; grid-row: span 2; }
  .gallery figure:nth-child(2), .gallery figure:nth-child(3) { grid-column: span 5; aspect-ratio: 16 / 10; }
}

/* Визит */
.visit { display: grid; gap: 32px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; align-items: end; } }
.facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); font-size: 14px; }
.facts a { text-decoration: none; }

/* ---------- Подвал ---------- */
.footer { padding: 80px 0 32px; background: var(--footer); color: #fff; overflow: hidden; }
.footer__big { font-size: clamp(80px, 24vw, 360px); font-weight: 300; line-height: 0.8; letter-spacing: -0.06em; margin: 0 0 56px -0.04em; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__label { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__nav { display: grid; gap: 6px; align-content: start; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(40px, 6vw, 72px); }
.page-hero .lead { margin: 24px 0 0; }
.page-hero--dark { background: var(--graphite-2); color: #fff; }
.page-hero--dark .lead { color: rgba(255, 255, 255, 0.7); }

/* ---------- Меню ---------- */
.menu-bar { position: sticky; top: 0; z-index: 50; padding: 12px 0; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: transform 0.5s var(--ease); }
.has-header .menu-bar { top: var(--header-h); }
/* Шапка спряталась — полоска уезжает вверх трансформацией, без пересчёта раскладки на каждом кадре */
.has-header.header-hidden .menu-bar { transform: translateY(calc(-1 * var(--header-h))); }
/* Размытие фона под липкими панелями на телефонах дорогое и даёт рывки при прокрутке */
@media (hover: none) {
  .header.is-scrolled, .menu-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
}
.menu-bar__sections { display: flex; gap: 6px; margin-bottom: 10px; }
/* Четыре раздела не влезают в ширину телефона — полоска разделов листается пальцем, а не наезжает */
.menu-bar__sections .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.menu-bar__sections .seg::-webkit-scrollbar { display: none; }
.menu-bar__sections .seg button { flex: none; }
@media (max-width: 480px) { .menu-bar__sections .seg button { padding: 8px 9px; font-size: 13px; } }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--fill); }
.seg button, .seg label { position: relative; padding: 8px 16px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.3s, color 0.3s; cursor: pointer; }
.seg [aria-pressed='true'], .seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg label { padding: 0; }
.seg label span { display: block; padding: 8px 16px; border-radius: 999px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; text-decoration: none; white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.menu-search { position: relative; margin-left: auto; }
.menu-search input { width: 180px; height: 40px; padding: 0 14px 0 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: width 0.4s var(--ease); }
.menu-search input:focus { width: 240px; outline: none; border-color: var(--ink); }
.menu-search svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
@media (max-width: 640px) { .menu-search { display: none; } }

.menu-section { padding: 56px 0 24px; }
.menu-section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.menu-section__pill { padding: 4px 14px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; }
.menu-cat { padding: 32px 0; scroll-margin-top: calc(var(--header-h) + 120px); }
.menu-cat__title { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.menu-cat__title.kids-title { font-size: 22px; letter-spacing: 0.04em; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.empty-search { padding: 64px 0; text-align: center; color: var(--muted); }

/* Карточка позиции */
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); overflow: hidden; cursor: pointer; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(31, 31, 29, 0.35); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tone, #efeee9); }
.card__media--ph { aspect-ratio: 5 / 4; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.card__ph svg { width: 46%; height: 46%; stroke-width: 1.2; transition: transform 0.8s var(--ease); }
.card:hover .card__ph svg { transform: scale(1.08) rotate(-4deg); }
.card__tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: #fff; color: #1f1f1d; font-size: 12px; font-weight: 600; }
.card__tag--hit { background: #1f1f1d; color: #fff; }
.card__tag--kids, .card__tag--new { background: var(--rainbow); color: #1f1f1d; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 14px 16px; }
.card__name { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.25; }
.card__note { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #b3261e; }
.card__desc { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.card__price { font-weight: 600; font-size: 16px; }
.card__price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.card__add { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: var(--on-ink); transition: transform 0.4s var(--ease); }
.card__add svg { width: 18px; height: 18px; }
.card:hover .card__add { transform: rotate(90deg); }
.card__add--custom { width: auto; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.card:hover .card__add--custom { transform: none; }
.card__qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.card__qty button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--on-ink) 14%, transparent); color: var(--on-ink); }
.card__qty svg { width: 16px; height: 16px; }
.card__qty span { min-width: 18px; text-align: center; font-weight: 600; font-size: 14px; }
@media (max-width: 420px) {
  .card__body { padding: 12px; }
  .card__name { font-size: 15px; }
  .card__add--custom { padding: 0 12px; }
}

/* ---------- Конструктор (модалка позиции) ---------- */
.pm { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
.pm__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 18, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pm__panel { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; max-height: 94svh; border-radius: 28px 28px 0 0; background: var(--paper); overflow: hidden; }
@media (min-width: 900px) {
  .pm { align-items: center; padding: 24px; }
  .pm__panel { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); height: min(760px, 92svh); width: min(1040px, 100%); max-height: min(760px, 92svh); border-radius: 32px; }
}
.pm__stage { position: relative; display: grid; place-items: center; height: clamp(190px, 32svh, 300px); background: var(--tone, var(--sage-2)); overflow: hidden; }
.pm__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm__stage .card__ph svg { width: 40%; height: 40%; }
.pm__close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255, 255, 255, 0.85); }
.pm__content { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pm__scroll { flex: 1; overflow-y: auto; padding: 24px 20px 12px; overscroll-behavior: contain; }
@media (min-width: 900px) { .pm__scroll { padding: 40px 36px 16px; } .pm__stage { height: auto; } }
@media (max-width: 899px) { .pm__stage .cup { width: 130px; } }
.pm__title { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.pm__desc { margin: 0 0 8px; color: var(--muted); }
.pm__group { margin-top: 22px; }
.pm__group-title { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pm__group-title small { letter-spacing: 0; text-transform: none; font-weight: 400; }
.sizes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: var(--fill); }
.sizes button { display: grid; gap: 2px; padding: 10px 6px; border: 0; border-radius: 14px; background: none; text-align: center; transition: background 0.3s, color 0.3s; }
.sizes button b { font-weight: 600; font-size: 15px; }
.sizes button span { font-size: 12px; color: var(--muted); }
.sizes button i { font-size: 10px; font-style: normal; line-height: 1.2; color: var(--muted); }
.sizes button[aria-pressed='true'] { background: var(--surface); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.4); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.opt small { color: var(--muted); }
.opt[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.opt[aria-pressed='true'] small { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.opt__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rainbow); color: var(--ink); font-size: 11px; font-weight: 700; }
.opt-step { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; }
.opt-step.is-on { border-color: var(--ink); }
.opt-step small { color: var(--muted); }
.opt-step button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--fill); }
.opt-step button svg { width: 16px; height: 16px; }
.opt-step b { min-width: 14px; text-align: center; }
.pm__foot { display: flex; gap: 12px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
@media (min-width: 900px) { .pm__foot { padding: 18px 36px 24px; } }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fill); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; }
.pm__foot .btn { flex: 1; }

/* Стакан-иллюстрация конструктора */
.cup { position: relative; width: 210px; transition: transform 0.6s var(--ease); transform-origin: 50% 100%; }
.cup svg { width: 100%; height: auto; overflow: visible; }
.cup__liquid { transition: fill 0.6s var(--ease), y 0.6s var(--ease), height 0.6s var(--ease); }
.cup__ice, .cup__foam, .cup__pearls, .cup__balls, .cup__milk { transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.cup__sizebadge { position: absolute; right: -48px; top: 10px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #1f1f1d; font-weight: 600; font-size: 15px; line-height: 1.05; text-align: center; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.4); }
.cup__sizebadge small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.steam path { animation: steam 3s ease-in-out infinite; opacity: 0; }
.steam path:nth-child(2) { animation-delay: 0.8s; }
.steam path:nth-child(3) { animation-delay: 1.6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: 0.7; } 100% { opacity: 0; transform: translateY(-16px); } }

/* ---------- Корзина ---------- */
.drawer { position: fixed; inset: 0; z-index: 160; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 18, 0.45); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(460px, 100%); background: var(--paper); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 22px; font-weight: 500; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer__empty { display: grid; justify-items: center; gap: 14px; padding: 72px 0; text-align: center; color: var(--muted); }
.drawer__empty svg { width: 64px; height: 64px; color: var(--ink); }

.cline { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cline__img { width: 56px; height: 56px; border-radius: 14px; background: var(--tone, #efeee9); overflow: hidden; display: grid; place-items: center; }
.cline__img img { width: 100%; height: 100%; object-fit: cover; }
.cline__img svg { width: 60%; height: 60%; stroke-width: 1.4; }
.cline__name { margin: 0; font-weight: 500; line-height: 1.25; }
.cline__opts { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cline__err { margin: 4px 0 0; font-size: 13px; color: #b3261e; }
.cline__right { display: grid; justify-items: end; gap: 8px; }
.cline__price { font-weight: 600; white-space: nowrap; }
.cline .stepper { padding: 2px; }
.cline .stepper button { width: 32px; height: 32px; }
.cline .stepper button svg { width: 14px; height: 14px; }
.cline.is-bad { opacity: 0.6; }

.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-row--total { font-size: 20px; font-weight: 600; }
.sum-note { margin: 0; font-size: 13px; color: var(--muted); }
.progress { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--rainbow); transition: width 0.6s var(--ease); }

/* Тост */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 16px; background: var(--ink); color: var(--on-ink); font-size: 15px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); transform: translate(-50%, 200%); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Плавающая корзина на мобильных */
.fab-cart { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 500; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6); transform: translateY(160%); transition: transform 0.5s var(--ease); }
.fab-cart.is-on { transform: none; }
@media (min-width: 1024px) { .fab-cart { display: none; } }

/* ---------- Формы ---------- */
.form-layout { display: grid; gap: 32px; padding-bottom: 120px; }
.form-layout > *, .panel { min-width: 0; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: 1fr 420px; align-items: start; } .form-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.panel { padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); }
.panel + .panel { margin-top: 16px; }
.panel__title { margin: 0 0 20px; font-size: 20px; font-weight: 500; }
.fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .fields--2 { grid-template-columns: 1fr 1fr; } .fields--3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: border-color 0.2s, background 0.2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field__err { font-size: 13px; color: #b3261e; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.form-error { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: #fbe9e7; color: #8c1d18; font-size: 15px; }
.hp { position: absolute; left: -9999px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 18px; background: var(--fill); }
.tabs button { min-height: 52px; border: 0; border-radius: 14px; background: none; font-weight: 500; transition: background 0.3s; }
.tabs button[aria-pressed='true'] { background: var(--surface); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.4); }
.tabs--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 400px) { .tabs--3 button { font-size: 14px; } }
.type-note { margin: -8px 0 20px; padding: 14px 18px; border-radius: 18px; background: var(--surface); font-size: 14px; line-height: 1.5; color: var(--muted); }
.type-note p { margin: 0; }
.type-note b { color: var(--ink); font-weight: 600; }

.pay-options { display: grid; gap: 10px; }
.pay { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.pay:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.pay input { width: 20px; height: 20px; accent-color: var(--ink); }
.pay b { display: block; font-weight: 500; }
.pay small { color: var(--muted); }
.pay__logos { margin-left: auto; display: flex; gap: 6px; }
.pay__logos span { padding: 3px 8px; border-radius: 6px; background: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.pay__logos .tb { background: #ffdd2d; color: #333; }

/* Бронь: даты/время */
.dates { display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date-btn { display: grid; justify-items: center; gap: 2px; padding: 12px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: background 0.3s, color 0.3s; }
.date-btn small { font-size: 12px; color: var(--muted); }
.date-btn b { font-size: 22px; font-weight: 500; }
.date-btn[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.date-btn[aria-pressed='true'] small { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.time-btn { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 500; transition: background 0.3s, color 0.3s; }
.time-btn[aria-pressed='true'] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.time-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.zones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .zones { grid-template-columns: repeat(4, 1fr); } }
.zone { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: left; transition: background 0.3s, color 0.3s; }
.zone small { color: var(--muted); font-size: 12px; }
.zone[aria-pressed='true'] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.zone[aria-pressed='true'] small { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }

.booking-summary { display: grid; gap: 4px; padding: 24px; border-radius: var(--radius); background: var(--graphite-2); color: #fff; }
.booking-summary__big { font-size: clamp(30px, 4vw, 44px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
.booking-summary p { margin: 0; color: rgba(255, 255, 255, 0.7); }

/* Успех / статус */
.done { display: grid; justify-items: center; gap: 18px; padding: clamp(40px, 8vw, 80px) 20px; text-align: center; }
.done__mark { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--rainbow); }
.done__mark svg { width: 44px; height: 44px; }
.done__mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.8s 0.3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.track { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.track li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 24px; color: var(--muted); }
.track li::before { content: ''; width: 14px; height: 14px; margin: 4px 7px 0; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.track li::after { content: ''; position: absolute; left: 13px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li.is-done { color: var(--ink); }
.track li.is-done::before { background: var(--ink); border-color: var(--ink); }
.track li.is-current::before { background: var(--rainbow); border: 0; box-shadow: 0 0 0 6px rgba(143, 207, 242, 0.25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(143, 207, 242, 0); } }

/* Информационные блоки */
.info-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); }
.info-card__big { font-size: clamp(40px, 5vw, 64px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.info-card p { margin: 0; color: var(--muted); }
.steps { counter-reset: s; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding: 24px; border-top: 1px solid var(--ink); }
.steps li::before { content: '0' counter(s); display: block; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.steps b { display: block; font-weight: 500; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }
.prose { max-width: 760px; }
.prose h2 { margin: 48px 0 12px; font-size: 24px; font-weight: 500; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 82%, transparent); }
.map { border: 0; width: 100%; height: clamp(360px, 50vw, 560px); border-radius: var(--radius); background: #e8e7e2; }

.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: #fff6d6; font-size: 14px; color: #1f1f1d; }

/* ---------- Анимации появления ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(40px); }
.js-anim .split-line > span { transform: translateY(105%); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee__track { animation: none; }
}

/* ---------- Десерт к заказу ---------- */
.upsell { position: fixed; inset: 0; z-index: 170; display: flex; align-items: flex-end; justify-content: center; }
.upsell__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 18, 0.45); }
.upsell__panel { position: relative; width: min(560px, 100%); padding: 22px 0 calc(16px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--paper); }
@media (min-width: 700px) { .upsell { align-items: center; padding: 24px; } .upsell__panel { padding-bottom: 22px; border-radius: 28px; } }
.upsell__x { position: absolute; top: 14px; right: 14px; }
.upsell__head { padding: 0 64px 0 20px; }
.upsell__head .eyebrow { margin: 0; }
.upsell__title { margin: 4px 0 2px; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.upsell__sub { margin: 0; font-size: 14px; color: var(--muted); }
.upsell__row { display: flex; gap: 12px; padding: 18px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; overscroll-behavior-x: contain; scrollbar-width: none; }
.upsell__row::-webkit-scrollbar { display: none; }
.ucard { flex: none; width: 148px; scroll-snap-align: start; }
.ucard__img { aspect-ratio: 1; border-radius: 18px; background: var(--tone); overflow: hidden; display: grid; place-items: center; }
.ucard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ucard__img .card__ph svg { width: 50%; }
.ucard__name { margin: 8px 0 6px; min-height: 2.5em; font-size: 14px; line-height: 1.25; }
.ucard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ucard__foot b { font-weight: 600; }
.ucard__add { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; transition: background 0.3s, color 0.3s; }
.ucard__add svg { width: 18px; height: 18px; }
.ucard__add.is-on { background: var(--sage); color: #1f1f1d; }
.upsell__foot { display: flex; gap: 10px; padding: 0 20px; }
.upsell__foot .btn { flex: 1; }
