:root {
  --ink: #080A0D;
  --panel: #0E1216;
  --panel-2: #151B22;
  --panel-3: #1C242D;
  --line: #1F262F;
  --steel: #7F92A6;
  --fog: #B3BFCA;
  --white: #F2F5F7;
  --lime: #C8F01E;
  --lime-hi: #D9FF45;
  --lime-ink: #0B0F00;

  --display: "Science Gothic", "Arial Black", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  --c: 10px;
  --bg: var(--panel-2);
  --fg: var(--white);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  background: none;
  color: var(--fg);
  font: 600 15px/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), filter .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background .2s;
}
.btn:hover { --bg: var(--panel-3); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-lime { --bg: var(--lime); --fg: var(--lime-ink); }
.btn-lime:hover { --bg: var(--lime-hi); filter: drop-shadow(0 0 22px rgba(200, 240, 30, .35)); }
.btn-sm { --c: 8px; min-height: 42px; padding: 0 16px; font-size: 14px; }

.icon-btn {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn::before {
  --c: 10px;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panel-2);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background .2s;
}
.icon-btn:hover::before { background: var(--panel-3); }

/* ---------- Header ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.top.is-scrolled {
  background: rgba(8, 10, 13, .8);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.mark {
  display: grid;
  font: 600 13px/1.2 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--fog); font-weight: 500; font-size: 15px; text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--white); }
.phone { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .01em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: calc(var(--header-h) + 12px) var(--gutter) 24px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url(assets/scenes/bg-tools.jpg) center / cover;
  opacity: .22;
  filter: grayscale(1);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 38% at 50% 70%, rgba(200, 240, 30, .13), transparent 70%),
    linear-gradient(180deg, rgba(8, 10, 13, .1) 0%, rgba(8, 10, 13, .55) 60%, var(--ink) 100%);
}
.hero-title { position: relative; z-index: 2; }
.hero-type {
  --ws: 200;
  --lr: 340px;
  position: absolute;
  left: 50%;
  top: clamp(48px, 10vh, 120px);
  z-index: -1;
  display: grid;
  font: 900 120px/.9 var(--display);
  font-stretch: var(--w, 200%);
  white-space: nowrap;
  transform: translate3d(calc(-50% + var(--px, 0px)), var(--py, 0px), 0);
  transition: transform .8s var(--ease);
  pointer-events: none;
  user-select: none;
}
.hero-type > span { grid-area: 1 / 1; }
.ht-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(200, 240, 30, .5); }
.ht-light {
  color: transparent;
  background: radial-gradient(circle var(--lr) at var(--lx, 50%) var(--ly, 75%), #F6FFD6 0, rgba(200, 240, 30, .92) 7%, rgba(200, 240, 30, .32) 34%, transparent 72%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .5;
  filter: drop-shadow(0 0 24px rgba(200, 240, 30, .35));
  transition: opacity .7s;
  animation: ignite 1.6s linear .4s backwards;
}
.hero.is-lit .ht-light { opacity: 1; }
@keyframes ignite {
  0% { opacity: 0; }
  5% { opacity: 1; }
  8% { opacity: .05; }
  13% { opacity: .95; }
  16% { opacity: .12; }
  24% { opacity: 1; }
  70% { opacity: 1; }
}
.hero-sub { position: relative; z-index: 2; margin-top: 4px; color: var(--fog); font-size: clamp(15px, 1.25vw, 18px); }

.ring {
  --size: clamp(170px, 25vw, 400px);
  position: relative;
  flex: 1;
  min-height: clamp(340px, 54vh, 620px);
  margin: 0 calc(var(--gutter) * -1);
  touch-action: pan-y;
  cursor: grab;
  outline-offset: -12px;
  -webkit-user-select: none;
  user-select: none;
}
.ring.is-drag { cursor: grabbing; }
.orbit {
  position: absolute;
  left: calc(50% - var(--orx, 300px));
  top: calc(50% + var(--ocy, 60px) - var(--ory, 60px));
  width: calc(var(--orx, 300px) * 2);
  height: calc(var(--ory, 60px) * 2);
  border: 1.5px dotted rgba(200, 240, 30, .38);
  border-radius: 50%;
  pointer-events: none;
}
.orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 60%;
  height: 80px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 240, 30, .32), rgba(200, 240, 30, .06) 60%, transparent);
  filter: blur(8px);
}
.spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F4FFD2;
  box-shadow: 0 0 8px 2px rgba(200, 240, 30, .95), 0 0 30px 9px rgba(200, 240, 30, .35);
  offset-anchor: center;
  offset-rotate: 0deg;
  animation: orbit 9s linear infinite;
}
@keyframes orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.ring-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  padding: 0;
  border: 0;
  background: none;
  cursor: inherit;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.ring-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: grayscale(1) brightness(.8);
  transition: filter .7s var(--ease);
  -webkit-box-reflect: below 2px linear-gradient(transparent 76%, rgba(255, 255, 255, .13));
  pointer-events: none;
}
.ring-item.is-front img { filter: grayscale(0) brightness(1) drop-shadow(0 26px 34px rgba(0, 0, 0, .55)); }

.hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hp-type { color: var(--steel); font-size: 14px; }
.hp-name { margin-top: 4px; font: 600 clamp(20px, 2.3vw, 32px)/1.15 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.hp-buy { display: flex; align-items: center; gap: 24px; }
.hp-nav { display: flex; align-items: center; gap: 12px; color: var(--steel); font-size: 14px; font-variant-numeric: tabular-nums; }
.hp-count { min-width: 48px; text-align: center; }
.hero-panel.swap .hp-info { animation: swapIn .55s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } }

.price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.price b { font: 800 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price > span { color: var(--steel); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 150px) var(--gutter) 0; }
.h2 { font: 800 clamp(26px, 3.7vw, 54px)/1.05 var(--display); font-stretch: 125%; text-wrap: balance; }
.h2.will-reveal { font-stretch: 55%; opacity: 0; transition: font-stretch 1.3s var(--ease), opacity .5s; }
.h2.will-reveal.is-in { font-stretch: 125%; opacity: 1; }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 3vw, 44px);
}
.cat {
  --c: 22px;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  perspective: 1100px;
  -webkit-tap-highlight-color: transparent;
}
.tilt-body {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
}
.is-tilting > .tilt-body { transition-duration: .12s; }
.tilt-body::before,
.tilt-body::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  pointer-events: none;
}
.tilt-body::before { inset: 0; background: var(--line); transform: translateZ(-2px); transition: background .4s; }
.tilt-body::after {
  inset: 1px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(200, 240, 30, .09), transparent 60%), var(--panel);
  transform: translateZ(-1px);
}
.cat:hover .tilt-body::before,
.cat:focus-visible .tilt-body::before { background: linear-gradient(150deg, var(--lime), rgba(200, 240, 30, .12) 60%); }

.cat-hex { position: absolute; top: 22px; left: 20px; width: 60px; color: var(--lime); transform: translateZ(70px); }
.cat-hex svg { display: block; width: 100%; height: auto; }
.cat-text { position: absolute; top: 100px; left: 22px; right: 22px; display: grid; gap: 8px; transform: translateZ(45px); }
.cat-title { font: 600 clamp(17px, 1.45vw, 23px)/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.cat-short { color: var(--fog); font-size: 14px; line-height: 1.4; }
.cat-photo {
  --c: 14px;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  top: 52%;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transform: translateZ(25px);
}
.cat-photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8) contrast(1.05); transition: transform 1s var(--ease), filter .6s; }
.cat:hover .cat-photo img { transform: scale(1.07); filter: brightness(1.05) contrast(1.05); }
.cat-count {
  --c: 7px;
  position: absolute;
  right: 26px;
  bottom: 26px;
  padding: 8px 12px;
  color: var(--lime-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transform: translateZ(80px);
  isolation: isolate;
}
.cat-count::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}

/* ---------- Catalog ---------- */
.chips-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  margin: clamp(20px, 2.4vw, 32px) calc(var(--gutter) * -1) 0;
  padding: 12px var(--gutter);
  background: rgba(8, 10, 13, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px; padding: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  --c: 8px;
  position: relative;
  isolation: isolate;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--fog);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panel-2);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background .2s;
}
.chip:hover { color: var(--white); }
.chip:hover::before { background: var(--panel-3); }
.chip small { color: var(--steel); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { color: var(--lime-ink); }
.chip[aria-pressed="true"]::before { background: var(--lime); }
.chip[aria-pressed="true"] small { color: rgba(11, 15, 0, .6); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.card {
  --c: 18px;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}
.card .tilt-body { position: relative; inset: auto; display: flex; flex-direction: column; height: 100%; }
.grid.is-entering .card { animation: cardIn .55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }

.card-stage {
  position: relative;
  display: block;
  aspect-ratio: 1 / .82;
  min-height: 0;
  padding: 9% 11% 4%;
  transform: translateZ(35px);
  transition: transform .7s var(--ease);
}
.card-stage::before {
  content: "";
  position: absolute;
  inset: 16% 12% 4%;
  background: radial-gradient(closest-side, rgba(200, 240, 30, .3), transparent);
  opacity: 0;
  transform: translateZ(-30px);
  transition: opacity .5s;
}
.card-stage img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(.85) drop-shadow(0 16px 16px rgba(0, 0, 0, .45));
  transition: filter .6s var(--ease), transform .7s var(--ease);
}
.card:hover .card-stage,
.card.is-lit .card-stage { transform: translateZ(80px); }
.card:hover .card-stage::before,
.card.is-lit .card-stage::before { opacity: 1; }
.card:hover .card-stage img,
.card.is-lit .card-stage img { filter: grayscale(0) brightness(1) drop-shadow(0 28px 26px rgba(0, 0, 0, .55)); transform: scale(1.05); }
.card:hover .tilt-body::before,
.card:focus-visible .tilt-body::before,
.card.is-lit .tilt-body::before { background: linear-gradient(155deg, var(--lime), rgba(200, 240, 30, .1) 55%); }

.card-body { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 0 20px 20px; transform: translateZ(20px); }
.card-type {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.35;
}
.card-name { font: 600 17px/1.2 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.card .price b { font-size: 28px; }
.card .price > span { font-size: 13px; }
.badge {
  --c: 7px;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 11px;
  color: var(--lime-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transform: translateZ(90px);
  isolation: isolate;
}
.badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}
.step { --c: 18px; position: relative; isolation: isolate; padding: 28px 26px 30px; }
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.step-n {
  display: block;
  margin-bottom: 28px;
  font: 800 76px/.8 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--lime);
}
.step h3 { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; }
.step p { margin-top: 10px; color: var(--fog); font-size: 15px; max-width: 34ch; }

/* ---------- Footer ---------- */
.foot {
  display: grid;
  gap: 48px;
  margin-top: clamp(80px, 10vw, 150px);
  padding: clamp(48px, 6vw, 88px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.foot-phone {
  display: inline-block;
  margin: 22px 0 26px;
  font: 800 clamp(28px, 6.4vw, 92px)/1 var(--display);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: color .25s;
}
.foot-phone:hover { color: var(--lime); }
.foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-addr { margin-top: 22px; color: var(--fog); }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 13px;
}

/* ---------- Mobile dock ---------- */
.dock { display: none; }

/* ---------- Sheet ---------- */
.sheet {
  --pad: clamp(16px, 3vw, 40px);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--pad);
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}
.sheet[open] { display: grid; place-items: center; }
.sheet::backdrop { background: rgba(3, 4, 6, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.sheet.is-open::backdrop { opacity: 1; }
.sheet-in {
  --c: 26px;
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100dvh - var(--pad) * 2);
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition: opacity .35s, transform .5s var(--ease);
}
.sheet.is-open .sheet-in { opacity: 1; transform: none; }
.sheet-scroll {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet-x { position: absolute; top: 16px; right: 16px; z-index: 3; }
.sheet-media {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  place-items: center;
  height: min(660px, calc(100dvh - var(--pad) * 2));
  padding: 56px 48px;
  background: radial-gradient(55% 45% at 50% 62%, rgba(200, 240, 30, .17), transparent 70%);
  perspective: 900px;
}
.sheet-media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .6));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.sheet.is-open .sheet-media img { animation: popIn .8s var(--ease) backwards .1s; }
@keyframes popIn { from { opacity: 0; transform: scale(.86) translateY(24px); } }

.sheet-body { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3.2vw, 48px); }
.sheet-type { color: var(--steel); font-size: 14px; }
.sheet-name { margin-top: 6px; padding-right: 48px; font: 600 clamp(24px, 2.6vw, 36px)/1.1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.sheet-sku { margin-top: 8px; color: var(--steel); font-size: 13px; }
.sheet-body .price b { font-size: clamp(34px, 3.4vw, 44px); }

.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.specs li { --c: 6px; position: relative; isolation: isolate; padding: 8px 12px; color: var(--fog); font-size: 14px; line-height: 1.2; }
.specs li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panel-2);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}

