/* Аграба — оформление. Идея: сайт как рабочий чертёж — бетонно-серый лист, тушь, кобальт, жёлтая разметка рулетки.
   Прямые углы, тонкие линии сетки, моноширинные подписи, основная надпись (штамп) в подвале.
   Токены — только здесь, обе темы. */
:root {
  --paper: #eceee9;           /* бетонный лист, лёгкий зелёный оттенок */
  --sheet: #f8f9f6;           /* поднятая плоскость */
  --sunk: #e1e4de;
  --ink: #15202b;             /* тушь */
  --ink-2: #3f4a55;
  --ink-3: #5d6873;           /* 5.0:1 на --paper */
  --line: rgba(21, 32, 43, .14);
  --line-strong: rgba(21, 32, 43, .38);
  --grid: rgba(21, 32, 43, .07);
  --cobalt: #2348c9;          /* акцент: текст 6.9:1 на --paper */
  --cobalt-deep: #1a379d;
  --on-cobalt: #ffffff;
  --signal: #f2c230;          /* жёлтая разметка: только плашки и метки, не текст */
  --on-signal: #15202b;
  --ok: #1f7a43;
  --danger: #b3261e;
  --glass: rgba(236, 238, 233, .86);
  --shadow: 0 1px 0 var(--line), 0 10px 30px rgba(21, 32, 43, .07);
  --shadow-lg: 0 18px 48px rgba(21, 32, 43, .16);
  --r: 4px;
  --tap: 44px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d141c; --sheet: #141e29; --sunk: #1b2733;
    --ink: #eef2f5; --ink-2: #ccd5dc; --ink-3: #9eabb6;
    --line: rgba(230, 235, 239, .12); --line-strong: rgba(230, 235, 239, .34); --grid: rgba(230, 235, 239, .045);
    --cobalt: #86a3ff; --cobalt-deep: #3d62e8; --on-cobalt: #0d141c;
    --ok: #4cc27c; --danger: #ff7a70;
    --glass: rgba(13, 20, 28, .86);
    --shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d141c; --sheet: #141e29; --sunk: #1b2733;
  --ink: #eef2f5; --ink-2: #ccd5dc; --ink-3: #9eabb6;
  --line: rgba(230, 235, 239, .12); --line-strong: rgba(230, 235, 239, .34); --grid: rgba(230, 235, 239, .045);
  --cobalt: #86a3ff; --cobalt-deep: #3d62e8; --on-cobalt: #0d141c;
  --ok: #4cc27c; --danger: #ff7a70;
  --glass: rgba(13, 20, 28, .86);
  --shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; touch-action: manipulation; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* миллиметровка листа */
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px; background-position: -1px -1px;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 4vw, 2.875rem); }
h3 { font-size: 1.125rem; line-height: 1.25; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
input, textarea, select { font-size: max(16px, 1em); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.container { width: min(1200px, 100%); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
.noscript { padding: 16px; text-align: center; background: var(--signal); color: var(--on-signal); }

/* Моноширинная подпись — «надпись на чертеже» */
.label { font: 500 .75rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.label--cobalt { color: var(--cobalt); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--signal); color: var(--on-signal); font: 600 .75rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Кнопки: прямоугольные, со «срезом» ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--r); cursor: pointer;
  font: 600 .9375rem/1 var(--font-body); white-space: nowrap; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .25s, border-color .25s, background-color .25s;
}
.btn:hover { text-decoration: none; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn--primary::before { background: var(--ink); }
.btn--primary:hover { color: var(--paper); }
.btn--secondary, .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary::before, .btn--ghost::before { background: var(--ink); }
.btn--secondary:hover, .btn--ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn__arrow { font-family: var(--font-mono); transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--sunk); }

/* ---------- Шапка ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-height: var(--tap); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 3px; }
.brand__name { font: 700 1.05rem/1 var(--font-display); letter-spacing: .06em; }
.nav__links { display: flex; flex: 1 1 auto; justify-content: center; gap: 2px; }
.nav__links a { position: relative; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; color: var(--ink-2); font-size: .9375rem; }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 6px; color: var(--ink); font: 500 .9375rem/1 var(--font-mono); white-space: nowrap; }
.nav__phone:hover { text-decoration: none; color: var(--cobalt); }
.nav__phone-icon { display: none; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: var(--tap); padding: 0 14px; border: 0; border-radius: var(--r); background: var(--ink); color: var(--paper); cursor: pointer; font-weight: 600; font-size: .9375rem; }
.cart-btn:hover { background: var(--cobalt); color: var(--on-cobalt); }
.cart-btn__count { min-width: 22px; height: 22px; padding: 0 6px; background: var(--signal); color: var(--on-signal); font: 700 .75rem/22px var(--font-mono); text-align: center; }
.cart-btn.bump .cart-btn__count { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: translateY(-5px); } }
.burger { display: none; position: relative; width: var(--tap); height: var(--tap); border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; right: 18px; }
@media (max-width: 960px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__phone { margin-left: auto; }
}
@media (max-width: 600px) {
  .nav__phone { width: var(--tap); height: var(--tap); padding: 0; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r); }
  .nav__phone-icon { display: block; }
  .nav__phone-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 10px; }
}
@media (max-width: 360px) { .brand__name { font-size: .95rem; } .nav__inner { gap: 6px; } }

/* ---------- Главный экран: заголовок + «смета» ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 26px; }
/* Заголовок: слова выезжают из-под строки по очереди, затем жёлтый маркер прокатывается под «по вашей смете» */
.hero__title { position: relative; font-size: clamp(2.3rem, 6.2vw, 5rem); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .w > span { display: inline-block; animation: wordup .9s var(--ease) both; }
.hero__title .d1 > span { animation-delay: .05s; } .hero__title .d2 > span { animation-delay: .15s; } .hero__title .d3 > span { animation-delay: .25s; }
.hero__title .d4 > span { animation-delay: .4s; } .hero__title .d5 > span { animation-delay: .5s; } .hero__title .d6 > span { animation-delay: .6s; }
@keyframes wordup { from { transform: translateY(105%); } }
.hero__title .mark {
  color: var(--on-signal); padding: 0 .14em; margin-left: -.06em;
  background: linear-gradient(var(--signal), var(--signal)) left center / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: marker .8s 1s cubic-bezier(.7, 0, .2, 1) both;
}
@keyframes marker { from { background-size: 0% 100%; color: var(--ink); } 40% { color: var(--ink); } }
/* размерная линия под заголовком: «ширина» предложения, как на чертеже */
.hero__dim { display: flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 18px; color: var(--cobalt); font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hero__dim::before, .hero__dim::after { content: ""; flex: 1; height: 9px; border: solid currentColor; border-width: 0 1.5px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; transform-origin: center; animation: dimgrow .9s 1.5s var(--ease) both; }
.hero__dim::before { transform-origin: right; } .hero__dim::after { transform-origin: left; }
.hero__dim span { animation: fadein .5s 1.9s both; white-space: nowrap; }
@keyframes dimgrow { from { transform: scaleX(0); } }
@keyframes fadein { from { opacity: 0; } }
.hero__lead { max-width: 34em; margin-top: 22px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero__facts li { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--ink-2); }
.hero__facts li::before { content: ""; width: 8px; height: 8px; background: var(--cobalt); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hero__cta .btn { flex: 1 1 100%; } }

/* Смета: живой образец заказа */
.smeta { position: relative; margin: 0; background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--cobalt); font-size: .9375rem; }
.smeta__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1.5px solid var(--ink); }
.smeta__title { font: 600 .9375rem/1.2 var(--font-display); }
.smeta__rows { list-style: none; margin: 0; padding: 0; }
.smeta__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 18px; border-bottom: 1px dashed var(--line-strong); }
.smeta__n { font: 500 .75rem/1 var(--font-mono); color: var(--ink-3); }
.smeta__name { min-width: 0; }
.smeta__name small { display: block; margin-top: 2px; font: 400 .75rem/1.3 var(--font-mono); color: var(--ink-3); }
.smeta__sum { font: 600 .9375rem/1 var(--font-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.smeta__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; background: var(--ink); color: var(--paper); }
.smeta__total b { font: 700 1.5rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.smeta__stamp { position: absolute; right: 18px; bottom: 72px; padding: 6px 10px; border: 2px solid var(--cobalt); color: var(--cobalt); font: 700 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-8deg); background: var(--sheet); }
.smeta__dim { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink-3); font: 500 .75rem/1 var(--font-mono); }
.smeta__dim::before, .smeta__dim::after { content: ""; flex: 1; height: 1px; background: currentColor; }
/* анимация: строки сметы вписываются по очереди, печать ставится последней */
.js .smeta.is-play .smeta__row { animation: rowin .55s var(--ease) both; animation-delay: calc(var(--k, 0) * 260ms + 250ms); }
@keyframes rowin { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .smeta.is-play .smeta__stamp { animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--stamp-delay, 1.6s); }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(2.2); } }
@media (max-width: 420px) { .smeta { box-shadow: 6px 6px 0 var(--cobalt); } .smeta__row { padding: 10px 14px; } .smeta__stamp { bottom: 66px; right: 12px; } }

