/* RestBoss — сайт. Мова кухні: папір чеків, чорнило, вогонь плити. */

:root {
  --paper: #F1ECE3;
  --paper-2: #E7E0D3;
  --paper-3: #D8CEBC;
  --card: #FBF8F1;
  --ink: #141210;
  --ink-2: #2B2723;
  --ink-3: #5B544C;
  --mute: #857C71;
  --line: rgba(20, 18, 16, .14);
  --fire: #FF4B1F;
  --fire-deep: #D9360C;
  --ember: #FFB23F;
  --basil: #1F9D6B;
  --night: #0F0E0D;
  --night-2: #1B1917;
  --night-3: #2A2724;
  --moon: #EFE8DC;
  --moon-dim: #A79E92;
  --moon-line: rgba(239, 232, 220, .14);

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Geologica", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Martian Mono", "Cascadia Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --hdr: 68px;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --notch: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: .98; overflow-wrap: break-word; hyphens: manual; }
p { margin: 0; }
::selection { background: var(--fire); color: var(--ink); }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; }

/* Зерно паперу поверх усього — ледь помітна фактура замість «пластикових» заливок. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fire { color: var(--fire); }
.night { background: var(--night); color: var(--moon); }
.night .mute, .night .lead { color: var(--moon-dim); }
.mute { color: var(--ink-3); }

/* ─────────────────────────── Логотип ─────────────────────────── */

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--f-display); letter-spacing: -.04em; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__mark .rim { stroke: currentColor; }
.logo__mark .hand { stroke: var(--fire); transform-origin: 32px 32px; transition: transform .8s var(--e-spring); }
.logo:hover .logo__mark .hand--m { transform: rotate(360deg); transition-duration: 1.1s; }
.logo:hover .logo__mark .hand--h { transform: rotate(30deg); }
.hdr__act .btn .short { display: none; }

/* ─────────────────────────── Кнопки ─────────────────────────── */

.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font: 500 12.5px/1 var(--f-mono);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
  transition: background .25s, color .25s, transform .25s var(--e-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arr { display: inline-block; transition: transform .35s var(--e-spring); }
.btn:hover .arr { transform: translateX(5px); }
.btn--fire { --bg: var(--fire); --fg: var(--ink); }
.btn--fire:hover { --bg: var(--ink); --fg: var(--fire); }
.btn--ink:hover { --bg: var(--fire); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; clip-path: none; border-radius: 0; }
.btn--ghost:hover { --bg: currentColor; }
.btn--ghost:hover span { color: var(--paper); }
.night .btn--ghost:hover span { color: var(--night); }
.btn--moon { --bg: var(--moon); --fg: var(--night); }
.btn--moon:hover { --bg: var(--fire); --fg: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 11.5px; --notch: 8px; }
.btn--lg { min-height: 60px; padding: 0 28px; font-size: 13px; --notch: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link-arrow { display: inline-flex; gap: 10px; align-items: center; font: 500 12.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid currentColor; }
.link-arrow:hover .arr { transform: translateX(5px); }
.link-arrow .arr { transition: transform .35s var(--e-spring); }

/* ─────────────────────────── Шапка ─────────────────────────── */

.hdr {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  height: var(--hdr);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: transform .45s var(--e-out), background .35s, color .35s, border-color .35s;
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
}
.hdr.is-night { background: color-mix(in srgb, var(--night) 88%, transparent); color: var(--moon); border-color: var(--moon-line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__nav { display: flex; gap: 6px; }
.hdr__nav a {
  position: relative;
  padding: 10px 14px;
  font: 500 12px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
}
.hdr__nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--e-out);
}
.hdr__nav a:hover::after, .hdr__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr__act { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.hdr .btn--ghost { box-shadow: inset 0 0 0 1.5px currentColor; }

.login { position: relative; }
.login__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 320px;
  padding: 8px;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .3s var(--e-out), visibility 0s .3s;
}
.login.is-open .login__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--e-out); }
.login__menu a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 12px; text-decoration: none; }
.login__menu a:hover { background: var(--paper-2); }
.login__menu i { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 12px var(--f-mono); font-style: normal; }
.login__menu a:nth-child(2) i { background: var(--fire); color: var(--ink); }
.login__menu b { font: 700 14px/1.2 var(--f-body); }
.login__menu span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }

.lang { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; font: 600 11.5px/1 var(--f-mono); text-decoration: none; border: 1.5px solid transparent; transition: border-color .2s, color .2s; }
.lang:hover { border-color: currentColor; color: var(--fire-deep); }
.hdr.is-night .lang:hover { color: var(--fire); }
.drawer .lang-row { display: flex; gap: 8px; margin-top: 18px; }
.drawer .lang-row a { flex: 1; text-align: center; padding: 14px; border: 1.5px solid rgba(241, 236, 227, .3); font: 600 13px var(--f-mono); text-decoration: none; }
.drawer .lang-row a[aria-current="true"] { background: var(--paper); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .35s var(--e-out), top .35s var(--e-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed;
  inset: var(--hdr) 0 0 0;
  z-index: 99;
  background: var(--ink);
  color: var(--paper);
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--e-out);
  overflow-y: auto;
}
.menu-open .drawer { clip-path: inset(0 0 0 0); }
.drawer a.big { font: 800 clamp(30px, 9vw, 46px)/1.1 var(--f-display); letter-spacing: -.04em; text-decoration: none; padding: 6px 0; border-bottom: 1px solid rgba(241, 236, 227, .12); display: flex; justify-content: space-between; align-items: baseline; }
.drawer a.big small { font: 500 11px var(--f-mono); color: var(--fire); }
.drawer .drawer__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 28px; }
.drawer .btn--ghost { color: var(--paper); }

