/* ============================================================
   РННС — инвестиционный лендинг
   Тёмная фирменная тема: navy + циановые рамки + золото денег.
   Палитра и типографика описаны в DESIGN.md.
   ============================================================ */

:root {
  /* Цвет */
  --bg:       oklch(16% 0.045 265);
  --bg-deep:  oklch(12.5% 0.04 268);
  --bg-band:  oklch(18.5% 0.048 263);
  --surface:  oklch(21% 0.05 262);
  --surface-2:oklch(24% 0.052 260);
  --line:       oklch(78% 0.11 225 / .20);
  --line-strong:oklch(78% 0.11 225 / .38);
  --ink:      oklch(96% 0.008 255);
  --ink-soft: oklch(88% 0.02 252);
  --muted:    oklch(76% 0.035 255);
  --cyan:     oklch(79% 0.115 220);
  --cyan-deep:oklch(62% 0.12 232);
  --gold:     oklch(83% 0.125 88);
  --gold-deep:oklch(72% 0.13 80);
  --green:    oklch(80% 0.145 162);
  --warn:     oklch(80% 0.13 75);
  --danger:   oklch(70% 0.18 28);

  /* Типографика */
  --font-display: "Oswald", "Arial Narrow", "PT Sans Narrow", system-ui, sans-serif;
  --font-body: "Golos Text", "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Геометрия */
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 32px);

  /* Слои */
  --z-nav: 30;

  /* Движение */
  --ease-out: cubic-bezier(.19, 1, .22, 1);
}

/* ---------- База ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

::selection { background: oklch(62% 0.12 232 / .55); color: var(--ink); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

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

.skip-link {
  position: absolute; top: -48px; left: 16px;
  z-index: calc(var(--z-nav) + 1);
  background: var(--gold); color: #14203c;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Типографика ---------- */

.h2, .h3, .h4, .hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}

.h2 { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.7rem); margin-bottom: clamp(20px, 3.5vw, 34px); }
.h3 { font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem); }
.h4 { font-size: 1.06rem; letter-spacing: .05em; }

/* Циановая засечка под главными заголовками секций */
.h2::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold) 0 22px, var(--cyan) 22px);
}

p { margin: 0; }
.flow > * + * { margin-top: 1em; }

.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: var(--ink-soft); }

.section-intro {
  max-width: 72ch;
  color: var(--ink-soft);
  margin-bottom: clamp(22px, 3.5vw, 34px);
  text-wrap: pretty;
}

.gold  { color: var(--gold); }
.green { color: var(--green); }
.cyan  { color: var(--cyan); }

.fineprint {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
}

mark {
  background: none;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Панели, чипы, предупреждения ---------- */

.panel {
  background: linear-gradient(180deg, oklch(99% 0 0 / .035), transparent 46%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
}

.chip {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background: oklch(62% 0.12 232 / .1);
}
.chip--gold {
  color: var(--gold);
  border-color: oklch(83% 0.125 88 / .45);
  background: oklch(83% 0.125 88 / .08);
}

.note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .95rem;
  color: var(--ink-soft);
  background: var(--surface);
}
.note--warn {
  border-color: oklch(80% 0.13 75 / .5);
  background: oklch(80% 0.13 75 / .07);
}
.note--warn strong { color: var(--warn); }
.note--warn::before {
  content: "!";
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 20px; height: 20px;
  margin-right: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--warn);
  color: var(--warn);
  font-weight: 700;
  font-size: .8rem;
  vertical-align: -3px;
}
.note--legal {
  margin-top: 22px;
  font-size: .88rem;
  color: var(--muted);
}