.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.variants legend { margin-bottom: 10px; padding: 0; color: var(--steel); font-size: 13px; }
.variants label { position: relative; }
.variants input { position: absolute; opacity: 0; pointer-events: none; }
.variants .chip { min-height: 38px; font-size: 14px; }
.variants input:checked + .chip { color: var(--lime-ink); }
.variants input:checked + .chip::before { background: var(--lime); }
.variants input:focus-visible + .chip { outline: 2px solid var(--lime); outline-offset: 3px; }

.calc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.days { display: flex; align-items: center; gap: 6px; }
.days output { min-width: 104px; text-align: center; font: 600 16px var(--display); font-variant-numeric: tabular-nums; }
.days .icon-btn { font-size: 22px; line-height: 1; }
.days .icon-btn:disabled { opacity: .35; cursor: default; }
.total { display: flex; align-items: baseline; gap: 8px; }
.total b { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.total > span { color: var(--steel); font-size: 14px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions .btn-lime { grid-column: 1 / -1; }

.req { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; color: var(--steel); font-size: 13px; }
.field input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #0A0D11;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  transition: border-color .2s;
}
.field input:focus { border-color: var(--lime); outline: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--fog); font-size: 13px; line-height: 1.4; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--lime); }

.done { --c: 12px; position: relative; isolation: isolate; display: grid; gap: 6px; padding: 20px 22px; }
.done::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(200, 240, 30, .1);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.done strong { font: 600 18px/1.2 var(--display); color: var(--lime); }
.done p { color: var(--fog); font-size: 15px; }
.done small { color: var(--steel); font-size: 12px; }

