/* ============================================================
   OMIX — ноутбуки и моноблоки. Дизайн-система
   ============================================================ */
:root {
  --bg: #020817;
  --bg-2: #050f22;
  --surface: #0a1729;
  --surface-2: #0e1e36;
  --surface-3: #12294a;
  --border: rgba(56, 189, 248, 0.16);
  --border-strong: rgba(56, 189, 248, 0.34);

  --text: #e9f0f9;
  --text-muted: #9fb3cd;
  --text-faint: #7489a4;

  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --teal: #2dd4bf;
  --amber: #facc15;
  --cta: #c2551c;
  --cta-hover: #a8460f;
  --ok: #34d399;

  --role-teacher: #2dd4bf;
  --role-student: #facc15;
  --role-accountant: #a78bfa;

  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;

  --wrap: 1200px;
  --shadow: 0 18px 44px rgba(2, 8, 23, 0.55);
  --shadow-sm: 0 6px 18px rgba(2, 8, 23, 0.4);

  --t: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-3xl: clamp(1.9rem, 1.45rem + 2vw, 3.1rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: #7dd3fc; }
h1, h2, h3, h4 {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
strong { color: #fff; font-weight: 650; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section-tight { padding: var(--sp-8) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.center { text-align: center; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #041022; padding: 0.75rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 700; margin-bottom: var(--sp-3);
}
.sec-head { max-width: 760px; margin: 0 auto var(--sp-7); text-align: center; }
.sec-head p { color: var(--text-muted); margin: 0; font-size: var(--text-lg); }
.accent { color: var(--accent); }
.amber { color: var(--amber); }
.lede { font-size: var(--text-lg); color: var(--text-muted); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(2, 8, 23, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-5); min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 800; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; color: var(--accent); flex-shrink: 0; }
.brand-name { font-family: Manrope, sans-serif; font-size: 1.3rem; letter-spacing: 0.02em; }
.brand-sub { display: block; font-size: 0.6875rem; color: var(--text-faint); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.nav { display: flex; gap: 1.15rem; margin-left: auto; align-items: center; }
.nav a { color: var(--text-muted); font-size: var(--text-sm); font-weight: 550; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--accent); }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700;
  color: var(--text); white-space: nowrap; font-size: var(--text-sm);
}
.header-phone:hover { color: var(--accent); }
.header-phone svg { width: 18px; height: 18px; color: var(--accent); }
.burger {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.burger svg { width: 22px; height: 22px; }

@media (max-width: 1220px) {
  .nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--sp-4) var(--sp-5) var(--sp-5); gap: 0.15rem; margin: 0;
    max-height: calc(100dvh - 68px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all var(--t);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid rgba(56, 189, 248, 0.08); font-size: var(--text-base); }
  .burger { display: inline-flex; margin-left: auto; }
  .header-phone .phone-label { display: none; }
  .brand-sub { display: none; }
}
@media (max-width: 560px) { .header-phone span:not(.phone-label) { display: none; } }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.5rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: Manrope, sans-serif; font-weight: 750; font-size: var(--text-sm);
  cursor: pointer; transition: all var(--t); text-align: center; line-height: 1.25;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 10px 26px rgba(224, 106, 44, 0.28); }
.btn-primary:hover { background: var(--cta-hover); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #04121f; }
.btn-accent:hover { background: #7dd3fc; color: #04121f; }
.btn-ghost { background: rgba(56, 189, 248, 0.06); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(56, 189, 248, 0.14); color: #fff; }
.btn-wa { background: #177a41; color: #fff; }
.btn-wa:hover { background: #115c31; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1rem; font-size: var(--text-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(2, 8, 23, 0.96) 0%, rgba(2, 8, 23, 0.85) 45%, rgba(4, 19, 44, 0.62) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: var(--sp-9) 0 var(--sp-8); max-width: 780px; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero .lede { max-width: 660px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--sp-5); }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(56, 189, 248, 0.1); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 0.4rem 0.85rem;
  font-size: var(--text-xs); font-weight: 600; color: #cfe4f8;
}
.badge svg { width: 15px; height: 15px; flex: 0 0 auto; }
.hero-badges .badge { white-space: nowrap; }
.badge-amber { background: rgba(250, 204, 21, 0.1); border-color: rgba(250, 204, 21, 0.3); color: #fde68a; }
.price-chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.chip {
  background: rgba(10, 23, 41, 0.8); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.65rem 1rem; font-size: var(--text-sm);
}
.chip b { color: var(--amber); font-family: Manrope, sans-serif; }
.hero-stats {
  position: relative; z-index: 1; display: grid; gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border); border-top: 1px solid var(--border);
}
.hero-stats div { background: rgba(2, 8, 23, 0.82); padding: var(--sp-5) var(--sp-4); text-align: center; }
.hero-stats b { display: block; font-family: Manrope, sans-serif; font-size: 1.35rem; color: var(--accent); }
.hero-stats span { font-size: var(--text-xs); color: var(--text-muted); }
@media (max-width: 780px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Cards & grids ---------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-5); transition: border-color var(--t), transform var(--t);
  min-width: 0;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); margin: 0; font-size: var(--text-sm); }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); margin-bottom: var(--sp-4);
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--border);
}
.card-icon svg { width: 22px; height: 22px; }