.formula { margin-top: 22px; }
.formula .h4 { color: var(--gold); margin-bottom: 14px; }
.formula__rows { display: grid; gap: 10px; }
.formula__rows p {
  font-size: .95rem;
  color: var(--ink-soft);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
}
.formula__eq {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
  color: var(--cyan);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform .18s var(--ease-out), background-color .18s var(--ease-out),
              border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: linear-gradient(180deg, oklch(87% 0.12 90), var(--gold-deep));
  color: #17223f;
  border-color: oklch(83% 0.125 88 / .6);
}
.btn--gold:hover { background: linear-gradient(180deg, oklch(90% 0.11 92), var(--gold)); color: #121b33; }

.btn--ghost {
  background: oklch(62% 0.12 232 / .07);
  color: var(--cyan);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--cyan); }

.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

.linklike {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linklike:hover { color: var(--ink); }

/* ---------- Шапка ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: oklch(12.5% 0.04 268 / .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  display: grid;
  gap: 3px;
}
.brand__text small {
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--muted);
}

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: oklch(99% 0 0 / .06); }
.site-nav a.is-active { color: var(--cyan); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(58% 46% at 18% 8%, oklch(62% 0.12 232 / .18), transparent 70%),
    radial-gradient(44% 40% at 86% 86%, oklch(72% 0.13 80 / .1), transparent 72%),
    var(--bg-deep);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(oklch(79% 0.115 220 / .13) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 72%, transparent);
  pointer-events: none;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__net { width: 100%; height: 100%; }

.hero__in {
  position: relative;
  padding-block: clamp(56px, 9vw, 110px) clamp(44px, 7vw, 84px);
}

.hero__chip { margin-bottom: 22px; }

.hero__title {
  font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4.1rem);
  max-width: 21ch;
}

.hero__sub {
  max-width: 62ch;
  margin-top: 20px;
  font-size: clamp(1rem, .95rem + .45vw, 1.2rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: clamp(36px, 6vw, 58px) 0 0;
}
.hero__metric {
  margin: 0;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(21% 0.05 262 / .66);
  backdrop-filter: blur(4px);
}
.hero__metric dt {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gold);
  line-height: 1.1;
}
.hero__metric:nth-child(2) dt { color: var(--cyan); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
.hero__metric dd {
  margin: 8px 0 0;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.45;
}
.hero .fineprint { margin-top: 14px; }

/* ---------- Секции ---------- */

.section {
  padding-block: clamp(52px, 8vw, 96px);
  scroll-margin-top: 84px;
}
.section--band {
  background: var(--bg-band);
  border-block: 1px solid var(--line);
}

/* ---------- О проекте ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.panel--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.panel--split > div { padding: clamp(18px, 2.6vw, 26px); }
.panel--split > div + div { border-left: 1px solid var(--line); }
.panel--split .h4 { color: var(--cyan); margin-bottom: 10px; }
.panel--split > div + div .h4 { color: var(--gold); }
.panel--split p { font-size: .95rem; color: var(--ink-soft); }

.about__media {
  margin: 0;
  position: sticky;
  top: 92px;
}
.about__media img {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}

/* ---------- Причины ---------- */

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 34px;
  max-width: 1020px;
}
.reasons li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .98rem;
}
.reasons li::before {
  content: "";
  position: absolute;
  left: 15px; top: 19px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--cyan);
  border-bottom: 2.5px solid var(--cyan);
  transform: rotate(-45deg);
}

.statement {
  margin-top: clamp(24px, 4vw, 36px);
  max-width: 64ch;
  font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- Функции узла ---------- */

.funcs {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.funcs li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .97rem;
}
.funcs li span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--cyan);
  letter-spacing: .04em;
}

/* ---------- Оборудование ---------- */

.equip {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .7fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  font-size: .95rem;
}
.spec th, .spec td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.spec thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-deep);
}
.spec .num { text-align: right; white-space: nowrap; }
.spec tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 26%;
}
.spec tbody td { color: var(--ink-soft); }
.spec td.num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: .02em;
}
.spec tfoot th, .spec tfoot td {
  border-bottom: 0;
  background: oklch(83% 0.125 88 / .07);
  border-top: 1px solid oklch(83% 0.125 88 / .4);
}
.spec tfoot th { color: var(--ink); }
.spec tfoot td.num { font-size: 1.5rem; }

