/* Vitryna — промо, версія 3.
   Напрям: технологічний продукт × редакційна типографіка × розповідь через сам інтерфейс.
   Без залежностей. Токени → основа → компоненти → секції → рух. */

/* ============ 1. ТОКЕНИ ============ */
:root {
  /* колір: нейтральна основа + один сигнальний акцент; градієнт лише там, де йдеться про Instagram */
  --bg: #f7f7f5;
  --surface: #ffffff;
  --sunken: #efefec;
  --ink: #0b0b0e;
  --ink-2: #4c4c56;
  --ink-3: #686873;
  --line: rgba(11, 11, 14, 0.09);
  --line-2: rgba(11, 11, 14, 0.16);

  --night: #0b0b0e;
  --night-2: #15151a;
  --night-3: #1f1f26;
  --on-night: #f4f4f1;
  --on-night-2: #a5a5b0;
  --line-night: rgba(255, 255, 255, 0.1);

  --accent: #5b45f5;
  --accent-soft: #ecebff;
  --hot: #ff3d7f;
  --ig: linear-gradient(135deg, #ee4436 0%, #e3286d 45%, #6d40f2 100%);
  --ok: #06744a;
  --ok-soft: #e2f6ec;
  --warn: #a55b00;
  --warn-soft: #fff1d6;
  --info: #2f55d4;
  --info-soft: #e6ecff;

  /* тканини для ілюстрацій товарів */
  --sand: #d8c4a3;
  --flax: #ebe3d5;
  --sage: #a9b49a;
  --clay: #c98f73;

  /* типографіка */
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --t-display: clamp(2.5rem, 1.2rem + 5.4vw, 5.5rem);
  --t-h2: clamp(1.9rem, 1.1rem + 3.2vw, 3.5rem);
  --t-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --t-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.75rem;

  /* відступи: шкала 4 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --sec: clamp(72px, 10vw, 152px);

  /* форма */
  --r1: 10px;
  --r2: 16px;
  --r3: 24px;
  --r4: 32px;
  --shadow-1: 0 1px 2px rgba(11, 11, 14, 0.05), 0 8px 24px -12px rgba(11, 11, 14, 0.14);
  --shadow-2: 0 2px 4px rgba(11, 11, 14, 0.04), 0 30px 60px -28px rgba(11, 11, 14, 0.32);

  /* рух */
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --fast: 0.18s;
  --slow: 0.6s;

  --nav-h: 64px;
  --max: 1240px;
  --gut: clamp(20px, 4vw, 40px);
}

/* ============ 2. ОСНОВА ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body) / 1.47 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-night :focus-visible {
  outline-color: #fff;
}
::selection {
  background: var(--ink);
  color: var(--bg);
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gut) * 2);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r1);
  background: var(--ink);
  color: var(--bg);
}
.skip:focus {
  left: 8px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---- типографіка ---- */
.display {
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 34em;
}
.on-night .lead {
  color: var(--on-night-2);
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 var(--t-micro) / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.on-night .label {
  color: var(--on-night-2);
}
.muted {
  color: var(--ink-3);
}
.ig-text {
  background: var(--ig);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- кнопки ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 550;
  font-size: var(--t-small);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--fast),
    border-color var(--fast),
    transform var(--fast) var(--ease),
    box-shadow var(--fast);
}
.btn:active {
  transform: scale(0.97);
}
.btn-lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 1.0625rem;
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover {
  background: #26262e;
  box-shadow: 0 10px 24px -12px rgba(11, 11, 14, 0.7);
}
.btn-line {
  border-color: var(--line-2);
  background: var(--surface);
}
.btn-line:hover {
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(11, 11, 14, 0.06);
}
.btn-paper {
  background: #fff;
  color: var(--ink);
}
.btn-paper:hover {
  background: #e9e9e4;
}
.btn-night-line {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.btn-night-line:hover {
  border-color: #fff;
}
.btn .arr {
  transition: transform var(--fast) var(--ease);
}
.btn:hover .arr {
  transform: translateX(3px);
}

/* ---- статуси ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--sunken);
  color: var(--ink-2);
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-new {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill-paid {
  background: var(--info-soft);
  color: var(--info);
}
.pill-way {
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-done,
.pill-live {
  background: var(--ok-soft);
  color: var(--ok);
}
.pill-plain::before {
  display: none;
}

/* ============ 3. ШАПКА ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(247, 247, 245, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast);
}
.nav.is-stuck {
  border-color: var(--line);
}
.nav-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}
/* знак «V»: золотий трикутник; висота = висота великих літер Manrope (0,72em) × φ */
.brand {
  gap: 0.42em;
}
.brand-mark {
  flex: none;
  height: calc(0.72em * 1.618);
  width: calc(0.72em * 1.618 * 0.6498);
  margin-top: -0.06em;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: var(--s4);
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: var(--t-small);
  color: var(--ink-2);
  text-decoration: none;
  transition:
    color var(--fast),
    background var(--fast);
}
.nav-links a:hover,
.nav-links a.is-here {
  color: var(--ink);
  background: rgba(11, 11, 14, 0.06);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  place-items: center;
}
.nav-burger span,
.nav-burger span::before {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--fast) var(--ease);
}
.nav-burger span::before {
  content: '';
  transform: translateY(6px);
}
.nav-burger[aria-expanded='true'] span {
  transform: translateY(3px) rotate(45deg);
}
.nav-burger[aria-expanded='true'] span::before {
  transform: rotate(-90deg);
}
.sheet {
  display: none;
}

/* ============ 4. ТЕЛЕФОН І ІНТЕРФЕЙС ПРОДУКТУ ============ */
.phone {
  --pw: 296px;
  --ph: 612px;
  position: relative;
  flex: none;
  width: var(--pw);
  height: var(--ph);
  padding: 9px;
  border-radius: 48px;
  background: #101014;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px #2a2a31,
    var(--shadow-2);
  zoom: var(--zoom, 1);
}
.phone::before {
  content: '';
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 50%;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  border-radius: 999px;
  background: #101014;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: #f6f5f8;
  color: #0e0e11;
  font-size: 13px;
  line-height: 1.35;
  isolation: isolate;
}
.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 46px 14px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.45s var(--ease),
    transform 0.55s var(--ease),
    visibility 0s 0.45s;
}
.view.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.45s var(--ease) 0.08s,
    transform 0.55s var(--ease) 0.08s;
}
.view-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 76px;
}

