:root {
  --bg: #0f1114; --bg-deep: #0b0d10; --bg-raised: #15181c; --bg-slot: #171a1f;
  --line: #1e2228; --line-strong: #262b32; --line-control: #2b3037; --line-hover: #3a4048;
  --fg-1: #eef1f4; --fg-2: #b6bdc4; --fg-3: #8d959d; --fg-4: #868e96; --fg-5: #6d757d; --fg-6: #5f666d;
  --ice: #93b0c6; --danger: #e08a7a;
  --font-display: 'Unbounded', sans-serif; --font-body: 'Manrope', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 72px); --section: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--fg-1); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px var(--gutter); background: rgba(15,17,20,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: .18em; }
.logo--muted { font-size: 13px; font-weight: 400; letter-spacing: .16em; color: var(--fg-4); }
.nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.2vw, 34px); font-size: 14px; color: #9aa2ab; }
.nav a.is-active { color: var(--fg-1); }
.cart-btn { flex: none; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; border: 1px solid var(--line-hover); padding: 10px 18px; border-radius: 2px; }
.cart-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--line-strong); color: var(--fg-4); transition: background .2s, color .2s; }
.cart-badge.is-filled { background: var(--fg-1); color: var(--bg); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--gutter) 110px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-5); }

/* type */
.eyebrow { font-size: 12px; letter-spacing: .24em; color: var(--ice); text-transform: uppercase; }
.h1 { font-family: var(--font-display); font-weight: 200; font-size: clamp(36px, 5vw, 72px); line-height: 1.03; letter-spacing: -.03em; margin: 0; max-width: 14ch; text-wrap: balance; }
.h1--wide { max-width: 18ch; }
.h1--product { max-width: none; }
.h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.h2--narrow { max-width: 16ch; }
.h2--sm { font-size: clamp(24px, 2.9vw, 36px); }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: 16px; margin: 0; }
.lead { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: #aab2ba; margin: 0; max-width: 46ch; text-wrap: pretty; }
.lead--wide { max-width: 54ch; }
.body { font-size: 15px; line-height: 1.65; color: var(--fg-3); margin: 0; text-wrap: pretty; }
.body--sm { font-size: 14px; line-height: 1.55; }
.caption { font-size: 13px; color: var(--fg-5); }
.caption--lg { font-size: 14px; color: var(--fg-4); }
.price { font-family: var(--font-display); font-weight: 200; font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -.02em; }
.price--lg { font-size: clamp(32px, 3.6vw, 46px); }
.price--xl { font-size: clamp(36px, 4.2vw, 56px); }
.link { font-size: 14px; color: var(--ice); text-decoration: underline; text-underline-offset: 4px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 2px; cursor: pointer; font-weight: 700; font-size: 15px; padding: 18px 36px; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .15s, color .15s; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn--primary { background: var(--fg-1); color: var(--bg); }
.btn--primary:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(147,176,198,.25); }
.btn--outline { width: 100%; background: transparent; color: var(--fg-1); border-color: var(--line-hover); font-size: 14px; padding: 12px 16px; }
.btn--outline:hover { opacity: 1; background: var(--fg-1); color: var(--bg); }
.btn--md { font-size: 15px; padding: 16px 30px; }
.btn--sm { font-size: 14px; padding: 13px 24px; }
.btn--start { align-self: flex-start; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; font-size: 14px; padding: 9px 18px; border-radius: 2px; cursor: pointer; border: 1px solid var(--line-control); background: transparent; color: var(--fg-2); transition: background .15s, color .15s, border-color .15s; }
.pill:hover { opacity: 1; border-color: var(--line-hover); }
.pill.is-active { background: var(--fg-1); border-color: var(--fg-1); color: var(--bg); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--fg-1); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; }
.badge--lg { top: 20px; left: 20px; padding: 6px 10px; }
.badge--inline { position: static; }
.badge[hidden] { display: none; }