/* ---------- Бегущая лента материалов ---------- */
.ticker { overflow: hidden; border-block: 1.5px solid var(--ink); background: var(--signal); color: var(--on-signal); }
.ticker__track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 18px; padding: 14px 18px; font: 600 .875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker__item::after { content: "/"; opacity: .45; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--sheet { background: var(--sheet); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { min-width: 0; }
.section-head .label { margin-bottom: 14px; }
.section-head__note { max-width: 34em; margin-top: 14px; color: var(--ink-2); }
@media (max-width: 700px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Разделы каталога: строки ведомости ---------- */
.rows { border-top: 1.5px solid var(--ink); }
.crow {
  position: relative; display: grid; grid-template-columns: 64px 72px minmax(0, 1fr) auto 40px; align-items: center; gap: 20px;
  padding: 18px 12px; border-bottom: 1px solid var(--line-strong); color: var(--ink); isolation: isolate; overflow: hidden;
}
.crow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cobalt); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); }
.crow:hover { text-decoration: none; color: var(--on-cobalt); }
.crow:hover::before { transform: scaleY(1); }
.crow:hover .label, .crow:hover .crow__brands { color: inherit; }
.crow__ico svg { width: 64px; height: 64px; color: var(--ink); transition: color .3s, transform .5s var(--ease); }
.crow:hover .crow__ico svg { color: var(--on-cobalt); transform: rotate(-6deg) scale(1.06); }
.crow__name { font: 600 clamp(1.15rem, 2.4vw, 1.6rem)/1.15 var(--font-display); }
.crow__brands { margin-top: 4px; font-size: .875rem; color: var(--ink-3); }
.crow__count { font: 500 .875rem/1 var(--font-mono); white-space: nowrap; }
.crow__go { font: 500 1.25rem/1 var(--font-mono); transition: transform .35s var(--ease); }
.crow:hover .crow__go { transform: translateX(6px); }
.crow__text { min-width: 0; }
.crow__name, .crow__brands { display: block; }
@media (max-width: 700px) {
  .crow { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; padding: 14px 6px; }
  .crow > .label, .crow__go { display: none; }
  .crow__ico svg { width: 52px; height: 52px; }
}

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.grid__state { grid-column: 1 / -1; padding: 48px 16px; text-align: center; color: var(--ink-3); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.grid__state strong { color: var(--ink); }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 18px; background: var(--sheet);
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  animation: cardin .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
  transition: background-color .3s;
}
@keyframes cardin { from { opacity: 0; } }
/* метки обреза по углам при наведении */
.card::before, .card::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--cobalt); border-style: solid; opacity: 0; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.card::before { top: 6px; left: 6px; border-width: 2px 0 0 2px; transform: translate(6px, 6px); }
.card::after { right: 6px; bottom: 6px; border-width: 0 2px 2px 0; transform: translate(-6px, -6px); }
.card:hover::before, .card:hover::after { opacity: 1; transform: none; }
.card__art { position: relative; aspect-ratio: 4 / 3; max-width: 100%; margin-bottom: 14px; display: grid; place-items: center; overflow: hidden;
  background: var(--paper); background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 12px 12px; color: var(--ink-2); }