.ui-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.ui-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ig);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ui-top b {
  display: block;
  font-size: 13px;
  line-height: 1.15;
}
.ui-top small {
  color: #676772;
  font-size: 11px;
}
.ui-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9e8ee;
}
.ui-ic:first-of-type {
  margin-left: auto;
}
.ui-ic svg,
.ui-qa svg,
.tabbar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ui-sub {
  font-size: 11px;
  color: #676772;
}
.ui-rev {
  text-align: center;
  padding: 6px 0 2px;
}
.ui-rev small {
  color: #62626d;
  font-size: 11.5px;
}
.ui-rev strong {
  display: block;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.ui-rev strong i {
  font-style: normal;
  font-weight: 500;
  color: #85858f;
  font-size: 0.6em;
  margin-left: 3px;
}
.ui-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border-radius: 11px;
  background: #e6e5ec;
}
.ui-seg button {
  min-height: 36px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: #54545e;
  transition:
    background var(--fast),
    color var(--fast),
    box-shadow var(--fast);
}
.ui-seg button[aria-pressed='true'],
.ui-seg button[aria-selected='true'] {
  background: #fff;
  color: #0e0e11;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.ui-qas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 550;
}
.ui-qa {
  display: grid;
  justify-items: center;
  gap: 5px;
}
.ui-qa i {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.ui-qa.is-plus i {
  background: var(--ig);
  color: #fff;
  box-shadow: 0 8px 16px -6px rgba(255, 61, 127, 0.6);
}
.ui-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font: 700 11px/17px var(--sans);
  font-style: normal;
  text-align: center;
}
.ui-card {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ui-card .ui-h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ui-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ui-row + .ui-row {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #efeef3;
}
.ui-row > div {
  flex: 1;
  min-width: 0;
}
.ui-row b {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-row small {
  display: block;
  font-size: 11px;
  color: #676772;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-row em {
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ui-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: #0e0e11;
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
  transition:
    background var(--fast),
    transform var(--fast);
}
button.ui-btn:hover {
  background: #2a2a33;
}
button.ui-btn:active {
  transform: scale(0.97);
}
.ui-btn[disabled] {
  background: #dcdbe2;
  color: #676772;
  cursor: default;
}
.tabbar {
  position: absolute;
  z-index: 4;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  padding: 5px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 12px 28px -14px rgba(0, 0, 0, 0.3);
}
.tabbar button,
.tabbar span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 44px;
  align-content: center;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #62626d;
  transition:
    color var(--fast),
    background var(--fast);
}
.tabbar button[aria-selected='true'] {
  color: #0e0e11;
  background: #efeef3;
}
.tabbar button:hover {
  color: #0e0e11;
}
.tabbar .ui-badge {
  top: 3px;
  right: 50%;
  margin-right: -19px;
  background: #0e0e11;
}

/* ілюстрації товарів — намальовані, не фото */
.shot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--flax);
  color: var(--sand);
  border-radius: 12px;
}
.shot svg {
  width: 62%;
  height: 78%;
  fill: currentColor;
  filter: drop-shadow(0 6px 8px rgba(60, 40, 10, 0.18));
}
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.55), transparent 60%);
  pointer-events: none;
}
.shot-sand {
  background: #efe7d9;
  color: #cdb48d;
}
.shot-sage {
  background: #e3e8dc;
  color: #94a383;
}
.shot-clay {
  background: #f1dfd4;
  color: #c98f73;
}
.shot-ink {
  background: #dedde3;
  color: #33333b;
}
.shot-sq {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
}