.equip__media { margin: 0; }
.equip__media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.equip__media figcaption { margin-top: 10px; }

#equipWarning { margin-top: clamp(22px, 3.5vw, 30px); max-width: 900px; }

/* ---------- Источники дохода + полосы ---------- */

.sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.source {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.source h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.source p { font-size: .92rem; color: var(--muted); }
.source::before {
  content: "";
  display: block;
  width: 26px; height: 26px;
  margin-bottom: 14px;
  border: 1.5px solid var(--cyan);
  border-radius: 7px;
  background:
    radial-gradient(circle at center, var(--cyan) 2.5px, transparent 3px),
    linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat;
}

.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}
.plan__head .h3 { font-size: 1.1rem; letter-spacing: .05em; }
.plan__total { color: var(--muted); font-size: .95rem; }
.plan__total strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .02em;
  margin-left: 6px;
}

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; gap: 7px; }
.bars .bar__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}
.bars .bar__name { color: var(--ink-soft); font-size: .95rem; }
.bars .bar__val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
.bars--green .bar__val { color: var(--green); }
.bars--cyan .bar__val { color: var(--cyan); }
.bars .bar__track {
  height: 6px;
  border-radius: 4px;
  background: oklch(99% 0 0 / .07);
  overflow: hidden;
}
.bars .bar__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  transform-origin: left center;
}
.bars--green .bar__fill { background: linear-gradient(90deg, oklch(70% 0.13 165), var(--green)); }
.bars--cyan .bar__fill { background: linear-gradient(90deg, var(--cyan-deep), var(--cyan)); }
.plan > .fineprint { margin-top: 18px; }

/* ---------- Финансовая модель ---------- */

.model { padding: clamp(20px, 3vw, 30px); }

.model__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-deep);
  width: max-content;
  max-width: 100%;
  margin-bottom: 24px;
}
.model__tab {
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 .95rem/1 var(--font-body);
  padding: 11px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out);
}
.model__tab:hover { color: var(--ink); }
.model__tab[aria-selected="true"] {
  background: linear-gradient(180deg, oklch(87% 0.12 90), var(--gold-deep));
  color: #17223f;
}

.model__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.model__cell {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
}
.model__cell dt {
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.model__cell dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--ink);
}
.model__cell--revenue dd { color: var(--green); }
.model__cell--expenses dd { color: var(--cyan); }
.model__cell--profit dd, .model__cell--fund dd { color: var(--gold); }
.model__cell dd small {
  display: block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0;
  text-transform: none;
}
.model__meta { margin-top: 18px; }

#modelWarning { margin-top: 20px; max-width: 980px; }

.model__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- Таймлайн дивидендов ---------- */

.timeline {
  list-style: none;
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: tl;
}
.tl {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 12px;
  align-content: start;
}
.tl::before {
  content: "";
  position: absolute;
  top: 29px; right: -15px;
  width: 14px; height: 1px;
  background: var(--line-strong);
}
.tl:last-child::before { display: none; }
.tl__period {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink);
}
.tl__title { font-weight: 700; font-size: .98rem; color: var(--ink-soft); }
.tl ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 6px;
  font-size: .88rem;
  color: var(--muted);
}
.tl ul li { padding-left: 14px; position: relative; }
.tl ul li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan-deep);
}
.tl__status {
  margin-top: auto;
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-deep);
  justify-self: start;
}
.tl--cyan  .tl__status { color: var(--cyan);  border-color: oklch(79% 0.115 220 / .45); }
.tl--green .tl__status { color: var(--green); border-color: oklch(80% 0.145 162 / .45); }
.tl--gold  .tl__status { color: var(--gold);  border-color: oklch(83% 0.125 88 / .5); }
.tl--gold { border-color: oklch(83% 0.125 88 / .5); }

