/* ============================================================
   РОБОСТЭК — дизайн-система главной страницы (robostack.store)
   Палитра и вордмарк из логотипа: чёрный #0A0A0A + синий #2E7CE8
   на белом. Шрифт Inter (Black 900 — заголовки), self-host woff2.
   Анимации — минимальные: scroll-reveal, счётчики, hover, blur-шапка.
   ============================================================ */

@import url("fonts/fonts.css");

:root {
  --ink: #0a0a0a;
  --ink-2: #2b3340;
  --muted: #667085;
  --paper: #ffffff;
  --paper-2: #f6f9fe;
  --line: #e7ebf2;
  --line-2: #eff2f8;
  --accent: #2e7ce8;
  --accent-deep: #1d63c4;
  --accent-soft: #eaf2fe;
  --dark: #0a1729;
  --dark-2: #0e1e35;
  --on-dark: #f0f5fc;
  --on-dark-muted: #93a5c3;
  --ok: #18a05e;
  --radius: 14px;
  --radius-s: 10px;
  --shadow-s: 0 1px 2px rgba(10, 23, 41, 0.05);
  --shadow-m: 0 14px 34px -14px rgba(10, 23, 41, 0.22);
  --wrap: 1128px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 16px/1.65 var(--font);
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3 {
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 5.4vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }

p { margin: 0 0 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- техометки ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.tag {
  display: inline-block;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 10px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-s);
  font: 700 15px/1 var(--font);
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(46, 124, 232, 0.55);
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(46, 124, 232, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-outline-w { background: transparent; color: var(--on-dark); border-color: #2a3d5c; }
.btn-outline-w:hover { border-color: var(--on-dark); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- шапка ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.head.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.92); }
.head-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.logo {
  font: 900 21px/1 var(--font);
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}
.logo b { color: var(--accent); font-weight: 900; }
.logo small {
  display: block;
  font: 600 8.5px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  font: 500 14px/1 var(--font);
  color: var(--ink-2);
  padding: 6px 2px;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--accent); }
.head-cta { padding: 10px 16px; font-size: 14px; }

/* мобильное меню */
.burger { display: none; margin-left: auto; }
.burger summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  display: grid;
  place-items: center;
}
.burger summary::-webkit-details-marker { display: none; }
.burger summary svg { display: block; }
.burger[open] summary { border-color: var(--accent); }
.burger .nav {
  display: flex; /* отменяет display:none у .nav на мобильных */
  position: absolute;
  left: 0;
  right: 0;
  top: 66px;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  padding: 10px 24px 18px;
}
.burger .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(46, 124, 232, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 124, 232, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(85% 75% at 72% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(85% 75% at 72% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}
.hero .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 13.5px/1 var(--font);
  color: var(--ink-2);
}
.hero-meta svg { flex: none; color: var(--ok); }

.hero-fig { position: relative; }
.hero-img {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.hero-img img { display: block; width: 100%; height: auto; }

.chip {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-m);
  padding: 9px 13px;
  font: 700 12.5px/1.25 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink);
  animation: float 5.5s ease-in-out infinite alternate;
}
.chip small {
  display: block;
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.chip-1 { top: 18px; left: -14px; }
.chip-2 { bottom: 84px; right: -16px; animation-delay: 1.4s; }
.chip-3 { bottom: -16px; left: 34px; animation-delay: 2.8s; }

@keyframes float {
  from { transform: translateY(-4px); }
  to { transform: translateY(5px); }
}

/* ---------- полоса цифр ---------- */

.stats { border-block: 1px solid var(--line); background: var(--paper-2); }
.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 30px 18px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat b {
  display: block;
  font: 900 clamp(30px, 3.4vw, 42px)/1 var(--font);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; color: var(--accent); }
.stat span {
  display: block;
  margin-top: 8px;
  font: 600 10.5px/1.4 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.sec { padding: 92px 0; }
.sec.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head .lead { font-size: 17.5px; color: var(--muted); }

/* «что это» */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.about-grid p { font-size: 16.5px; }
.about-points { display: grid; gap: 10px; }
.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.about-point:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: var(--accent); }
.about-point b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; }
.about-point p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.about-point .n {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--mono);
}