/* layout */
.section { padding: var(--section) var(--gutter); }
.section--border { border-bottom: 1px solid var(--line); }
.section--top { border-top: 1px solid var(--line); }
.section--flush { padding-top: 0; }
.narrow { max-width: 1000px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); border-bottom: 1px solid var(--line); }
.split--top { border-top: 1px solid var(--line); }
.split__text { padding: clamp(48px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.split__text--start { justify-content: flex-start; }
.split__media { position: relative; min-height: clamp(320px, 38vw, 560px); background: var(--bg-slot); overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px; font-size: 12px; color: #c3cad1; background: linear-gradient(to top, rgba(11,13,16,.9), rgba(11,13,16,0)); }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); min-height: min(calc(100vh - 62px), 820px); border-bottom: 1px solid var(--line); }
.hero__text { padding: clamp(40px, 6vw, 88px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 2.6vw, 32px); }
.picker__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; color: var(--fg-5); margin-bottom: 14px; max-width: 460px; }
.picker__head span:first-child { letter-spacing: .14em; text-transform: uppercase; }
.picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
.picker__btn { position: relative; aspect-ratio: 1; padding: 0; background: var(--bg-slot) center / cover no-repeat; cursor: pointer; border-radius: 2px; border: 1px solid var(--line-strong); opacity: .6; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.picker__btn:hover { opacity: .85; }
.picker__btn.is-active { opacity: 1; border-color: var(--fg-1); box-shadow: 0 0 0 3px rgba(147,176,198,.25); }
.hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero__name { font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--fg-4); padding-top: 18px; border-top: 1px solid var(--line); }
.hero__media { position: relative; min-height: clamp(420px, 52vw, 760px); background: var(--bg-deep); overflow: hidden; }
.hero__layer { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.05); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.hero__layer.is-active { opacity: 1; transform: none; }
.hero__caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: clamp(18px, 2.4vw, 32px); background: linear-gradient(to top, rgba(11,13,16,.85), rgba(11,13,16,0)); }
.hero__caption-name { font-family: var(--font-display); font-size: clamp(18px, 2vw, 26px); font-weight: 300; white-space: nowrap; }
.hero__caption-meta { font-size: 13px; color: #c3cad1; text-align: right; max-width: 32ch; }

/* 3d */
.stage3d { position: relative; min-height: clamp(380px, 44vw, 620px); border-right: 1px solid var(--line); }
three-d-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
three-d-stage:not(:defined) { visibility: hidden; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(18px, 2.2vw, 32px); }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--bg-slot); overflow: hidden; }
.card__media:hover { opacity: 1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__media:hover img { transform: scale(1.04); }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__price { font-size: 15px; color: var(--fg-2); white-space: nowrap; }

/* blocks */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 24px; }
.stat__value { font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 1.9vw, 26px); white-space: nowrap; margin-bottom: 6px; }
.stat__label { font-size: 13px; color: var(--fg-4); }
.sheet { display: block; margin-top: 20px; border: 1px solid var(--line-strong); background: var(--bg-deep); }
.sheet:hover { opacity: 1; }
.sheet img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .25s; }
.sheet-full { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.sheet-full img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.why-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; margin-bottom: clamp(40px, 5vw, 72px); }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 3vw, 48px); }
.feature { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.feature__num { font-size: 12px; color: var(--fg-6); letter-spacing: .16em; margin-bottom: 14px; }
.feature .h3 { font-size: 17px; margin-bottom: 12px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.rows { display: flex; flex-direction: column; margin: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 20px; padding: 13px 0; border-top: 1px solid var(--line-strong); font-size: 15px; }
.row:last-child { border-bottom: 1px solid var(--line-strong); }
.row dt { color: var(--ice); }
.row dd { margin: 0; color: var(--fg-2); }
.specs .row dt { color: var(--fg-4); }
.specs .row dd { color: var(--fg-1); text-align: right; }

/* page head / catalog / product */
.page-head { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.toolbar { position: sticky; top: 62px; z-index: 20; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 16px var(--gutter); background: rgba(15,17,20,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sort { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--fg-5); }
.sort span { color: var(--fg-4); }
.sort a.is-active { color: var(--fg-1); text-decoration: underline; text-underline-offset: 4px; }
.empty { padding: clamp(48px, 8vw, 110px) 0; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.crumbs { display: flex; gap: 10px; padding: 20px var(--gutter); font-size: 13px; color: var(--fg-5); }
.crumbs a { color: var(--ice); }
.product-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; padding: 0 var(--gutter) clamp(48px, 6vw, 88px); }
.product-hero > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.product-hero__eyebrow { display: flex; align-items: center; gap: 14px; }
.product-hero__media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-slot); overflow: hidden; }
.product-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 8px 0; }
.fact__k { font-size: 12px; letter-spacing: .16em; color: var(--fg-6); margin-bottom: 8px; text-transform: uppercase; }
.fact__v { font-size: 16px; }

/* cart / checkout */
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; background: var(--bg-slot); }
.cart-line__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line__sum { min-width: 90px; text-align: right; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-control); }
.qty button { width: 36px; height: 36px; background: transparent; border: none; color: var(--fg-2); font-size: 16px; cursor: pointer; }
.qty button:hover { color: var(--fg-1); }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.remove { background: none; border: none; padding: 0; color: var(--fg-5); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.free { margin: 28px 0; }
.free__text { font-size: 14px; color: var(--fg-2); }
.progress { height: 3px; margin-top: 10px; background: var(--line); overflow: hidden; }
.progress__bar { height: 100%; background: var(--ice); transition: width .5s var(--ease); }
.progress__bar.is-done { background: var(--fg-1); }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.checkout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 5vw, 72px); padding: 0 var(--gutter) var(--section); align-items: start; }
.form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 13px; color: var(--fg-4); }
.field input, .field textarea, .field select { width: 100%; background: var(--bg-raised); border: 1px solid var(--line-control); border-radius: 2px; padding: 14px 16px; font-size: 15px; color: var(--fg-1); outline: none; transition: border-color .15s; }
.field input:focus, .field textarea:focus { border-color: var(--ice); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.errorlist { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 13px; }
.radio-list { display: grid; gap: 10px; }
.radio-list label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-control); cursor: pointer; font-size: 15px; transition: border-color .15s; }
.radio-list label:has(input:checked) { border-color: var(--fg-1); }
.radio-list input { accent-color: var(--fg-1); margin: 0; width: auto; }
.summary { position: sticky; top: 90px; background: var(--bg-raised); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.summary__title { font-size: 17px; }
.summary__line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 15px; }
.summary__line img { width: 48px; height: 48px; object-fit: cover; }
.summary__line--total { grid-template-columns: minmax(0, 1fr) auto; padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--fg-4); }

/* floating */
.buybar { position: fixed; left: 50%; bottom: -100px; transform: translateX(-50%); z-index: 50; width: min(640px, calc(100% - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 10px 10px 12px; background: rgba(21,24,28,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-control); box-shadow: 0 18px 40px rgba(0,0,0,.45); transition: bottom .45s var(--ease); }
.buybar.is-visible { bottom: 18px; }
.buybar__info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.buybar__img { width: 44px; height: 44px; flex: none; background: var(--bg-slot) center / cover no-repeat; }
.buybar__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.buybar__name { font-family: var(--font-display); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast { position: fixed; top: 78px; right: var(--gutter); z-index: 60; padding: 14px 20px; background: var(--fg-1); color: var(--bg); font-size: 14px; font-weight: 700; border-radius: 2px; box-shadow: 0 12px 30px rgba(0,0,0,.4); pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: none; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
[data-reveal].is-revealed, .no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .hero__layer, .card__media img, .btn { transition: none !important; transform: none !important; }
  [data-reveal] { opacity: 1; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .stage3d { border-right: none; border-bottom: 1px solid var(--line); }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .cart-line img { width: 56px; height: 56px; }
  .cart-line__sum { grid-column: 2; text-align: left; }
  .summary { position: static; }
}