.divpolicy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 18px;
  align-items: stretch;
}
.divpolicy__big {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.divpolicy__main p:last-child { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Пакеты ---------- */

.packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.pack {
  position: relative;
  display: grid;
  gap: 0;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(22px, 3vw, 30px);
}
.pack--featured {
  border-color: oklch(83% 0.125 88 / .55);
  background:
    linear-gradient(180deg, oklch(83% 0.125 88 / .09), transparent 42%),
    var(--surface-2);
}
.pack__flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #17223f;
  background: linear-gradient(180deg, oklch(87% 0.12 90), var(--gold-deep));
  border-radius: 999px;
  padding: 5px 14px;
}
.pack__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan);
}
.pack--featured .pack__name { color: var(--gold); }
.pack__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 2rem + 1.4vw, 3.1rem);
  letter-spacing: .02em;
  line-height: 1;
  margin-top: 12px;
  color: var(--ink);
}
.pack__price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 8px;
}
.pack__units {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-deep);
  font-size: .92rem;
  color: var(--ink-soft);
}
.pack__units strong { color: var(--gold); font-weight: 700; }
.pack__list {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.pack__list li {
  position: relative;
  padding-left: 26px;
}
.pack__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .48em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.pack .btn { margin-top: auto; width: 100%; }

/* ---------- Бонус ABS ---------- */

.bonus {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}
.bonus__reward {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.bonus__pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem);
  line-height: 1;
}
.bonus__reward p { font-size: .97rem; color: var(--ink-soft); }

.mini {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  font-size: .95rem;
  margin-bottom: 16px;
}
.mini th, .mini td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.mini thead th {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-deep);
}
.mini tbody tr:last-child th, .mini tbody tr:last-child td { border-bottom: 0; }
.mini tbody th { font-weight: 600; color: var(--ink); }
.mini tbody td { color: var(--gold); font-weight: 600; }

/* ---------- Этапы ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
  margin-bottom: 10px;
}
.steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.steps p { font-size: .9rem; color: var(--muted); }

/* ---------- Риски ---------- */

.risklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 34px;
  max-width: 1020px;
  margin-bottom: clamp(26px, 4vw, 38px);
}
.risk {
  padding: 16px 18px 16px 48px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.risk::before {
  content: "!";
  position: absolute;
  left: 15px; top: 17px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--warn);
  border-radius: 50%;
  color: var(--warn);
  font-weight: 700;
  font-size: .8rem;
}
.risk h3 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: .99rem;
  font-weight: 700;
  color: var(--ink);
}
.risk p { font-size: .89rem; color: var(--muted); }

.legal p { font-size: .95rem; color: var(--ink-soft); }
.legal .h3 { margin-bottom: 4px; }

/* ---------- Форма ---------- */

.apply {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

.form { display: block; }
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field > span {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field em { color: var(--warn); font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 500 .97rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s var(--ease-out);
}
.field input::placeholder { color: oklch(76% 0.035 255 / .75); }
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.form__error {
  margin-top: 16px;
  color: oklch(80% 0.12 25);
  background: oklch(70% 0.18 28 / .1);
  border: 1px solid oklch(70% 0.18 28 / .45);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .92rem;
}

.form__submit { margin-top: 22px; width: 100%; }
.form > .fineprint { margin-top: 14px; text-align: center; }

.apply__ok { text-align: center; padding-block: 44px; }
.apply__okIcon { width: 64px; margin: 0 auto 18px; }
.apply__ok p { max-width: 46ch; margin: 10px auto 0; color: var(--ink-soft); }

.apply__side { position: sticky; top: 92px; }
.apply__side .h4 { color: var(--gold); margin-bottom: 14px; }
.gets {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.gets li { position: relative; padding-left: 26px; }
.gets li::before {
  content: "";
  position: absolute; left: 2px; top: .5em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

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

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .22s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.faq details[open] summary { color: var(--cyan); }
.faq .faq__a {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: .95rem;
  max-width: 72ch;
}

/* ---------- Подвал ---------- */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px) 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 60px);
  margin-bottom: clamp(28px, 5vw, 44px);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.footer__brand p { color: var(--muted); font-size: .93rem; max-width: 52ch; }
.footer__brand p + p { margin-top: 10px; }
.footer__contacts a { color: var(--cyan); }

.footer__docs .h4 { color: var(--ink-soft); margin-bottom: 14px; }
.footer__docs ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 24px;
}
.footer__docs a, .footer__docs .linklike {
  font-size: .89rem;
  color: var(--muted);
  text-decoration: none;
  text-align: left;
}
.footer__docs a:hover, .footer__docs .linklike:hover { color: var(--cyan); }

.footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 10px;
}
.footer__legal p { font-size: .82rem; color: var(--muted); max-width: 110ch; }

