/* ============================================================
   Tehnukte — shared stylesheet
   ============================================================ */
:root {
  /* Фирменные цвета Tehnukte. Цвета LEGO Education здесь не используются:
     по ТЗ 2.4 они допустимы только как метка линейки внутри карточки товара. */
  --red: #e30613;
  --red-dark: #b8050f;
  --blue: #132a5e;
  --blue-soft: #24457f;
  --ink: #10151f;
  --ink-soft: #56617a;
  --ink-muted: #8a94a8;
  --line: #dde3ed;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-blue: #eef2fa;
  --yellow: #ffcb05;
  --green: #0f8a4d;
  --orange: #ff6f00;

  /* Шрифты: заголовки — Golos Text (кириллица, включая казахские буквы),
     текст — IBM Plex Sans, служебные подписи и цифры — IBM Plex Mono. */
  --font-display: 'Golos Text', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow: 0 4px 24px rgba(16, 21, 31, .05);
  --shadow-lg: 0 14px 44px rgba(16, 21, 31, .09);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img.cover { width: 100%; height: 100%; object-fit: cover; }
img.contain { width: 100%; height: 100%; object-fit: contain; }
img.avatar {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; display: block;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }

/* Видимый фокус с клавиатуры на всех интерактивных элементах */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
button { font-family: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ===== Top bar ===== */
.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; opacity: .9; }
.topbar-info { font-family: var(--font-mono); font-size: 12px; letter-spacing: .01em; }
.topbar-info span + span { border-left: 1px solid rgba(255,255,255,.25); padding-left: 22px; }
.topbar a { color: #fff; }
.lang-switcher { display: flex; gap: 4px; }
.lang-switcher button {
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 4px 10px; font-size: 12px; font-weight: 600;
  border-radius: 6px; cursor: pointer; transition: all .2s;
}
.lang-switcher button:hover { background: rgba(255,255,255,.12); }
.lang-switcher button.active {
  background: var(--yellow); color: var(--blue); border-color: var(--yellow);
}

/* ===== Header / nav ===== */
header.main {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 20px;
}
.logo {
  display: inline-flex; align-items: center; flex-shrink: 0;
}
.logo img {
  width: 174px; height: 50px; object-fit: contain;
}
.logo img.footer-logo { filter: brightness(0) invert(1); }
.nav-links {
  display: flex; gap: 26px; list-style: none;
  font-size: 14px; font-weight: 500;
}
.nav-links a { color: var(--ink); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 3px; background: var(--red); border-radius: 3px 3px 0 0;
}
.nav-cta {
  background: var(--red); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; transition: all .2s;
  position: relative;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-cta .badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--yellow); color: var(--ink);
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
.nav-cta .badge.hidden { display: none; }
.burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); margin: 5px 0; transition: all .2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; transition: all .2s;
  text-align: center; justify-content: center;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 14px rgba(227, 6, 19, .3);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 6, 19, .4);
}
.btn-outline {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-yellow {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 4px 14px rgba(255, 203, 5, .3);
}
.btn-yellow:hover { background: #f7b800; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ===== Section base ===== */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--red); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 14px;
}
.section-tag::before { content: '— '; color: var(--ink-muted); }
.section-head h2 {
  font-size: 40px; font-weight: 800;
  letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 16px;
}
.section-head p { font-size: 17px; color: var(--ink-soft); }
.section-head.left { text-align: left; margin-left: 0; }

.bg-soft { background: var(--bg-soft); }
.bg-blue { background: var(--bg-blue); }

/* ===== Page header (inner pages) ===== */
.page-head {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.page-head h1 {
  font-size: 46px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 14px;
  line-height: 1.1;
}
.page-head p.lead {
  font-size: 18px; color: var(--ink-soft);
  max-width: 720px;
}

/* ===== Иконки =====
   Спрайт assets/icons.svg вставляется в разметку сервером, цвет наследуется. */
.ico { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.ico-sm { width: 18px; height: 18px; }
.ico-lg { width: 28px; height: 28px; }

/* ===== Cards ===== */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--red);
  display: grid; place-items: center; margin-bottom: 18px;
}
/* Иллюстрация в карточке вместо иконки: плитка со скруглением,
   фон изображения совпадает с фоном секции */
.card-illustration {
  width: 88px; height: 88px; margin-bottom: 16px;
  border-radius: 10px; overflow: hidden;
}
.card-illustration img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--ink-soft); }