/* ---------- bento: характеристики ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.b-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.b-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: #cddcf5; }
.b-k {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.b-v { font: 900 24px/1.15 var(--font); letter-spacing: -0.02em; color: var(--ink); }
.b-v small { font-size: 14px; font-weight: 700; color: var(--muted); }
.b-n { font-size: 13px; color: var(--muted); margin-top: 7px; }

.b-arm { grid-column: span 7; display: flex; flex-direction: column; }
.b-arm svg { width: 100%; height: auto; margin-top: auto; }
.b-5 { grid-column: span 5; display: flex; flex-direction: column; }
.b-4 { grid-column: span 4; }

/* ---------- комплект ---------- */

.kit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.kit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
}
.kit-list li {
  list-style: none;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14.5px;
  padding: 5px 0;
}
.kit-list svg { flex: none; margin-top: 4px; color: var(--accent); }
.kit-note {
  margin-top: 18px;
  font: 500 13px/1.5 var(--mono);
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.kit-fig {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kit-fig figure {
  margin: 0;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kit-fig figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.kit-fig img { display: block; width: 100%; height: auto; }
.kit-fig figcaption {
  font: 600 10px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-top: 1px solid var(--line-2);
}

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

.soft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.soft-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.soft-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: #cddcf5; }
.soft-shot {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.soft-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.soft-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.soft-body p { margin: 0; font-size: 14px; color: var(--muted); }
.soft-body .more { margin-top: auto; font-weight: 700; font-size: 14px; }

/* ---------- обучение ---------- */

.edu-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.chapters {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 0;
  box-shadow: var(--shadow-s);
}
.chapters a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 9px 20px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.chapters a:hover { background: var(--accent-soft); border-left-color: var(--accent); color: var(--ink); }
.chapters a i {
  flex: none;
  font: 700 11px/1 var(--mono);
  color: var(--accent);
  font-style: normal;
  width: 20px;
}

/* ---------- сборка ---------- */

.build-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: #cddcf5; }
.step-img { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.step-img img { display: block; width: 100%; height: auto; }
.step-body { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; }
.step-body i {
  flex: none;
  font: 700 11px/1 var(--mono);
  font-style: normal;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 5px 7px;
}
.step-body span { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }

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

.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 4px;
  font: 700 16px/1.35 var(--font);
  color: var(--ink);
  transition: color 0.15s ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq details[open] .pm { transform: rotate(45deg); background: var(--accent-soft); }
.faq details p { padding: 0 44px 20px 4px; margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- купить (тёмная) ---------- */

.buy {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  scroll-margin-top: 72px; /* якорь #kupit не прячется под липкой шапкой */
}
.buy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(46, 124, 232, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 124, 232, 0.13) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 90% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.buy-in { position: relative; padding: 96px 24px; max-width: 720px; }
.buy h2 { color: #fff; }
.buy .eyebrow { color: #7fb0f5; }
.buy .eyebrow::before { background: #7fb0f5; }
.buy p { color: var(--on-dark-muted); font-size: 17px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5fe3a0;
  border: 1px solid rgba(95, 227, 160, 0.35);
  background: rgba(24, 160, 94, 0.12);
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 22px;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 160, 94, 0.5); }
  55% { box-shadow: 0 0 0 6px rgba(24, 160, 94, 0); }
}
.buy .mail { font-size: 17px; font-weight: 700; color: #fff; }
.buy .mail:hover { color: #7fb0f5; }
.buy-note { margin-top: 22px; font: 500 12.5px/1.6 var(--mono); color: var(--on-dark-muted); }

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

.foot { background: var(--dark-2); color: var(--on-dark-muted); padding: 56px 0 40px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot .logo { color: #fff; font-size: 19px; }
.foot .logo small { color: var(--on-dark-muted); }
.foot h4 {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #62779b;
  margin: 4px 0 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--on-dark-muted); font-size: 14px; }
.foot a:hover { color: #fff; }
.foot p { font-size: 13px; line-height: 1.7; margin: 14px 0 0; }
.foot-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #1b2c47;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  font: 500 12px/1.5 var(--mono);
  color: #62779b;
}

/* ---------- имя продукта в стиле логотипа ---------- */

.p-name {
  font: 900 16px/1.2 var(--font);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.p-name b { color: var(--accent); font-weight: 900; }
.p-name .rest { font-weight: 700; letter-spacing: -0.01em; }
.p-name-big { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; }
.buy .p-name { color: #fff; }
.buy .p-name b { color: #7fb0f5; }

/* ---------- каскад при загрузке (hero) ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.ld { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ld-1 { animation-delay: 0.05s; }
.ld-2 { animation-delay: 0.15s; }
.ld-3 { animation-delay: 0.25s; }
.ld-4 { animation-delay: 0.35s; }
.ld-5 { animation-delay: 0.45s; }
.hero-fig.ld { animation-delay: 0.3s; }

/* ---------- видео (вертикальный ролик, без чёрных полей) ---------- */

.video-card {
  max-width: 430px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  background: var(--paper-2);
}
.video-card video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- софт: 4 карточки + телефон-баннер ---------- */

.soft-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.phone-banner {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px 26px;
  margin-top: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.phone-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.phone-banner img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}
.phone-banner h3 { font-size: 21px; }
.phone-banner p { color: var(--muted); margin: 6px 0 0; }

/* ---------- 3D-модель ---------- */

.m3d {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}
.m3d-canvas {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-s);
}
.m3d-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.m3d-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.m3d-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  display: grid;
  gap: 13px;
  align-content: start;
}
.m3d-row {
  display: grid;
  grid-template-columns: 128px 1fr 44px;
  align-items: center;
  gap: 10px;
}
.m3d-row label { font: 600 13px/1.2 var(--font); color: var(--ink-2); }
.m3d-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.m3d-row .val { font: 700 11.5px/1 var(--mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.m3d-note { font: 500 12px/1.6 var(--mono); color: var(--muted); margin: 4px 0 0; }

/* игровая зона: оверлей фокуса и счёт */
.m3d-win {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; text-align: center;
  pointer-events: none;
  font: 900 clamp(22px, 3vw, 34px)/1.25 var(--font);
  color: #fff;
  text-shadow: 0 2px 16px rgba(10, 23, 41, 0.55), 0 0 2px rgba(10, 23, 41, 0.4);
}
.m3d-win.pop { animation: winpop 0.65s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes winpop {
  from { transform: scale(0.3) rotate(-6deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.m3d-score {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px;
  font: 700 13px/1 var(--mono); color: var(--ink);
}
@media (max-width: 900px) {
  .m3d { grid-template-columns: 1fr; }
  .m3d-row { grid-template-columns: 104px 1fr 40px; }
}

/* ---------- сертификаты: показываем документы прямо на странице ---------- */

.cert-title {
  font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-muted); margin: 26px 0 0;
}
.cert-show {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 22px;
  margin: 16px 0 4px;
  max-width: 680px;
}
.cert-card { display: block; text-decoration: none; }
.cert-card img {
  display: block; width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  background: #fff;
  transform: rotate(-1.2deg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cert-card:nth-child(2) img { transform: rotate(1.4deg); }
.cert-card:hover img {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 26px 52px -18px rgba(0, 0, 0, 0.75);
}
.cert-card b { display: block; color: var(--on-dark); font-size: 14.5px; margin-top: 12px; }
.cert-card span { font: 500 12px/1.4 var(--mono); color: var(--on-dark-muted); }
.cert-card:hover span { color: #7fb0f5; }
@media (max-width: 640px) {
  .cert-show { grid-template-columns: 1fr; max-width: 340px; }
}

/* ---------- scroll-reveal ---------- */

.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.09s; }
.rv-d2 { transition-delay: 0.18s; }
.rv-d3 { transition-delay: 0.27s; }

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

@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .hero .lede { max-width: 560px; }
  .hero-fig { max-width: 560px; }
  .chip-2 { bottom: 60px; }
  .about-grid, .kit-grid, .edu-grid { grid-template-columns: 1fr; gap: 36px; }
  .b-arm, .b-5 { grid-column: span 12; }
  .b-4 { grid-column: span 6; }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
  .soft-grid { grid-template-columns: 1fr; max-width: 520px; }
  .soft-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .phone-banner { grid-template-columns: 150px 1fr; }
}

@media (max-width: 760px) {
  .nav, .head-cta { display: none; }
  .burger { display: block; }
  .head-cta-m { display: inline-flex; }
  .sec { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(odd) { border-left: none; }
  .kit-list { grid-template-columns: 1fr; }
  .b-4 { grid-column: span 12; }
  .soft-grid-4 { grid-template-columns: 1fr; }
  .phone-banner { grid-template-columns: 1fr; }
  .phone-banner img { height: 200px; }
  .chip-1 { left: 8px; }
  .chip-2 { right: 8px; }
  .chip-3 { left: 20px; }
  .foot-in { grid-template-columns: 1fr; gap: 30px; }
  .faq details p { padding-right: 10px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ld { animation: none; }
  .chip, .pill::before { animation: none; }
  .btn, .b-card, .soft-card, .step, .about-point, .kit-fig figure { transition: none; }
}