/* product cards */
.prod-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.prod-media { position: relative; aspect-ratio: 4 / 3; background: #030b1a; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
.prod-tag {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  background: rgba(2, 8, 23, 0.82); border: 1px solid var(--border-strong);
  border-radius: var(--radius-full); padding: 0.3rem 0.7rem;
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
}
.prod-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: var(--text-lg); }
.prod-note { color: var(--text-faint); font-size: var(--text-xs); margin-bottom: var(--sp-4); }
.spec-list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); font-size: var(--text-sm); }
.spec-list li {
  display: flex; gap: 0.5rem; align-items: flex-start; color: var(--text-muted);
  padding: 0.3rem 0; border-bottom: 1px solid rgba(56, 189, 248, 0.07); min-width: 0;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { color: var(--text-faint); flex: 0 0 5.5rem; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 0.15rem; }
.spec-list .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.prod-price { margin-top: auto; padding-top: var(--sp-4); }
.prod-price b { font-family: Manrope, sans-serif; font-size: 1.35rem; color: var(--amber); display: block; }
.prod-price span { font-size: var(--text-xs); color: var(--text-faint); }
.prod-card .btn { margin-top: var(--sp-4); }
.feat-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: var(--sp-4); }
.feat-tags span {
  font-size: 0.75rem; background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.25);
  color: #9df0e3; border-radius: var(--radius-full); padding: 0.22rem 0.6rem;
}

/* filters */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-bottom: var(--sp-6);
}
.filter-bar button {
  background: rgba(56, 189, 248, 0.06); border: 1px solid var(--border); color: var(--text-muted);
  border-radius: var(--radius-full); padding: 0.55rem 1.1rem; font-size: var(--text-sm);
  font-weight: 600; cursor: pointer; transition: all var(--t); font-family: inherit;
}
.filter-bar button:hover { color: var(--text); border-color: var(--border-strong); }
.filter-bar button.active { background: var(--accent); border-color: var(--accent); color: #04121f; }

/* ---------------- Calculator ---------------- */
.calc { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-form { background: var(--surface); padding: var(--sp-6); }
.calc-result { background: linear-gradient(160deg, var(--surface-3), var(--bg-2)); padding: var(--sp-6); display: flex; flex-direction: column; }
.field { margin-bottom: var(--sp-4); min-width: 0; }
.field > label { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 0.35rem; font-weight: 600; }
.field .req { color: var(--cta); }
select, input[type='text'], input[type='tel'], input[type='email'], input[type='number'], textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 0.75rem 0.9rem; font-family: inherit; font-size: var(--text-sm);
  transition: border-color var(--t);
}
select:focus, input:focus, textarea:focus { border-color: var(--accent); outline: none; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 18px; padding-right: 2.5rem; }
textarea { min-height: 96px; resize: vertical; }
.checks { display: grid; gap: 0.45rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--text-sm); color: var(--text-muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0.2rem 0 0; accent-color: var(--accent); flex-shrink: 0; }
.calc-empty { margin: auto 0; text-align: center; color: var(--text-faint); font-size: var(--text-sm); }
.calc-empty svg { width: 42px; height: 42px; color: var(--border-strong); margin: 0 auto var(--sp-3); }
.calc-total { border-top: 1px dashed var(--border-strong); margin-top: var(--sp-4); padding-top: var(--sp-4); }
.calc-total b { font-family: Manrope, sans-serif; font-size: clamp(1.45rem, 1.2rem + 1.4vw, 2rem); color: var(--amber); display: block; white-space: nowrap; }
.calc-rows { list-style: none; padding: 0; margin: 0 0 var(--sp-4); font-size: var(--text-sm); }
.calc-rows li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 0.4rem 0; border-bottom: 1px solid rgba(56, 189, 248, 0.08); }
.calc-rows .v { color: var(--text); text-align: right; font-weight: 600; min-width: 0; }
.calc-rows .k { color: var(--text-muted); }
.note { font-size: var(--text-xs); color: var(--text-faint); }