/* ─────────────────────────── Появи на скролі ─────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--e-out), transform 1.1s var(--e-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--e-out); transition-delay: calc(var(--wi) * 45ms + var(--d, 0s)); }
.words.is-in .w > span { transform: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--fire); clip-path: polygon(0 0, 100% 50%, 0 100%); }

.h2 { font-size: clamp(34px, 5.4vw, 84px); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-3); max-width: 38em; }

/* Рваний край чека між секціями. */
.torn-top { position: relative; }
.torn-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -13px;
  height: 14px;
  background: inherit;
  -webkit-mask: linear-gradient(-45deg, #000 7px, transparent 0) 0 0 / 14px 14px repeat-x, linear-gradient(45deg, #000 7px, transparent 0) 0 0 / 14px 14px repeat-x;
  mask: linear-gradient(-45deg, #000 7px, transparent 0) 0 0 / 14px 14px repeat-x, linear-gradient(45deg, #000 7px, transparent 0) 0 0 / 14px 14px repeat-x;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  transform: scaleY(-1);
}

/* ─────────────────────────── Перший екран ─────────────────────────── */

.hero { position: relative; padding: calc(var(--hdr) + clamp(18px, 3vw, 36px)) 0 0; overflow: clip; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.hero__meta span:nth-child(2) { color: var(--fire-deep); }
.hero__title { margin-top: clamp(22px, 3.2vw, 44px); font-size: clamp(34px, 7.1vw, 124px); line-height: .94; letter-spacing: -.05em; }
.hero__title .line { display: block; }
.hero__title .line:nth-child(2) { padding-left: clamp(0px, 9vw, 150px); }
.chaos { display: inline-block; color: var(--fire); cursor: default; white-space: nowrap; }
.chaos .ch { display: inline-block; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0)); transition: transform .7s var(--e-spring); will-change: transform; }
.hero__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: start; margin-top: clamp(26px, 3vw, 44px); }
.hero__copy { display: grid; gap: 26px; padding-bottom: 40px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero__facts b { display: block; font: 800 22px/1.1 var(--f-display); letter-spacing: -.03em; }
.hero__facts span { font: 500 11px/1.3 var(--f-mono); text-transform: uppercase; color: var(--ink-3); }

.stage { position: relative; height: clamp(380px, 44vw, 660px); }
.stack-wrap { position: absolute; inset: 0; perspective: 2400px; perspective-origin: 50% 20%; }
.stack {
  --rx: 56deg;
  --rz: -34deg;
  --gap: 84px;
  --tx: 0deg;
  --ty: 0deg;
  position: absolute;
  left: 55%;
  top: 47%;
  width: min(640px, 46vw);
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(calc(var(--rx) + var(--ty))) rotateZ(calc(var(--rz) + var(--tx)));
  will-change: transform;
}
.stack__layer {
  position: absolute;
  inset: 0;
  margin: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * var(--gap)));
  transition: transform .9s var(--e-out);
}
.stack__layer img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), -30px 40px 60px rgba(20, 18, 16, .28); }
.stack__layer::after { content: ""; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 40%); pointer-events: none; }
.stage__legend { position: absolute; z-index: 4; right: 0; top: -34px; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.stage__legend li { display: block; }
.stage__legend button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 12px 0 0; border: 0; background: var(--paper); color: var(--ink); font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(20, 18, 16, .35); transition: transform .35s var(--e-spring), box-shadow .3s; }
.stage__legend button:hover { transform: translateX(-6px); box-shadow: 0 12px 26px -10px rgba(20, 18, 16, .5); }
.stage__legend b { padding: 7px 9px; background: var(--ink); color: var(--paper); font-weight: 500; transition: background .3s, color .3s; }
.stage__legend button[aria-pressed="true"] b { background: var(--fire); color: var(--ink); }
.stack__layer { cursor: pointer; }
.stack__layer.is-rising { transition: transform .45s var(--e-out); transform: translateZ(calc(var(--i) * var(--gap) + 90px)); }

/* Касовий чек, що друкує події зміни. */
.receipt {
  --paper-c: #FCFAF4;
  position: absolute;
  z-index: 5;
  left: -4px;
  bottom: 18px;
  width: 290px;
  padding: 18px 18px 8px;
  background: var(--paper-c);
  color: var(--ink);
  font: 400 11px/1.55 var(--f-mono);
  transform: rotate(-4deg);
  box-shadow: 0 30px 50px -20px rgba(20, 18, 16, .45), 0 2px 0 rgba(20, 18, 16, .06);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .04));
}
.receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 10px;
  background: linear-gradient(-45deg, transparent 5px, var(--paper-c) 0) 0 0 / 10px 10px repeat-x, linear-gradient(45deg, transparent 5px, var(--paper-c) 0) 0 0 / 10px 10px repeat-x;
}
.receipt__head { text-align: center; padding-bottom: 10px; border-bottom: 1px dashed rgba(20, 18, 16, .4); line-height: 1.5; }
.receipt__head b { display: block; font: 700 13px/1.2 var(--f-mono); letter-spacing: .04em; }
.receipt__lines { list-style: none; margin: 0; padding: 8px 0 4px; height: 196px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.receipt__lines li { display: grid; grid-template-columns: 42px 1fr; gap: 6px; padding: 3px 0; animation: print .5s steps(6) both; }
.receipt__lines li time { color: var(--mute); }
.receipt__lines li.ok span::after { content: " ✓"; color: var(--basil); }
.receipt__lines li.warn time { color: var(--fire-deep); }
.receipt__foot { display: flex; justify-content: space-between; padding: 8px 0 6px; border-top: 1px dashed rgba(20, 18, 16, .4); }
.receipt__foot i { font-style: normal; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fire); margin-right: 6px; animation: blink 1.2s steps(2) infinite; }
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 50% { opacity: .15; } }

/* ─────────────────────────── Екран, що вирівнюється ─────────────────────────── */

.unfold { position: relative; height: 240vh; background: var(--paper); }
.unfold__pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; perspective: 2000px; background: color-mix(in srgb, var(--night) calc(var(--d, 0) * 100%), var(--paper)); }
.unfold__screen {
  --p: 0;
  position: relative;
  width: min(1180px, 88vw, calc((100vh - 230px) * 1.9));
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform:
    translateY(calc((1 - var(--p)) * 8vh - var(--p) * 7vh))
    rotateX(calc((1 - var(--p)) * 58deg))
    rotateZ(calc((1 - var(--p)) * -32deg))
    scale(calc(.55 + var(--p) * .29));
  will-change: transform;
}
.unfold__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 60px 120px -30px rgba(0, 0, 0, .7); }
.unfold__glow { position: absolute; inset: -12% -8%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 75, 31, calc(var(--p) * .45)), transparent 70%); filter: blur(30px); }
.unfold__caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(18px, 4vh, 44px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  color: var(--moon);
  opacity: var(--c, 0);
  transform: translateY(calc((1 - var(--c, 0)) * 20px));
}
.unfold__caption h2 { font-size: clamp(26px, 3.3vw, 52px); max-width: 13em; }
.unfold__caption p { max-width: 26em; color: var(--moon-dim); font-size: 15px; }
.unfold__hint { position: absolute; top: calc(var(--hdr) + 28px); left: 50%; transform: translateX(-50%); color: var(--ink-3); opacity: calc(1 - var(--p) * 3); }

/* ─────────────────────────── Табло ─────────────────────────── */