/* ---------- Диалог документов ---------- */

.docdialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  padding: clamp(22px, 4vw, 32px);
  max-width: 480px;
  width: calc(100% - 40px);
}
.docdialog::backdrop { background: oklch(10% 0.03 268 / .72); backdrop-filter: blur(3px); }
.docdialog .h4 { color: var(--gold); margin-bottom: 12px; }
.docdialog p { color: var(--ink-soft); font-size: .95rem; }
.docdialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Страницы-материалы (ПДн) ---------- */

.subhero {
  position: relative;
  background:
    radial-gradient(52% 60% at 14% 0%, oklch(62% 0.12 232 / .16), transparent 70%),
    var(--bg-deep);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 72px);
}
.subhero__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 20px;
  font-size: .85rem;
  color: var(--muted);
}
.subhero__crumbs a { color: var(--cyan); text-decoration: none; }
.subhero__crumbs a:hover { text-decoration: underline; }
.subhero__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.14;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.7rem);
  max-width: 26ch;
  text-wrap: balance;
  margin: 0;
}
.subhero__sub {
  max-width: 68ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(1rem, .95rem + .3vw, 1.14rem);
  text-wrap: pretty;
}
.subhero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.subhero__meta .chip { text-transform: none; letter-spacing: .015em; font-weight: 500; }
.subhero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.doc-section { padding-block: clamp(40px, 6vw, 64px); scroll-margin-top: 84px; }
.doc-section + .doc-section { border-top: 1px solid var(--line); }
.doc-section .h2 { font-size: clamp(1.35rem, 1.05rem + 1.4vw, 1.9rem); }
.doc-section .section-intro { margin-bottom: clamp(18px, 3vw, 26px); }

/* Юридические таблицы (запреты, риски, штрафы) */
.lawtable {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  font-size: .92rem;
}
.lawtable th, .lawtable td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.lawtable thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-deep);
}
.lawtable tbody tr:last-child th,
.lawtable tbody tr:last-child td { border-bottom: 0; }
.lawtable tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 30%;
  font-size: .93rem;
}
.lawtable tbody td { color: var(--ink-soft); }
.lawtable .norm {
  width: 21%;
  font-size: .85rem;
  color: var(--cyan);
  white-space: normal;
}
.lawtable .fine { color: var(--warn); font-weight: 600; }
.lawtable--abs tbody td:last-child { color: var(--green); }
.lawtable--abs tbody td:last-child::before { content: none; }

/* Список рискованных действий */
.warnlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 900px;
}
.warnlist li {
  position: relative;
  padding: 14px 18px 14px 48px;
  border: 1px solid oklch(80% 0.13 75 / .35);
  border-radius: var(--radius-sm);
  background: oklch(80% 0.13 75 / .05);
  color: var(--ink-soft);
  font-size: .95rem;
}
.warnlist li::before {
  content: "!";
  position: absolute;
  left: 15px; top: 15px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--warn);
  border-radius: 50%;
  color: var(--warn);
  font-weight: 700;
  font-size: .8rem;
}
.warnlist strong { color: var(--ink); }