.ui-btn .ic,
.btn .ic {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.ui-btn {
  text-decoration: none;
}
a.ui-btn:hover {
  background: #2a2a33;
}
.ui-btn-ig,
a.ui-btn-ig:hover,
button.ui-btn-ig:hover {
  background: var(--ig);
  box-shadow: 0 10px 20px -10px rgba(255, 61, 127, 0.7);
}
.goods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.goods .ui-card {
  padding: 7px 7px 9px;
  border-radius: 16px;
}
.goods .shot {
  aspect-ratio: 1 / 1.02;
  margin-bottom: 7px;
}
.goods b {
  display: block;
  font-size: 11.5px;
  line-height: 1.2;
}
.goods small {
  font-size: 11px;
  color: #676772;
}

/* вітрина покупця всередині телефона */
.sf {
  background: #fbf9f5;
  color: #2b2420;
}
.sf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sf-bar b {
  font-size: 17px;
  letter-spacing: 0.04em;
}
.sf-cart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #2b2420;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.sf-cart svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.sf-hero {
  height: 210px;
  border-radius: 20px;
}
.sf-h {
  margin: 12px 0 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.sf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
}
.sf-grid .shot {
  aspect-ratio: 1 / 1.08;
  border-radius: 14px;
  margin-bottom: 6px;
}
.sf-grid .shot span {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #b4532a;
  font-size: 11px;
  font-weight: 700;
}
.sf-grid b {
  display: block;
  font-size: 11.5px;
  line-height: 1.2;
}
.sf-grid em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: #b4532a;
}
.sf-grid .is-new .shot {
  outline: 2px solid #b4532a;
  outline-offset: 2px;
}

/* допис, розпізнавання, картка, оформлення, замовлення */
.post-pic {
  height: 250px;
  flex: none;
  border-radius: 16px;
}
.post-cap {
  font-size: 12px;
  line-height: 1.45;
}
.post-cap mark {
  padding: 1px 4px;
  margin: 0 -1px;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px transparent;
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
.scan {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}
.view.is-on .scan mark {
  background: #ffe9f1;
  box-shadow: inset 0 0 0 1px rgba(255, 61, 127, 0.35);
}
.view.is-on .scan mark:nth-of-type(1) { transition-delay: 0.35s; }
.view.is-on .scan mark:nth-of-type(2) { transition-delay: 0.6s; }
.view.is-on .scan mark:nth-of-type(3) { transition-delay: 0.85s; }
.view.is-on .scan mark:nth-of-type(4) { transition-delay: 1.1s; }
.found {
  display: grid;
  gap: 6px;
}
.found li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.found span {
  color: #676772;
}
.view.is-on .found li {
  opacity: 1;
  transform: none;
}
.view.is-on .found li:nth-child(1) { transition-delay: 0.45s; }
.view.is-on .found li:nth-child(2) { transition-delay: 0.7s; }
.view.is-on .found li:nth-child(3) { transition-delay: 0.95s; }
.view.is-on .found li:nth-child(4) { transition-delay: 1.2s; }
.view.is-on .found li:nth-child(5) { transition-delay: 1.45s; }
.card-edit .shot {
  height: 150px;
  margin-bottom: 10px;
}
.card-edit dl > div,
.form p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #efeef3;
  font-size: 12px;
}
.card-edit dt,
.form span {
  color: #676772;
}
.card-edit dd {
  font-weight: 650;
  display: flex;
  gap: 4px;
}
.card-edit dd i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border-radius: 6px;
  background: #efeef3;
  font-size: 11px;
}
.form p {
  display: block;
  font-weight: 600;
}
.form p:first-child {
  border-top: 0;
  padding-top: 0;
}
.form span {
  display: block;
  font-weight: 400;
  font-size: 11px;
}
.pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pay div {
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e3ea;
  font-size: 11.5px;
}
.pay small {
  display: block;
  font-size: 11px;
  color: #676772;
}
.pay .is-on {
  box-shadow: inset 0 0 0 2px #0e0e11;
}
.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #6b6b76;
}
.track li {
  padding-top: 6px;
  border-top: 3px solid #e4e3ea;
  border-radius: 1.5px;
  transition:
    border-color 0.4s,
    color 0.4s;
}
.track li.is-on {
  border-color: #0e0e11;
  color: #0e0e11;
}
.addr {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 11px;
  color: #62626d;
}
.addr svg {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.view.is-on .order-new {
  animation: pop 0.7s var(--ease) 0.3s both;
}
@keyframes pop {
  from {
    transform: translateY(-14px) scale(0.96);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(255, 61, 127, 0.5);
  }
  60% {
    box-shadow: 0 0 0 8px rgba(255, 61, 127, 0);
  }
}

/* ============ 5. ПЕРШИЙ ЕКРАН ============ */
.hero {
  padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 8vw, 112px);
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: var(--s5);
  justify-items: start;
}
.hero-copy .display {
  max-width: 11.5em;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s2);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: var(--t-small);
  color: var(--ink-2);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-facts li::before {
  content: '';
  width: 14px;
  height: 8px;
  border-left: 1.5px solid var(--ok);
  border-bottom: 1.5px solid var(--ok);
  transform: rotate(-45deg) translate(2px, -3px);
  flex: none;
}
.hero-vis {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 660px;
  padding-top: 8px;
}
.hero-vis::before {
  content: '';
  position: absolute;
  inset: 6% -8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 61, 127, 0.16), rgba(122, 77, 255, 0.1) 55%, transparent);
  filter: blur(20px);
}
.phone-front {
  position: relative;
  z-index: 2;
  margin-right: 22%;
}
.phone-back {
  position: absolute;
  top: 52px;
  left: 50%;
  margin-left: -2%;
  --zoom: 0.86;
  transform: rotate(5deg);
  opacity: 0.96;
}
.vis-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  max-width: 30em;
}