.board-sec { padding: clamp(80px, 11vw, 150px) 0 clamp(90px, 12vw, 160px); }
.board-sec__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.board {
  --cw: 30px;
  position: relative;
  padding: clamp(18px, 2.6vw, 34px);
  background: #0A0908;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 50px 100px -40px rgba(0, 0, 0, .9);
  transform: perspective(1600px) rotateX(var(--bx, 0deg)) rotateY(var(--by, 0deg));
  transition: transform .6s var(--e-out);
}
.board::before, .board::after { content: ""; position: absolute; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6d6964, #2b2926); }
.board::before { left: 12px; }
.board::after { right: 12px; }
.board__title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--ember); }
.board__title span:last-child { color: var(--moon-dim); }
.board__rows { display: grid; gap: calc(var(--cw) * .28); }
.board__row { display: flex; gap: calc(var(--cw) * .1); }
.flap {
  position: relative;
  flex: none;
  width: var(--cw);
  height: calc(var(--cw) * 1.46);
  perspective: 240px;
  font: 700 calc(var(--cw) * .82)/1 var(--f-mono);
  color: #F3ECE0;
}
.flap > span {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  overflow: hidden;
  background: linear-gradient(#2A2723, #1E1C19);
  border-radius: 3px 3px 0 0;
  backface-visibility: hidden;
}
.flap > span > i { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font-style: normal; }
.flap .t, .flap .ft { top: 0; }
.flap .b, .flap .fb { bottom: 0; border-radius: 0 0 3px 3px; background: linear-gradient(#1E1C19, #171512); }
.flap .b > i, .flap .fb > i { top: -100%; }
.flap .t > i, .flap .ft > i { top: 0; }
.flap .ft { transform-origin: 50% 100%; z-index: 2; }
.flap .fb { transform-origin: 50% 0; z-index: 2; transform: rotateX(90deg); }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #070605; z-index: 3; }
.flap.go .ft { animation: flapTop var(--fs, 90ms) ease-in forwards; }
.flap.go .fb { animation: flapBot var(--fs, 90ms) ease-out var(--fs, 90ms) forwards; }
.flap.hot { color: var(--fire); }
.flap.dim { color: #7E766B; }
@keyframes flapTop { to { transform: rotateX(-90deg); } }
@keyframes flapBot { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.board__note { margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; color: var(--moon-dim); }

/* ─────────────────────────── Одна зміна ─────────────────────────── */

.day { --sky: var(--paper); --sky-ink: var(--ink); position: relative; background: var(--sky); color: var(--sky-ink); }
.day.is-dark { --line-c: var(--moon-line); }
.day__intro { padding: clamp(90px, 11vw, 150px) 0 20px; }
.day__grid { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(24px, 5vw, 80px); }
.day__steps { padding-bottom: 20vh; }
.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 8vh 0; opacity: .28; transition: opacity .5s; }
.step.is-active { opacity: 1; }
.step__time { font: 700 clamp(40px, 5vw, 76px)/1 var(--f-mono); letter-spacing: -.04em; }
.step__time small { font-size: .3em; letter-spacing: .02em; vertical-align: top; margin-left: 10px; color: var(--fire); }
.step h3 { font-size: clamp(26px, 2.8vw, 42px); }
.step p { font-size: 17px; max-width: 30em; opacity: .82; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 11px; font: 500 11px/1 var(--f-mono); text-transform: uppercase; border: 1.2px solid currentColor; opacity: .8; }
.step__shot { display: none; }
.day__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.sky { position: relative; height: 90px; }
.sky svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sky__arc { fill: none; stroke: currentColor; stroke-opacity: .28; stroke-width: 1.5; stroke-dasharray: 3 7; }
.sky__body { transition: fill .4s; }
.sky__clock { position: absolute; right: 0; top: 0; font: 700 clamp(24px, 2.4vw, 34px)/1 var(--f-mono); letter-spacing: -.03em; }
.device {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 10px;
  background: #0B0A09;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 50px 90px -30px rgba(20, 18, 16, .55);
  transform: perspective(2000px) rotateY(-9deg) rotateX(3deg);
  transform-style: preserve-3d;
}
.device__screens { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: #111; }
.device__screens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transform: scale(1.04) translateX(3%);
  transition: opacity .7s var(--e-out), transform 1s var(--e-out);
}
.device__screens img.is-active { opacity: 1; transform: none; }
.device__label { position: absolute; left: 22px; bottom: -44px; display: flex; gap: 10px; align-items: center; }
.device__label i { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); }

/* ─────────────────────────── Помічник ─────────────────────────── */

.ask { padding: clamp(90px, 12vw, 170px) 0; }
.ask__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.ask__copy { display: grid; gap: 24px; }
.chat { position: relative; padding: clamp(18px, 2.4vw, 30px); background: var(--night-2); border: 1px solid var(--moon-line); border-radius: 22px; display: grid; gap: 16px; min-height: 420px; align-content: start; }
.chat__bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--moon-line); color: var(--moon-dim); }
.chat__bar b { color: var(--moon); font: 600 14px var(--f-body); text-transform: none; letter-spacing: 0; display: flex; gap: 10px; align-items: center; }
.chat__bar b::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: conic-gradient(from 200deg, var(--fire), var(--ember), var(--fire)); }
.bubble-q { justify-self: end; max-width: 86%; padding: 12px 16px; background: var(--fire); color: var(--ink); border-radius: 16px 16px 4px 16px; font-weight: 500; min-height: 46px; }
.bubble-q .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.answer { display: grid; gap: 12px; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--e-out); }
.answer.is-in { opacity: 1; transform: none; }
.answer p { color: #D7CFC3; font-size: 15.5px; }
.answer table { width: 100%; border-collapse: collapse; font-size: 14px; }
.answer th { text-align: left; font: 500 10.5px var(--f-mono); text-transform: uppercase; color: var(--moon-dim); padding: 9px 10px; border-bottom: 1px solid var(--moon-line); }
.answer td { padding: 11px 10px; border-bottom: 1px solid var(--moon-line); }
.answer td:last-child { font-family: var(--f-mono); color: var(--ember); }
.answer tr { opacity: 0; transform: translateX(-8px); transition: opacity .5s, transform .5s var(--e-out); transition-delay: calc(var(--r) * 180ms + 300ms); }
.answer.is-in tr { opacity: 1; transform: none; }
.followups { display: flex; flex-wrap: wrap; gap: 8px; }
.followups span { padding: 8px 12px; border: 1px solid rgba(31, 157, 107, .5); color: #7FD8B2; border-radius: 999px; font-size: 13px; }
.chat__foot { margin-top: 4px; color: var(--moon-dim); }

/* ─────────────────────────── Рейка з чеками ─────────────────────────── */

.rail { position: relative; }
.rail__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3vh, 34px); padding-top: calc(var(--hdr) * .6); transform-origin: 50% 0; }
.rail__head .h2 { font-size: clamp(30px, 3.7vw, 58px); }
.rail__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.rail__count { font: 700 clamp(40px, 5vw, 70px)/1 var(--f-mono); color: var(--fire); letter-spacing: -.05em; }
.rail__count small { font-size: .32em; color: var(--moon-dim); letter-spacing: 0; }
.rail__stage { position: relative; }
.rail__bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 14px;
  background: linear-gradient(#A29E98, #5E5A55 45%, #2E2B28);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
  z-index: 2;
}
.rail__track { display: flex; gap: clamp(18px, 2.2vw, 30px); padding: 6px var(--gutter) 30px; will-change: transform; transform: translate3d(var(--x, 0px), 0, 0); }
.ticket {
  --tp: #FBF7EE;
  position: relative;
  flex: 0 0 clamp(260px, 21vw, 310px);
  padding: 26px 18px 18px;
  background: var(--tp);
  color: var(--ink);
  font: 400 11.5px/1.5 var(--f-mono);
  transform-origin: 50% -6px;
  transform: rotate(var(--swing, 0deg));
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .65);
}
.ticket::before { content: ""; position: absolute; left: 50%; top: -12px; width: 46px; height: 26px; margin-left: -23px; background: linear-gradient(#C9C5BF, #7D7973); border-radius: 4px 4px 6px 6px; box-shadow: 0 3px 6px rgba(0, 0, 0, .35); z-index: 1; }
.ticket::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 10px;
  background: linear-gradient(-45deg, transparent 5px, var(--tp) 0) 0 0 / 10px 10px repeat-x, linear-gradient(45deg, transparent 5px, var(--tp) 0) 0 0 / 10px 10px repeat-x;
}
.ticket__top { display: flex; justify-content: space-between; font-weight: 700; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.ticket__top span:last-child { color: var(--fire-deep); }
.ticket h3 { font: 800 19px/1.12 var(--f-display); letter-spacing: -.03em; margin: 12px 0 8px; text-transform: none; }
.ticket ul { list-style: none; margin: 0; padding: 0 0 12px; border-bottom: 1px dashed rgba(20, 18, 16, .45); }
.ticket li { display: flex; gap: 10px; }
.ticket li::before { content: "1×"; color: var(--mute); }
.ticket__shot { margin: 12px 0 10px; aspect-ratio: 16 / 9; overflow: hidden; border: 1.5px solid var(--ink); filter: grayscale(.2) contrast(1.05); }
.ticket__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ticket__plans { display: flex; gap: 6px; flex-wrap: wrap; }
.ticket__plans span { padding: 4px 7px; border: 1.2px solid var(--ink); font-size: 10.5px; text-transform: uppercase; }
.ticket__plans span.off { opacity: .28; text-decoration: line-through; }
.ticket--core { --tp: #FFE3D6; }
.ticket--ai { --tp: #1B1917; color: var(--moon); }
.ticket--ai .ticket__top, .ticket--ai .ticket__shot, .ticket--ai .ticket__plans span { border-color: var(--moon); }
.ticket--ai ul { border-color: rgba(239, 232, 220, .4); }
.rail__hint { display: flex; justify-content: space-between; color: var(--moon-dim); }
.rail__progress { position: relative; flex: 1; max-width: 360px; height: 2px; background: var(--moon-line); margin-left: 24px; align-self: center; }
.rail__progress i { position: absolute; inset: 0; background: var(--fire); transform-origin: left; transform: scaleX(var(--rp, 0)); }

/* Аркуш, що наїжджає на закріплену секцію. */
.sheet { position: relative; z-index: 3; border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0; box-shadow: 0 -40px 80px -30px rgba(0, 0, 0, .55); }

/* ─────────────────────────── Бренди ─────────────────────────── */

.brands { padding: clamp(90px, 11vw, 150px) 0; background: var(--paper); }
.brands__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.brands__copy { display: grid; gap: 22px; }
.compare { --pos: 50%; position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--ink), 18px 18px 0 var(--ink); touch-action: pan-y; user-select: none; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; pointer-events: none; }
.compare__top { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font: 700 14px var(--f-mono); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.compare__tag { position: absolute; top: 16px; padding: 8px 12px; font: 600 11px/1 var(--f-mono); text-transform: uppercase; }
.compare__tag--a { left: 16px; background: #E8622C; color: #fff; }
.compare__tag--b { right: 16px; background: #1F9D6B; color: #fff; }
.brands__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.brands__list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.brands__list b { font: 500 12px var(--f-mono); color: var(--fire-deep); }

/* ─────────────────────────── Телефони ─────────────────────────── */

.phones-sec { padding: clamp(60px, 8vw, 120px) 0 clamp(90px, 12vw, 160px); background: var(--paper-2); overflow: clip; }
.phones-sec__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.phones { --f: 0; position: relative; height: clamp(460px, 48vw, 640px); perspective: 1800px; }
.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(150px, 13.5vw, 200px);
  aspect-ratio: 390 / 844;
  margin: 0;
  padding: 8px;
  background: #0B0A09;
  border-radius: 34px;
  box-shadow: 0 0 0 1.5px #3A3632, 0 50px 80px -30px rgba(20, 18, 16, .6);
  transform: translate(-50%, -50%) translateX(calc(var(--k) * var(--f) * 92%)) translateZ(calc(var(--f) * (1 - var(--k) * var(--k)) * 60px)) rotateY(calc(var(--k) * var(--f) * -18deg)) rotateZ(calc(var(--k) * (1 - var(--f)) * 6deg));
  will-change: transform;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 30%; height: 16px; margin-left: -15%; border-radius: 10px; background: #0B0A09; z-index: 1; }
.phone figcaption { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); white-space: nowrap; font: 500 11px var(--f-mono); text-transform: uppercase; opacity: var(--f); }
.phones-sec ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.phones-sec li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 16px 0; border-top: 1.5px solid var(--ink); }
.phones-sec li b { font: 700 13px var(--f-mono); }

/* ─────────────────────────── Меню тарифів ─────────────────────────── */

.menu-sec { position: relative; padding: clamp(90px, 11vw, 150px) 0; background: var(--fire); color: var(--ink); overflow: clip; }
.menu-sec__head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: clamp(36px, 5vw, 64px); }
.menu-sec__head .h2 { max-width: 11em; }
.menu-card {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 60px) clamp(18px, 3vw, 44px) clamp(24px, 3vw, 40px);
  background: var(--card);
  color: var(--ink);
  outline: 1.5px solid var(--ink);
  outline-offset: -12px;
  box-shadow: 0 60px 100px -40px rgba(60, 12, 0, .55);
}
.menu-card__title { text-align: center; display: grid; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); }
.menu-card__title h3 { font-size: clamp(30px, 4vw, 54px); }
.menu-card__title span { color: var(--ink-3); }
.dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; border-top: 1.5px solid var(--ink); }
.dish { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 30px) clamp(24px, 2.6vw, 34px); }
.dish + .dish { border-left: 1.5px dashed rgba(20, 18, 16, .35); }
.dish__top { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); }
.dish__name { font: 800 clamp(28px, 2.7vw, 40px)/1 var(--f-display); letter-spacing: -.04em; }
.dish__price { display: flex; align-items: flex-end; gap: 8px; padding-bottom: 16px; border-bottom: 2.5px dotted currentColor; }
.dish__price b { font: 800 clamp(36px, 3.6vw, 54px)/.9 var(--f-display); letter-spacing: -.05em; }
.dish__price > span { font: 800 clamp(22px, 2vw, 30px)/1 var(--f-display); }
.dish__price small { margin-left: auto; font: 500 10.5px/1.35 var(--f-mono); text-transform: uppercase; text-align: right; color: var(--ink-3); }
.dish__lead { font-size: 15.5px; color: var(--ink-2); min-height: 3.1em; }
.dish__comp { color: var(--fire-deep); }
.dish__list { list-style: none; margin: -6px 0 0; padding: 0; display: grid; }
.dish__list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(20, 18, 16, .12); font-size: 15px; }
.dish__list li::before { content: "+"; font: 700 14px/1.5 var(--f-mono); color: var(--fire-deep); }
.dish__cta { margin-top: auto; width: 100%; }
.dish__list li.dish__int { flex-wrap: wrap; row-gap: 8px; }
.dish__int .ilogos { flex-basis: 100%; padding-left: 20px; }
/* Інтеграції — типографські значки сервісів у стилі сайту. */
.ilogos { display: flex; flex-wrap: wrap; gap: 6px; }
.ilogo { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px 0 3px; border: 1.5px solid currentColor; font: 800 12px/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.ilogo i { width: 20px; height: 20px; display: grid; place-items: center; font: 800 10.5px/1 var(--f-display); font-style: normal; color: #fff; background: var(--mark, var(--ink)); }
.ilogo small { margin-left: 2px; font: 500 9.5px/1 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; opacity: .6; }
.ilogo--poster { --mark: var(--fire-deep); }
.ilogo--work { --mark: #2A2723; }
.ilogo--robota { --mark: var(--basil); }
.dish--rec .ilogo--work, .night .ilogo--work { --mark: #5B544C; }
.ticket__logos { display: grid; gap: 8px; margin: 14px 0 12px; }
.ticket__logos .ilogo { height: 46px; padding: 0 12px 0 6px; gap: 10px; font-size: 16px; }
.ticket__logos .ilogo i { width: 32px; height: 32px; font-size: 15px; }
.dish--rec { background: var(--ink); color: var(--paper); margin: -22px 0; padding-top: calc(clamp(22px, 2.4vw, 32px) + 22px); padding-bottom: calc(clamp(24px, 2.6vw, 34px) + 22px); box-shadow: 0 30px 60px -20px rgba(20, 18, 16, .55); z-index: 1; }
.dish--rec + .dish { border-left: 0; }
.dish--rec .dish__top, .dish--rec .dish__price small { color: var(--paper-3); }
.dish--rec .dish__lead { color: var(--paper-2); }
.dish--rec .dish__comp, .dish--rec .dish__list li::before { color: var(--fire); }
.dish--rec .dish__list li { border-color: rgba(241, 236, 227, .14); }
.dish .btn--ghost { color: var(--ink); }
.stamp {
  position: absolute;
  z-index: 2;
  right: -44px;
  top: -70px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--card);
  color: var(--fire-deep);
  box-shadow: 0 10px 24px -10px rgba(20, 18, 16, .5);
  transform: rotate(-16deg) scale(var(--s, 1));
  opacity: var(--o, 1);
  pointer-events: none;
}
.stamp svg { width: 100%; height: 100%; }
.stamp text { font: 700 11.5px var(--f-mono); letter-spacing: .14em; fill: currentColor; }
.stamp.is-waiting { --s: 2.6; --o: 0; }
.stamp.is-stamped { animation: stampIn .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stampIn { 0% { --s: 2.6; opacity: 0; } 60% { opacity: 1; } 100% { --s: 1; opacity: .92; } }
@property --s { syntax: "<number>"; inherits: false; initial-value: 1; }
.menu-card.thud { animation: thud .35s var(--e-out); }
@keyframes thud { 30% { transform: translateY(4px) rotate(-.25deg); } }
.menu-card__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; padding-top: 22px; border-top: 3px double var(--ink); }
.menu-card__foot div { display: grid; gap: 4px; }
.menu-card__foot b { font: 700 14px var(--f-body); }
.menu-card__foot span { font-size: 13.5px; color: var(--ink-3); }
.menu-sec__more { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(30px, 4vw, 50px); }

/* ─────────────────────────── Дзвоник ─────────────────────────── */

.bell-sec { position: relative; padding: clamp(100px, 13vw, 190px) 0 clamp(70px, 9vw, 120px); text-align: center; overflow: clip; }
.bell-sec h2 { font-size: clamp(40px, 8vw, 132px); letter-spacing: -.055em; }
.bell-sec .lead { margin: 22px auto 0; }
.bell { position: relative; display: inline-grid; place-items: center; width: clamp(170px, 18vw, 230px); aspect-ratio: 1; margin: clamp(30px, 5vw, 60px) auto 10px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bell svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .5)); transition: transform .2s var(--e-out); }
.bell:hover svg { transform: translateY(-3px); }
.bell .bell__btn { transition: transform .12s; transform-origin: 100px 40px; }
.bell.ding .bell__btn { transform: translateY(9px); }
.bell.ding svg { animation: wobble .6s var(--e-out); }
.bell__ring { position: absolute; inset: 10%; border-radius: 50%; border: 2px solid var(--fire); opacity: 0; pointer-events: none; }
.bell.ding .bell__ring { animation: ring 1s var(--e-out) forwards; }
.bell.ding .bell__ring:nth-of-type(2) { animation-delay: .15s; }
.bell.ding .bell__ring:nth-of-type(3) { animation-delay: .3s; }
.bell__label { display: block; margin-top: 10px; color: var(--moon-dim); }
@keyframes ring { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes wobble { 20% { transform: rotate(-4deg); } 45% { transform: rotate(3deg); } 70% { transform: rotate(-1.5deg); } }
.bell-sec__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ─────────────────────────── Підвал-чек ─────────────────────────── */

.foot { padding: 0 0 40px; }
.foot__receipt { position: relative; max-width: 760px; margin: 0 auto; padding: 34px clamp(20px, 4vw, 44px) 26px; background: #FCFAF4; color: var(--ink); font: 400 12.5px/1.7 var(--f-mono); }
.foot__receipt::before, .foot__receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: linear-gradient(-45deg, transparent 5px, #FCFAF4 0) 0 0 / 10px 10px repeat-x, linear-gradient(45deg, transparent 5px, #FCFAF4 0) 0 0 / 10px 10px repeat-x; }
.foot__receipt::before { top: -10px; transform: scaleY(-1); }
.foot__receipt::after { bottom: -10px; }
.foot__center { text-align: center; }
.foot__center .logo { font-size: 24px; margin-bottom: 6px; }
.foot__rule { border: 0; border-top: 1px dashed rgba(20, 18, 16, .45); margin: 16px 0; }
.foot__row { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; padding: 3px 0; }
a.foot__row:hover { color: var(--fire-deep); }
.foot__row .lead-dots { flex: 1; border-bottom: 1.5px dotted rgba(20, 18, 16, .35); transform: translateY(-6px); }
.foot__total { display: flex; justify-content: space-between; font: 700 16px var(--f-mono); }
.foot__barcode { height: 46px; margin: 18px auto 6px; max-width: 320px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.foot__legal { margin-top: 34px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--moon-dim); }

/* ─────────────────────────── Сторінка цін ─────────────────────────── */

.page-hero { padding: calc(var(--hdr) + clamp(40px, 6vw, 90px)) 0 clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(38px, 6.6vw, 112px); letter-spacing: -.05em; max-width: 13em; }
.page-hero .lead { margin-top: 26px; }
.page-hero__row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }

.calc { padding: clamp(80px, 10vw, 140px) 0; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(30px, 6vw, 100px); align-items: start; }
.calc__controls { display: grid; gap: 30px; }
.calc .h2 { font-size: clamp(30px, 3.2vw, 50px); }
.field-l { display: grid; gap: 12px; }
.field-l > span { font: 500 12px var(--f-mono); text-transform: uppercase; color: var(--moon-dim); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--moon); }
.seg button { padding: 16px 12px; border: 0; background: none; cursor: pointer; text-align: left; display: grid; gap: 4px; border-right: 1.5px solid var(--moon); transition: background .2s, color .2s; }
.seg button:last-child { border-right: 0; }
.seg button b { font: 800 18px var(--f-display); letter-spacing: -.03em; }
.seg button span { font: 500 12px var(--f-mono); color: var(--moon-dim); }
.seg button[aria-pressed="true"] { background: var(--fire); color: var(--ink); }
.seg button[aria-pressed="true"] span { color: var(--ink-2); }
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; border: 1.5px solid var(--moon); max-width: 360px; }
.stepper button { border: 0; background: none; cursor: pointer; font: 400 26px/1 var(--f-mono); height: 64px; }
.stepper button:hover { background: var(--moon); color: var(--night); }
.stepper output { display: grid; place-items: center; font: 700 30px/1 var(--f-mono); border-left: 1.5px solid var(--moon); border-right: 1.5px solid var(--moon); }
.calc__note { color: var(--moon-dim); font-size: 14.5px; max-width: 34em; }
.printer { position: relative; }
.printer__slot { height: 22px; border-radius: 11px; background: #050404; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .08); position: relative; z-index: 2; }
.printer__paper { overflow: hidden; margin: -11px 14px 0; padding-top: 11px; }
.bill { --paper-c: #FCFAF4; position: relative; padding: 24px 22px 18px; background: var(--paper-c); color: var(--ink); font: 400 12.5px/1.75 var(--f-mono); margin-bottom: 12px; }
.bill::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 5px, var(--paper-c) 0) 0 0 / 10px 10px repeat-x, linear-gradient(45deg, transparent 5px, var(--paper-c) 0) 0 0 / 10px 10px repeat-x; }
.bill.printing { animation: feed .8s steps(10) both; }
@keyframes feed { from { transform: translateY(-100%); } to { transform: none; } }
.bill__head { text-align: center; }
.bill__head b { display: block; font-size: 15px; letter-spacing: .06em; }
.bill hr { border: 0; border-top: 1px dashed rgba(20, 18, 16, .45); margin: 12px 0; }
.bill__row { display: flex; gap: 8px; }
.bill__row span:first-child { white-space: nowrap; }
.bill__row i { flex: 1; border-bottom: 1.5px dotted rgba(20, 18, 16, .35); transform: translateY(-6px); }
.bill__row b { font-weight: 700; white-space: nowrap; }
.bill__total { display: flex; justify-content: space-between; font: 700 18px/1.2 var(--f-mono); padding: 4px 0; }
.bill__free { display: flex; justify-content: space-between; color: var(--basil); font-weight: 700; }
.bill__small { color: var(--mute); font-size: 11px; line-height: 1.6; text-align: center; margin-top: 10px; }

.matrix-sec { padding: clamp(80px, 10vw, 140px) 0; }
.matrix { width: 100%; border-collapse: collapse; margin-top: clamp(30px, 4vw, 50px); }
.matrix th, .matrix td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { position: sticky; top: var(--hdr); background: var(--paper); z-index: 2; font: 800 clamp(15px, 1.6vw, 22px)/1.1 var(--f-display); letter-spacing: -.03em; border-bottom: 1.5px solid var(--ink); vertical-align: bottom; }
.matrix thead th small { display: block; font: 500 11px var(--f-mono); letter-spacing: 0; color: var(--ink-3); margin-top: 6px; }
.matrix thead th.rec { color: var(--fire-deep); }
.matrix .grp td { padding-top: 30px; font: 700 12px var(--f-mono); text-transform: uppercase; border-bottom: 1.5px solid var(--ink); }
.matrix .grp td span { color: var(--mute); font-weight: 500; margin-left: 10px; text-transform: none; font-family: var(--f-body); font-size: 13px; }
.matrix td { font-size: 15px; }
.dot-yes { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); position: relative; vertical-align: middle; }
.dot-yes::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dot-no { display: inline-block; width: 12px; height: 2px; background: var(--paper-3); vertical-align: middle; }
.matrix td.rec-col { background: rgba(255, 75, 31, .06); }
.matrix thead th.rec { background: color-mix(in srgb, var(--fire) 7%, var(--paper)); }
.matrix thead th { transition: top .45s var(--e-out); }
.hdr.is-hidden ~ main .matrix thead th { top: 0; }
.matrix__cta td { padding-top: 22px; padding-bottom: 22px; border-bottom: 0; border-top: 1.5px solid var(--ink); font: 700 12px var(--f-mono); text-transform: uppercase; }
.matrix__cta .btn { width: 100%; max-width: 190px; }