.card__art svg { width: 46%; height: auto; transition: transform .6s var(--ease); }
.card:hover .card__art svg { transform: scale(1.06); }
.card__art.has-photo { background: #fff; }
.card__art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 10px 18px; transition: transform .6s var(--ease); }
.card__art.is-cover img { padding: 0; object-fit: cover; }
.card:hover .card__art img { transform: scale(1.04); }
.card__brand { font: 500 .75rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.card__name { margin-top: 6px; font: 600 1rem/1.3 var(--font-body); letter-spacing: 0; }
.card__specs { margin-top: 6px; font-size: .875rem; color: var(--ink-2); }
.card__foot { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card__foot [data-control] { margin-left: auto; }
.price { font: 700 1.1875rem/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: .75rem; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.add { min-height: var(--tap); padding: 0 16px; border: 1.5px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); font-weight: 600; font-size: .9375rem; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.add:hover { background: var(--ink); color: var(--paper); }
.add:active { transform: translateY(1px); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--sheet); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font: 600 1.15rem/1 var(--font-mono); cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--sunk); }
.stepper input { width: 44px; height: 40px; border: 0; border-inline: 1px solid var(--line-strong); background: transparent; text-align: center; font: 600 1rem/1 var(--font-mono); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.is-in { animation: popin .3s var(--ease) both; }
@keyframes popin { from { opacity: 0; transform: translateY(4px); } }
.grid[data-featured] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .grid[data-featured] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid, .grid[data-featured] { grid-template-columns: minmax(0, 1fr); } }
mark { background: var(--signal); color: var(--on-signal); padding: 0 2px; }
.showcase-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }

/* ---------- Условия: два столбца, частным и юрлицам ---------- */
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--sheet); }
.terms__col { min-width: 0; padding: clamp(22px, 3vw, 36px); }
.terms__col + .terms__col { border-left: 1.5px solid var(--ink); }
.terms__col h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 10px 0 18px; }
.terms__list { margin: 0; padding: 0; list-style: none; }
.terms__list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line-strong); }
.terms__list dt, .terms__k { font: 500 .75rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.terms__col--b2b { background: var(--ink); color: var(--paper); }
.terms__col--b2b .label, .terms__col--b2b .terms__k { justify-self: start; align-self: start; display: inline-block; padding: 4px 8px; background: var(--signal); color: var(--on-signal); font-weight: 600; line-height: 1.3; }
.terms__col--b2b .terms__list li { border-top-color: rgba(127, 140, 150, .5); }
@media (max-width: 800px) { .terms { grid-template-columns: 1fr; } .terms__col + .terms__col { border-left: 0; border-top: 1.5px solid var(--ink); } }
@media (max-width: 420px) { .terms__list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Порядок работы: рулетка заполняется при прокрутке ---------- */
.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 44px 0 0; list-style: none; }
.steps__ruler { position: absolute; left: 0; right: 0; top: 0; height: 28px; border: 1.5px solid var(--ink); background:
  repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) left bottom / 100% 8px no-repeat,
  repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 50px) left bottom / 100% 14px no-repeat, var(--sheet); overflow: hidden; }
