/* VESC Market — витрина */

:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --bg-3: #141722;
  --text: #f2f3f7;
  --muted: #a4a9b9;
  --dim: #6b7083;
  --line: rgba(214, 222, 255, 0.085);
  --line-2: rgba(214, 222, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.055);
  /* «титан после нагрева»: соломенный, бронза, фиолетовый, синий, лёд */
  --ti-1: #f6d58e;
  --ti-2: #ef9f7c;
  --ti-3: #c98ae6;
  --ti-4: #7f9bff;
  --ti-5: #7fe0ff;
  --titanium: linear-gradient(100deg, var(--ti-1) 0%, var(--ti-2) 24%, var(--ti-3) 50%, var(--ti-4) 76%, var(--ti-5) 100%);
  --accent: #8fa6ff;
  --accent-2: #c9d4ff;
  --phase-a: #f6c870;
  --phase-b: #d08cf0;
  --phase-c: #73c6ff;
  --ok: #6fe3b0;
  --warn: #f6c870;
  --off: #ff8a98;
  --plate-1: #f7f7fa;
  --plate-2: #e3e5ee;
  --ink: #0d0f16;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* звёздная пыль и сияние на фоне */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 50% -240px, rgba(110, 140, 255, 0.30), transparent 70%),
    radial-gradient(620px 420px at 85% 4%, rgba(201, 138, 230, 0.13), transparent 70%),
    radial-gradient(700px 520px at 8% 22%, rgba(246, 200, 112, 0.07), transparent 70%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 9%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 33%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 71%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 83% 22%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 54%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 81%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 88%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 41%, rgba(255,255,255,.3) 50%, transparent 51%);
  background-size: 640px 640px;
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(127, 155, 255, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- кнопки ---------- */

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 550;
  font-size: 16px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #dfe5ff 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.6) inset,
    0 10px 30px -8px rgba(127, 155, 255, .65),
    0 0 50px -10px rgba(127, 155, 255, .55);
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.8) inset,
    0 14px 40px -8px rgba(127, 155, 255, .85),
    0 0 70px -6px rgba(127, 155, 255, .65);
  transform: translateY(-1px);
}

.btn-glass {
  color: var(--text);
  background: var(--glass-2);
  border-color: var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255,255,255,.1); border-color: rgba(214,222,255,.32); }

.btn-sm { --h: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 17px; }