.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.faq .h2 { font-size: clamp(30px, 3.1vw, 48px); }
.board-sec__head .h2 { font-size: clamp(32px, 4.4vw, 70px); }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 34px; gap: 20px; align-items: center; padding: 22px 0; font: 700 clamp(17px, 1.6vw, 21px)/1.3 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 34px; height: 34px; border: 1.5px solid var(--ink); position: relative; transition: transform .4s var(--e-spring), background .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); transition: transform .3s; }
.faq details[open] summary i { background: var(--fire); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 60px 24px 0; color: var(--ink-2); font-size: 16.5px; max-width: 44em; }

/* ─────────────────────────── Реєстрація й кабінет ─────────────────────────── */

.split { min-height: 100svh; padding: calc(var(--hdr) + clamp(30px, 5vw, 70px)) 0 clamp(60px, 8vw, 100px); }
.split__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(30px, 6vw, 100px); align-items: start; }
.split__copy { display: grid; gap: 24px; position: sticky; top: calc(var(--hdr) + 40px); }
.split__copy { min-width: 0; }
.split__copy h1 { font-size: clamp(30px, 3.4vw, 54px); letter-spacing: -.045em; }
.steps3 { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps3 li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 0; border-top: 1.5px solid var(--ink); }
.steps3 li::before { content: "0" counter(s); font: 700 13px var(--f-mono); color: var(--fire-deep); padding-top: 3px; }
.steps3 b { display: block; font-size: 17px; }
.steps3 span { color: var(--ink-3); font-size: 15px; }