/* ---------------- Process ---------------- */
.steps { counter-reset: s; display: grid; gap: var(--sp-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: -0.15rem;
  font-family: Manrope, sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--accent);
  opacity: 0.65;
}
.step h3 { font-size: var(--text-lg); margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  margin-bottom: 0.6rem; overflow: hidden;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer; padding: 1.05rem var(--sp-5); font-weight: 650;
  font-family: Manrope, sans-serif; list-style: none; display: flex; gap: var(--sp-4);
  align-items: flex-start; justify-content: space-between; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0; width: 11px; height: 11px; margin-top: 0.4rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform var(--t);
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq .faq-body { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-muted); font-size: var(--text-sm); }
.faq .faq-body p:last-child { margin: 0; }

/* ---------------- Reviews ---------------- */
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
.review .quote { color: var(--text-muted); font-size: var(--text-sm); font-style: italic; }
.review .who { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); font-size: var(--text-xs); }
.review .who b { display: block; color: var(--text); font-style: normal; }
.review .who span { color: var(--text-faint); }
.placeholder-hint {
  background: rgba(250, 204, 21, 0.08); border: 1px dashed rgba(250, 204, 21, 0.4);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: var(--text-xs); color: #fde68a;
  max-width: 880px; margin: 0 auto var(--sp-5);
}