/* ---------- навигация ---------- */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1080px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(12, 14, 21, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.logo-mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav .btn { --h: 40px; padding: 0 16px; font-size: 15px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 168px 0 40px;
  text-align: center;
  isolation: isolate;
}
.hero h1 {
  margin: 0 auto;
  max-width: 13ch;
  font-size: clamp(44px, 7.4vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 620;
  background:
    linear-gradient(100deg, transparent 0 40%, var(--ti-1) 44%, var(--ti-2) 47%, var(--ti-3) 50%, var(--ti-4) 53%, var(--ti-5) 56%, transparent 60%) 0 0 / 300% 100% no-repeat,
    linear-gradient(180deg, #ffffff 35%, #c9d1ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.hero h1.reveal { animation: rise .9s var(--ease) .05s forwards, sheen 9s var(--ease) 1.4s infinite; }
@keyframes sheen {
  0% { background-position: 110% 0, 0 0; }
  45%, 100% { background-position: -15% 0, 0 0; }
}
.hero-lead {
  margin: 26px auto 0;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero-cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* сцена: трёхфазная синусоида + контроллер */
.stage {
  position: relative;
  margin: 76px auto 0;
  width: min(1080px, calc(100% - 40px));
}
.waves {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 520px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.stage-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(19, 22, 33, 0.97), rgba(10, 12, 18, 0.98));
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 40px 120px -40px rgba(70, 95, 220, .75),
    0 0 160px -60px rgba(127, 155, 255, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  text-align: left;
}
.stage-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190,205,255,.8), transparent);
}
.stage-photo {
  margin: 14px;
  border-radius: 20px;
  min-height: 380px;
  display: grid;
  place-items: center;
  position: relative;
}
.stage-photo img { width: 82%; max-height: 330px; object-fit: contain; }
.stage-info {
  padding: 36px 36px 32px 22px;
  display: flex;
  flex-direction: column;
}
.stage-info .brand-line { color: var(--muted); font-size: 15px; }
.stage-info h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.stage-info p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }
.readouts {
  margin: auto 0 0;
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.readout {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.readout b {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.readout span { color: var(--dim); font-size: 13px; }
.readout .bar { height: 3px; border-radius: 3px; margin-top: 10px; }
.stage-actions { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stage-actions .price { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-right: auto; }

/* единый «светлый стол» для фото: белый фон снимков растворяется */
.plate {
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--plate-1) 45%, var(--plate-2) 100%);
  box-shadow: inset 0 -30px 60px -40px rgba(60, 70, 130, .35), inset 0 1px 0 #fff;
}
.plate img { mix-blend-mode: multiply; filter: saturate(1.02) contrast(1.02); }
.plate.noimg img { display: none; }
.plate .noimg-mark { display: none; color: #8a8fa3; font-weight: 600; font-size: 15px; text-align: center; padding: 20px; }
.plate.noimg .noimg-mark { display: block; }

/* ---------- бренды ---------- */

.brands {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: clamp(22px, 5vw, 64px);
  flex-wrap: wrap;
  color: var(--dim);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brands span { transition: color .3s; }
.brands span:hover { color: var(--text); }

/* ---------- секции ---------- */

.section { padding: 128px 0 0; position: relative; }
.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2.title, .final h2.title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 40%, #cfd8ff 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section .lead { color: var(--muted); font-size: 18px; margin: 18px 0 0; text-wrap: pretty; }

/* ---------- комплект (bento) ---------- */

.kit {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 14px;
}
.kit-item {
  position: relative;
  padding: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kit-item h3 { margin: auto 0 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.kit-item p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.kit-item .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--line-2); margin-bottom: 26px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.kit-item .ico svg { width: 24px; height: 24px; color: var(--accent-2); }
.kit-a { grid-column: span 4; grid-row: span 2; }
.kit-b { grid-column: span 2; }
.kit-c { grid-column: span 2; }
.kit-d { grid-column: span 3; }
.kit-e { grid-column: span 3; }
.kit-a h3 { font-size: clamp(24px, 2.4vw, 30px); }
.kit-a p { font-size: 17px; }
.kit-a .harness { position: absolute; inset: 0 0 auto 0; height: 62%; pointer-events: none; }
.kit-a .harness svg { width: 100%; height: 100%; }

/* ---------- каталог ---------- */

.catalog-tools {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  position: sticky;
  top: 84px;
  z-index: 20;
  padding: 10px;
  border-radius: 20px;
  background: rgba(12, 14, 21, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .25s;
}
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .seg-pill {
  position: absolute;
  z-index: 0;
  top: 4px; bottom: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #dfe5ff);
  box-shadow: 0 6px 20px -6px rgba(127,155,255,.7);
  transition: left .35s var(--ease), width .35s var(--ease);
}
.tool-select, .tool-search {
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 0 16px;
  font-size: 14.5px;
  color: var(--text);
}
.tool-select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a6a2c8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.tool-select option { background: var(--bg-2); color: var(--text); }
.tool-search { flex: 1 1 200px; min-width: 160px; padding-left: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23716d96' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 15px center; }
.tool-search::placeholder { color: var(--dim); }
.tool-search:focus, .tool-select:focus { outline: none; border-color: rgba(190,205,255,.5); box-shadow: 0 0 0 4px rgba(127,155,255,.15); }

.result-line { margin: 22px 4px 0; color: var(--dim); font-size: 14.5px; min-height: 22px; }

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  border-color: rgba(190,205,255,.32);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(70,95,220,.7);
}
.card .plate {
  margin: 8px 8px 0;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card .plate img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform .6s var(--ease);
}
.card:hover .plate img { transform: scale(1.04); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }
.card h3 { margin: 6px 0 0; font-size: 20px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .tag { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; line-height: 1.45; }
.specline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.specline div { padding: 10px 0 10px 12px; border-left: 1px solid var(--line); min-width: 0; }
.specline div:first-child { padding-left: 0; border-left: 0; }
.specline b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specline span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--dim); margin-top: 2px; }
.card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-foot .btn { position: relative; z-index: 2; }
.price { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; color: var(--dim); text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.price.ask { font-size: 16px; color: var(--muted); font-weight: 500; }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.in_stock { color: var(--ok); }
.status.preorder { color: var(--warn); }
.status.out { color: var(--off); }

.empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  color: var(--muted);
}
.empty b { display: block; color: var(--text); font-size: 20px; margin-bottom: 6px; }

.skeleton { min-height: 420px; background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- VESC или Fardriver ---------- */

.versus { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs-col {
  padding: 34px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  position: relative;
  overflow: hidden;
}
.vs-col h3 { margin: 0; font-size: 28px; letter-spacing: -0.03em; font-weight: 600; }
.vs-col .who { color: var(--muted); margin: 8px 0 0; }
.vs-col ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.vs-col li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: #d6d9e6; font-size: 16px; }
.vs-col li svg { width: 22px; height: 22px; margin-top: 1px; }
.vs-note { text-align: center; margin: 28px 0 0; color: var(--muted); }
.vs-note a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.vs-note a:hover { border-color: var(--accent-2); }

/* ---------- шаги заказа ---------- */

.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
  position: relative;
}
.step {
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  position: relative;
}
.step .n {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 15px;
  background: rgba(127,155,255,.14);
  border: 1px solid rgba(127,155,255,.35);
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin: 22px 0 0; font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */

.faq { margin: 48px auto 0; max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
  transition: transform .35s var(--ease), background .2s;
}
.faq summary .pm::before, .faq summary .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); border-radius: 2px;
}
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary .pm { background: rgba(127,155,255,.18); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover { color: #fff; }
.faq .answer { padding: 0 60px 26px 4px; color: var(--muted); font-size: 16.5px; max-width: 70ch; }
.faq .answer p { margin: 0; }

/* ---------- финальный призыв ---------- */

.final {
  margin-top: 140px;
  padding: 96px 24px;
  text-align: center;
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(127,155,255,.55), transparent 70%),
    radial-gradient(400px 200px at 15% 0%, rgba(115,198,255,.18), transparent 70%),
    linear-gradient(180deg, rgba(20,23,34,.8), rgba(10,12,18,.9));
}
.final::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  width: 70%; height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #cfd8ff, transparent);
}
.final h2.title { margin: 0 auto; max-width: 16ch; }
.final p { color: var(--muted); max-width: 520px; margin: 18px auto 0; font-size: 18px; }
.final .btn { margin-top: 34px; }

/* ---------- футер ---------- */

.footer {
  margin-top: 96px;
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14.5px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .logo { color: var(--text); margin: 0; }
.footer p { margin: 12px 0 0; max-width: 340px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { margin: 0 0 12px; color: var(--text); font-size: 14.5px; font-weight: 600; }
.footer-cols a { display: block; padding: 4px 0; color: var(--dim); transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }

/* ---------- страница товара ---------- */

.crumbs { padding-top: 120px; color: var(--dim); font-size: 14.5px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.pd {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.pd-gallery { position: sticky; top: 100px; }
.pd-main {
  border-radius: var(--r-xl);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 120px -50px rgba(70,95,220,.8), inset 0 1px 0 #fff;
}
.pd-main img { width: 80%; height: 80%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button {
  width: 76px; height: 76px;
  border-radius: 14px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  display: grid; place-items: center;
  transition: border-color .2s;
}
.thumbs button img { width: 82%; height: 82%; object-fit: contain; }
.thumbs button[aria-current="true"] { border-color: var(--accent-2); }

.pd-info .brand-line { color: var(--muted); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pd-info h1 {
  margin: 10px 0 0;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 620;
}
.pd-info .tagline { margin: 14px 0 0; font-size: 19px; color: #d6d9e6; }
.buybox {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.buybox-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.buybox .price { font-size: 32px; }
.buybox .price.ask { font-size: 18px; }
.buybox .btn { flex: 1 1 220px; }
.buybox-note { margin: 14px 0 0; color: var(--dim); font-size: 14.5px; }

.hl { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hl li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); font-size: 15px; color: #d6d9e6; display: flex; gap: 10px; align-items: flex-start; }
.hl li i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }

.pd-section { margin-top: 40px; }
.pd-section h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.pd-section p { margin: 0 0 14px; color: #c9cddb; max-width: 64ch; }
.specs { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.specs th, .specs td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 450; width: 42%; padding-right: 16px; }
.specs td { color: var(--text); font-variant-numeric: tabular-nums; }
.inbox { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.inbox li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: #d6d9e6; }
.inbox li svg { width: 20px; height: 20px; margin-top: 2px; }
.source { color: var(--dim); font-size: 14px; }
.source a { color: var(--muted); border-bottom: 1px solid var(--line-2); }

.related { margin-top: 110px; }
.related h2 { font-size: 30px; letter-spacing: -0.03em; margin: 0; font-weight: 600; }

/* ---------- юридические страницы ---------- */

.doc { padding-top: 140px; }
.doc header { max-width: 760px; }
.doc h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1.04; font-weight: 620; }
.doc .updated { color: var(--dim); margin-top: 14px; font-size: 15px; }
.doc-layout { margin-top: 48px; display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.doc-nav { position: sticky; top: 100px; display: grid; gap: 4px; font-size: 14.5px; }
.doc-nav a { color: var(--dim); padding: 6px 12px; border-radius: 10px; border-left: 2px solid transparent; transition: color .2s, background .2s; }
.doc-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.doc-nav a[aria-current="page"] { color: var(--text); background: rgba(127,155,255,.12); }
.prose { max-width: 720px; color: #c9cddb; font-size: 17px; line-height: 1.7; }
.prose h2 { color: var(--text); font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; font-weight: 600; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 19px; margin: 30px 0 8px; font-weight: 600; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent-2); }
.prose a { color: var(--accent-2); border-bottom: 1px solid rgba(190,205,255,.35); }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(20, 23, 34, .92);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.8), 0 0 40px -20px rgba(127,155,255,.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 15px;
  max-width: calc(100% - 32px);
  transition: transform .45s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--ok); }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 20px 40px; }
.nf h1 { font-size: clamp(60px, 12vw, 140px); margin: 0; letter-spacing: -0.06em; line-height: 1; background: linear-gradient(180deg,#fff,#c9d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: var(--muted); font-size: 18px; margin: 16px 0 30px; }

/* ---------- появление hero (единственная оркестрованная анимация) ---------- */

.reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); animation: rise .9s var(--ease) forwards; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .15s; }
.reveal-3 { animation-delay: .28s; }
.reveal-4 { animation-delay: .4s; }
.reveal-5 { animation-delay: .6s; animation-duration: 1.3s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

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

/* ---------- адаптив ---------- */

@media (max-width: 980px) {
  .stage-card { grid-template-columns: 1fr; }
  .stage-photo { min-height: 300px; }
  .stage-info { padding: 8px 24px 26px; }
  .kit { grid-template-columns: 1fr 1fr; }
  .kit-a { grid-column: span 2; grid-row: span 1; min-height: 360px; }
  .kit-b, .kit-c, .kit-d, .kit-e { grid-column: span 1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pd { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { position: static; }
  .pd-main { aspect-ratio: 4 / 3; }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    padding: 10px;
    border-radius: 22px;
    background: rgba(12, 14, 21, .96);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease);
  }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .versus { grid-template-columns: 1fr; }
  .catalog-tools { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 132px; }
  .nav .btn-label { display: none; }
  .nav .btn { width: 40px; padding: 0; }
  .stage { margin-top: 52px; width: calc(100% - 24px); }
  .readouts { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .readout { padding: 10px; }
  .readout b { font-size: 19px; }
  .section { padding-top: 96px; }
  .kit { grid-template-columns: 1fr; }
  .kit-a, .kit-b, .kit-c, .kit-d, .kit-e { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .vs-col { padding: 26px 22px; }
  .hl { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; padding: 20px 2px; }
  .faq .answer { padding-right: 8px; }
  .final { padding: 72px 20px; border-radius: 28px; margin-top: 110px; }
  .seg button { padding: 8px 12px; }
  .tool-select { flex: 1 1 auto; }
}

.more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ======================================================================
   v2: иконки, язык, категории, эффекты
   ====================================================================== */

.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; }

/* яркая кромка у главной кнопки */
.btn-primary { position: relative; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: var(--titanium);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.7) inset,
    0 10px 30px -10px rgba(127,155,255,.55),
    0 0 48px -14px rgba(201,138,230,.55);
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.9) inset,
    0 16px 40px -10px rgba(127,155,255,.75),
    0 0 70px -12px rgba(201,138,230,.7);
}

/* переключатель языка */
.lang {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 7px 10px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--ink); background: #fff; }

/* категории каталога */
.cat-tabs { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: color .25s, border-color .25s, background .25s;
}
.cat-tab .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.cat-tab .ico svg { width: 22px; height: 22px; }
.cat-tab small { display: block; font-size: 13px; color: var(--dim); font-weight: 450; margin-top: 1px; }
.cat-tab:hover { color: var(--text); border-color: var(--line-2); }
.cat-tab[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-color: rgba(190,205,255,.35);
  box-shadow: 0 20px 50px -30px rgba(127,155,255,.8);
}
.cat-tab[aria-pressed="true"] .ico { color: var(--ink); background: var(--titanium); border-color: transparent; }
.catalog-tools { margin-top: 16px; }

/* рекомендуемое: звезда в строке бренда, без плашки */
.rec { display: inline-flex; align-items: center; gap: 5px; color: var(--ti-1); }
.rec svg { width: 13px; height: 13px; }

/* подсветка карточек за курсором */
.spot { --mx: 50%; --my: 0%; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(190,205,255,.09), transparent 45%);
}
.spot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(246,213,142,.9), rgba(201,138,230,.7) 30%, rgba(127,155,255,.45) 55%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* сцена: 3D-наклон */
.stage { perspective: 1400px; }
.stage-card { transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }

/* бегущая строка брендов */
.brands {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* моторы в hero и карточках */
.card .plate.motor img { width: 70%; height: 70%; }

/* список «что входит» с иконками из набора */
.inbox li svg, .vs-col li svg { color: var(--accent-2); }
.vs-far li svg { color: var(--phase-c); }

/* нумерация шагов */
.step .n { background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--text); }
.step .ico { width: 22px; height: 22px; color: var(--accent-2); margin-left: auto; }
.step-top { display: flex; align-items: center; }

/* преимущества товара: тонкие строки вместо плашек */
.hl { gap: 0; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.hl li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 14px 4px; }
.hl li:nth-child(odd) { padding-right: 16px; }

/* футер: соцсети */
.footer-cols a { display: flex; align-items: center; gap: 8px; }
.footer-cols a svg { width: 16px; height: 16px; }

/* мобильное меню: язык внутри */
.nav-lang-m { display: none; }

@media (max-width: 820px) {
  .nav > .lang { display: none; }
  .nav-lang-m { display: flex; padding: 8px 12px 4px; }
}
@media (max-width: 600px) {
  .cat-tab { flex: 1 1 0; padding: 10px 12px; font-size: 15.5px; gap: 10px; }
  .cat-tab small { display: none; }
  .cat-tab .ico { width: 32px; height: 32px; }
  .hl { grid-template-columns: 1fr; }
  .specline b { font-size: 15px; }
}
@media (hover: none) {
  .spot::before, .spot::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .hero h1.reveal { animation: none; opacity: 1; filter: none; transform: none; }
}

/* карточка: ссылка на всю площадь, кнопка «Купить» поверх */
.card > .card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card > .card-body, .card > .plate { z-index: auto; }
.card-foot .btn { position: relative; z-index: 3; }
.card-brand { display: inline-flex; align-items: center; gap: 7px; }
.card-link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.steps { list-style: none; padding: 0; }
.anchor { position: absolute; top: 0; }
.pulse { stroke-dasharray: 9 91; animation: current 2.8s linear infinite; filter: drop-shadow(0 0 4px #fff); }
.pulse.p2 { animation-delay: -.95s; }
.pulse.p3 { animation-delay: -1.9s; }
@keyframes current { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse { display: none; } }

/* 3D-рендеры контроллера и мотора */
.cat-tab { padding: 10px 22px 10px 10px; }
.cat-3d {
  width: 64px; height: 64px; flex: none;
  border-radius: 16px;
  object-fit: contain;
  padding: 4px;
  background: radial-gradient(80% 80% at 50% 30%, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.55));
  transition: transform .5s var(--ease), border-color .3s;
}
.cat-tab:hover .cat-3d { transform: translateY(-2px) rotate(-3deg) scale(1.04); }
.cat-tab[aria-pressed="true"] .cat-3d {
  border-color: transparent;
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(255,255,255,.16), rgba(255,255,255,.03)) padding-box,
    linear-gradient(#141722, #141722) padding-box,
    var(--titanium) border-box;
  border: 1px solid transparent;
}
.kit-3d {
  width: 104px; height: 104px;
  object-fit: contain;
  margin: -14px 0 14px -10px;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.6));
  transition: transform .6s var(--ease);
}
.kit-item:hover .kit-3d { transform: translateY(-4px) rotate(-4deg); }
@media (max-width: 600px) {
  .cat-tab { padding: 8px 12px 8px 8px; }
  .cat-3d { width: 48px; height: 48px; border-radius: 12px; }
}