/* ============ 6. РОЗПОВІДЬ ============ */
.on-night {
  background: var(--night);
  color: var(--on-night);
}
.story {
  padding: var(--sec) 0 0;
}
.story-head {
  display: grid;
  gap: var(--s5);
  max-width: calc(900px + var(--gut) * 2);
  margin-left: max(0px, calc((100% - var(--max) - var(--gut) * 2) / 2));
}
.story-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-top: var(--s8);
}
.story-stage {
  order: 2;
  align-self: stretch;
}
.story-sticky {
  position: sticky;
  top: calc(var(--nav-h) + (100vh - var(--nav-h) - 660px) / 2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s6);
  padding: 24px 0;
}
.story-sticky::before {
  content: '';
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 61, 127, 0.22), rgba(122, 77, 255, 0.14) 60%, transparent);
  filter: blur(30px);
}
.story-sticky .phone {
  position: relative;
}
.story-rail {
  position: relative;
  display: grid;
  gap: 18px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b76;
}
.story-rail li {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}
.story-rail li::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.story-rail li.is-on {
  color: #fff;
}
.story-rail li.is-on::before {
  width: 34px;
  background: var(--ig);
}
.story-steps > li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s4);
  min-height: 82vh;
  max-width: 30em;
  opacity: 0.32;
  transition: opacity 0.4s;
}
.story-steps > li.is-on {
  opacity: 1;
}
.story-steps > li:last-child {
  min-height: 100vh;
}
.story-steps p {
  color: var(--on-night-2);
  font-size: var(--t-lead);
  line-height: 1.5;
}
.step-n {
  font: 500 var(--t-micro) / 1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.on-night .step-n {
  color: #8a8a96;
}

/* ============ 7. СЕКЦІЇ ============ */
.sec {
  padding: var(--sec) 0;
}
.sec-flat {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.sec-head {
  display: grid;
  gap: var(--s5);
  max-width: 900px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-head.split {
  max-width: none;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: end;
  gap: var(--s7);
}
.sec-head.split > div {
  display: grid;
  gap: var(--s5);
}
.fine {
  margin-top: var(--s5);
  max-width: 62em;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}
.on-night .fine {
  color: #8a8a96;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition:
    background var(--fast),
    color var(--fast),
    border-color var(--fast);
}
.chips button:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chips button[aria-pressed='true'],
.chips button[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chips button .n {
  margin-left: 6px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.on-night .chips button {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--on-night-2);
}
.on-night .chips button:hover {
  border-color: #fff;
  color: #fff;
}
.on-night .chips button[aria-pressed='true'] {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* ---- дошка замовлень ---- */
.board {
  border-radius: var(--r4);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.board-tools {
  display: flex;
  gap: 6px;
}
.board-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 470px;
}
.orders {
  border-right: 1px solid var(--line);
}
.orders li + li {
  border-top: 1px solid var(--line);
}
.orders button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  width: 100%;
  padding: 14px 20px;
  text-align: left;
  transition: background var(--fast);
}
.orders button:hover {
  background: var(--bg);
}
.orders button[aria-current='true'] {
  background: var(--bg);
  box-shadow: inset 3px 0 0 var(--ink);
}
.orders .shot {
  width: 46px;
  height: 46px;
  grid-row: span 2;
}
.orders b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders small {
  grid-column: 2;
  color: var(--ink-3);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders .pill {
  grid-row: 1 / span 2;
  grid-column: 3;
}
.orders .empty {
  padding: 40px 20px;
  color: var(--ink-3);
}
.detail {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: 24px;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.detail-top .label::before {
  display: none;
}
.detail h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.detail dl {
  display: grid;
  gap: 0;
  font-size: var(--t-small);
}
.detail dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.detail dt {
  color: var(--ink-3);
  flex: none;
}
.detail dd {
  text-align: right;
  font-weight: 500;
}
.detail .track {
  font-size: 12px;
  margin-top: 4px;
}
.detail .track li {
  padding-top: 8px;
}
.detail .track li.is-on {
  border-color: var(--ink);
  color: var(--ink);
}
.detail-act {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.detail-act .btn {
  width: 100%;
}
.detail-act small {
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}
.board-note {
  padding: 20px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s7);
  margin-top: var(--s8);
}
.facts > div {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding-top: var(--s5);
  border-top: 1px solid var(--ink);
}
.facts p,
.steps p,
.pair p:not(.big-q),
.look-copy p,
.seo-copy p {
  color: var(--ink-2);
}

/* ---- оформлення вітрини ---- */
.look {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.look-copy {
  display: grid;
  gap: var(--s4);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s3);
}
.swatches button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  transition:
    transform var(--fast) var(--ease),
    box-shadow var(--fast);
}
.swatches button:hover {
  transform: scale(1.08);
}
.swatches button[aria-pressed='true'] {
  box-shadow:
    0 0 0 3px var(--surface),
    0 0 0 5px var(--ink);
}
.look-name {
  font-size: var(--t-small);
  color: var(--ink-3) !important;
}
.look-name b {
  color: var(--ink);
}
.look-stage {
  --lk-bg: #fbf9f5;
  --lk-surface: #ffffff;
  --lk-ink: #2b2420;
  --lk-accent: #b4532a;
  padding: 18px;
  border-radius: var(--r4);
  background: var(--lk-bg);
  color: var(--lk-ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  transition:
    background 0.5s var(--ease),
    color 0.5s var(--ease);
}
.lk-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  padding: 2px 4px 14px;
}
.lk-bar b {
  font-size: 18px;
  letter-spacing: 0.05em;
  margin-right: auto;
}
.lk-bar span {
  opacity: 0.7;
}
.lk-bar i {
  font-style: normal;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--lk-ink);
  color: var(--lk-bg);
  transition:
    background 0.5s,
    color 0.5s;
}
.lk-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
  padding: 22px;
  border-radius: 14px;
  background: var(--lk-surface);
  transition: background 0.5s;
}
.lk-hero > div:first-child {
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: start;
}
.lk-hero small {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lk-accent);
  transition: color 0.5s;
}
.lk-hero strong {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.lk-hero i {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lk-accent);
  color: #fff;
  transition: background 0.5s;
}
.lk-shot {
  min-height: 170px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--lk-accent) 14%, var(--lk-bg));
  color: color-mix(in srgb, var(--lk-accent) 55%, var(--lk-bg));
  transition:
    background 0.5s,
    color 0.5s;
}
.lk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.lk-grid .lk-shot {
  min-height: 0;
  aspect-ratio: 1 / 0.9;
  margin-bottom: 8px;
}
.lk-grid b {
  display: block;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
}
.lk-grid em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--lk-accent);
  transition: color 0.5s;
}