/* Принципы ABS */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.principles li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: .93rem;
  color: var(--ink-soft);
}
.principles li::before {
  content: "";
  position: absolute;
  left: 15px; top: 20px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.principles strong { display: block; color: var(--ink); margin-bottom: 3px; }

/* Цитата-формулировка */
.quote {
  border: 1px solid oklch(83% 0.125 88 / .45);
  background:
    linear-gradient(180deg, oklch(83% 0.125 88 / .07), transparent 55%),
    var(--surface);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}
.quote .h4 { color: var(--gold); margin-bottom: 12px; }
.quote p { color: var(--ink-soft); font-size: .98rem; }
.quote p + p { margin-top: 10px; }

/* Нормативные ссылки */
.refs {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 44px;
  font-size: .87rem;
  color: var(--muted);
}
.refs li { margin-bottom: 8px; break-inside: avoid; padding-left: 4px; }

/* Карточки материалов на лендинге и перекрёстные ссылки */
.mats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mat {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out);
}
.mat:hover { border-color: var(--cyan); background: var(--surface-2); }
.mat__kicker {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.mat__title {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: .97rem;
  line-height: 1.4;
}
.mat__note { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.mat__cta {
  display: inline-block;
  margin-top: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--cyan);
}
.mat:hover .mat__cta { color: var(--ink); }

@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .refs { columns: 1; }
  .mats { grid-template-columns: 1fr; }

  /* Юртаблицы: карточный вид */
  .lawtable thead { display: none; }
  .lawtable, .lawtable tbody, .lawtable tr, .lawtable th, .lawtable td { display: block; width: 100%; }
  .lawtable tbody th { width: auto; }
  .lawtable .norm { width: auto; }
  .lawtable tr { border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .lawtable tr:last-child { border-bottom: 0; }
  .lawtable th, .lawtable td { border: 0; padding: 3px 0; }
  .lawtable .norm::before { content: "Норма: "; color: var(--muted); }
  .lawtable td:last-child { margin-top: 4px; }
}

/* ---------- Появление секций ---------- */

html.js .r {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
html.js .r.in { opacity: 1; transform: none; }

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

@media (max-width: 1080px) {
  .site-nav { display: none; }
}

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about__media { position: static; max-width: 460px; }
  .equip { grid-template-columns: 1fr; }
  .equip__side { max-width: 420px; }
  .funcs { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .tl::before { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .packs { grid-template-columns: 1fr; max-width: 520px; }
  .bonus { grid-template-columns: 1fr; }
  .divpolicy { grid-template-columns: 1fr; }
  .apply { grid-template-columns: 1fr; }
  .apply__side { position: static; }
  .hero__metrics { grid-template-columns: 1fr 1fr; }
  .model__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav-burger { display: flex; }
  .site-nav.is-open {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px;
    gap: 4px;
  }
  .site-nav.is-open a { padding: 12px 10px; font-size: 1rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .reasons { grid-template-columns: 1fr; }
  .risklist { grid-template-columns: 1fr; }
  .funcs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .hero__metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__metric { padding: 14px 14px 12px; }
  .model__grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .panel--split { grid-template-columns: 1fr; }
  .panel--split > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__docs ul { grid-template-columns: 1fr; }
  .site-head__cta { display: none; }
  .brand__text small { display: none; }

  /* Таблица оборудования: карточный вид */
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tfoot, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec tr { border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .spec th, .spec td { border: 0; padding: 2px 0; }
  .spec tbody th { width: auto; }
  .spec td.num { text-align: left; margin-top: 6px; }
  .spec tfoot tr { background: oklch(83% 0.125 88 / .07); border-top: 1px solid oklch(83% 0.125 88 / .4); border-bottom: 0; }
  .spec tfoot td.num { font-size: 1.35rem; }
}

/* ---------- Ограничение движения ---------- */

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