/* Кромка — демо-лендинг детейлинг-студии. Лаборатория блеска. */
:root {
  --bg: #0A0C0F;
  --surface: #13171C;
  --surface-2: #1B2027;
  --text: #ECEFF3;
  --muted: #97A0AC;
  --line: #252B34;
  --accent: #3CC8F5;
  --accent-ink: #04121A;
  --error: #FF8A8A;
  --f-display: "Tektur", "Arial Narrow", sans-serif;
  --f-text: "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Consolas", monospace;
  --gutter: 40px;
  --header-h: 72px;
  --sec: 128px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: calc(1280px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.only-mob, .icon-btn.only-mob { display: none; }
svg use[href^="#i-"], .icon-btn svg, .link-btn svg, .mbar svg, .faq summary svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- car drawing (shared symbol) ---------- */
#car-body * { vector-effect: non-scaling-stroke; }
#car-body .cb-soft { stroke-opacity: .5; }
#car-body .cb-wheel, #car-body .cb-spokes { stroke-opacity: .8; }

/* ---------- type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 13px/1.3 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5; flex: none; }
h1 {
  font: 700 clamp(34px, 5.2vw, 76px)/1.02 var(--f-display);
  letter-spacing: .02em; text-transform: uppercase; max-width: 14ch;
}
h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
h2 {
  font: 500 clamp(26px, 3.2vw, 44px)/1.08 var(--f-display);
  text-transform: uppercase; letter-spacing: .01em; max-width: 22ch;
}
h3 { font: 600 17px/1.35 var(--f-text); }
.sec-sub { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 58ch; }
.sec-head { margin-bottom: 56px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 2px;
  font: 600 15px/1.2 var(--f-text); text-decoration: none; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 60%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transition: transform .6s ease; transform: translateX(260%); }
.btn-outline { border: 1px solid rgba(236,239,243,.4); color: var(--text); }
.btn-outline:hover { border-color: var(--text); background: var(--surface-2); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--text); text-decoration: none; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
}
.link-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.link-btn:hover svg { transform: translateX(4px); }
.link-btn.small { font-size: 14px; color: var(--muted); }
.link-btn.small:hover { color: var(--text); }
.inline-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 2px; color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- plate (spec table) ---------- */
.plate { position: relative; padding: 4px 0; }
.plate::before, .plate::after {
  content: ""; position: absolute; width: 8px; height: 8px; pointer-events: none;
  border: 0 solid var(--muted); transition: border-color .2s;
}
.plate::before { left: -1px; top: -1px; border-left-width: 1px; border-top-width: 1px; }
.plate::after { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }
.spec > div {
  display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 16px; align-items: baseline;
  padding: 11px 12px; border-bottom: 1px solid var(--line);
}
.spec > div:last-child { border-bottom: 0; }
.spec dt { font: 400 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec dd { font: 400 13px/1.5 var(--f-mono); color: var(--text); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10,12,15,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.logo-mark { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; }
.logo-text { display: flex; flex-direction: column; }
.logo-word { font: 700 20px/1 var(--f-display); letter-spacing: .06em; }
.logo-sub { margin-top: 5px; font: 400 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-size: 15px; color: var(--muted); padding: 12px 0; transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--text); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav a.active::after { transform: scaleX(1); }
.header-act { display: flex; align-items: center; gap: 20px; }
.header-phone { font-size: 14px; text-decoration: none; padding: 12px 0; }
.menu-btn { min-height: 44px; padding: 0 14px; border: 1px solid rgba(236,239,243,.4); border-radius: 2px; font-size: 14px; font-weight: 500; }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--line); }
.menu-nav { display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 24px; }
.menu-nav a { font: 500 30px/1.1 var(--f-display); text-transform: uppercase; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 24px; padding-bottom: 32px; }
.menu-phone { font-size: 18px; text-decoration: none; padding: 8px 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - 36px - var(--header-h)); min-height: max(640px, calc(100svh - 36px - var(--header-h))); display: flex; flex-direction: column; overflow: hidden; }
.hero-media {
  position: absolute; right: 0; top: 50%; transform: translateY(-58%);
  width: min(68vw, 1180px); aspect-ratio: 1920 / 1072;
}
.hero-stage { position: absolute; inset: 0; }
.hero-stage img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10,12,15,.75) 14%, rgba(10,12,15,0) 34%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,12,15,0) 26%),
    linear-gradient(180deg, var(--bg) 0%, rgba(10,12,15,0) 22%),
    linear-gradient(270deg, rgba(10,12,15,.6) 0%, rgba(10,12,15,0) 8%);
}
.hero-draw { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; fill: none; stroke: var(--text); stroke-width: 1; }
.hero-scan path, .hero-scan circle { stroke: var(--text); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.hs-body { stroke-opacity: .6; }
.hs-arch { stroke-opacity: .42; stroke-dasharray: .006 .008; }
.hs-wheel { stroke-opacity: .28; }
.js .hero-scan path:not(.hs-arch), .js .hero-scan circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero-scan.run path:not(.hs-arch), .js .hero-scan.run circle { animation: hdraw 1.6s cubic-bezier(.55,.1,.25,1) .2s forwards; }
.js .hero-scan.run circle { animation-delay: .9s; animation-duration: 1s; }
.js .hero-scan .hs-arch { opacity: 0; transition: opacity .8s ease 1.4s; }
.js .hero-scan.run .hs-arch { opacity: 1; }
@keyframes hdraw { to { stroke-dashoffset: 0; } }
.hero-callouts path { stroke: var(--muted); stroke-opacity: 1; stroke-width: 1.5; }
.hero-callouts circle { fill: var(--text); stroke: none; }
.hero-callouts text { fill: var(--text); stroke: none; font: 400 22px var(--f-mono); letter-spacing: .08em; }
.hero-glint {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; mix-blend-mode: soft-light;
}
.hero-glint::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transform: translateX(-150%) skewX(-20deg);
}
.js .hero-glint.run::before { animation: glint 1.2s cubic-bezier(.4,0,.2,1) .35s 1 both; }
@keyframes glint { from { transform: translateX(-150%) skewX(-20deg); } to { transform: translateX(560%) skewX(-20deg); } }
.hero-in { position: relative; z-index: 4; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(56px, 9vh, 104px); padding-bottom: 36px; }
.hero-copy { max-width: 640px; }
.hero-sub { margin-top: 28px; max-width: 52ch; font-size: 18px; line-height: 1.55; color: #C9CFD7; }
.hero-cta { display: flex; align-items: center; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(10,12,15,.55);
}
.hero-specs > div { padding: 18px 24px; border-left: 1px solid var(--line); }
.hero-specs > div:first-child { border-left: 0; padding-left: 12px; }
.hero-specs dt { font: 400 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-specs dd { margin-top: 6px; font: 400 14px/1.4 var(--f-mono); }

/* ---------- sections ---------- */
section { padding: var(--sec) 0; }
.hero { padding: 0; }
.grid-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(37,43,52,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,43,52,.5) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
}
.grid-bg .plate { background: var(--bg); }

/* ---------- calculator ---------- */
.calc { position: relative; }
.calc-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: start; }
.c-group + .c-group { margin-top: 32px; }
.c-label { font: 500 13px/1.3 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cls { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--bg); }
.cls button {
  text-align: left; padding: 14px 14px 16px; min-height: 44px; border-left: 1px solid var(--line);
  outline-offset: -3px; transition: background-color .2s; position: relative;
}
.cls button:first-child { border-left: 0; }
.cls button b { display: block; font: 500 15px/1.3 var(--f-text); }
.cls button span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.cls button:hover { background: var(--surface); }
.cls button[aria-checked="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--text); }

.draw { position: relative; margin-top: 28px; }
.draw + .c-group, .draw-hint + .c-group { margin-top: 28px; }
.draw-hint { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.draw-svg { width: 100%; height: auto; overflow: hidden; touch-action: manipulation; }
.dgrid, .draw-floor, .draw-axis, .draw-body, .callouts { pointer-events: none; }
.dgrid-line { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.dgrid { opacity: .7; }
.draw-floor { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.draw-axis { stroke: var(--line); stroke-width: 1; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.draw-body { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.zone {
  fill: transparent; stroke: transparent; stroke-width: 1.5; vector-effect: non-scaling-stroke;
  cursor: pointer; pointer-events: all;
  transition: fill .2s ease, stroke .2s ease;
}
.zone:hover, .zone.hl { fill: var(--surface-2); fill-opacity: .9; }
.zone.on { stroke: var(--accent); fill: rgba(60,200,245,.18); filter: drop-shadow(0 0 6px rgba(60,200,245,.45)); }
.zone.on:hover, .zone.on.hl { fill: rgba(60,200,245,.3); }
.zone.drawing { fill: transparent; filter: none; }
.hit { fill: none; stroke: transparent; stroke-width: 26px; pointer-events: stroke; cursor: pointer; }
.callouts path { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; fill: none; }
.callouts text { fill: var(--text); font: 400 23px var(--f-mono); letter-spacing: .06em; }
.callouts g { opacity: 0; transition: opacity .25s; }
.callouts g.on { opacity: 1; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; white-space: nowrap;
  padding: 7px 10px; background: var(--bg); border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .04em; color: var(--text);
  transform: translate(-50%, calc(-100% - 14px));
}

.packs { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 16px; }
.pack {
  min-height: 44px; font-size: 15px; font-weight: 500; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  opacity: .85; transition: opacity .2s;
}
.pack:hover { opacity: 1; }
.pack[data-pack="reset"] { color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 8px 12px 8px 12px; text-align: left;
  border: 1px solid var(--line); background: var(--bg); border-radius: 2px;
  font-size: 14px; line-height: 1.3; color: var(--muted);
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip span { display: flex; align-items: center; gap: 10px; }
.chip span::before { content: ""; flex: none; width: 8px; height: 8px; border: 1px solid var(--muted); transition: background-color .2s, border-color .2s; }
.chip i { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.chip:hover, .chip.hl { border-color: rgba(236,239,243,.4); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: var(--surface); }
.chip[aria-pressed="true"] span::before { background: var(--accent); border-color: var(--accent); }
.c-hint { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 62ch; }

.calc-panel {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line); padding: 28px 28px 20px;
}
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; transition: opacity .2s; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.sec-head-split { display: grid; grid-template-columns: 7fr 5fr; gap: 20px 48px; align-items: end; }
.sec-head-split h2 { max-width: none; }
.sec-head-split .sec-sub { margin-top: 0; font-size: 17px; }
[data-film-group].off .films { opacity: .45; }
.film-off { display: none; margin-top: 10px; font-size: 13px; color: var(--muted); }
[data-film-group].off .film-off { display: block; }
.film { position: relative; display: block; cursor: pointer; }
.film input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.film-b { display: block; height: 100%; padding: 13px 14px 13px 40px; border: 1px solid var(--line); background: var(--bg); position: relative; transition: border-color .2s; }
.film-b::before { content: ""; position: absolute; left: 14px; top: 15px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--muted); }
.film-b b { display: block; font-weight: 500; font-size: 15px; }
.film-b span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.film-b i { display: block; margin-top: 8px; font-style: normal; font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.film:hover .film-b { border-color: rgba(236,239,243,.4); }
.film input:checked + .film-b { border-color: var(--text); background: var(--surface-2); }
.film input:checked + .film-b::before { border-color: var(--text); box-shadow: inset 0 0 0 3px var(--surface-2); background: var(--text); }
.film input:focus-visible + .film-b { outline: 2px solid var(--text); outline-offset: 2px; }

.sw { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; position: relative; }
.sw input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; left: 0; top: 50%; transform: translateY(-50%); cursor: pointer; }
.sw-track { width: 44px; height: 26px; border-radius: 13px; border: 1px solid var(--muted); position: relative; transition: background-color .2s, border-color .2s; }
.sw-track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background-color .2s; }
.sw input:checked + .sw-track { background: var(--surface-2); border-color: var(--text); }
.sw input:checked + .sw-track::after { transform: translateX(18px); background: var(--text); }
.sw input:focus-visible + .sw-track { outline: 2px solid var(--text); outline-offset: 3px; }
.sw-name { font-size: 15px; line-height: 1.35; }
.sw-price, .chk .mono { font-size: 13px; white-space: nowrap; }
.sw-note { margin: 6px 0 14px 56px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.chk, .agree { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; position: relative; font-size: 15px; }
.chk input, .agree input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; left: 0; top: 50%; transform: translateY(-50%); cursor: pointer; }
.chk-box { width: 20px; height: 20px; border: 1px solid var(--muted); border-radius: 2px; position: relative; transition: background-color .15s, border-color .15s; }
.chk-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.chk input:checked + .chk-box, .agree input:checked + .chk-box { background: var(--text); border-color: var(--text); }
.chk input:checked + .chk-box::after, .agree input:checked + .chk-box::after { opacity: 1; }
.chk input:focus-visible + .chk-box, .agree input:focus-visible + .chk-box { outline: 2px solid var(--text); outline-offset: 3px; }
.agree { grid-template-columns: 20px 1fr; font-size: 14px; line-height: 1.45; color: var(--muted); }

.spec-wrap .spec { background: var(--bg); }
.spec-wrap .spec dd { text-transform: uppercase; }
.lines { margin-top: 16px; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; line-height: 1.4; }
.lines li .mono { font-size: 13px; white-space: nowrap; padding-top: 1px; }
.lines li.empty { color: var(--muted); }
.saving { margin-top: 4px; font-size: 13px; color: var(--muted); }
.saving:empty { display: none; }
.total { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.total-l { grid-column: 1 / -1; font: 400 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.total-v { font-size: 44px; font-weight: 500; line-height: 1.1; color: var(--accent); letter-spacing: -.02em; white-space: nowrap; }
.total-v.empty { color: var(--muted); }
.total-d { font-size: 15px; color: var(--text); padding-bottom: 8px; white-space: nowrap; }
.total-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.notes p { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.calc-panel .btn-block { margin-top: 22px; }
.calc-panel .link-btn.small { margin-top: 8px; }

/* roll digits */
.roll { display: inline-flex; align-items: flex-start; }
.roll .rc, .roll .rx { display: inline-block; height: 1.1em; line-height: 1.1em; vertical-align: top; }
.roll .rc { overflow: hidden; position: relative; }
.roll .rs { display: flex; flex-direction: column; transition: transform .25s cubic-bezier(.3,.7,.2,1); }
.roll .rs > span { height: 1.1em; line-height: 1.1em; text-align: center; }
.roll .rx { white-space: pre; }
.total-d .roll { line-height: 1.1; }

.calc-mini {
  position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 24px;
  width: min(513px, 100%); justify-content: space-between; margin: 32px 0 0 auto; padding: 8px 8px 8px 20px;
  background: rgba(19,23,28,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); transition: opacity .25s, transform .25s;
}
.calc-mini.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; }
.mini-meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mini-sum { font-size: 15px; white-space: nowrap; }
.mini-sum b { font-weight: 500; color: var(--text); }

/* ---------- method ---------- */
.method-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.method-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.points li { border-top: 1px solid var(--line); padding-top: 18px; }
.points p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.warranty { margin-top: 56px; }
.warranty .spec > div { grid-template-columns: minmax(140px, 36%) 1fr; }
.warranty .spec dd { text-transform: uppercase; }

/* ---------- before/after ---------- */
.ba-grid { display: grid; grid-template-columns: 8fr 4fr; grid-template-areas: "frame tabs" "frame side"; gap: 24px 40px; align-items: start; }
.ba-tabs { grid-area: tabs; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ba-tabs button {
  text-align: left; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font: 500 22px/1.2 var(--f-display); text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; transition: color .2s;
}
.ba-tabs button::after { content: ""; width: 10px; height: 10px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.ba-tabs button:hover { color: var(--text); }
.ba-tabs button[aria-selected="true"] { color: var(--text); }
.ba-tabs button[aria-selected="true"]::after { opacity: 1; }
.ba-frame {
  grid-area: frame; position: relative; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden;
  border: 1px solid var(--line); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-frame.fade img { opacity: 0; }
.ba-tag { position: absolute; top: 14px; z-index: 3; padding: 5px 8px; font-size: 11px; letter-spacing: .08em; background: rgba(10,12,15,.7); pointer-events: none; }
.ba-tag-l { left: 14px; }
.ba-tag-r { right: 14px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--text); z-index: 2; pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); display: grid; place-items: center; }
.ba-knob svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 4; cursor: ew-resize; pointer-events: none; }
.ba-frame:has(.ba-range:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.ba-side { grid-area: side; }
.ba-mini { width: 100%; height: auto; margin-bottom: 20px; fill: none; stroke: var(--muted); stroke-width: 1; stroke-opacity: .9; }
.ba-mini [data-ba-zones] path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-opacity: 1; vector-effect: non-scaling-stroke; }
.ba-interior path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-opacity: 1; vector-effect: non-scaling-stroke; }
.ba-interior { display: none; }
.ba-mini.interior .ba-interior { display: inline; }
.ba-side .spec dd { text-transform: uppercase; }
.ba-side .spec { transition: opacity .25s; }
.ba-side.fade .spec { opacity: 0; }

/* ---------- works ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); transition: filter .3s; }
.card .spec { margin-top: 20px; }
.card .spec > div { grid-template-columns: 96px 1fr; padding: 9px 10px; }
.card .spec dd { text-transform: uppercase; }
.card blockquote { margin-top: 22px; font-size: 15px; line-height: 1.6; }
.card .who { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (hover: hover) {
  .card:hover img { filter: brightness(1.08); }
  .card:hover .plate::before, .card:hover .plate::after { border-color: var(--text); }
}

/* ---------- prices ---------- */
.p-switch { display: none; }
.p-table-wrap { position: relative; }
.p-table { width: 100%; border-collapse: collapse; }
.p-table th, .p-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: baseline; }
.p-table thead th { font: 400 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--muted); }
.p-table th[scope="row"], .p-table thead th:first-child { text-align: left; }
.p-table th[scope="row"] { font: 400 16px/1.45 var(--f-text); max-width: 440px; }
.p-table td { font: 400 15px/1.45 var(--f-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-table tbody tr { transition: background-color .15s; }
.p-table tbody tr:hover { background: var(--surface); }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.p-foot p { font-size: 17px; }

/* ---------- winter ---------- */
.winter { background: var(--surface); padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.winter-in { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; max-width: 1600px; margin: 0 auto; }
.winter-copy { padding: 104px var(--gutter) 104px max(var(--gutter), calc((100vw - 1280px) / 2)); max-width: 720px; }
.winter-copy p:not(.eyebrow) { margin-top: 20px; font-size: 17px; line-height: 1.6; max-width: 50ch; }
.winter-copy .btn { margin-top: 32px; }
.winter-photo { position: relative; min-height: 420px; }
.winter-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font: 500 19px/1.4 var(--f-text); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 68ch; }

/* ---------- contacts ---------- */
.contacts { border-top: 1px solid var(--line); }
.contacts-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; }
.contact-spec dd { font-family: var(--f-text); font-size: 15px; }
.contact-spec dd a { text-decoration: none; border-bottom: 1px solid rgba(236,239,243,.4); }
.contacts-photo { margin-top: 36px; }
.contacts-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); }
.contacts-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.photo-form-wrap { background: var(--surface); border: 1px solid var(--line); padding: 36px; }
.form h3, .form-ok h3 { font: 500 24px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.form > .muted { margin-top: 12px; font-size: 15px; }
.field { margin-top: 20px; border: 0; padding: 0; min-width: 0; }
.field label:not(.agree):not(.file), .field .lbl { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  font-size: 16px; transition: border-color .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #6E7782; }
.field input:hover, .field textarea:hover { border-color: #3A424D; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field.bad input[type="text"], .field.bad input[type="tel"] { border-color: var(--error); }
.err { font-size: 13px; color: var(--error); margin-top: 6px; }
.err:empty { display: none; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; cursor: pointer; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(236,239,243,.4); border-radius: 2px; font-size: 14px; font-weight: 500; }
.file:hover .file-btn { border-color: var(--text); background: var(--surface-2); }
.file:has(input:focus-visible) .file-btn { outline: 2px solid var(--text); outline-offset: 3px; }
.file-state { font-size: 13px; }
.file-list { margin-top: 8px; font-size: 12px; color: var(--muted); }
.file-list li { padding: 3px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form .btn-block { margin-top: 24px; }
.form-ok { padding: 12px 0; }
.form-ok .link-btn { margin-top: 16px; }
.demo-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 40px; }
.footer-grid .muted { margin-top: 12px; font-size: 14px; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a { text-decoration: none; color: var(--muted); padding: 6px 0; font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.footer-contacts { font-style: normal; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 15px; color: var(--muted); }
.footer-contacts a { text-decoration: none; color: var(--text); padding: 4px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 16px; font-size: 13px; color: var(--muted);
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.footer-bottom .inline-link { color: var(--muted); min-height: 44px; }

/* ---------- mobile bar ---------- */
.mbar { display: none; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(4,6,8,.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden;
  animation: pop .22s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.bk { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.bk-scroll { overflow-y: auto; padding: 36px 36px 8px; overscroll-behavior: contain; }
.bk h2, .bk-ok h2, .policy h2 { font: 500 28px/1.1 var(--f-display); text-transform: uppercase; padding-right: 40px; max-width: none; }
.bk-sub { margin-top: 10px; font-size: 15px; }
.bk-sum { margin-top: 22px; }
.bk-sum .spec { background: var(--bg); }
.bk-sum .spec dd { text-transform: uppercase; }
.bk-sum .spec .sum-total dd { font-size: 15px; font-weight: 500; color: var(--text); }
.bk-none { padding: 16px; border: 1px dashed var(--line); font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-none .inline-link { min-height: 44px; }
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.days button b, .days button span { display: block; font-weight: 400; }
.days button span { color: var(--muted); margin-top: 2px; }
.days button[aria-checked="true"] span { color: var(--text); }
.days button, .slots button {
  min-height: 48px; padding: 6px 4px; border: 1px solid var(--line); background: var(--bg); border-radius: 2px;
  font: 400 12px/1.25 var(--f-mono); letter-spacing: .02em; text-align: center; transition: border-color .15s, background-color .15s;
}
.days button:hover, .slots button:not(:disabled):hover { border-color: rgba(236,239,243,.4); }
.days button[aria-checked="true"], .slots button[aria-checked="true"] { border-color: var(--text); background: var(--surface-2); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slots button { font-size: 13px; }
.slots button:disabled { opacity: .4; cursor: not-allowed; }
.bk-foot { padding: 16px 36px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.bk-ok { padding: 40px 36px; overflow-y: auto; }
.bk-ok p { margin-top: 14px; font-size: 16px; line-height: 1.6; }
.bk-ok .demo-note { font-size: 12px; }
.bk-ok .btn { margin-top: 24px; }
.policy { padding: 36px; overflow-y: auto; }
.policy p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: #C9CFD7; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 1024px) { .calc-mini { display: none; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-media { width: 60vw; transform: translateY(-50%); }
  .hero-copy { max-width: 46vw; }
  .hero-sub { font-size: 16px; }
}

/* ============ tablet ============ */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .header-phone { display: none; }
}
@media (max-width: 1023px) {
  :root { --gutter: 28px; --sec: 104px; }
  .nav { display: none; }
  .header-act { margin-left: auto; }
  .menu-btn.only-mob { display: inline-flex; align-items: center; }
  .header-phone { display: inline; }
  .calc-grid { grid-template-columns: 1fr; }
  .sec-head-split { grid-template-columns: 1fr; }
  .calc-panel { position: static; }
  .callouts { display: none; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; gap: 40px; }
  .method-photo img { aspect-ratio: 16 / 10; }
  .ba-grid { grid-template-columns: 1fr; grid-template-areas: "tabs" "frame" "side"; }
  .ba-tabs { flex-direction: row; border-top: 0; gap: 6px; }
  .ba-tabs button { flex: 1; justify-content: center; border: 1px solid var(--line); font-size: 16px; min-height: 48px; }
  .ba-tabs button::after { display: none; }
  .ba-tabs button[aria-selected="true"] { border-color: var(--text); background: var(--surface-2); }
  .ba-mini { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .faq-grid, .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-in { display: contents; }
  .hero-copy { max-width: 760px; order: 1; padding: 56px var(--gutter) 0; }
  .hero-media {
    order: 2; position: relative; right: auto; top: auto; transform: none; width: auto; margin: 28px 0 0;
    aspect-ratio: 16 / 9; overflow: hidden; container-type: size; opacity: 1;
  }
  .hero-stage {
    inset: auto; top: 50%; left: 90%;
    width: max(100cqw, calc(100cqh * 1.791)); height: max(100cqh, calc(100cqw / 1.791));
    transform: translate(-90%, -50%);
  }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10,12,15,0) 22%), linear-gradient(180deg, var(--bg) 0%, rgba(10,12,15,0) 18%); }
  .hero-callouts { display: none; }
  .hero-specs { order: 3; margin: 0 var(--gutter) 0 !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  h1 { font-size: 56px; }
  /* работы: первая карточка во всю ширину (фото | паспорт и отзыв), под ней две */
  .cards .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 32px; }
  .cards .card:first-child img { grid-row: 1 / span 3; }
  .cards .card:first-child .spec { margin-top: 0; }
}

/* ============ mobile ============ */
@media (max-width: 767px) {
  :root { --gutter: 16px; --sec: 80px; --header-h: 56px; }
  html { scroll-padding-top: 68px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .only-mob, .icon-btn.only-mob { display: inline-grid; }
  .menu-btn.only-mob { display: inline-flex; align-items: center; }
  .header-in { gap: 8px; }
  .header-act { gap: 4px; }
  .header-phone, .header-act .btn { display: none; }
  .logo-sub { display: none; }
  .sec-head { margin-bottom: 36px; }
  .sec-sub { font-size: 17px; }
  h2 { max-width: none; }

  .hero-copy { max-width: none; padding-top: 28px; }
  h1 { font-size: 34px; }
  .eyebrow { margin-bottom: 14px; font-size: 12px; }
  .hero-sub { margin-top: 16px; font-size: 16px; }
  .hero-cta { margin-top: 22px; flex-direction: column; align-items: stretch; gap: 4px; }
  .hero-cta .link-btn { align-self: flex-start; }
  .hero-media { aspect-ratio: 4 / 3; margin-top: 20px; }
  .hero-scan path, .hero-scan circle { stroke-width: 4; }
  .hero-specs { grid-template-columns: 1fr; margin-top: 0; background: none; border-top: 0; }
  .hero-specs > div { border-left: 0; border-top: 1px solid var(--line); padding: 12px 4px; display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
  .hero-specs > div:first-child { padding-left: 4px; }
  .hero-specs dd { margin-top: 0; font-size: 13px; }

  .cls { grid-template-columns: 1fr 1fr; }
  .cls button { border-left: 0; border-top: 1px solid var(--line); padding: 12px; }
  .cls button:nth-child(2n) { border-left: 1px solid var(--line); }
  .cls button:nth-child(-n+2) { border-top: 0; }
  .cls button span { font-size: 12px; }
  .draw { margin: 20px calc(var(--gutter) * -1) 0; }
  .hit { stroke-width: 44px; }
  .packs { gap: 0 18px; }
  .chips { gap: 6px; }
  .chip { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 8px 10px; min-height: 58px; font-size: 13px; }
  .chip i { padding-left: 18px; }
  .calc-panel { padding: 20px 16px; margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .sw-note { margin-left: 0; }
  .films { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .total-v { font-size: 34px; }
  .spec > div { grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 8px; }
  .calc-mini {
    bottom: 0; justify-content: space-between; gap: 12px; width: auto;
    margin: 24px calc(var(--gutter) * -1) calc(var(--sec) * -1); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    border: 0; border-top: 1px solid var(--line); background: rgba(19,23,28,.96);
  }
  .mini-meta { display: none; }
  .mini-sum { font-size: 14px; }
  .calc { padding-bottom: var(--sec); }

  .points { grid-template-columns: 1fr; gap: 28px; }
  .method-photo img { aspect-ratio: 4 / 5; }
  .warranty .spec > div { grid-template-columns: 120px 1fr; }
  .ba-tabs button { font-size: 14px; padding: 8px 4px; }
  .ba-frame { margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .cards { grid-template-columns: 1fr; gap: 56px; }
  .p-switch { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 20px; }
  .p-switch button { min-height: 48px; font-size: 13px; font-weight: 500; border-left: 1px solid var(--line); color: var(--muted); padding: 4px; }
  .p-switch button:first-child { border-left: 0; }
  .p-switch button[aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
  .p-table thead { display: none; }
  .p-table td { display: none; }
  .p-table[data-cls="compact"] td.c-compact, .p-table[data-cls="mid"] td.c-mid, .p-table[data-cls="large"] td.c-large, .p-table[data-cls="xl"] td.c-xl { display: table-cell; }
  .p-table th, .p-table td { padding: 14px 4px; }
  .p-table th[scope="row"] { font-size: 15px; }
  .p-table td { font-size: 14px; }
  .p-foot { flex-direction: column; align-items: stretch; }
  .winter-in { grid-template-columns: 1fr; }
  .winter-copy { padding: 64px var(--gutter); }
  .winter-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .faq summary { font-size: 17px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .photo-form-wrap { padding: 24px 16px; margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.6fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line);
    transition: transform .25s ease;
  }
  .mbar.hide { transform: translateY(110%); }
  .mbar > a, .mbar > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: 12px; color: var(--text); min-height: 56px; }
  .mbar > a + a { border-left: 1px solid var(--line); }
  .mbar svg { width: 20px; height: 20px; }
  .mbar-main { background: var(--accent); color: var(--accent-ink) !important; }
  .mbar-main b { font-size: 14px; font-weight: 600; }
  .mbar-main .mono { font-size: 12px; }
  .mbar-main .mono:empty { display: none; }

  .modal { padding: 0; place-items: end stretch; }
  .modal-box { width: 100%; max-height: 94vh; max-height: 94dvh; border-left: 0; border-right: 0; border-bottom: 0; animation: sheet .28s ease-out; }
  .modal-box.sheet { height: 94vh; height: 94dvh; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .bk-scroll { padding: 28px 16px 12px; }
  .bk h2, .bk-ok h2, .policy h2 { font-size: 24px; }
  .days { display: flex; overflow-x: auto; gap: 6px; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x proximity; scroll-padding-left: 16px; overscroll-behavior-x: contain; }
  .days button { flex: none; width: 76px; scroll-snap-align: start; }
  .bk-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .bk-ok, .policy { padding: 32px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-scan path, .js .hero-scan circle { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .hero-scan .hs-arch { opacity: 1; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