/* ---- пошук ---- */
.seo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: var(--sec);
}
.seo-copy {
  order: 2;
  display: grid;
  gap: var(--s4);
}
.seo-copy .chips {
  margin-top: var(--s3);
}
.code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--sunken);
}
.codebox {
  margin: 0;
  min-height: 330px;
  padding: 24px;
  border-radius: var(--r3);
  background: var(--night);
  color: #d5d5dc;
  font: 400 13px/1.7 var(--mono);
  overflow: auto;
  white-space: pre;
  box-shadow: var(--shadow-2);
  tab-size: 2;
}
.codebox .k {
  color: #ff8fb4;
}
.codebox .s {
  color: #b9a8ff;
}
.codebox .c {
  color: #8a8a96;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  margin-top: var(--sec);
  padding-top: var(--s8);
  border-top: 1px solid var(--line);
}
.pair > div {
  display: grid;
  gap: var(--s4);
  align-content: start;
  max-width: 30em;
}
.big-q {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

/* ---- три дії ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: s;
}
.steps li {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: var(--s6) var(--s6) var(--s2) 0;
  border-top: 1px solid var(--ink);
}
.steps li + li {
  padding-left: var(--s6);
  border-left: 1px solid var(--line);
}
.steps .step-n {
  margin-bottom: var(--s6);
}

/* ---- пісочниця ---- */
.lab-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: stretch;
}
.lab-src {
  display: grid;
  gap: var(--s4);
  align-content: start;
}
.lab textarea {
  width: 100%;
  min-height: 250px;
  padding: 20px;
  border-radius: var(--r3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--night-2);
  color: var(--on-night);
  font-size: 1.0625rem;
  line-height: 1.55;
  resize: vertical;
  transition: border-color var(--fast);
}
.lab textarea:focus {
  outline: none;
  border-color: #fff;
}
.lab-hint {
  font-size: 13px;
  color: #8a8a96;
}
.lab-card {
  height: 100%;
  padding: 24px;
  border-radius: var(--r3);
  background: var(--surface);
  color: var(--ink);
}
.lab-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--s4);
}
.lab-conf {
  font-size: 13px;
  color: var(--ink-3);
  text-align: right;
}
.lab-card dl > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
}
.lab-card dt {
  color: var(--ink-3);
}
.lab-card dd {
  font-weight: 550;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-wrap: anywhere;
}
.lab-card dd.is-empty {
  font-weight: 400;
  color: var(--ink-3);
}
.lab-card dd i {
  font-style: normal;
  padding: 2px 9px;
  border-radius: 7px;
  background: var(--sunken);
  font-size: 13px;
}
.lab-card dd.flash {
  animation: flash 0.7s var(--ease);
}
@keyframes flash {
  from {
    background: #ffe0ec;
    box-shadow: 0 0 0 6px #ffe0ec;
    border-radius: 4px;
  }
}

