/* «Па» — мастерская костюмов для танца, гимнастики и льда (демо NXAI).
   Concept «Протокол»: white floor, ink type, one cobalt line like the tape on a parquet or the blue line on the ice.
   Hairline grids carry real data (codes, stones, hours, dates); sections are marked by giant initial letters.
   Fonts: Onest (display + text), Martian Mono (codes, captions). No serif, no arches, no cards-with-shadows. */

:root {
  --bg: #FAFAFA;
  --paper: #FFFFFF;
  --ink: #121212;
  --ink-2: #3A3A3F;
  --muted: #6E6E74;          /* palette #7A7A80, darkened for AA on small text */
  --line: #E2E2E6;
  --line-2: #C9C9D0;
  --accent: #2340D8;
  --accent-2: #1A30A8;
  --accent-soft: #ECEFFD;
  --on-accent: #FFFFFF;
  --ok: #157A46;
  --off: #B4232A;

  --f-sans: "Onest", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-mega: clamp(2.9rem, 8.2vw, 8.6rem);
  --t-h2: clamp(2rem, 4.3vw, 3.7rem);
  --t-h3: clamp(1.35rem, 2vw, 1.85rem);
  --t-lead: clamp(1.125rem, 1.45vw, 1.35rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-mono: .71875rem;
  --t-letter: clamp(5.5rem, 15vw, 14.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(84px, 11vw, 168px);
  --maxw: 1440px;
  --head-h: 68px;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.58 var(--f-sans); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- type ---------- */
.mono { font-family: var(--f-mono); font-size: var(--t-mono); line-height: 1.5; letter-spacing: .01em; text-transform: uppercase; font-weight: 400; }
.mono b, .mono strong { font-weight: 500; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--ink-2); }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--accent); flex: none; }
.t-h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.t-h3 { font-size: var(--t-h3); font-weight: 650; line-height: 1.12; letter-spacing: -.02em; }
.t-lead { font-size: var(--t-lead); line-height: 1.45; letter-spacing: -.005em; color: var(--ink-2); }
.t-small { font-size: var(--t-small); line-height: 1.55; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 44px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--accent { background: var(--accent); color: var(--on-accent); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- section head with giant initial ---------- */
.shead { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: clamp(16px, 3vw, 44px); row-gap: 18px; margin-bottom: clamp(40px, 6vw, 84px); }
.shead__letter { font-size: var(--t-letter); font-weight: 800; line-height: .74; letter-spacing: -.06em; color: var(--ink); margin-bottom: -.02em; user-select: none; }
.shead__letter--accent { color: var(--accent); }
.shead__body { display: grid; gap: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.shead__code { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.shead__title { text-wrap: balance; font-size: var(--t-h2); font-weight: 700; line-height: 1; letter-spacing: -.035em; max-width: 18ch; }
.shead__aside { grid-column: 2; max-width: 56ch; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.45; }
.section--accent .shead__letter, .section--accent .shead__title { color: #fff; }
.section--accent .shead__body { border-color: rgba(255,255,255,.7); }
.section--accent .shead__code, .section--accent .shead__aside { color: rgba(255,255,255,.82); }
@media (max-width: 720px) {
  .shead { grid-template-columns: 1fr; }
  .shead__letter { font-size: 6.5rem; }
  .shead__aside { grid-column: 1; }
}

/* ---------- buttons & links ---------- */
.btn { --b: var(--ink); --f: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; border: 1px solid var(--b); background: var(--b); color: var(--f); border-radius: var(--r); font-weight: 600; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease); }
.btn:hover { --b: var(--accent); }
.btn--accent { --b: var(--accent); }
.btn--accent:hover { --b: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { --b: #fff; --f: var(--accent); }
.btn--light:hover { --b: var(--ink); --f: #fff; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; line-height: 1.2; padding-top: 2px; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(5px); }

/* messenger buttons: always Telegram → MAX → WhatsApp */
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.ch svg { width: 20px; height: 20px; flex: none; }
.ch:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.ch--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.ch--accent:hover { background: var(--ink); border-color: var(--ink); }
.section--accent .ch { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.section--accent .ch:hover { background: #fff; color: var(--accent); }
.phone-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.phone-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(250,250,250,.9); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head__in { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.logo { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; }
.logo__mark { font-weight: 800; font-size: 1.9rem; letter-spacing: -.06em; line-height: 1; }
.logo__mark i { font-style: normal; color: var(--accent); }
.logo__sub { font-family: var(--f-mono); font-size: .625rem; text-transform: uppercase; color: var(--muted); line-height: 1.35; max-width: 26ch; }
@media (max-width: 420px) { .logo__sub { display: none; } }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-head .btn { min-height: 44px; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r); align-items: center; justify-content: center; }
.burger span { position: relative; width: 20px; height: 2px; background: var(--ink); transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mnav { position: fixed; inset: var(--head-h) 0 0 0; z-index: 49; background: var(--bg); padding: 24px var(--gutter) 40px; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav__list a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; text-decoration: none; }
.mnav__list a span { font-family: var(--f-mono); font-size: var(--t-mono); color: var(--muted); font-weight: 400; letter-spacing: 0; }
.mnav__list a[aria-current="page"] { color: var(--accent); }
.mnav .channels { margin-top: 28px; }
@media (max-width: 1060px) {
  .nav, .site-head__cta { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--ink); color: var(--ink-2); }
.hero__top .live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.hero__title { font-size: var(--t-mega); font-weight: 800; line-height: .9; letter-spacing: -.055em; margin-top: clamp(28px, 4vw, 52px); max-width: 13.5ch; }
.hero__title .accent { color: var(--accent); }
.hero__line { display: block; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: clamp(28px, 3.5vw, 48px); }
.hero__tag { text-wrap: balance; font-size: clamp(1.4rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; max-width: 17ch; }
.hero__tag em { font-style: normal; color: var(--accent); }
.hero__text { max-width: 46ch; color: var(--ink-2); }
.hero__actions { display: grid; gap: 18px; align-content: end; }
@media (min-width: 900px) {
  .hero__row { grid-template-columns: 5fr 4fr 3fr; align-items: end; gap: var(--gap); }
}
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; } }
.tiles__hint { margin-top: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* flip tile: photo on the front, the work's «паспорт» on the back */
.tile { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: transparent; perspective: 1100px; container-type: inline-size; text-align: left; color: inherit; }
.tile__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .85s var(--ease); }
.tile__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; border-radius: 2px; }
.tile__front img { width: 100%; height: 100%; object-fit: cover; }
.tile__front::after { content: attr(data-code); position: absolute; left: 8px; top: 8px; padding: 3px 6px; background: rgba(255,255,255,.92); color: var(--ink); font: 500 .625rem/1.3 var(--f-mono); letter-spacing: .02em; }
.tile__back { transform: rotateY(180deg); background: var(--accent); color: #fff; padding: 8cqi; display: flex; flex-direction: column; justify-content: space-between; }
.tile__code { font: 500 max(.625rem, 5.4cqi)/1.2 var(--f-mono); letter-spacing: .02em; display: flex; justify-content: space-between; }
.tile__name { font-weight: 650; font-size: max(.8rem, 8.2cqi); line-height: 1.1; letter-spacing: -.02em; }
.tile__big { font-weight: 800; font-size: 24cqi; line-height: .85; letter-spacing: -.05em; }
.tile__big small { display: block; font: 400 max(.6rem, 5cqi)/1.3 var(--f-mono); letter-spacing: .01em; text-transform: uppercase; margin-top: 4px; opacity: .85; }
.tile__meta { font: 400 max(.58rem, 4.6cqi)/1.4 var(--f-mono); text-transform: uppercase; opacity: .9; }
.tile.is-flipped .tile__in { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__in { transform: rotateY(180deg); } }
.tile:focus-visible { outline-offset: 4px; }

/* facts strip under the tiles */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); }
.facts__item { padding: 16px 14px 18px 0; border-bottom: 1px solid var(--line); }
.facts__item:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); margin-bottom: 8px; }
.facts dd { font-size: var(--t-small); color: var(--ink-2); line-height: 1.45; }
.facts dd b { display: block; font-size: clamp(1.1rem, 1.6vw, 1.45rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; line-height: 1.15; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts__item { border-bottom: 0; padding-top: 20px; }
  .facts__item + .facts__item { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* ---------- marquee band ---------- */
.band { border-block: 1px solid var(--ink); padding: 14px 0; --ml-gap: 0px; --ml-speed: 46s; }
.band__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.band__item::after { content: ""; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); flex: none; }
.band__item small { font: 400 var(--t-mono)/1 var(--f-mono); letter-spacing: 0; text-transform: uppercase; color: var(--muted); align-self: center; }

/* ---------- tabs (disciplines) ---------- */
.tabs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .tabs__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tabs__tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 84px; padding: 16px 16px 18px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--muted); transition: color .25s; }
.tabs__tab b { font-size: clamp(1.2rem, 2.1vw, 1.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.tabs__tab .mono { color: inherit; }
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tabs__tab:hover, .tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__list:not([role="tablist"]) { display: none; }
.tabs__panel + .tabs__panel { margin-top: 72px; }
.tabs--js .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__panel[hidden] { display: none; }
.tabs--js .tabs__panel:not([hidden]) { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

.disc { display: grid; gap: 32px; }
.disc__media { position: relative; }
.disc__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.disc__media figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); }
.disc__title { text-wrap: balance; font-size: var(--t-h2); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.disc__lead { margin-top: 18px; font-size: var(--t-lead); line-height: 1.45; color: var(--ink-2); max-width: 44ch; }
.disc__note { margin-top: 24px; padding: 16px 18px; background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: var(--t-small); }
.disc__note b { display: block; font: 500 var(--t-mono)/1.4 var(--f-mono); text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
@media (min-width: 900px) {
  .disc { grid-template-columns: 5fr 1fr 6fr; gap: 0 var(--gap); }
  .disc__media { grid-column: 1; }
  .disc__body { grid-column: 3; align-self: center; }
}

/* spec list: mono label + value on hairlines */
.spec { margin-top: 28px; border-top: 1px solid var(--ink); }
.spec__row { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 400 var(--t-mono)/1.6 var(--f-mono); text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.spec dd { font-size: var(--t-small); }
.spec dd b { font-weight: 650; }

/* ---------- rhinestone calculator ---------- */
.calc { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .calc { grid-template-columns: 7fr 5fr; align-items: start; } }
.calc__stage { position: relative; background: var(--paper); border: 1px solid var(--line); padding: clamp(12px, 2vw, 24px); }
.calc__stage-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); margin-bottom: 10px; }
.cut { width: 100%; height: auto; }
.cut .mat-minor { stroke: #EDEDF1; stroke-width: 1; }
.cut .mat-major { stroke: #DCDCE3; stroke-width: 1; }
.cut .pc { cursor: pointer; }
.cut .pc__base { fill: #fff; stroke: var(--ink); stroke-width: 1.4; transition: fill .3s; }
.cut .pc__seam { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
.cut .pc__st { opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.cut .pc.is-on .pc__st { opacity: 1; }
.cut .pc.is-on .pc__base { fill: var(--accent-soft); stroke: var(--accent); }
.cut .pc:hover .pc__base { stroke-width: 2.2; }
.cut .grain { stroke: var(--muted); stroke-width: 1; fill: none; pointer-events: none; }
.cut .lbl { font: 500 11px var(--f-mono); fill: var(--ink); text-transform: uppercase; pointer-events: none; }
.cut .lbl--muted { fill: var(--muted); font-weight: 400; }
.cut .pc.is-on .lbl { fill: var(--accent); }
.calc__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; color: var(--muted); }

.calc__form { display: grid; gap: 22px; }
.fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.fs legend { padding: 0; margin-bottom: 10px; font: 400 var(--t-mono)/1.4 var(--f-mono); text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; }
.fs legend b { color: var(--ink); font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label, .chip { position: relative; display: inline-flex; }
.seg input, .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg label > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); font-size: .9375rem; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.seg label:hover > span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip > span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.chip input:checked + span::before { background: #fff; border-color: #fff; box-shadow: inset 0 0 0 3px var(--accent); }
.seg input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .25; }
.dots i.on { opacity: 1; }

.calc__out { border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.kpi:nth-child(odd) { border-right: 1px solid var(--line); }
.kpi:nth-child(even) { padding-left: 16px; }
.kpi__val { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__val--date { font-size: clamp(1.45rem, 2.3vw, 2.05rem); padding-top: .2em; }
.kpi__val small { font-size: .45em; font-weight: 600; letter-spacing: -.01em; }
.kpi__lbl { margin-top: 8px; color: var(--muted); }
.kpi--accent .kpi__val { color: var(--accent); }
.calc__sum { margin-top: 14px; color: var(--ink-2); }
.calc__note { margin-top: 10px; font-size: var(--t-small); color: var(--off); }
.calc__note:empty { display: none; }
.calc__send { margin-top: 18px; display: grid; gap: 12px; }

/* ---------- archive index ---------- */
.arch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--gap); }
@media (min-width: 1000px) { .arch { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.arch__item { position: relative; display: block; text-decoration: none; }
.arch__img { position: relative; overflow: hidden; border-radius: 2px; background: var(--line); }
.arch__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: grayscale(1) contrast(1.05); }
.arch__item:hover .arch__img img, .arch__item:focus-visible .arch__img img { transform: scale(1.04); filter: none; }
.arch__code { position: absolute; left: 0; top: 0; padding: 6px 8px; background: var(--paper); font: 500 .6875rem/1 var(--f-mono); }
.arch__cap { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ink); }
.arch__name { font-weight: 650; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.01em; }
.arch__meta { margin-top: 6px; color: var(--muted); }
.arch__more { margin-top: clamp(32px, 4vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
/* filter chips for archive.html (JS hook data-filter) */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.filters button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r); font-weight: 500; font-size: .9375rem; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button span { font-family: var(--f-mono); font-size: .625rem; margin-left: 6px; opacity: .7; }
[data-cat].is-hidden { display: none; }

/* ---------- fittings ---------- */
.fit { display: grid; gap: 36px; }
@media (min-width: 960px) { .fit { grid-template-columns: 5fr 1fr 6fr; gap: 0 var(--gap); } .fit__media { grid-column: 1; } .fit__body { grid-column: 3; } }
.fit__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.fit__media figcaption { margin-top: 10px; color: var(--muted); }
.steps { border-top: 1px solid var(--ink); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 500 var(--t-mono)/1.9 var(--f-mono); color: var(--accent); }
.steps h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.steps p { margin-top: 4px; color: var(--ink-2); font-size: var(--t-small); }

/* countdown track to a tournament */
.track { margin-top: clamp(56px, 7vw, 96px); }
.track__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.track__list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.track__list li { position: relative; padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); }
.track__list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 11px; height: 11px; background: var(--paper); border: 2px solid var(--ink); }
.track__list li.is-start::before { background: var(--accent); border-color: var(--accent); }
.track__when { font: 500 var(--t-mono)/1.4 var(--f-mono); text-transform: uppercase; color: var(--accent); }
.track__what { margin-top: 6px; font-weight: 600; line-height: 1.3; }
.track__list p.muted { font-size: var(--t-small); margin-top: 4px; }
@media (min-width: 900px) {
  .track__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .track__list li { padding: 26px 18px 0 0; border-bottom: 0; }
  .track__list li::before { top: -7px; }
}

/* ---------- reviews (cobalt section) ---------- */
.reviews { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.6); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.35); display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 900px) { .review { padding: 32px 32px 8px 0; border-bottom: 0; } .review + .review { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.35); } }
.review__text { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.38; letter-spacing: -.012em; font-weight: 500; }
.review__who { margin-top: auto; color: rgba(255,255,255,.82); }
.review__who b { display: block; color: #fff; font: 650 1rem/1.3 var(--f-sans); text-transform: none; letter-spacing: -.01em; margin-bottom: 4px; }

/* ---------- price table ---------- */
.ptable { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.ptable caption { text-align: left; caption-side: bottom; padding-top: 14px; color: var(--muted); font-size: var(--t-small); }
.ptable th, .ptable td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.ptable thead th { font: 400 var(--t-mono)/1.4 var(--f-mono); text-transform: uppercase; color: var(--muted); padding-block: 12px; }
.ptable tbody th { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.ptable tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); margin-top: 2px; letter-spacing: 0; }
.ptable .ptable__code { font: 400 var(--t-mono)/1.4 var(--f-mono); color: var(--muted); width: 72px; }
.ptable .ptable__price { text-align: right; white-space: nowrap; font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; padding-right: 0; }
.ptable thead .ptable__price { font: 400 var(--t-mono)/1.4 var(--f-mono); letter-spacing: 0; }
.ptable tbody tr { transition: background .2s; }
.ptable tbody tr:hover { background: var(--paper); }
@media (max-width: 700px) {
  .ptable thead { display: none; }
  .ptable tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ptable th, .ptable td { padding: 0; border: 0; }
  .ptable .ptable__code { grid-column: 1 / -1; width: auto; }
  .ptable td[data-l]::before { content: attr(data-l) " · "; font: 400 var(--t-mono)/1.4 var(--f-mono); text-transform: uppercase; color: var(--muted); }
  .ptable td[data-l] { grid-column: 1; font-size: var(--t-small); }
  .ptable .ptable__price { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
}

/* ---------- forms ---------- */
.book { display: grid; gap: 40px; }
@media (min-width: 1000px) { .book { grid-template-columns: 5fr 1fr 6fr; gap: 0 var(--gap); } .book__aside { grid-column: 1; } .book__form { grid-column: 3; } }
.form { display: grid; gap: 18px; }
.form__two { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .field__lbl { font: 400 var(--t-mono)/1.4 var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35,64,216,.18); }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--t-small); color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.check a { color: var(--ink); }
.form__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ---------- visit / map ---------- */
.visit { display: grid; gap: 36px; }
@media (min-width: 1000px) { .visit { grid-template-columns: 7fr 5fr; gap: 0 clamp(28px, 4vw, 64px); align-items: start; } }
.map { position: relative; background: var(--paper); border: 1px solid var(--line); }
.map svg { width: 100%; height: auto; }
.map figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); }
.map .st-river { fill: var(--accent-soft); }
.map .st-river-edge { fill: none; stroke: #BFC8F5; stroke-width: 1.2; }
.map .st-street { stroke: #DCDCE2; stroke-width: 17; }
.map .st-street--main { stroke-width: 25; }
.map .st-block { fill: #F3F3F5; }
.map .st-name { font: 500 10px var(--f-mono); fill: var(--ink-2); text-transform: uppercase; letter-spacing: .02em; }
.map .st-name--river { fill: var(--accent); font-size: 12px; }
.map .st-route { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 6; }
.map .st-pin { fill: var(--accent); }
.map .st-pulse { fill: var(--accent); opacity: .18; transform-origin: center; transform-box: fill-box; animation: mapPulse 2.6s ease-out infinite; }
@keyframes mapPulse { 0% { transform: scale(.4); opacity: .4; } 100% { transform: scale(1.6); opacity: 0; } }
.status { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: .9375rem; background: var(--paper); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(21,122,70,.15); }
.status.is-closed::before { background: var(--off); }
.addr { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.hours { border-top: 1px solid var(--ink); margin-top: 24px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.hours dt { color: var(--ink-2); }
.hours dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.hours div.is-today dt, .hours div.is-today dd { color: var(--accent); font-weight: 650; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #EDEDEF; padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: #9FB0FF; text-decoration: underline; text-underline-offset: 3px; }
.foot__big { font-size: clamp(4.5rem, 16vw, 15rem); font-weight: 800; letter-spacing: -.07em; line-height: .78; color: #fff; }
.foot__big i { font-style: normal; color: var(--accent); }
.foot__grid { display: grid; gap: 32px; margin-top: clamp(40px, 5vw, 72px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot__col h3 { font: 400 var(--t-mono)/1.4 var(--f-mono); text-transform: uppercase; color: #A3A3AA; margin-bottom: 14px; }
.foot__col li + li { margin-top: 8px; }
.foot__col a { display: inline-flex; min-height: 28px; align-items: center; }
.foot__about { grid-column: 1 / -1; max-width: 40ch; color: #BDBDC4; font-size: var(--t-small); }
@media (min-width: 900px) { .foot__about { grid-column: auto; } }
.foot__legal { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; color: #8E8E96; }
.foot__legal a { color: #C9C9CF; }

/* ---------- sticky mobile CTA ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,250,250,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
.mbar .btn { flex: 1 1 0; min-height: 48px; padding: 0 12px; font-size: .9375rem; }
.mbar.is-on { transform: none; }
@media (max-width: 899px) { .mbar { display: flex; } body { padding-bottom: 0; } .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- legal pages ---------- */
.doc { max-width: 760px; }
.doc h1 { font-size: var(--t-h2); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 16px 0 28px; }
.doc h2 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.015em; margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { margin-top: 10px; display: grid; gap: 6px; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.doc__stamp { display: inline-block; margin-top: 8px; padding: 6px 10px; border: 1px solid var(--accent); color: var(--accent); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .tile__in { transition: none; }
  .tile.is-flipped .tile__in, .tile:hover .tile__in { transform: none !important; }
  .tile__back { transform: none; opacity: 0; transition: opacity .2s; }
  .tile.is-flipped .tile__back, .tile:hover .tile__back { opacity: 1; }
  .arch__img img { transition: filter .3s; }
  .arch__item:hover .arch__img img { transform: none; }
}

/* =====================================================================
   SUBPAGES — archive.html, calculator.html, prices.html
   Same tokens and hairline language; each page gets its own rhythm.
   ===================================================================== */

/* ---------- page hero: giant initial + split headline ---------- */
.phero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.phero__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: clamp(14px, 2.6vw, 40px); margin-top: clamp(28px, 4vw, 52px); }
.phero__letter { font-size: clamp(7rem, 22vw, 21rem); font-weight: 800; line-height: .72; letter-spacing: -.07em; color: var(--ink); user-select: none; margin-bottom: -.03em; }
.phero__letter--accent { color: var(--accent); }
.phero__title { font-size: clamp(2.6rem, 7vw, 7.6rem); font-weight: 800; line-height: .9; letter-spacing: -.055em; padding-bottom: 6px; text-wrap: balance; }
.phero__title > span { display: block; }
.phero__title .accent { color: var(--accent); }
.phero__row { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--ink); }
.phero__row .t-lead { max-width: 52ch; }
.phero__row .facts { margin-top: 0; }
.phero__lead { max-width: 60ch; margin-top: clamp(24px, 3vw, 40px); padding-top: 20px; border-top: 1px solid var(--ink); }
.phero--tool { padding-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 1000px) {
  .phero__row { grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; }
}
@media (max-width: 600px) {
  .phero__grid { grid-template-columns: 1fr; row-gap: 8px; }
  .phero__letter { font-size: 7.5rem; }
}
.facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts--3 .facts__item { border-bottom: 0; padding-top: 20px; }
  .facts--3 .facts__item + .facts__item { padding-left: 20px; border-left: 1px solid var(--line); }
  .facts--3 .facts__item:nth-child(even) { padding-left: 20px; }
}
@media (max-width: 639px) { .facts--3 .facts__item:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; } }
.section--first { padding-top: clamp(40px, 5vw, 72px); }

/* on-cobalt ghost button + CTA band */
.btn--on-accent { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--on-accent:hover { background: #fff; color: var(--accent); border-color: #fff; }
.cta { display: grid; gap: 32px; }
@media (min-width: 1000px) { .cta { grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: end; } }
.cta__kicker { color: rgba(255,255,255,.8); margin-bottom: 18px; }
.cta__title { text-wrap: balance; font-size: var(--t-h2); font-weight: 700; letter-spacing: -.035em; line-height: 1; max-width: 16ch; }
.cta__side > p:first-child { font-size: var(--t-lead); line-height: 1.45; color: rgba(255,255,255,.88); }
.cta__phone { color: rgba(255,255,255,.8); }
.section--accent .phone-link { color: #fff; border-color: rgba(255,255,255,.5); }
.section--accent .phone-link:hover { color: #fff; border-color: #fff; }

/* ---------- archive: toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.toolbar .filters { margin-bottom: 0; }
.filters button { transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); }
.view { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.view[hidden] { display: none; }
.view button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 0; background: none; font-weight: 500; font-size: .9375rem; color: var(--muted); }
.view button + button { border-left: 1px solid var(--line-2); }
.view button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.view button[aria-pressed="true"] { color: var(--ink); background: var(--accent-soft); }
.toolbar__count { margin: 14px 0 clamp(28px, 3vw, 40px); color: var(--muted); }
.arch__empty { padding: 40px 0; color: var(--muted); }

/* archive items as buttons (open the passport) */
.arch--full { gap: 44px var(--gap); }
@media (min-width: 700px) and (max-width: 999px) { .arch--full { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.arch__open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
.arch__open > span, .arch__cap > span { display: block; }
.arch__open:hover .arch__img img, .arch__open:focus-visible .arch__img img { transform: scale(1.04); filter: none; }
.arch__open:hover .arch__name { color: var(--accent); }
.arch__open:focus-visible { outline-offset: 4px; }
.arch__num { display: none !important; }
.arch__img--draw { aspect-ratio: 3 / 4; background-color: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; background-position: -1px -1px; border: 1px solid var(--line); }
.arch__img--draw svg { position: absolute; inset: 8% 6% 4%; width: 88%; height: 88%; fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; transition: transform .8s var(--ease); }
.arch__img--draw svg .w { fill: none; stroke: var(--muted); stroke-dasharray: 3 4; }
.arch__img--draw svg .s { fill: var(--accent); stroke: none; }
.arch__img--draw svg text { font: 500 11px var(--f-mono); fill: var(--muted); stroke: none; text-transform: uppercase; }
.arch__open:hover .arch__img--draw svg { transform: scale(1.03); }
.arch__stamp { position: absolute; right: 8px; top: 8px; padding: 3px 6px; border: 1px solid var(--accent); color: var(--accent); background: var(--paper); font-size: .5625rem !important; }
.arch__pass { margin-top: 14px; font-size: var(--t-small); }
.arch__pass .spec__row { padding: 9px 0; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); }
.pa-dialog .arch__pass { display: none; }

/* journal (list) view */
.arch.is-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
.arch.is-list .arch__item { border-bottom: 1px solid var(--line); }
.arch.is-list .arch__open { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; }
.arch.is-list .arch__img img, .arch.is-list .arch__img--draw { aspect-ratio: 1; }
.arch.is-list .arch__img--draw { background-size: 8px 8px; }
.arch.is-list .arch__code, .arch.is-list .arch__stamp { display: none; }
.arch.is-list .arch__cap { margin: 0; padding: 0; border: 0; display: grid !important; grid-template-columns: 1fr; gap: 2px; }
.arch.is-list .arch__num { display: block !important; color: var(--accent); }
.arch.is-list .arch__meta { margin-top: 0; }
.arch.is-list .arch__open:hover { background: var(--bg); }
@media (min-width: 900px) {
  .arch.is-list .arch__open { grid-template-columns: 64px minmax(0, 1fr); padding: 8px 12px 8px 0; }
  .arch.is-list .arch__cap { grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1.4fr); align-items: center; gap: 20px; }
}

/* passport dialog */
.pass { width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r); background: var(--paper); color: var(--ink); overflow: auto; }
.pass::backdrop { background: rgba(18,18,18,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pass[open] { animation: passIn .45s var(--ease); }
@keyframes passIn { from { opacity: 0; transform: translateY(18px); } }
.pass__in { position: relative; display: grid; }
@media (min-width: 820px) { .pass__in { grid-template-columns: 5fr 6fr; } }
.pass__media { background: var(--line); min-height: 240px; }
.pass__media img { width: 100%; height: 100%; max-height: 82dvh; object-fit: cover; }
.pass__draw { position: relative; height: 100%; min-height: 360px; background-color: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; }
.pass__draw svg { position: absolute; inset: 6%; width: 88%; height: 88%; fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.pass__draw svg .w { fill: none; stroke: var(--muted); stroke-dasharray: 3 4; }
.pass__draw svg .s { fill: var(--accent); stroke: none; }
.pass__draw svg text { font: 500 11px var(--f-mono); fill: var(--muted); stroke: none; }
.pass__body { padding: clamp(24px, 3.4vw, 44px); }
.pass__code { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); color: var(--accent); padding-right: 52px; }
.pass__title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin-top: 18px; text-wrap: balance; }
.pass__body .spec { margin-top: 20px; }
.pass__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.pass__step { min-height: 44px; padding: 0 4px; border: 0; background: none; font-weight: 600; color: var(--ink-2); }
.pass__step:hover { color: var(--accent); }
.pass__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.pass__close svg { width: 20px; height: 20px; }
.pass__close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* garment label (паспорт) */
.label { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 960px) { .label { grid-template-columns: 5fr 1fr 6fr; gap: 0 var(--gap); } .label__tag { grid-column: 1; } .label__steps { grid-column: 3; } }
.label__tag { position: relative; padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(35,64,216,.035) 9px 10px); align-self: start; }
.label__tag figcaption { margin-top: 18px; color: var(--muted); text-align: center; }
.tag { position: relative; max-width: 360px; margin: 0 auto; padding: 22px 22px 20px; background: #FDFDFB; border: 1px solid var(--ink); box-shadow: 0 1px 0 var(--line-2); transform: rotate(-1.2deg); }
.tag::before, .tag::after { content: ""; position: absolute; left: 10px; right: 10px; height: 0; border-top: 1px dashed var(--line-2); }
.tag::before { top: 7px; } .tag::after { bottom: 7px; }
.tag__brand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.tag__brand > span:first-child { font-weight: 800; font-size: 1.6rem; letter-spacing: -.06em; line-height: 1; }
.tag__brand i { font-style: normal; color: var(--accent); }
.tag__brand .mono { color: var(--muted); font-size: .5625rem; }
.tag__code { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.tag__code > span:first-child { font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.05em; line-height: 1; }
.tag__name { margin-top: 6px; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.tag__rows { margin-top: 14px; border-top: 1px solid var(--line); font-size: .625rem; }
.tag__rows div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tag__rows dt { color: var(--muted); }
.tag__care { margin-top: 12px; font-size: .5625rem; color: var(--muted); }
.tag__mark { display: inline-flex; align-items: center; gap: 6px; }
.tag__mark::before { content: attr(data-n); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #fff; font: 500 .5rem/1 var(--f-mono); letter-spacing: 0; }
.tag__code .tag__mark { gap: 10px; }
.tag__code .tag__mark::before { width: 18px; height: 18px; font-size: .5625rem; }

/* credits wall */
.credits-sec { border-top: 1px solid var(--line); }
.credits__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.credits { font-size: clamp(1.45rem, 3.4vw, 3.1rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.12; color: var(--ink); text-wrap: pretty; }
.credits span { display: inline; }
.credits span:not(:last-child)::after { content: ""; display: inline-block; width: .32em; height: .32em; margin: 0 .42em .14em; background: var(--accent); transform: rotate(45deg); }
.credits sup { font: 400 var(--t-mono)/1 var(--f-mono); letter-spacing: 0; color: var(--muted); vertical-align: super; }
.credits span:hover { color: var(--accent); }

/* ---------- calculator page ---------- */
.calc--full .calc__stage { position: sticky; top: calc(var(--head-h) + 16px); }
@media (max-width: 999px) { .calc--full .calc__stage { position: relative; top: 0; } }
.fs-two { display: grid; gap: 22px; }
.chip--urgent > span { white-space: normal; text-align: left; line-height: 1.3; padding-block: 10px; }
.chip--urgent input:checked + span { background: var(--off); border-color: var(--off); }
.chip--urgent input:checked + span::before { box-shadow: inset 0 0 0 3px var(--off); }
.kpi__wd { display: block; margin-top: 6px; font: 500 var(--t-mono)/1 var(--f-mono) !important; letter-spacing: .02em !important; text-transform: uppercase; color: var(--accent); }
.kpi__wd:empty { display: none; }
.calc__disclaimer { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }

/* deadline check */
.dl { display: grid; gap: 32px; }
@media (min-width: 1000px) { .dl { grid-template-columns: 4fr 8fr; gap: var(--gap); align-items: start; } }
.dl__form { display: grid; gap: 16px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.input--date { font-size: 1.15rem; font-weight: 600; }
.dl__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.dl__chip { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--bg); border-radius: var(--r); font-size: .875rem; font-weight: 500; }
.dl__chip:hover { border-color: var(--ink); }
.dl__verdict { display: grid; gap: 8px; padding: 22px 24px; border-left: 4px solid var(--line-2); background: var(--paper); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dl__verdict b { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.05; }
.dl__verdict span { color: var(--ink-2); max-width: 60ch; }
.dl__verdict[data-state="ok"] { border-left-color: var(--ok); }
.dl__verdict[data-state="ok"] b { color: var(--ok); }
.dl__verdict[data-state="urgent"] { border-left-color: var(--accent); }
.dl__verdict[data-state="urgent"] b { color: var(--accent); }
.dl__verdict[data-state="light"], .dl__verdict[data-state="no"] { border-left-color: var(--off); }
.dl__verdict[data-state="light"] b, .dl__verdict[data-state="no"] b { color: var(--off); }
.dl__send { margin-top: 20px; }
.dl__send[hidden], .plan[hidden] { display: none; }
.plan { margin-top: 24px; display: grid; border-top: 2px solid var(--ink); counter-reset: pl; }
.plan li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); animation: panelIn .5s var(--ease) both; }
.plan li:nth-child(2) { animation-delay: .05s; } .plan li:nth-child(3) { animation-delay: .1s; } .plan li:nth-child(4) { animation-delay: .15s; } .plan li:nth-child(5) { animation-delay: .2s; } .plan li:nth-child(6) { animation-delay: .25s; } .plan li:nth-child(7) { animation-delay: .3s; }
.plan li::before { content: ""; position: absolute; left: 0; top: 19px; width: 11px; height: 11px; background: var(--paper); border: 2px solid var(--ink); }
.plan li.is-start::before { background: var(--accent); border-color: var(--accent); }
.plan__when { font: 500 var(--t-mono)/1.4 var(--f-mono); text-transform: uppercase; color: var(--accent); }
.plan__what { margin-top: 4px; font-weight: 650; line-height: 1.25; }
.plan__note { margin-top: 2px; font-size: var(--t-small); color: var(--muted); }
@media (min-width: 700px) {
  .plan li { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; }
  .plan__what, .plan__note { margin-top: 0; }
}

/* method: formula + density swatches + matrix */
.method { display: grid; gap: 36px; }
@media (min-width: 1000px) { .method { grid-template-columns: 6fr 1fr 5fr; gap: 0 var(--gap); } .method__text { grid-column: 1; } .swatches { grid-column: 3; } }
.method .spec { margin-top: 0; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-self: start; }
.sw svg { width: 100%; aspect-ratio: 1; border: 1px solid var(--line); }
.sw figcaption { margin-top: 10px; display: grid; gap: 4px; }
.sw figcaption b { font-weight: 700; letter-spacing: -.02em; }
.sw figcaption .mono { color: var(--muted); font-size: .625rem; }
.matrix-wrap { margin-top: clamp(48px, 6vw, 84px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 560px; border-collapse: collapse; border-top: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.matrix caption { caption-side: bottom; text-align: left; padding-top: 12px; color: var(--muted); font-size: var(--t-small); }
.matrix th, .matrix td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); text-align: right; }
.matrix thead th { font: 400 var(--t-mono)/1.4 var(--f-mono); text-transform: uppercase; color: var(--muted); }
.matrix th[scope="row"], .matrix thead th:first-child { text-align: left; }
.matrix tbody th { font-weight: 600; }
.matrix tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; }
.matrix td { font-size: 1.05rem; }
.matrix td:last-child { color: var(--accent); }
.matrix tbody tr:hover { background: var(--paper); }

/* stone sizes at true scale */
.sizes { padding: clamp(20px, 3vw, 36px) 0; border-block: 1px solid var(--ink); }
.sizes__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
.sizes__item { display: grid; justify-items: start; gap: 6px; }
.sizes__item b { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.sizes__item .mono { color: var(--muted); font-size: .625rem; }
.gem { width: calc(var(--d) * 3); height: calc(var(--d) * 3); border-radius: 50%; margin-bottom: 8px; background: radial-gradient(circle at 34% 30%, #fff 0 12%, #B9C4FF 13% 30%, var(--accent) 31% 68%, var(--accent-2) 69%); box-shadow: inset 0 0 0 1px rgba(18,18,18,.15); }
.sizes figcaption { margin-top: 14px; }
@media (max-width: 560px) { .sizes__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; } }
.offer { display: grid; gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
@media (min-width: 860px) { .offer { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer__item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
@media (min-width: 860px) { .offer__item { padding: 28px 28px 8px 0; border-bottom: 0; } .offer__item + .offer__item { padding-left: 28px; border-left: 1px solid var(--line); } }
.offer__code { color: var(--muted); }
.offer__item h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.offer__price { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.offer__price small { display: block; margin-top: 6px; font: 400 var(--t-mono)/1.4 var(--f-mono); letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.offer__item--accent .offer__price { color: var(--accent); }
.offer__item p.muted { font-size: var(--t-small); }
.rules { display: grid; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } }
.rules .disc__note { margin-top: 0; }

/* ---------- prices page ---------- */
@media (min-width: 900px) { .tabs--prices .tabs__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tabs--prices .tabs__tab b { font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
@media (max-width: 899px) { .tabs--prices .tabs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tabs--prices .tabs__tab:last-child { grid-column: 1 / -1; } }
.tabs__panel .ptable caption a, .ptable caption a { color: var(--ink); }
.ptable .ptable__price { font-variant-numeric: tabular-nums; }
.incl { display: grid; gap: 36px; }
@media (min-width: 900px) { .incl { grid-template-columns: 1fr 1fr; gap: var(--gap); } }
.incl__head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid var(--ink); color: var(--ink); font-weight: 500; }
.incl__col--extra .incl__head { border-color: var(--line-2); color: var(--muted); }
.incl__list li { display: grid; gap: 2px; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); font-size: var(--t-small); }
.incl__list li b { color: var(--ink); font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; }
.incl__list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 12px; background: var(--accent); }
.incl__col--extra .incl__list li::before { background: transparent; border: 1.5px solid var(--line-2); }
.incl__list a { color: var(--ink); }

/* group order */
.group { display: grid; gap: 36px; }
@media (min-width: 1000px) { .group { grid-template-columns: 4fr 1fr 7fr; gap: 0 var(--gap); } .group__media { grid-column: 1; } .group__body { grid-column: 3; } }
.group__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.group__media figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); }
@media (min-width: 1000px) { .group__media { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; } }
.gcalc { display: grid; gap: 22px; }
.gcalc__range label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gcalc__range output { font: 800 2.2rem/1 var(--f-sans); letter-spacing: -.05em; color: var(--accent); text-transform: none; }
.gcalc input[type="range"] { --p: 17.6%; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.gcalc input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line-2) var(--p)); }
.gcalc input[type="range"]::-moz-range-track { height: 4px; background: var(--line-2); }
.gcalc input[type="range"]::-moz-range-progress { height: 4px; background: var(--accent); }
.gcalc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; background: var(--paper); border: 2px solid var(--ink); border-radius: 2px; transform: rotate(45deg); }
.gcalc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: var(--paper); border: 2px solid var(--ink); border-radius: 2px; }
.gcalc input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gcalc__scale { display: flex; justify-content: space-between; color: var(--muted); }
.tiers { margin-top: clamp(32px, 4vw, 48px); }
.tiers tbody tr.is-on { background: var(--accent-soft); }
.tiers tbody tr.is-on th { color: var(--accent); }
.tiers td { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .tiers td[data-l] { grid-column: 1 / -1; } .tiers .ptable__price { grid-row: auto; grid-column: 1 / -1; text-align: left; font-size: var(--t-small); } }

/* terms + sample estimate (receipt) */
.terms { display: grid; gap: 40px; }
@media (min-width: 1000px) { .terms { grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; } }
.terms__spec { margin-top: 0; }
.receipt { position: relative; padding: 28px 24px 26px; background: var(--paper); border: 1px solid var(--line); font-variant-numeric: tabular-nums; --zig: linear-gradient(135deg, var(--bg) 6px, transparent 0) 0 0 / 12px 12px repeat-x, linear-gradient(225deg, var(--bg) 6px, transparent 0) 0 0 / 12px 12px repeat-x; }
.receipt::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 8px; background: var(--zig); }
.receipt__head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.receipt__title { margin-top: 14px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.receipt__rows { margin-top: 12px; }
.receipt__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.receipt__rows li span { color: var(--ink-2); }
.receipt__rows b { white-space: nowrap; font-weight: 600; }
.receipt__rows .receipt__sum { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: 1.1rem; }
.receipt__rows .receipt__sum span { color: var(--ink); font-weight: 650; }
.receipt__rows .receipt__sum b { color: var(--accent); font-weight: 800; letter-spacing: -.02em; }
.receipt__foot { margin-top: 14px; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 980px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 16px 52px 16px 0; font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.25; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat; transition: transform .35s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); background: linear-gradient(var(--accent), var(--accent)) center / 16px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 16px no-repeat; }
.faq__item summary:hover { color: var(--accent); }
.faq__item p { padding: 0 52px 22px 0; color: var(--ink-2); max-width: 70ch; }
.faq__item p a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .pass[open], .plan li { animation: none; }
  .arch__open:hover .arch__img img { transform: none; }
  .arch__open:hover .arch__img--draw svg { transform: none; }
}

/* =====================================================================
   SUBPAGES — polish pass (QA at 360 / 768 / 1440)
   ===================================================================== */
/* footer + CTA phone never breaks mid-number */
.site-foot a[data-handoff="phone"], .phone-link { white-space: nowrap; }

/* prices hero: the tail of «Ц» must not run into the headline on phones */
@media (max-width: 600px) { .phero__letter--tail { margin-bottom: .16em; } }

/* archive: short stamp on narrow cards so it never covers the code */
@media (max-width: 1199px) { .arch__stamp-x { display: none; } }

/* archive sketches: callouts (labels + leader lines), readable on wide cards and in the passport */
.arch__img--draw svg .nt path, .pass__draw svg .nt path { fill: none; stroke: var(--ink); stroke-width: .8; stroke-dasharray: none; }
.arch__img--draw svg .nt .cr, .pass__draw svg .nt .cr { stroke: var(--muted); stroke-dasharray: 3 4; }
.arch__img--draw svg .nt circle, .pass__draw svg .nt circle { fill: var(--ink); stroke: none; }
.arch__img--draw svg .nt text, .pass__draw svg .nt text { font: 500 10.5px var(--f-mono); fill: var(--ink-2); text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 1199px) { .arch__img--draw svg .nt { display: none; } }

/* archive: the next free code closes the grid */
.arch__next { grid-column: 1 / -1; display: grid; align-self: start; border: 1px dashed var(--line-2); background: var(--paper); }
.arch__next-code { position: relative; display: grid; align-content: space-between; justify-items: start; gap: 16px; min-height: 200px; padding: 14px 16px; color: var(--muted); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; background-position: -1px -1px; border-bottom: 1px dashed var(--line-2); }
.arch__next-code .mono { font-size: .625rem; background: var(--paper); padding: 2px 4px; }
.arch__next-code b { font-size: clamp(3.4rem, 9vw, 6.6rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--line-2); }
@supports (-webkit-text-stroke: 1px black) { .arch__next-code b { color: transparent; -webkit-text-stroke: 1.5px var(--ink); } }
.arch__next-body { display: grid; align-content: end; gap: 14px; padding: 22px 20px 24px; }
.arch__next-title { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.arch__next-text { color: var(--ink-2); font-size: var(--t-small); max-width: 46ch; }
.arch__next .btn-row { align-items: center; gap: 10px 20px; }
@media (min-width: 700px) {
  .arch__next { grid-column: span 2; grid-template-columns: 1fr 1fr; }
  .arch__next-code { aspect-ratio: 3 / 4; min-height: 0; border-bottom: 0; border-right: 1px dashed var(--line-2); }
}
.arch.is-list .arch__next { grid-column: 1 / -1; grid-template-columns: 1fr; margin-top: 24px; }
.arch.is-list .arch__next-code { display: none; }

/* calculator: stones-per-zone matrix stacks into rows on phones (no sideways scroll) */
@media (max-width: 599px) {
  .matrix-wrap { overflow: visible; }
  .matrix { min-width: 0; display: block; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .matrix tbody { display: block; }
  .matrix caption { display: block; }
  .matrix tbody tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .matrix tbody th { grid-column: 1 / -1; padding: 0 0 4px; border: 0; }
  .matrix tbody th small { display: inline; margin-left: 6px; }
  .matrix td { padding: 0; border: 0; text-align: left; font-size: .9375rem; }
  .matrix td::before { content: attr(data-l); display: block; margin-bottom: 2px; font: 400 .5625rem/1.3 var(--f-mono); text-transform: uppercase; color: var(--muted); }
}

/* stones drawn as faceted chatons, not glossy balls */
.gem { position: relative; background: conic-gradient(from 22.5deg, #1A30A8 0 12.5%, #5C74F5 0 25%, #2340D8 0 37.5%, #A9B7FF 0 50%, #1A30A8 0 62.5%, #3E58E8 0 75%, #2340D8 0 87.5%, #8396FF 0); box-shadow: inset 0 0 0 1px rgba(18,18,18,.22); }
.gem::after { content: ""; position: absolute; inset: 27%; background: linear-gradient(135deg, #E4E9FF 0%, #7D91FF 55%, #2340D8 100%); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }

/* deadline: quick chips show which one is set */
.dl__chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* prices: group-size ticks sit at their real values on the slider (6 · 8 · 16 · 24 · 40) */
.gcalc__scale { position: relative; display: block; height: 1.4em; }
.gcalc__scale span { position: absolute; top: 0; left: calc(13px + (100% - 26px) * var(--v, 0)); transform: translateX(-50%); }

/* prices: FAQ + ask-the-master aside */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 8fr 4fr; gap: clamp(32px, 5vw, 80px); align-items: start; } .faq-ask { position: sticky; top: calc(var(--head-h) + 20px); } }
.faq-ask { display: grid; gap: 14px; justify-items: start; padding: 24px 22px; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--ink); }
.faq-ask__title { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
.faq-ask__text { color: var(--ink-2); font-size: var(--t-small); }
.faq-ask .channels { margin-top: 4px; }
@media (min-width: 1000px) { .dl__form { position: sticky; top: calc(var(--head-h) + 20px); } }

/* ================================================================
   REVIEW PASS — typography safety, fittings photo frame, code lines
   ================================================================ */
/* long Russian words never push the layout sideways; hyphenate only on narrow columns and only long words */
html { overflow-wrap: break-word; }
@media (max-width: 600px) {
  p, li, dd, td, th, figcaption, summary, h2, h3, .t-lead {
    -webkit-hyphens: auto; hyphens: auto;
    -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4;
    hyphenate-limit-chars: 10 4 4;
  }
  .mono, .btn, .ch, .kpi__val, .phone-link, .nowrap { -webkit-hyphens: manual; hyphens: manual; }
}
/* the section code line («§ 04 — Условия · оплата, документы…») wraps as two whole phrases */
.shead__code { flex-wrap: wrap; row-gap: 4px; }
.shead__code > span:first-child { white-space: nowrap; }
/* fittings photo: parallax moves the picture inside a fixed frame, so it never slides over the caption */
.fit__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 2px; background: var(--line); }
.fit__frame img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
/* very narrow phones (320–400 px): long button labels wrap instead of widening the page; footer columns stack */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; }
}
@media (max-width: 374px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}
/* archive «П-122» tile: the outlined code scales with its own column, so the tile never widens the grid (1000–1199 px) */
.arch__next-code { container-type: inline-size; overflow: hidden; }
.arch__next-code b { font-size: clamp(3rem, 7vw, 6.6rem); font-size: min(6.6rem, 31cqi); }
@media (min-width: 700px) { .arch__next { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.arch.is-list .arch__next { grid-template-columns: minmax(0, 1fr); }