/* ---------------- Geo ---------------- */
.geo-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.geo-links a {
  background: rgba(56, 189, 248, 0.06); border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 0.5rem 1rem; font-size: var(--text-sm); color: var(--text-muted); font-weight: 600;
}
.geo-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- Lead form ---------------- */
.lead {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 900px) { .lead { grid-template-columns: minmax(0, 1fr); } }
.lead-copy { padding: var(--sp-6); background: linear-gradient(160deg, var(--surface-3), var(--bg-2)); }
.lead-copy ul { list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.lead-copy li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-muted); font-size: var(--text-sm); margin-bottom: 0.6rem; }
.lead-copy li svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 0.2rem; }
.lead-form { padding: var(--sp-6); background: var(--surface); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.err { color: #fca5a5; font-size: var(--text-xs); margin-top: 0.25rem; display: none; }
.field.invalid input, .field.invalid select { border-color: #f87171; }
.field.invalid .err { display: block; }
.consent { font-size: var(--text-xs); color: var(--text-faint); margin-top: var(--sp-4); }
.consent a { color: var(--text-muted); text-decoration: underline; }

/* ---------------- Modal / quiz ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: var(--sp-4);
  background: rgba(2, 8, 23, 0.8); backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal-box {
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  width: min(560px, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto;
  padding: var(--sp-6); position: relative; box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 38px; height: 38px;
  border-radius: var(--radius-sm); background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border); color: var(--text); cursor: pointer;
  display: grid; place-items: center;
}
.modal-close svg { width: 18px; height: 18px; }
.quiz-progress { display: flex; gap: 0.35rem; margin: var(--sp-3) 0 var(--sp-5); }
.quiz-progress span { height: 4px; flex: 1; background: rgba(56, 189, 248, 0.16); border-radius: 2px; }
.quiz-progress span.done { background: var(--accent); }
.quiz-step-label { font-size: var(--text-xs); color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.quiz-opts { display: grid; gap: 0.5rem; margin-bottom: var(--sp-5); }
.quiz-opt {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(56, 189, 248, 0.04);
  cursor: pointer; font-size: var(--text-sm); transition: all var(--t); color: var(--text);
}
.quiz-opt:hover { border-color: var(--border-strong); background: rgba(56, 189, 248, 0.1); }
.quiz-opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.modal-box h3 { font-size: var(--text-xl); }

/* ---------------- Floating actions ---------------- */
.floating { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; display: flex; flex-direction: column; gap: 0.6rem; }
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow); border: 0; cursor: pointer; color: #fff;
  transition: transform var(--t);
}
.fab:hover { transform: scale(1.06); }
.fab svg { width: 26px; height: 26px; }
.fab-wa { background: #1f8a4c; }
.fab-call { background: var(--cta); }
@media (min-width: 1081px) { .fab-call { display: none; } }

/* ---------------- Article ---------------- */
.article { max-width: 760px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--text-xs); color: var(--text-faint); margin-bottom: var(--sp-6); }
.article h2 { margin-top: var(--sp-7); font-size: var(--text-xl); }
.article h3 { margin-top: var(--sp-5); font-size: var(--text-lg); }
.article p, .article li { color: #cddcec; }
.article table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin: var(--sp-5) 0; }
.article th, .article td { border: 1px solid var(--border); padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; }
.article th { background: var(--surface-2); color: #fff; font-family: Manrope, sans-serif; }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.article blockquote { margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5); border-left: 3px solid var(--accent); background: var(--surface); color: var(--text-muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.breadcrumbs { font-size: var(--text-xs); color: var(--text-faint); margin-bottom: var(--sp-5); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span { margin: 0 0.4rem; }
.post-card { display: flex; flex-direction: column; }
.post-card h3 { font-size: var(--text-lg); }
.post-card .btn { margin-top: auto; }
.post-meta { font-size: var(--text-xs); color: var(--text-faint); margin-bottom: var(--sp-3); }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero { border-bottom: 1px solid var(--border); background: linear-gradient(160deg, #06142c, var(--bg)); }
.page-hero-inner { padding: var(--sp-8) 0 var(--sp-7); max-width: 820px; }
.page-hero .lede { margin-bottom: var(--sp-5); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split img { border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: var(--sp-7) 0 var(--sp-5); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: var(--sp-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h4, .site-footer .foot-col-title { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: var(--sp-6); padding-top: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  color: var(--text-faint); font-size: var(--text-xs);
}
.footer-sources { color: var(--text-faint); font-size: var(--text-xs); margin-top: var(--sp-4); }
.footer-sources a { color: var(--text-faint); text-decoration: underline; }

/* ---------------- Utilities ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem);
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
  padding: 0.85rem 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  font-size: var(--text-sm); width: max-content; max-width: min(26rem, calc(100vw - 2.5rem));
  opacity: 0; visibility: hidden; transition: all var(--t); z-index: 140;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cta-band {
  background: linear-gradient(120deg, #0b2d52, #071528);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-5);
  align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0 0 0.5rem; font-size: var(--text-xl); }
.cta-band p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.cta-band > div { min-width: 0; }

/* Мобильный порядок героя: заголовок выше преимуществ */
@media (max-width: 760px) {
  .hero-inner { display: flex; flex-direction: column; padding-top: var(--sp-7); }
  .hero-inner > h1 { order: 1; }
  .hero-inner > .lede { order: 2; }
  .hero-inner > .btn-row { order: 3; }
  .hero-inner > .price-chips { order: 4; margin-top: 1.25rem; }
  .hero-inner > .hero-badges { order: 5; margin: 1.25rem 0 0; }
  .breadcrumbs { display: flex; align-items: center; gap: 0.1rem; white-space: nowrap; overflow: hidden; }
  .breadcrumbs > *:last-child { overflow: hidden; text-overflow: ellipsis; }
  .floating { right: 0.75rem; bottom: 0.75rem; gap: 0.5rem; }
  .fab { width: 48px; height: 48px; }
  .fab svg { width: 22px; height: 22px; }
  body { padding-bottom: 3.5rem; }
}

/* ---------------- блоки внутри статейной колонки (волна 1) ---------------- */
.article .steps,
.article .grid { margin: var(--sp-6) 0; }
.article .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-6); }
.article .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article .card h3 { font-size: var(--text-base); }
@media (max-width: 680px) {
  .article .steps,
  .article .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .table-scroll table { min-width: 560px; }
  .table-scroll { border: 1px solid var(--border); border-radius: var(--radius-sm); }
}

/* список ссылок в карточках-хабах */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.link-list li { padding-left: 1rem; position: relative; font-size: var(--text-sm); line-height: 1.5; }
.link-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.link-list a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; transition: color .18s ease, border-color .18s ease; }
.link-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* контраст: кнопки в подвале и ссылки в тексте */
.site-footer .btn-primary, .site-footer .btn-wa, .site-footer .btn-primary:hover, .site-footer .btn-wa:hover { color: #fff; }
.footer-bottom a, .footer-sources a { text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 2px; }