/* ---- інтеграції ---- */
.integ {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.integ .sec-head {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  margin-bottom: 0;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.integ-h {
  font: 500 var(--t-micro) / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: var(--s4);
}
.integ-list dl + .integ-h {
  margin-top: var(--s8);
}
.integ-list dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line-2);
}
.integ-list dt {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}
.integ-list dd {
  grid-column: 1;
  color: var(--ink-2);
  font-size: var(--t-small);
}
.integ-list dd:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* ---- замість відгуків ---- */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.proof-main {
  display: grid;
  gap: var(--s5);
  justify-items: start;
}
.vows li {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line-2);
}
.vows li:last-child {
  border-bottom: 1px solid var(--line-2);
}
.vows b {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.vows span {
  color: var(--ink-2);
  font-size: var(--t-small);
}

/* ---- ціна ---- */
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.price-big {
  display: grid;
  gap: var(--s5);
  justify-items: start;
}
.zero {
  font-size: clamp(7rem, 4rem + 14vw, 15rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.07em;
}
.zero span {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 0.08em;
  letter-spacing: 0;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line-2);
}
.price-list b {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-list .note b {
  font-weight: 400;
  color: var(--ink-3);
  white-space: normal;
  text-align: right;
  font-size: var(--t-small);
}

/* ---- питання ---- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq .sec-head {
  margin: 0;
}
.faq details {
  border-top: 1px solid var(--line-2);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-2);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 40px 22px 0;
  color: var(--ink-2);
  max-width: 44em;
}

/* ---- заклик і підвал ---- */
.cta {
  padding: var(--sec) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 61, 127, 0.28), rgba(122, 77, 255, 0.16) 55%, transparent);
  pointer-events: none;
}
.cta-in {
  position: relative;
  display: grid;
  gap: var(--s6);
  justify-items: center;
  text-align: center;
}
.cta .display {
  max-width: 12em;
}
.cta .hero-btns {
  justify-content: center;
}
.foot {
  border-top: 1px solid var(--line-night);
  padding: var(--s8) 0 var(--s6);
  font-size: var(--t-small);
}
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: var(--s7);
}
.foot-brand {
  display: grid;
  gap: var(--s4);
  justify-items: start;
  max-width: 24em;
  color: var(--on-night-2);
}
.foot-brand .brand {
  color: #fff;
}
.foot nav {
  display: grid;
  gap: 2px;
  align-content: start;
  justify-items: start;
}
.foot nav b {
  font: 500 var(--t-micro) / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a96;
  margin-bottom: var(--s3);
}
.foot nav a {
  padding: 6px 0;
  color: var(--on-night-2);
  text-decoration: none;
  transition: color var(--fast);
}
.foot nav a:hover {
  color: #fff;
}
.foot-low {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-night);
  color: #8a8a96;
  font-size: 13px;
}