.steps__ruler::after { content: ""; position: absolute; inset: 0; background: var(--signal); mix-blend-mode: multiply; transform: scaleX(var(--p)); transform-origin: left; transition: transform .2s linear; }
.step { position: relative; min-width: 0; padding: 22px 22px 8px 0; }
.step + .step { padding-left: 22px; border-left: 1px dashed var(--line-strong); }
.step__n { font: 700 2.5rem/1 var(--font-mono); color: var(--line-strong); transition: color .4s; }
.step.is-on .step__n { color: var(--cobalt); }
.step h3 { margin-top: 14px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; padding: 0 0 0 44px; }
  .steps__ruler { top: 0; bottom: 0; left: 0; right: auto; width: 28px; height: auto; background:
    repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 10px) right top / 8px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 1.5px, transparent 1.5px 50px) right top / 14px 100% no-repeat, var(--sheet); }
  .steps__ruler::after { transform: scaleY(var(--p)); transform-origin: top; }
  .step, .step + .step { padding: 8px 0 22px; border-left: 0; }
  .step + .step { border-top: 1px dashed var(--line-strong); padding-top: 22px; }
}

/* ---------- Цифры ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.figure { min-width: 0; padding: 22px 20px 4px 0; }
.figure + .figure { padding-left: 20px; border-left: 1px solid var(--line-strong); }
.figure__v { display: flex; align-items: baseline; gap: 6px; font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font-display); color: var(--cobalt); font-variant-numeric: tabular-nums; }
.figure__v small { font: 600 1rem/1 var(--font-mono); color: var(--ink-2); }
.figure p:not(.figure__v) { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 800px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figure:nth-child(3) { padding-left: 0; border-left: 0; } .figure:nth-child(n+3) { border-top: 1px solid var(--line-strong); } }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1.5px solid var(--ink); background: var(--sheet); }
.contact-grid > * { min-width: 0; }
.contact-main { padding: clamp(22px, 4vw, 44px); border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.contact-phone { font: 700 clamp(1.6rem, 4.4vw, 2.75rem)/1.05 var(--font-display); color: var(--ink); white-space: nowrap; }
.contact-phone:hover { color: var(--cobalt); text-decoration: none; }
.contact-mail { font: 500 clamp(.95rem, 2vw, 1.125rem)/1.3 var(--font-mono); word-break: break-all; }
.open-status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font: 500 .8125rem/1 var(--font-mono); color: var(--ink-2); }
.open-status i { width: 10px; height: 10px; background: var(--ink-3); }
.open-status.is-open i { background: var(--ok); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.contact-main .btn { align-self: flex-start; margin-top: 14px; }
.contact-side { display: grid; grid-template-rows: auto auto 1fr; }
.contact-cell { padding: 20px 24px; border-bottom: 1px solid var(--line-strong); }
.contact-cell:last-child { border-bottom: 0; }
.contact-cell p { margin-top: 6px; }
.hours { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line-strong); }
.hours li { display: grid; place-items: center; height: 36px; font: 600 .75rem/1 var(--font-mono); color: var(--ink-2); }
.hours li + li { border-left: 1px solid var(--line-strong); }
.hours li.is-today { background: var(--signal); color: var(--on-signal); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .contact-main { border-right: 0; border-bottom: 1.5px solid var(--ink); } }
@media (max-width: 380px) { .contact-phone { white-space: normal; } }

/* ---------- Подвал: основная надпись чертежа ---------- */
.footer { padding-block: 56px calc(110px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1.5px solid var(--ink); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 36px; }
.footer__top > * { min-width: 0; }
.footer__claim { margin-top: 14px; max-width: 26em; color: var(--ink-2); font-size: .9375rem; }
.footer__col { display: flex; flex-direction: column; gap: 2px; }
.footer__h { margin-bottom: 8px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 34px; color: var(--ink-2); font-size: .9375rem; }
.footer__col a:hover { color: var(--cobalt); }
.footer__phone { font: 600 1rem/1 var(--font-mono) !important; color: var(--ink) !important; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer__top { grid-template-columns: 1fr; } }
/* штамп по ГОСТ 2.104: таблица с реквизитами, линии — зазор сетки на фоне туши */
.stamp { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1px; border: 1.5px solid var(--ink); background: var(--ink); font-size: .8125rem; }
.stamp > div { min-width: 0; padding: 10px 12px; background: var(--paper); }
.stamp .label { display: block; margin-bottom: 4px; font-size: .6875rem; }
.stamp b { font-family: var(--font-mono); font-weight: 600; word-break: break-word; }
.stamp__org { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.stamp__org b { font: 700 1.05rem/1.2 var(--font-display); }
.stamp__addr { grid-column: span 3; }
@media (max-width: 760px) { .stamp { grid-template-columns: 1fr 1fr; } .stamp__org { grid-column: 1 / -1; grid-row: auto; } .stamp__addr { grid-column: auto; } }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; font-size: .8125rem; color: var(--ink-3); }
.footer__legal { flex: 1 1 360px; }
.footer__top-btn { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
.footer__top-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- Плавающая корзина (телефоны) ---------- */
.cart-fab {
  position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 6px 6px 16px; max-width: 460px; margin-inline: auto;
  border: 1.5px solid var(--ink); border-radius: var(--r); cursor: pointer; color: var(--paper); background: var(--ink); text-align: left;
  box-shadow: 6px 6px 0 var(--cobalt);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.cart-fab.is-visible { transform: none; }
.cart-fab.bump { animation: fabbump .45s var(--ease); }
@keyframes fabbump { 40% { transform: translateY(-6px); } }
.cart-fab__icon { position: relative; flex: none; display: grid; place-items: center; }
.cart-fab__count { position: absolute; top: -10px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--signal); color: var(--on-signal); font: 700 .6875rem/20px var(--font-mono); text-align: center; }
.cart-fab__text { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; padding-left: 6px; }
.cart-fab__label { font: 500 .75rem/1.2 var(--font-mono); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-fab__sum { font: 700 1.0625rem/1.2 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-fab__go { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 14px 0 16px; background: var(--cobalt); color: var(--on-cobalt); font-weight: 700; font-size: .9375rem; border-radius: 2px; }
@media (min-width: 900px) { .cart-fab { left: auto; right: max(24px, env(safe-area-inset-right, 0px)); width: 380px; } }

/* ---------- Корзина (лист) ---------- */
.sheet { position: fixed; inset: 0; padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; color: var(--ink); }
html:has(.sheet[open]), html:has(.menu[open]) { overflow: hidden; }
.sheet::backdrop, .menu::backdrop { background: rgba(13, 20, 28, .55); animation: fade .3s var(--ease); }
.sheet__panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column; background: var(--sheet); border-left: 1.5px solid var(--ink); animation: slidein .45s var(--ease); padding-top: env(safe-area-inset-top, 0px); }
.sheet.is-closing .sheet__panel { animation: slideout .28s var(--ease) forwards; }
.sheet.is-closing::backdrop, .menu.is-closing::backdrop { animation: fade .28s reverse forwards; }
@keyframes slidein { from { transform: translateX(100%); } }
@keyframes slideout { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1.5px solid var(--ink); }
.sheet__head h2 { font-size: 1.375rem; }
.sheet__body { flex: 1; overflow-y: auto; padding: 4px 20px calc(24px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); }
.cart-item.is-new { animation: rowin .4s var(--ease) both; }
.cart-item__art { position: relative; width: 56px; height: 56px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink-2); overflow: hidden; }
.cart-item__art svg { width: 40px; height: 40px; }
.cart-item__art.has-photo { background: #fff; }
.cart-item__art img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); max-width: none; object-fit: contain; }
.cart-item__art.is-cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.cart-item__meta { margin-top: 3px; font: 400 .75rem/1.3 var(--font-mono); color: var(--ink-3); }
.cart-item__right { display: grid; justify-items: end; gap: 6px; }
.cart-item__sum { font: 700 .9375rem/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item .stepper button { width: 34px; height: 34px; }
.cart-item .stepper input { width: 40px; height: 34px; }
.cart-empty { display: grid; justify-items: center; gap: 16px; padding: 48px 0; text-align: center; color: var(--ink-2); }
.cart-empty svg { color: var(--ink-3); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding: 16px; background: var(--ink); color: var(--paper); }
.cart-total strong { font: 700 1.5rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.hint { margin: 10px 0 18px; font-size: .875rem; color: var(--ink-3); }
@media (max-width: 600px) {
  .sheet__panel { top: auto; left: 0; width: 100%; max-height: calc(100dvh - 24px); border-left: 0; border-top: 1.5px solid var(--ink); animation-name: slideup; padding-top: 0; }
  .sheet.is-closing .sheet__panel { animation-name: slidedown; }
  @keyframes slideup { from { transform: translateY(100%); } }
  @keyframes slidedown { to { transform: translateY(100%); } }
}
@media (max-width: 420px) {
  .cart-item { grid-template-columns: 48px minmax(0, 1fr); row-gap: 10px; }
  .cart-item__art { width: 48px; height: 48px; }
  .cart-item__right { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
}

/* ---------- Форма ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin-top: 6px; font-size: .875rem; color: var(--danger); }
.field__error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.field--check input {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper) no-repeat center / 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E");
  transition: background-color .2s, background-size .25s var(--ease);
}
.field--check input:checked { background-color: var(--cobalt-deep); border-color: var(--cobalt-deep); background-size: 18px 18px; }
.field--check input:focus { outline: none; }
.field--check input:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 35%, transparent); }
.field--check input[aria-invalid="true"] { border-color: var(--danger); }
.field--check label { margin: 0; font-weight: 400; font-size: .875rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.field--check .field__error { grid-column: 1 / -1; }
.form-error { margin: 8px 0 14px; padding: 12px 14px; border-left: 3px solid var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-size: .9375rem; }
.form-error:empty { display: none; }

/* ---------- Готово ---------- */
.sheet__done { display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding-top: 48px; }
.sheet__done h3 { font-size: 1.5rem; }
.sheet__done h3:focus { outline: none; }
.sheet__done p { color: var(--ink-2); }
.sheet__done strong { font-family: var(--font-mono); }
.check svg { width: 84px; height: 84px; }
.check rect { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 180; stroke-dashoffset: 180; animation: draw .6s var(--ease) forwards; }
.check path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: square; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Тост ---------- */
.toast { position: fixed; z-index: 70; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; background: var(--ink); color: var(--paper); border-left: 6px solid var(--signal); font-size: .9375rem; font-weight: 600; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .35s var(--ease); }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Меню ---------- */
.menu { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.menu__panel { position: fixed; top: 0; bottom: 0; right: 0; width: min(420px, 100%); display: flex; flex-direction: column; gap: 6px; padding: calc(14px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--sheet); border-left: 1.5px solid var(--ink); overflow-y: auto; animation: slidein .45s var(--ease); }
.menu.is-closing .menu__panel { animation: slideout .3s var(--ease) forwards; }
.menu__head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 8px; }
.menu__main, .menu__cats { list-style: none; margin: 0; padding: 0; }
.menu__main li { border-bottom: 1px solid var(--line-strong); }
.menu__main a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font: 600 1.35rem/1 var(--font-display); color: var(--ink); }
.menu__main a::after { content: "→"; font-family: var(--font-mono); font-size: 1rem; color: var(--ink-3); }
.menu__main a:hover, .menu__main a[aria-current="page"] { color: var(--cobalt); text-decoration: none; }
.menu__label { margin: 22px 0 6px; }
.menu__cats a { display: flex; align-items: center; gap: 12px; min-height: 50px; color: var(--ink); font-weight: 600; }
.menu__cats a:hover { text-decoration: none; color: var(--cobalt); }
.menu__ico { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 1px solid var(--line-strong); color: var(--ink-2); }
.menu__ico svg { width: 30px; height: 30px; }
.menu__count { margin-left: auto; font: 500 .75rem/1 var(--font-mono); color: var(--ink-3); }
.menu__foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; text-align: center; }
.menu[open] .menu__main li, .menu[open] .menu__cats li { animation: rowin .5s var(--ease) both; animation-delay: calc(var(--k, 0) * 40ms + 60ms); }

/* ---------- Страница каталога ---------- */
.catalog--page { padding-block: 32px 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; font: 500 .75rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; }
.page-head { margin-bottom: 26px; }
.catalog-tools { display: grid; gap: 16px; margin-bottom: 28px; }
.search { position: relative; display: flex; align-items: center; max-width: 640px; }
.search input { width: 100%; height: 56px; padding: 0 52px 0 50px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--sheet); outline: none; font-size: 1.0625rem; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus-visible { box-shadow: 6px 6px 0 var(--cobalt); }
.search__icon { position: absolute; left: 17px; color: var(--ink-2); pointer-events: none; }
.search__clear { position: absolute; right: 6px; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; }
.search__clear:hover { color: var(--ink); }
/* Категории — вкладки с подчёркиванием, ползунок едет под выбранной */
.segmented { position: relative; display: flex; gap: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-bottom: 1.5px solid var(--ink); }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { flex: none; position: relative; z-index: 1; min-height: 48px; padding: 0 18px; border: 0; background: transparent; font-size: .9375rem; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: color .2s; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] { color: var(--cobalt); }
.segmented__thumb { position: absolute; z-index: 0; bottom: -1.5px; left: 0; width: 0; height: 4px; background: var(--cobalt); transition: transform .4s var(--ease), width .4s var(--ease); }
.more { display: grid; justify-items: center; gap: 12px; margin-top: 32px; }
.more:empty { display: none; }
.more__count { font: 500 .8125rem/1 var(--font-mono); color: var(--ink-3); }
.more__bar { width: min(260px, 60%); height: 6px; border: 1px solid var(--ink); }
.more__bar span { display: block; height: 100%; background: var(--signal); transform: scaleX(var(--w, 0)); transform-origin: left; transition: transform .5s var(--ease); }

/* ---------- Документы (политика, согласие) ---------- */
.back-pill { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 16px 0 4px; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--ink); font-weight: 600; font-size: .9375rem; }
.back-pill:hover { text-decoration: none; border-color: var(--ink); }
.back-pill__ico { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.legal { padding-block: 28px 80px; }
.legal__head { max-width: 760px; margin: 28px 0 36px; }
.legal__head h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.legal__lead { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); }
.legal__meta { margin-top: 10px; font: 500 .8125rem/1.4 var(--font-mono); color: var(--ink-3); }
.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal__toc { position: sticky; top: 84px; padding: 16px; border: 1.5px solid var(--ink); background: var(--sheet); }
.legal__toc-h { margin-bottom: 8px; font: 500 .75rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 6px 8px; color: var(--ink-2); font-size: .875rem; line-height: 1.3; }
.legal__toc a:hover { text-decoration: none; background: var(--sunk); color: var(--ink); }
.legal__body { display: grid; gap: 0; max-width: 760px; border-top: 1.5px solid var(--ink); }
.legal__body section { padding: 24px 0; border-bottom: 1px solid var(--line-strong); scroll-margin-top: 84px; }
.legal__body h2 { margin-bottom: 10px; font-size: 1.1875rem; }
.legal__body p { color: var(--ink-2); line-height: 1.65; }
.legal__body p + p { margin-top: 8px; }
.legal__list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal__list li { position: relative; padding-left: 22px; color: var(--ink-2); line-height: 1.55; }
.legal__list li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; background: var(--cobalt); }
.legal__list strong { color: var(--ink); }
mark.fill { background: var(--signal); color: var(--on-signal); padding: 1px 4px; }
@media (max-width: 900px) { .legal__grid { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* ---------- Появление: шторка слева направо. Без JS и при «уменьшить движение» всё видно сразу ---------- */
.js .reveal { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { clip-path: none; }
  .ticker__track { animation: none; }
}
@media (prefers-contrast: more) { :root { --ink-3: var(--ink-2); --line: var(--line-strong); } }
@media (forced-colors: active) { .btn, .add, .segmented button { border: 1px solid ButtonText; } }
.sheet__panel:focus, .menu__panel:focus { outline: none; }
@media (max-width: 400px) { .cart-fab { gap: 8px; padding-left: 12px; } .cart-fab__go { padding: 0 12px; font-size: .875rem; } .cart-fab__go span { display: none; } }