.order {
  --tp: #FCFAF4;
  position: relative;
  background: var(--tp);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 50px 80px -40px rgba(20, 18, 16, .5), 0 0 0 1.5px var(--ink);
  transform-style: preserve-3d;
}
.order::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 5px, var(--tp) 0) 0 0 / 10px 10px repeat-x, linear-gradient(45deg, transparent 5px, var(--tp) 0) 0 0 / 10px 10px repeat-x; }
.order__top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1.5px solid var(--ink); }
.order__top b { color: var(--fire-deep); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fld { display: grid; gap: 7px; position: relative; }
.fld > span { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.fld input, .fld select {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: rgba(20, 18, 16, .035);
  font: 500 16px var(--f-body);
  color: var(--ink);
  transition: background .2s, border-color .2s;
  appearance: none;
}
.fld input:focus, .fld select:focus { outline: none; background: rgba(255, 75, 31, .07); border-bottom-color: var(--fire); }
.fld.has-error input, .fld.has-error select { border-bottom-color: #C4260B; background: rgba(196, 38, 11, .06); }
.fld__err { color: #B8260C; font-size: 13px; min-height: 0; }
.fld__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 7px; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.fld__head a { color: var(--fire-deep); text-decoration: none; border-bottom: 1px solid currentColor; }
.fld__head a:hover { color: var(--ink); }
.fld__hint { font-size: 12.5px; color: var(--mute); }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-rules span { font: 500 10.5px var(--f-mono); text-transform: uppercase; padding: 4px 7px; border: 1px solid var(--paper-3); color: var(--mute); transition: all .2s; }
.pw-rules span.ok { border-color: var(--basil); color: var(--basil); }
/* Вибір тарифу — як бланк замовлення: рядки з крапками-лідерами, чорна плашка їздить за вибором. */
.plan-slip { position: relative; display: grid; grid-auto-rows: 1fr; border: 1.5px solid var(--ink); background: var(--card); isolation: isolate; }
.plan-slip__glider { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(100% / 3); background: var(--ink); transition: transform .5s var(--e-spring); }
.plan-slip:has(input[value="business"]:checked) .plan-slip__glider { transform: translateY(100%); }
.plan-slip:has(input[value="network"]:checked) .plan-slip__glider { transform: translateY(200%); }
.plan-slip__row { position: relative; display: grid; grid-template-columns: 20px auto minmax(12px, 1fr) auto; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; transition: color .3s; }
.plan-slip__row + .plan-slip__row { border-top: 1px dashed rgba(20, 18, 16, .28); }
.plan-slip__row input { position: absolute; opacity: 0; pointer-events: none; }
.plan-slip__dot { width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.plan-slip__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fire); transform: scale(0); transition: transform .35s var(--e-spring); }
.plan-slip__name { display: grid; gap: 2px; min-width: 0; }
.plan-slip__name b { font: 800 16px/1.1 var(--f-display); letter-spacing: -.03em; }
.plan-slip__name small { font: 500 10.5px/1.3 var(--f-mono); text-transform: uppercase; color: var(--mute); transition: color .3s; }
.plan-slip__lead { align-self: end; margin-bottom: 7px; border-bottom: 2px dotted currentColor; opacity: .35; }
.plan-slip__price { font: 700 15px/1 var(--f-mono); white-space: nowrap; word-spacing: -.35em; }
.plan-slip__price small { font-size: 10.5px; font-weight: 500; word-spacing: 0; margin-left: 4px; opacity: .7; }
.plan-slip__row:has(input:checked) { color: var(--paper); }
.plan-slip__row:has(input:checked) .plan-slip__name small { color: var(--ember); }
.plan-slip__row:has(input:checked) .plan-slip__dot { border-color: var(--fire); }
.plan-slip__row:has(input:checked) .plan-slip__dot::after { transform: scale(1); }
.plan-slip__row:has(input:focus-visible) { outline: 2px solid var(--fire); outline-offset: -4px; }
.plan-slip__row:not(:has(input:checked)):hover .plan-slip__dot::after { transform: scale(.5); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: grid; gap: 12px; margin-top: 6px; }
.form__submit .btn { width: 100%; }
.form__legal { font-size: 12.5px; color: var(--mute); }
.alert { padding: 14px 16px; border: 1.5px solid #C4260B; background: rgba(196, 38, 11, .06); color: #8E1C06; font-size: 14.5px; }
.alert--ok { border-color: var(--basil); background: rgba(31, 157, 107, .08); color: #0F6B47; }
.done { display: grid; gap: 16px; text-align: left; }
.done h2 { font-size: clamp(28px, 3vw, 40px); }
.done__meta { margin: 0; font: 400 13px/1.7 var(--f-mono); color: var(--ink-2); }
.done__meta b { color: var(--ink); }
.done__actions { display: grid; gap: 12px; justify-items: center; }
.done__actions .btn { width: 100%; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.acc { padding: calc(var(--hdr) + clamp(26px, 4vw, 54px)) 0 clamp(60px, 8vw, 100px); min-height: 100svh; }
.acc__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1.5px solid var(--ink); }
.acc__head h1 { font-size: clamp(30px, 4.6vw, 70px); letter-spacing: -.05em; }
.acc__head .mono { color: var(--ink-3); }
.acc__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; font: 600 11px/1 var(--f-mono); text-transform: uppercase; border: 1.5px solid currentColor; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge--ok { color: var(--basil); }
.badge--warn { color: #C77800; }
.badge--bad { color: #C4260B; }
.badge--info { color: var(--ink-3); }
.acc__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.panel { background: var(--card); box-shadow: 0 0 0 1.5px var(--ink); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 18px; }
.panel h2 { font-size: clamp(22px, 2.2vw, 30px); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel + .panel { margin-top: clamp(20px, 3vw, 40px); }
.big-sum { font: 800 clamp(38px, 4.4vw, 62px)/1 var(--f-display); letter-spacing: -.05em; }
.big-sum small { font-size: .3em; letter-spacing: 0; word-spacing: 0; color: var(--ink-3); margin-left: 10px; }
.lines { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lines th { text-align: left; font: 500 10.5px var(--f-mono); text-transform: uppercase; color: var(--mute); padding: 8px 8px 8px 0; border-bottom: 1.5px solid var(--ink); }
.lines td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td.num, .lines th.num { text-align: right; font-family: var(--f-mono); white-space: nowrap; padding-right: 0; }
.lines tr.off td { color: var(--mute); }
.lines tfoot td { border-bottom: 0; font-weight: 700; padding-top: 14px; }
.plan-opts { display: grid; gap: 10px; }
.plan-opt { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 16px; border: 1.5px solid var(--ink); align-items: center; }
.plan-opt.is-current { background: var(--ink); color: var(--paper); }
.plan-opt.is-current .mute { color: var(--paper-3); }
.plan-opt b { font: 800 18px var(--f-display); letter-spacing: -.03em; }
.plan-opt .mono { color: var(--ink-3); }
.plan-opt.is-current .mono { color: var(--ember); }
.plan-opt p { grid-column: 1 / -1; font-size: 14px; }
.sub-state { display: grid; gap: 10px; padding: 16px; border-left: 4px solid var(--ink); background: rgba(20, 18, 16, .04); }
.sub-state--ok { border-color: var(--basil); }
.sub-state--warn { border-color: #E39A00; background: rgba(255, 178, 63, .12); }
.sub-state--bad { border-color: #C4260B; background: rgba(196, 38, 11, .06); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--paper-3), var(--paper-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; min-height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 140%); padding: 14px 18px; background: var(--ink); color: var(--paper); font-size: 14.5px; box-shadow: 6px 6px 0 var(--fire); transition: transform .45s var(--e-out); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.login-card { max-width: 520px; }

.e404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--hdr) + 30px) var(--gutter) 60px; }
.e404 h1 { font-size: clamp(90px, 20vw, 280px); letter-spacing: -.06em; color: var(--fire); }
.e404 p { margin: 16px auto 30px; max-width: 30em; }

/* ─────────────────────────── Адаптивність ─────────────────────────── */

@media (max-width: 1100px) {
  .dishes { grid-template-columns: 1fr; }
  .dish + .dish { border-left: 0; border-top: 1.5px dashed rgba(20, 18, 16, .35); }
  .dish--rec { margin: 0 -8px; padding-top: clamp(22px, 2.4vw, 32px); padding-bottom: clamp(24px, 2.6vw, 34px); }
  .dish--rec + .dish { border-top: 0; }
  .dish__lead { min-height: 0; }
  .hdr__nav { display: none; }
  .hdr { grid-template-columns: 1fr auto; }
  .hero__body { grid-template-columns: minmax(0, 1fr); }
  .stage { height: clamp(360px, 70vw, 620px); margin-top: -10px; }
  .stack { width: min(760px, 86vw); left: 52%; }
  .day__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .brands__grid, .phones-sec__grid, .ask__grid { grid-template-columns: minmax(0, 1fr); }
  .calc__grid, .split__grid, .acc__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .split__copy { position: static; }
  .board-sec__head { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --hdr: 60px; }
  body { font-size: 16px; }
  .hdr__act .btn--ghost, .hdr__act .login { display: none; }
  .hdr__act .btn--fire { min-height: 40px; padding: 0 14px; font-size: 11px; --notch: 8px; }
  .burger { display: block; }
  .hero__meta span:nth-child(3) { display: none; }
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
  .hero__facts b { font-size: 18px; }
  .stage { height: auto; display: grid; gap: 10px; padding-bottom: 50px; }
  .stack-wrap { position: relative; inset: auto; height: 78vw; perspective: 1400px; }
  .stack { width: 84vw; left: 50%; top: 50%; --gap: 34px; }
  .stage__legend { position: static; grid-auto-flow: column; justify-content: center; gap: 14px; }
  .stage__legend button { font-size: 10px; gap: 6px; }
  .receipt { position: relative; left: auto; bottom: auto; width: min(320px, 100%); margin: 0 auto; transform: rotate(-2deg); }
  .unfold { height: 190vh; }
  .unfold__screen { width: 92vw; }
  .unfold__caption { flex-direction: column; align-items: start; }
  .day__grid { grid-template-columns: minmax(0, 1fr); }
  .day__pin { display: none; }
  .step { min-height: 0; opacity: 1; padding: 44px 0; }
  .step__shot { display: block; margin-top: 8px; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); border: 6px solid #0B0A09; }
  .rail { height: auto !important; }
  .rail__pin { position: relative; height: auto; padding: 90px 0 70px; }
  .rail__track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 20px; scrollbar-width: none; }
  .rail__track::-webkit-scrollbar { display: none; }
  .ticket { scroll-snap-align: center; flex-basis: 80vw; }
  .rail__bar { top: 14px; }
  .sheet { margin-top: 0 !important; }
  .phones { height: 520px; }
  .phone { width: 170px; }
  .menu-sec__head { flex-direction: column; align-items: start; }
  .menu-card__foot { grid-template-columns: 1fr; }
  .stamp { width: 88px; height: 88px; top: -18px; right: 6px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .answer table { font-size: 12.5px; }
  .answer th, .answer td { padding: 8px 6px; }
  .seg button { padding: 12px 8px; }
  .seg button b { font-size: 14px; }
  .plan-slip__name small { display: none; }
  .matrix-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .matrix { min-width: 560px; }
  .matrix thead th { position: static; }
  .faq details p { padding-right: 0; }
  .foot__legal { flex-direction: column; }
  .board { --cw: 15px; }
}

@media (max-width: 520px) {
  .btn--lg { white-space: normal; text-align: center; line-height: 1.35; padding: 12px 18px; }
  .hdr { gap: 10px; }
  .hdr .logo { font-size: 17px; gap: 8px; }
  .hdr .logo__mark { width: 26px; height: 26px; }
  .hdr__act { gap: 4px; }
  .hdr__act .lang { display: none; }
  .hdr__act .btn--fire { padding: 0 12px; }
  .hero__facts span { font-size: 10px; }
  .hdr__act .btn--fire .long { display: none; }
  .hdr__act .btn--fire .short { display: inline; }
}

@media (max-width: 360px) {
  .hdr__act .btn--fire { padding: 0 10px; font-size: 10.5px; }
  .hdr__act .btn--fire .arr { display: none; }
  .hdr .logo { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .words .w > span { opacity: 1 !important; transform: none !important; }
  .unfold { height: auto; }
  .unfold__pin { position: relative; height: auto; padding: 90px 0; }
  .unfold__screen { --p: 1 !important; }
  .unfold__caption { position: relative; --c: 1 !important; margin-top: 30px; }
}