/* ============ 9. АДАПТИВ ============ */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: grid;
  }
  .sheet:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 20px;
    box-shadow: 0 30px 40px -30px rgba(11, 11, 14, 0.3);
  }
  .sheet a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 1.0625rem;
    font-weight: 550;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 960px) {
  .hero-in,
  .look,
  .seo,
  .integ,
  .proof,
  .price,
  .faq,
  .sec-head.split {
    grid-template-columns: minmax(0, 1fr);
  }
  .sec-head.split {
    gap: var(--s5);
  }
  .hero-vis {
    min-height: 0;
  }
  .phone-front {
    margin-right: 0;
  }
  .phone-back {
    display: none;
  }
  .integ .sec-head {
    position: static;
  }
  .seo-copy {
    order: 0;
  }
  .price {
    align-items: start;
  }
  .facts,
  .steps,
  .pair {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s6);
  }
  .steps li,
  .steps li + li {
    padding: var(--s5) 0 var(--s2);
    border-left: 0;
  }
  .steps .step-n {
    margin-bottom: var(--s2);
  }
  .foot-in {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }

  /* розповідь: телефон прилипає вгорі, кроки проходять під ним */
  .story-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: var(--s6);
  }
  .story-stage {
    order: 0;
    position: sticky;
    top: var(--nav-h);
    z-index: 2;
    margin: 0 calc(var(--gut) * -1);
    background: linear-gradient(var(--night) 88%, transparent);
  }
  .story-sticky {
    position: relative;
    top: 0;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 28px;
  }
  .story-sticky .phone {
    --zoom: var(--story-zoom, 0.62);
  }
  .story-rail {
    display: flex;
    gap: 5px;
  }
  .story-rail li {
    font-size: 0;
    gap: 0;
  }
  .story-rail li::before {
    width: 22px;
  }
  .story-rail li.is-on::before {
    width: 36px;
  }
  .story-steps > li,
  .story-steps > li:last-child {
    min-height: 62svh;
    justify-content: flex-start;
    padding: 24px 0 0;
    gap: var(--s3);
  }
  .story-steps > li:last-child {
    min-height: 0;
    padding-bottom: var(--s8);
  }
}
@media (max-width: 760px) {
  .board-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .orders {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .board-bar {
    padding: 14px;
  }
  .orders button {
    padding: 12px 14px;
    gap: 2px 10px;
  }
  .detail {
    padding: 18px 14px;
  }
  .lab-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .lab textarea {
    min-height: 190px;
  }
  .lk-bar span {
    display: none;
  }
  .lk-hero {
    padding: 16px;
  }
  .lk-shot {
    min-height: 120px;
  }
  .lk-grid b,
  .lk-grid em {
    font-size: 12px;
  }
  .integ-list dl > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .integ-list dd:last-child {
    grid-column: 1;
    grid-row: auto;
    margin-top: 6px;
  }
  .faq details p {
    padding-right: 0;
  }
}
@media (max-width: 560px) {
  .nav-login {
    display: none;
  }
  .nav-cta .btn-ink {
    min-height: 44px;
    padding: 0 14px;
  }
  .hero-btns .btn-lg {
    width: 100%;
  }
  .hero-facts {
    flex-direction: column;
  }
  
  .board-tools {
    width: 100%;
  }
  .board-tools .btn {
    flex: 1;
    padding: 0 10px;
  }
  .lab-card dl > div {
    grid-template-columns: 6.5em minmax(0, 1fr);
  }
  .foot-in {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
  .codebox {
    padding: 16px;
    font-size: 12px;
    min-height: 0;
  }
}

/* заголовки кроків розповіді — більші за звичайний h3 */
.story-steps .h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.story-sticky {
  top: max(calc(var(--nav-h) + 8px), calc(var(--nav-h) + (100vh - var(--nav-h) - 660px) / 2));
}
@media (max-width: 960px) {
  .story-sticky {
    top: 0;
  }
}
@media (max-width: 760px) {
  .orders .pill {
    grid-row: 1;
  }
  .orders small {
    grid-column: 2 / -1;
  }
}

/* ============ 10. ПРОХІД ЗА APPLE HIG ============ */
/* Шапка — плаваюча капсула: керування живе шаром над вмістом, вміст проходить під нею. */
.nav {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  pointer-events: none;
}
.nav-in {
  pointer-events: auto;
  width: calc(100% - 24px);
  max-width: calc(var(--max) + var(--gut) * 2 - 24px);
  height: 52px;
  margin-top: 8px;
  padding: 0 6px 0 calc(var(--gut) - 12px);
  gap: var(--s4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(11, 11, 14, 0.05),
    0 10px 30px -18px rgba(11, 11, 14, 0.3);
  transition:
    background var(--fast),
    box-shadow 0.3s;
}
.nav.is-stuck .nav-in {
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(11, 11, 14, 0.06),
    0 18px 40px -20px rgba(11, 11, 14, 0.45);
}
.brand {
  min-height: 44px;
}
.nav-links {
  margin-left: var(--s2);
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
}
.nav-cta .btn {
  min-height: 40px;
  position: relative;
}
/* видима висота 40, зона дотику 44+ */
.nav-cta .btn::after,
.ui-seg button::after {
  content: '';
  position: absolute;
  inset: -6px 0;
}
.ui-seg button {
  position: relative;
}
.nav-burger {
  width: 40px;
  height: 40px;
}
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
}
/* підпис над заголовком тримається ближче до нього, ніж заголовок до абзацу */
.sec-head > .label,
.sec-head > div > .label,
.story-head > .label,
.proof-main > .label,
.price-big > .label {
  margin-bottom: -8px;
}
.big-q {
  letter-spacing: -0.03em;
}
.faq summary {
  min-height: 64px;
  padding: 12px 0;
}
@media (max-width: 1100px) {
  .sheet:not([hidden]) {
    pointer-events: auto;
    top: calc(100% + 4px);
    left: 12px;
    right: 12px;
    padding: 8px 0;
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    backdrop-filter: blur(24px) saturate(1.8);
    box-shadow:
      0 0 0 1px rgba(11, 11, 14, 0.06),
      0 30px 60px -24px rgba(11, 11, 14, 0.45);
    animation: sheet 0.45s var(--spring) both;
    transform-origin: 100% 0;
  }
  .sheet a:last-child {
    border-bottom: 0;
  }
}
@keyframes sheet {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
}
@media (max-width: 960px) {
  .story-stage {
    top: 0;
    padding-top: var(--nav-h);
  }
}

/* ---- ніші: сценарій ліворуч, картка товару праворуч ---- */
.niche-tabs {
  margin-bottom: var(--s6);
}
.niche-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  border-radius: var(--r2);
}
.niche-panel[hidden] {
  display: none;
}
.niche-panel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
}
.niche-panel.swap {
  animation: niche-in 0.6s var(--out) both;
}
@keyframes niche-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
}
.niche-kicker {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.niche-q {
  margin-top: var(--s3);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.niche-beats {
  display: grid;
  margin-top: var(--s6);
  counter-reset: beat;
}
.niche-beats li {
  counter-increment: beat;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: var(--s3);
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
}
.niche-beats li::before {
  content: counter(beat, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}
.niche-beats b {
  font-weight: 650;
}
.niche-beats p {
  margin-top: 6px;
  color: var(--ink-2);
  line-height: 1.55;
}
.niche-beats li:last-child::before {
  color: var(--accent);
}

.niche-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: var(--s4);
  padding: 24px;
  border-radius: var(--r3);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.niche-card .pill {
  justify-self: start;
}
.niche-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
}
.niche-card-name {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.niche-card-price {
  flex: none;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.niche-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.niche-sizes span {
  margin-right: 4px;
  color: var(--ink-3);
}
.niche-sizes i {
  font-style: normal;
  min-width: 36px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  text-align: center;
  font-weight: 550;
}
.niche-card dl > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
}
.niche-card dt {
  color: var(--ink-3);
}
.niche-card dd {
  font-weight: 550;
  overflow-wrap: anywhere;
}
.niche-asks-h {
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.niche-asks {
  display: grid;
  gap: 6px;
  margin-top: calc(var(--s2) * -1);
}
.niche-asks li {
  position: relative;
  padding-left: 18px;
  font-size: var(--t-small);
}
.niche-asks li::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
}
@media (max-width: 900px) {
  .niche-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .niche-card {
    position: static;
  }
  .niche-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gut) * -1);
    padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .niche-tabs button {
    flex: none;
  }
}
@media (max-width: 420px) {
  .niche-card dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ============ 11. РУХ ============ */
/* Пружина без відскоку — як у системних переходах; для старих браузерів лишається --ease. */
:root {
  --spring: var(--ease);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(
      0,
      0.006,
      0.025 2.8%,
      0.101 6.1%,
      0.539 18.9%,
      0.721 25.3%,
      0.849 31.5%,
      0.937 38.1%,
      0.968 41.8%,
      0.991 45.7%,
      1.006 50.1%,
      1.015 55%,
      1.017 63.9%,
      1.001 85.9%,
      1
    );
  }
}

/* Крива появи: швидкий старт і довге загасання. */
:root {
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* слова заголовків піднімаються з-під лінії рядка */
.mask .wm {
  display: inline-block;
  vertical-align: top;
  overflow: clip;
  padding: 0 0.06em 0.16em;
  margin: 0 -0.06em -0.16em;
}
.mask .w {
  display: inline-block;
}
.js .mask .w {
  transform: translate3d(0, 110%, 0);
  transition: transform 1.15s var(--out) calc(var(--i, 0) * 40ms + var(--wd, 0ms));
}
.js .mask.is-in .w {
  transform: none;
}
.hero .mask {
  --wd: 120ms;
}
/* заголовок рухається словами, тому його обгортка вже не зсувається: зʼявляються лише сусіди */
.js .reveal:has(.mask) {
  opacity: 1;
  transform: none;
  filter: none;
}
.js .reveal:has(.mask) > :not(.mask):not(:has(.mask)),
.js .reveal:has(.mask) > :has(.mask) > :not(.mask) {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.8s var(--out) 0.3s,
    transform 1s var(--out) 0.3s;
}
.js .reveal.is-in:has(.mask) > :not(.mask):not(:has(.mask)),
.js .reveal.is-in:has(.mask) > :has(.mask) > :not(.mask) {
  opacity: 1;
  transform: none;
}
.js .stagger > .mask,
.js .stagger > :has(.mask) {
  opacity: 1;
  transform: none;
}

/* блоки */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 0.9s var(--out) var(--rd, 0ms),
    transform 1.2s var(--out) var(--rd, 0ms);
}
.js .reveal[data-r='blur'] {
  transform: translate3d(0, 20px, 0);
}
/* великі демо піднімаються й трохи виростають */
.js .reveal[data-r='scale'] {
  transform: translate3d(0, 56px, 0) scale(0.96);
  transform-origin: 50% 100%;
}
.js .reveal[data-r='left'] {
  transform: translate3d(-36px, 0, 0);
}
.js .reveal[data-r='right'] {
  transform: translate3d(36px, 0, 0);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* каскад: діти зʼявляються один за одним */
.js .stagger > * {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.8s var(--out) calc(var(--i, 0) * 80ms),
    transform 1.1s var(--out) calc(var(--i, 0) * 80ms);
}
.js .stagger.is-in > * {
  opacity: 1;
  transform: none;
}

/* перший екран: заголовок словами → текст → телефони піднімаються → підсвітка */
.rise {
  animation: rise 1.1s var(--out) both;
  animation-delay: calc(var(--d, 0) * 90ms + 420ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
}
.phone-front {
  animation: lift 1.6s var(--out) 0.45s both;
}
.phone-back {
  animation: lift-back 1.6s var(--out) 0.6s both;
}
.hero-vis::before,
.vis-note {
  animation: glow 1.8s var(--out) 0.9s both;
}
@keyframes lift {
  from {
    opacity: 0;
    transform: translate3d(0, 90px, 0);
  }
}
@keyframes lift-back {
  from {
    opacity: 0;
    transform: translate3d(0, 120px, 0) rotate(0deg);
  }
}
@keyframes glow {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}
.nav-in {
  animation: nav-in 0.9s var(--spring) both;
}
@keyframes nav-in {
  from {
    opacity: 0;
    transform: translate3d(0, -16px, 0);
  }
}

/* дрібні відгуки на дію */
.lab-card .pill,
.detail .pill,
.orders .pill {
  animation: pill-in 0.5s var(--out) both;
}
@keyframes pill-in {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
}
.look-name b {
  display: inline-block;
}
.look-name b.swap {
  animation: rise 0.5s var(--spring) both;
}
.codebox code {
  display: block;
}
.codebox code.swap {
  animation: rise 0.45s var(--ease) both;
}
.faq details[open] p {
  animation: rise 0.5s var(--spring) both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js .stagger > *,
  .js .reveal:has(.mask) > *,
  .js .reveal:has(.mask) > :has(.mask) > *,
  .js .mask .w {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}
.nav-burger {
  position: relative;
}
.nav-burger::after {
  content: '';
  position: absolute;
  inset: -4px;
}