.with h3 { margin-bottom: 12px; font: 600 15px/1.2 var(--display); }
.with-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.mini {
  --c: 10px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.mini::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panel-2);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background .2s;
}
.mini:hover::before { background: var(--panel-3); }
.mini img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.mini-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.mini-price { display: block; margin-top: 2px; color: var(--steel); font-size: 13px; }

/* ---------- Type widths (Science Gothic wdth axis) ---------- */
.mark, .phone, .hp-name, .cat-title, .card-name, .step h3, .sheet-name, .with h3, .done strong, .days output { font-stretch: 112%; }
.price b, .total b, .step-n { font-stretch: 130%; }
.foot-phone { font-stretch: 115%; }

/* ---------- Odometer ---------- */
.odo { display: inline-flex; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-c { display: flex; flex-direction: column; transition: transform .9s var(--ease); }
.odo-c > span { display: block; height: 1em; line-height: 1; text-align: center; }
.odo-d:nth-last-child(2) .odo-c { transition-delay: .07s; }
.odo-d:nth-last-child(3) .odo-c { transition-delay: .14s; }
.odo-d:nth-last-child(4) .odo-c { transition-delay: .21s; }

/* ---------- Grain ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat { aspect-ratio: 4 / 3.6; }
  .cat-photo { top: 44%; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .phone { margin-left: auto; }
  .hero-panel { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; }
  .hp-buy { grid-column: 1 / -1; justify-content: space-between; }
  .hp-nav { grid-row: 1; grid-column: 2; gap: 6px; }
  .hp-count { display: none; }
  .steps { grid-template-columns: 1fr; }
  .dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 10, 13, .86);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(110%);
    transition: transform .45s var(--ease);
  }
  .dock.is-on { transform: none; }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

@media (max-width: 759px) {
  .sheet { padding: 0; }
  .sheet[open] { place-items: end stretch; }
  .sheet-in {
    width: 100%;
    max-height: 94dvh;
    clip-path: polygon(0 var(--c), var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
    opacity: 1;
    transform: translateY(100%);
  }
  .sheet-scroll { grid-template-columns: 1fr; }
  .sheet-media { position: relative; height: 36dvh; min-height: 240px; padding: 36px 32px 20px; }
  .sheet-body { gap: 18px; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); }
}

@media (max-width: 599px) {
  .phone-num { display: none; }
  .phone { width: 42px; padding: 0; }
  .mark { font-size: 12px; }
  .ring { --size: 74vw; min-height: 360px; }
  .hero-type { --ws: 125; --lr: 190px; top: 64px; }
  .foot-phone { font-size: 6.6vw; font-stretch: 90%; white-space: nowrap; }
  .cat-grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 78%; aspect-ratio: 3 / 4; scroll-snap-align: start; }
  .cat-photo { top: 50%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { --c: 14px; }
  .card-stage { padding: 12% 10% 6%; }
  .card-body { gap: 4px; padding: 0 12px 12px; }
  .card-type { font-size: 12px; }
  .card-name { font-size: 14px; font-stretch: 100%; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
  .card .price b { font-size: 24px; }
  .card .price > span { font-size: 12px; }
  .card .btn-sm { min-height: 40px; }
  .badge { top: 10px; left: 10px; }
  .step-n { font-size: 60px; margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