/* ===== Forms ===== */
.form-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--line);
}
.form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-soft); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px; font-family: inherit;
  background: #fff;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 58, 138, .1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; background: var(--red); color: #fff;
  padding: 14px; border-radius: 8px; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.form-submit:hover { background: var(--red-dark); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-note {
  font-size: 12px; color: var(--ink-soft);
  text-align: center; margin-top: 12px;
}
.form-success {
  background: #dcfce7; color: #166534;
  border: 1px solid #86efac; border-radius: 8px;
  padding: 14px; margin-bottom: 14px;
  font-size: 14px; display: none;
}
.form-success.show { display: block; }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item.open { box-shadow: var(--shadow); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: 16px; font-weight: 600;
  text-align: left; color: var(--ink);
}
.faq-q .ic {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; background: var(--bg-blue);
  color: var(--blue); display: grid; place-items: center;
  font-size: 18px; font-weight: 700;
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-q .ic {
  background: var(--red); color: #fff; transform: rotate(45deg);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 26px;
  color: var(--ink-soft); font-size: 15px; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 26px 22px; }

/* ===== Footer ===== */
footer.main {
  background: #0a1530; color: #c9d2e3;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo img { width: 196px; height: 56px; }
.footer-brand p { font-size: 14px; opacity: .75; max-width: 320px; }
.footer-col h4 {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { opacity: .75; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; color: var(--yellow); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, .08);
  border-radius: 8px; display: grid; place-items: center;
  transition: all .2s; opacity: 1;
}
.socials a:hover { background: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; opacity: .7;
}
.footer-bottom a.tk-link { color: var(--yellow); opacity: 1; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  z-index: 300; opacity: 0; transition: all .25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== CTA block ===== */
.cta-block {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 62px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  /* шкала с делениями по верхнему краю — тот же приём, что и отбивки секций */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 7px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 16px);
}
.cta-block > * { position: relative; z-index: 2; }
.cta-block h2 {
  font-size: 34px; font-weight: 800;
  margin-bottom: 14px; letter-spacing: -1px;
  line-height: 1.2;
}
.cta-block p {
  font-size: 17px; opacity: .9; margin-bottom: 28px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ===== Tag pill ===== */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-blue); color: var(--blue);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.tag.red { background: #fee2e2; color: var(--red); }
.tag.green { background: #dcfce7; color: var(--green); }
.tag.yellow { background: #fef3c7; color: #b45309; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 36px; }
.hidden { display: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 20px 24px;
    border-bottom: 1px solid var(--line); gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
  }
  .nav-links.open a.active::after { display: none; }
  .burger { display: block; }
  .section-head h2 { font-size: 32px; }
  .page-head h1 { font-size: 34px; }
  .cta-block { padding: 50px 26px; }
  .cta-block h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .nav { gap: 10px; }
  .logo img { width: 142px; height: 42px; }
  section { padding: 60px 0; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar-info { display: none; }
  .page-head { padding: 40px 0 30px; }
  .page-head h1 { font-size: 28px; }
}

/* ============================================================
   Блоки, добавленные по ТЗ LEGO® Education
   ============================================================ */

/* Юридическая строка (ТЗ 2.7, 5.4): английский текст, читаемый размер,
   достаточный контраст. Не мельче 6 pt — здесь 12 px ≈ 9 pt. */
.legal-line {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 900px;
}

/* Цветная метка линейки на карточке товара — единственное место,
   где используются фирменные цвета LEGO Education (ТЗ 2.4). */
.line-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
}
.line-tag .line-dot { width: 10px; height: 10px; }

.level-tag {
  display: inline-block; padding: 4px 9px; border-radius: 100px;
  background: var(--bg-blue); color: var(--blue);
  font-size: 11px; font-weight: 700;
}

/* Цена по запросу (ТЗ 4) */
.price-request { font-size: 15px; font-weight: 700; color: var(--ink-soft); }

/* Место под бейдж реселлера — Фаза 2 (ТЗ 2.3).
   Пустой слот не занимает места, пока файл бейджа не загружен. */
.reseller-badge-slot { align-self: end; justify-self: end; }
.reseller-badge-slot img {
  /* Правила бейджа (Reseller Book 2025, с. 7–9):
     минимум 127.56×51.023 px для веба — считается по самому изображению,
     поэтому box-sizing: content-box и защитное поле вынесено в margin;
     форму рамки менять нельзя, отсюда border-radius: 0;
     масштаб только пропорциональный — height: auto;
     эффекты, наклоны, анимация и перекраска запрещены. */
  display: block;
  box-sizing: content-box;
  width: 160px;
  min-width: 127.56px;
  height: auto;
  min-height: 51.023px;
  margin: 14px;            /* защитное поле ≥ 1/5 ширины логотипа LEGO внутри бейджа */
  padding: 0;
  border-radius: 0;
  background: #fff;        /* только версия «на белом фоне» */
}

/* Honeypot: поле-ловушка для ботов, человек его не видит (ТЗ 6) */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

/* Страница заявки на КП (ТЗ 3.4, 4) */
.quote-section { padding: 46px 0 80px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: start; }
.quote-items h2 { font-size: 24px; margin-bottom: 20px; }
.quote-total[hidden] { display: none; }
.quote-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; margin-top: 8px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink-soft);
}
.quote-total strong { font-size: 24px; color: var(--ink); }
.quote-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.inquiry-item .ii-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.form-error {
  display: none; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 16px;
}
.form-error.show { display: block; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   Дизайн-слой: язык технической спецификации
   Сайт — инструмент закупки, а не витрина игрушек. Отсюда
   моноширинные подписи, артикул как типографический якорь,
   отбивки-линейки с делениями и таблично набранные цены.
   ============================================================ */

/* Служебная подпись: артикул, ступень, единицы */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted);
}

/* Отбивка-линейка с делениями: разделяет секции, читается как шкала */
.tick-rule {
  height: 9px; border: 0; margin: 0;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px) bottom/100% 6px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom/100% 1px no-repeat;
}

/* Паспорт поставки в первом экране: строки с отточием, как в спецификации */
.spec-sheet {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px 22px;
  box-shadow: var(--shadow);
}
.spec-sheet .spec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}
.spec-sheet .spec-head h2 { font-size: 15px; letter-spacing: -.01em; }
.spec-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: 8px; padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.spec-row:last-of-type { border-bottom: none; }
.spec-row .k { font-size: 14px; color: var(--ink-soft); }
.spec-row .leader { border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.spec-row .v {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.spec-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.spec-foot .ico { color: var(--red); }

/* Первый экран: заголовок слева, паспорт справа */
.hero { padding: 68px 0 76px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04;
  font-weight: 800; letter-spacing: -.035em; margin: 18px 0 0;
}
.hero h1 .accent { color: var(--red); }
.hero .lead {
  font-size: 17px; line-height: 1.65; color: var(--ink-soft);
  margin: 20px 0 0; max-width: 30em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note {
  display: flex; align-items: center; gap: 9px;
  margin-top: 22px; font-size: 13px; color: var(--ink-soft);
}
.hero-note .ico { color: var(--ink-muted); }

/* Ступень обучения как маркер: диапазон классов набором, а не иконкой */
.stage-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--ink-muted); }
.stage-grades {
  font-family: var(--font-mono); font-size: 26px; font-weight: 600;
  color: var(--red); letter-spacing: -.02em; margin-bottom: 4px;
}
.stage-card .stage-term { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.stage-card h3 { font-size: 19px; margin: 12px 0 8px; }
.stage-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.stage-card .more { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.stage-card .more::after { content: ' →'; }

/* Список с галочками */
.about-features .check {
  background: none; color: var(--red); width: 20px; height: 20px;
  display: grid; place-items: center; margin-top: 2px;
}

/* Цены и артикулы — таблично, моноширинным */
.price, .product-price, .stat-num, .stat .num, .total-row strong {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.pcard-brand, .product-meta { font-family: var(--font-mono); letter-spacing: .06em; }

/* Пустые состояния: иконка вместо эмодзи */
.empty .ico, .empty-cart .ico { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--ink-muted); }

@media (max-width: 900px) {
  .hero { padding: 44px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* Страница заявки на КП (ТЗ 3.4, 4) */
.quote-section { padding: 46px 0 80px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: start; }
.quote-items h2 { font-size: 24px; margin-bottom: 20px; }
.quote-total[hidden] { display: none; }
.quote-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; margin-top: 8px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink-soft);
}
.quote-total strong { font-size: 24px; color: var(--ink); }
.quote-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.inquiry-item .ii-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.form-error {
  display: none; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 16px;
}
.form-error.show { display: block; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   Дизайн-слой: язык технической спецификации
   Сайт — инструмент закупки, а не витрина игрушек. Отсюда
   моноширинные подписи, артикул как типографический якорь,
   отбивки-линейки с делениями и таблично набранные цены.
   ============================================================ */

/* Служебная подпись: артикул, ступень, единицы */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted);
}

/* Отбивка-линейка с делениями: разделяет секции, читается как шкала */
.tick-rule {
  height: 9px; border: 0; margin: 0;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px) bottom/100% 6px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom/100% 1px no-repeat;
}

/* Паспорт поставки в первом экране: строки с отточием, как в спецификации */
.spec-sheet {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px 22px;
  box-shadow: var(--shadow);
}
.spec-sheet .spec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}
.spec-sheet .spec-head h2 { font-size: 15px; letter-spacing: -.01em; }
.spec-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: 8px; padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.spec-row:last-of-type { border-bottom: none; }
.spec-row .k { font-size: 14px; color: var(--ink-soft); }
.spec-row .leader { border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.spec-row .v {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.spec-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.spec-foot .ico { color: var(--red); }

/* Первый экран: заголовок слева, паспорт справа */
.hero { padding: 68px 0 76px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04;
  font-weight: 800; letter-spacing: -.035em; margin: 18px 0 0;
}
.hero h1 .accent { color: var(--red); }
.hero .lead {
  font-size: 17px; line-height: 1.65; color: var(--ink-soft);
  margin: 20px 0 0; max-width: 30em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note {
  display: flex; align-items: center; gap: 9px;
  margin-top: 22px; font-size: 13px; color: var(--ink-soft);
}
.hero-note .ico { color: var(--ink-muted); }

/* Ступень обучения как маркер: диапазон классов набором, а не иконкой */
.stage-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--ink-muted); }
.stage-grades {
  font-family: var(--font-mono); font-size: 26px; font-weight: 600;
  color: var(--red); letter-spacing: -.02em; margin-bottom: 4px;
}
.stage-card .stage-term { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.stage-card h3 { font-size: 19px; margin: 12px 0 8px; }
.stage-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.stage-card .more { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.stage-card .more::after { content: ' →'; }

/* Список с галочками */
.about-features .check {
  background: none; color: var(--red); width: 20px; height: 20px;
  display: grid; place-items: center; margin-top: 2px;
}

/* Цены и артикулы — таблично, моноширинным */
.price, .product-price, .stat-num, .stat .num, .total-row strong {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.pcard-brand, .product-meta { font-family: var(--font-mono); letter-spacing: .06em; }

/* Пустые состояния: иконка вместо эмодзи */
.empty .ico, .empty-cart .ico { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--ink-muted); }

@media (max-width: 900px) {
  .hero { padding: 44px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* Состав каталога: столбиковая ведомость по линейкам (assets/composition.js) */
.composition {
  background: var(--blue); color: #fff;
  border-radius: var(--radius); padding: 30px 32px 26px;
}
.composition-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.22);
}
.composition-head .eyebrow { color: rgba(255,255,255,.65); }
.composition-total { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.composition-list { list-style: none; margin: 6px 0 0; }
.composition-list li {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) 64px 26px;
  align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.composition-list .line-dot { width: 10px; height: 10px; border-radius: 2px; }
.composition-name { font-size: 14px; color: rgba(255,255,255,.92); }
.composition-bar { height: 4px; background: rgba(255,255,255,.16); border-radius: 2px; overflow: hidden; }
.composition-bar i { display: block; height: 100%; background: #fff; }
.composition-count { font-size: 14px; font-weight: 600; text-align: right; }
.composition-note { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 16px; }
@media (max-width: 600px) {
  .composition { padding: 24px 22px; }
  .composition-list li { grid-template-columns: 10px minmax(0, 1fr) 26px; }
  .composition-bar { display: none; }
}

/* Блок «Остались вопросы?» под аккордеоном FAQ.
   Выравнивается по той же колонке, что и сам аккордеон. */
.faq-more {
  max-width: 820px; margin: 34px auto 0;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.faq-more p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Витрина популярных наборов на главной */
.fset {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.fset:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fset-img { aspect-ratio: 4/3; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line-soft); }
.fset-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.fset-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.fset-sku { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.fset h3 { font-size: 16px; line-height: 1.3; margin-bottom: 8px; }
.fset h3 a:hover { color: var(--red); }
.fset p { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fset-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--line); }
.fset .price { font-size: 17px; font-weight: 700; }
.fset .btn-add { background: var(--red); color: #fff; border: none; padding: 9px 14px;
  border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.fset .btn-add:hover { background: var(--red-dark); }
