/* RANLEX: product website. Local OFL fonts, no scripts, no external requests.
   CSP: default-src 'none'; style-src 'self'; img-src 'self'; font-src 'self'.
   Breakpoints: 480, 640, 768, 1024, 1100 px. Target widths: 390 px and 1440 px. */

/* Выбор владельца: шрифт заголовков и видимость точек — по одной строке.
   Другие гарнитуры используют только установленный на ПК шрифт; загрузок нет. */
:root {
  --font-heading: Geologica, Georgia, serif;
  --dot-opacity: .24;
  color-scheme: light dark;
  --paper: #f4f1ea;
  --card: #eae5da;
  --ink: #15120e;
  --ink-2: #5a5349;
  --rule: #d5cdbf;
  --grid: rgba(21, 18, 14, .07);
  --red: #d90c0e;
  --red-ink: #a80a0c;
  --btn: #c80a0d;
  --btn-hover: #a8090b;
  --night: #1a1713;
  --night-2: #2a2620;
  --night-line: #3a352e;
  --night-ink: #f4f1ea;
  --night-muted: #b5ac9f;
  --night-red: #ff5a4e;
  --font-display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, "DejaVu Sans Mono", monospace;
  --gutter: 16px;
  --maxw: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13110e;
    --card: #1d1a16;
    --ink: #f1ece3;
    --ink-2: #b5ac9f;
    --rule: #34302a;
    --grid: rgba(241, 236, 227, .06);
    --red: #ff4a3f;
    --red-ink: #ff7b70;
    --night: #0c0b09;
    --night-2: #221f1a;
    --night-line: #34302a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-text);
  overflow-wrap: break-word;
  hyphens: auto;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--red-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: .92em; overflow-wrap: anywhere; hyphens: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.skip:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- header ---------- */

.top {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* The lockup is sized in rem, so it scales with the reader's text size (px at the 16 px default in comments). */
.brand {
  display: flex;
  align-items: center;
  gap: .625rem; /* 10px */
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
/* Shield height = the two-line block, from the cap top of RANLEX to the subtitle baseline. */
.brand img { width: 2.1875rem; height: 2.1875rem; } /* 35px */
/* Line boxes are trimmed to the letters: RANLEX to cap height and baseline, the subtitle
   to x-height and baseline, so the grid gap is the visible gap between the two lines.
   The margins hold Bahnschrift and Cascadia Mono metrics; text-box trims exactly. */
.brand b {
  margin: -.071em 0 -.219em;
  font: 700 2rem/1 var(--font-display);
  letter-spacing: .08em;
}
/* The subtitle is centred under RANLEX: the grid centres the narrower line. RANLEX keeps its trailing
   letter-spacing, which balances the side bearing of R, so the letters line up too (0.4 px at 16 px). */
.brand-copy { display: grid; justify-items: center; gap: .328125rem; } /* 5.25px */
.brand-copy > span {
  margin: -.329em 0 -.153em;
  font: .8125rem/1 var(--font-mono);
  color: var(--ink-2);
}
@supports (text-box: trim-both cap alphabetic) {
  .brand b { margin-block: 0; text-box: trim-both cap alphabetic; }
  .brand-copy > span { margin-block: 0; text-box: trim-both ex alphabetic; }
}

.nav {
  order: 3;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  font-size: .9375rem;
}
.nav a {
  padding: 6px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--red); }

.cabinet {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
}
.cabinet:hover { background: var(--ink); color: var(--paper); }

/* Keep the subtitle visible at every viewport width. */

@media (min-width: 1100px) {
  .nav { order: 0; width: auto; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
  border-bottom: 1px solid var(--rule);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: 44px;
  padding-top: 44px;
  padding-bottom: 56px;
}
@media (min-width: 1024px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 64px;
    padding-top: 92px;
    padding-bottom: 100px;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font: 600 .8125rem/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 30px;
  height: 3px;
  background: var(--red);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-weight: 700;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.375rem, 1.1rem + 5.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.01em;
}
h1 em { font-style: normal; color: var(--night-red); }
.hero h1 { font-size: clamp(1.875rem, 4.2vw, 3.25rem); line-height: 1.12; hyphens: none; }
.hero h1 > * { display: block; }
.hero h1 > span:first-child { font-size: 1.5em; letter-spacing: .035em; }
.hero .eyebrow { color: var(--night-red); }
.hero .eyebrow::before { background: var(--night-red); }
.hero .facts li { color: var(--night-ink); background: var(--night-2); border-color: var(--night-muted); }
.hero .btn-ghost { color: var(--night-ink); border-color: var(--night-muted); }
.hero .btn-ghost:hover { background: var(--night-ink); color: var(--night); }
.hero :focus-visible { outline-color: var(--night-red); }

.lead {
  max-width: 36em;
  margin: 0 0 28px;
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.3125rem);
  line-height: 1.5;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 9px 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font: 600 .875rem/1.2 var(--font-mono);
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--btn);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Product benefits; ticks are CSS shapes. */
.benefits { border-top: 2px solid var(--night-red); padding-top: 24px; }
.benefits-label { color: var(--night-muted); font: 600 .8125rem/1.5 var(--font-mono); }
.benefits-list { list-style: none; margin: 0; padding: 0; }
.benefits-list li { position: relative; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--night-line); font-size: 1.125rem; line-height: 1.45; }
.benefits-list li::before { content: ""; position: absolute; left: 3px; top: 23px; width: 10px; height: 17px; border-right: 2px solid var(--night-red); border-bottom: 2px solid var(--night-red); transform: rotate(45deg); }
.benefits-note { margin: 20px 0 0; color: var(--night-muted); font-size: .875rem; }
.benefits-note a { color: var(--night-ink); }

/* ---------- sections ---------- */

.sec {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) {
  .sec { padding: 96px 0; }
  .sec > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
  }
}

.sec-head { margin-bottom: 32px; }
@media (min-width: 1024px) {
  .sec-head { margin-bottom: 0; }
}
.sec-num {
  margin: 0 0 14px;
  font: 600 .8125rem/1 var(--font-mono);
  letter-spacing: .12em;
  color: var(--red-ink);
}
.sec-num::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 12px;
  background: var(--red);
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.05;
}
.sec-lead { max-width: 34em; margin: 0; color: var(--ink-2); }

h3 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
  line-height: 1.25;
}

/* capability cards */
.cards {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.cards li { padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.cards .n {
  display: block;
  margin-bottom: 10px;
  font: 600 .8125rem/1 var(--font-mono);
  color: var(--red-ink);
}
.cards p { margin: 0; color: var(--ink-2); }
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* rows: limits and data */
.rows {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.rows li {
  display: grid;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.rows b {
  font: 700 1.0625rem/1.3 var(--font-display);
  font-stretch: 87.5%;
}
.rows span { color: var(--ink-2); }
@media (min-width: 640px) {
  .rows li { grid-template-columns: minmax(0, 13em) minmax(0, 1fr); }
}

.out-title {
  margin: 0 0 12px;
  font: 600 .8125rem/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 7px 12px;
  border: 1px dashed var(--ink-2);
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.3;
}
.chips li::before {
  content: "\00D7";
  margin-right: 7px;
  color: var(--red-ink);
  font-weight: 700;
}

.note {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--red);
  background: var(--card);
}
.note p:last-child { margin-bottom: 0; }

/* requirements */
.spec { margin: 0 0 20px; border-top: 2px solid var(--ink); }
.spec div {
  display: grid;
  gap: 2px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.spec dt {
  font: 600 .8125rem/1.5 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.spec dd { margin: 0; font-weight: 600; }
@media (min-width: 640px) {
  .spec div { grid-template-columns: minmax(0, 14em) minmax(0, 1fr); }
}
.small { color: var(--ink-2); font-size: .9375rem; }

/* access steps */
.steps {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 2px solid var(--ink);
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font: 700 2.25rem/1 var(--font-display);
  font-stretch: 87.5%;
  color: var(--red);
}
.steps p { margin: 0 0 .75em; color: var(--ink-2); }
.steps p:last-child { margin-bottom: 0; }

.cmd {
  margin: 12px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: var(--night);
  color: var(--night-ink);
  font: .875rem/1.5 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  hyphens: none;
}

.kab { margin-top: 32px; }
.kab h3 { margin-bottom: 6px; }

/* documents */
.docs {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.docs li { border-bottom: 1px solid var(--rule); }
.docs a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 16px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.docs a:hover .t { text-decoration: underline; }
.docs .arrow { margin-left: auto; color: var(--red-ink); font-family: var(--font-mono); }
.docs .pending { padding: 16px 0; color: var(--ink-2); }

.badge {
  padding: 5px 7px;
  border: 1.5px solid var(--red-ink);
  color: var(--red-ink);
  font: 700 .6875rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* contacts */
.contact { display: grid; gap: 8px 32px; }
@media (min-width: 640px) {
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact p { color: var(--ink-2); }
.warn { margin-top: 20px; }

/* owner TODO placeholder: must be gone before public launch */
.todo {
  padding: 1px 6px;
  border: 1.5px dashed var(--red-ink);
  color: var(--red-ink);
  font: 600 .875em/1.4 var(--font-mono);
  hyphens: none;
}

/* ---------- footer ---------- */

.foot {
  padding: 40px 0 48px;
  background: var(--night);
  color: var(--night-muted);
  font-size: .9375rem;
}
.foot .wrap { display: grid; gap: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--night-ink); }
.foot .todo { border-color: var(--night-red); color: var(--night-red); }
.foot-brand {
  display: flex;
  align-items: center;
  gap: .625rem; /* 10px */
  color: var(--night-ink);
  font: 700 1.125rem/1 var(--font-display);
  letter-spacing: .08em;
}
.foot-brand img { width: 1.75rem; height: 1.75rem; } /* 28px; scales with the text like the header lockup */

/* ---------- secondary pages ---------- */

.page { padding: 44px 0 72px; }
.page .wrap { max-width: 820px; }
.page h1 {
  margin-bottom: 20px;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.75rem);
  line-height: 1.08;
}
.draft {
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 2px solid var(--red-ink);
}
.draft b {
  display: block;
  margin-bottom: 6px;
  font: 700 .875rem/1.3 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.draft p { margin: 0; color: var(--ink-2); }
.doc-text p { max-width: 42em; }
.back { display: inline-block; margin-top: 16px; font-weight: 600; }
.pay-mark { width: 64px; height: 64px; margin-bottom: 24px; color: var(--red); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .d1 { animation-delay: .08s; }
  .d2 { animation-delay: .16s; }
  .d3 { animation-delay: .24s; }
  .d4 { animation-delay: .32s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Product content: shared spacing and readable cards, header rules unchanged. */
.sec > .wrap > div { min-width: 0; }
.cards li { padding-right: 8px; }
.cards h3 { margin-bottom: 12px; }
.page .doc-text { line-height: 1.7; }
.page .doc-text p + p { margin-top: 1.25em; }

@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/Onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/Onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Этап 1: Красный сигнал. Стили изолированы от нижних разделов. */
.s4-header, .s4-hero { --s4-ink: #f3efea; --s4-muted: #c2b9b6; color: var(--s4-ink); background: #0a090b; font-family: 'Onest', sans-serif; }
.s4-header { position: relative; z-index: 5; border-bottom: 1px solid #30242a; }
.s4-header a, .s4-hero a { color: inherit; text-decoration: none; }
.s4-header a:hover, .s4-link:hover, .s4-note a:hover { text-decoration: underline; text-underline-offset: .25em; }
.s4-header :focus-visible, .s4-hero :focus-visible { outline: 2px solid #ff9c93; outline-offset: 5px; }
.s4-service { display: flex; justify-content: flex-end; gap: 24px; padding-block: 8px; font-size: .75rem; color: var(--s4-muted); border-bottom: 1px solid #241d23; }
.s4-service a { min-height: 24px; display: inline-flex; align-items: center; }
.s4-mainnav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 22px; }
.s4-header .brand { color: #f3efea; margin-right: auto; }
.s4-header .brand-copy > span { color: #c2b9b6; }
.s4-desktop { display: flex; align-items: center; gap: 26px; font-size: .875rem; }
.s4-desktop > a, .s4-dropdown > summary { min-height: 44px; display: inline-flex; align-items: center; }
.s4-dropdown { position: relative; }
.s4-dropdown > summary { gap: 9px; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.s4-panel { position: absolute; top: 100%; left: -18px; min-width: 14rem; padding: 12px; background: #181419; border: 1px solid #493138; border-radius: 12px; box-shadow: 0 18px 40px #0009;  }
.s4-dropdown > summary { list-style: none; }
.s4-dropdown > summary::-webkit-details-marker { display: none; }
.s4-dropdown[open] > summary { color: #ffaba1; }
.s4-dropdown[open] > summary span { transform: rotate(180deg); }
.s4-panel a { display: block; padding: 12px; border-radius: 6px; }
.s4-panel a:hover { background: #302027; }
.s4-actions { display: flex; align-items: center; gap: 12px; }
.s4-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #493b42; border-radius: 50%; }
.s4-button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 52px; padding: 14px 24px; border-radius: 999px; background: #df0d0e; color: #fff !important; font-size: .9375rem; font-weight: 600; box-shadow: 0 10px 32px -18px #ff4b3e; }
.s4-button:hover { background: #bf0b13; text-decoration: none !important; }
.s4-button span { font-size: 1.3rem; line-height: 1; }
.s4-navcta { min-height: 44px; padding: 10px 20px; font-size: .875rem; }
.s4-mobile { display: none; }
.s4-hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 32px; }
.s4-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(circle, #ff796b 1px, transparent 1.3px), radial-gradient(circle, #8a1823 1px, transparent 1.3px); background-size: 18px 18px, 36px 36px; background-position: 0 0, 9px 9px; opacity: var(--dot-opacity); mask-image: radial-gradient(ellipse at 72% 35%, #000, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 72% 35%, #000, transparent 72%); }
.s4-beams { position: absolute; inset: -20% -15% 0 30%; z-index: -1; pointer-events: none; opacity: .6; filter: blur(18px); background: linear-gradient(135deg, transparent 28%, #df0d0e 29% 33%, transparent 34%), linear-gradient(135deg, transparent 40%, #7a0a10 41% 47%, transparent 48%), linear-gradient(135deg, transparent 53%, #ff4b3e 54% 55%, transparent 56%), linear-gradient(135deg, transparent 61%, #7a0a10 62% 67%, transparent 68%); mask-image: radial-gradient(ellipse at 55% 45%, #000 5%, transparent 66%); -webkit-mask-image: radial-gradient(ellipse at 55% 45%, #000 5%, transparent 66%); }
.s4-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 60px 46px; }
.s4-copy { min-width: 0; }
.s4-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: .75rem; }
.s4-chips > * { padding: 6px 12px; border: 1px solid #604048; border-radius: 999px; background: #181015; }
.s4-chips > a { color: #ffaba1; }
.s4-hero h1 { margin: 0 0 24px; font: 500 clamp(2.75rem, 4.6vw, 4.25rem)/1.06 var(--font-heading); letter-spacing: -.035em; text-transform: none; hyphens: none; }
.s4-hero h1 span { color: #ff8f83; }
.s4-lead { max-width: 31em; margin-bottom: 28px; font-size: 1.0625rem; line-height: 1.65; color: #d4ccca; }
.s4-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.s4-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .875rem; }
.s4-note { margin: 22px 0 0; font-size: .75rem; color: var(--s4-muted); line-height: 1.7; }
.s4-note a { text-decoration: underline; text-underline-offset: .2em; }
.s4-scene { min-width: 0; position: relative; display: grid; justify-items: center; padding-top: 4px; }
.s4-scene::before { content: ''; position: absolute; inset: 68% -10% -14%; background: radial-gradient(ellipse, #df0d0e66, transparent 65%); z-index: -1; }
.s4-shield { display: block; width: min(75%, 19rem); height: auto; margin: -15px 0 -14px; transform: rotate(8deg); filter: drop-shadow(0 0 24px #df0d0e55) drop-shadow(0 18px 30px #0008); }
.s4-command { position: relative; width: 100%; max-width: 29rem; padding: 22px; background: linear-gradient(150deg, #231a21f5, #141216f5); border: 1px solid #634049; border-bottom-color: #a84c50; border-radius: 16px; box-shadow: 0 22px 60px -25px #df0d0e88, inset 0 1px #ffffff10; }
.s4-command-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .6875rem; letter-spacing: .06em; color: #c2b9b6; }
.s4-status { display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0; }
.s4-status i { width: 6px; height: 6px; background: #86d69f; border-radius: 50%; }
.s4-request { margin: 22px 0 18px; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.s4-request > span { color: #ff8f83; margin-right: 6px; }
.s4-steps { margin: 0; padding: 0; list-style: none; color: #d4ccca; font-size: .875rem; }
.s4-steps li { margin: 10px 0; display: flex; gap: 10px; }
.s4-steps li > span { color: #86d69f; }
.s4-command-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #423139; margin-top: 20px; padding-top: 14px; font-size: .6875rem; color: #c2b9b6; }
.s4-command-bottom a { color: #ffaba1; }
.s4-facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 26px 8px; list-style: none; background: #1c181de8; border: 1px solid #48323a; border-radius: 18px; backdrop-filter: blur(18px); }
.s4-facts li { min-width: 0; padding: 0 24px; }
.s4-facts li + li { border-left: 1px solid #49373e; }
.s4-facts a { position: relative; display: block; padding-right: 20px; }
.s4-kicker { display: block; margin-bottom: 12px; color: #ff8f83; font-size: .6875rem; letter-spacing: .09em; }
.s4-facts strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.45; }
.s4-arrow { position: absolute; right: 0; top: 0; color: #ff8f83; font-size: 1.3rem; }
@media (max-width: 1099px) {
  .s4-mainnav { gap: 18px; }
  .s4-desktop { gap: 15px; font-size: .8125rem; }
  .s4-hero-grid { gap: 24px; padding-top: 44px; }
  .s4-facts li { padding-inline: 16px; }
}
@media (max-width: 899px) {
  .s4-desktop, .s4-actions { display: none; }
  .s4-mobile { display: block; }
  .s4-mobile summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 16px; padding: 8px 14px; border: 1px solid #604048; border-radius: 999px; font-size: .875rem; list-style: none; }
  .s4-mobile summary::-webkit-details-marker { display: none; }
  .s4-mobile[open] summary { background: #302027; }
  .s4-mobile nav { position: absolute; top: 100%; inset-inline: 16px; display: grid; padding: 14px; background: #181419; border: 1px solid #604048; border-radius: 14px; box-shadow: 0 20px 40px #0009; }
  .s4-mobile nav a { padding: 12px; }
  .s4-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .s4-copy { max-width: 38rem; }
  .s4-hero h1 { font-size: clamp(2.75rem, 7vw, 4.25rem); }
  .s4-scene { width: 100%; max-width: 34rem; justify-self: center; }
  .s4-shield { width: 12rem; margin: 0 0 -18px; }
  .s4-facts strong { font-size: .875rem; }
}
@media (max-width: 599px) {
  .s4-service { gap: 18px; font-size: .6875rem; }
  .s4-mainnav { padding-block: 20px; gap: 12px; }
  .s4-hero-grid { padding-top: 36px; padding-bottom: 28px; }
  .s4-chips { margin-bottom: 24px; font-size: .6875rem; }
  .s4-lead { font-size: 1rem; }
  .s4-cta { gap: 10px 18px; }
  .s4-command { padding: 18px; }
  .s4-request { font-size: 1rem; }
  .s4-command-top { font-size: .625rem; }
  .s4-facts { grid-template-columns: minmax(0, 1fr); padding: 4px 22px; }
  .s4-facts li { padding: 20px 0; }
  .s4-facts li + li { border-left: 0; border-top: 1px solid #49373e; }
  .s4-facts strong { font-size: 1rem; }
  .s4-kicker { margin-bottom: 8px; }
  .s4-beams { inset-inline: -35%; opacity: .35; }
}
@media (prefers-reduced-motion: no-preference) {
  .s4-beams { animation: s4-drift 12s ease-in-out infinite alternate; }
}
@keyframes s4-drift { to { transform: translate3d(-3%, 2%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .s4-header *, .s4-hero *, .s4-hero::before { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* Этап 2. Область действия — нижние разделы и вторичные страницы. */
.sec, .page, .foot {
  --paper: #100f12;
  --card: #1b181e;
  --ink: #f3efea;
  --ink-2: #c2b9be;
  --rule: #40343d;
  --red: #ff8f83;
  --red-ink: #ffaba1;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Onest', sans-serif;
}
.sec { position: relative; isolation: isolate; padding-block: clamp(56px, 6vw, 96px); }
.sec > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.sec-head { margin: 0; max-width: 44rem; }
.sec h2, .page h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-wrap: balance;
}
.sec h2 { font-size: clamp(2rem, 3.3vw, 3rem); margin-bottom: 18px; }
.sec h3, .sec h4, .sec .rows b {
  font-family: 'Onest', sans-serif;
  font-stretch: normal;
  font-weight: 600;
  line-height: 1.45;
}
.sec h4 { font-size: 1.0625rem; margin: 0 0 12px; }
.sec-num { font: 500 .6875rem/1.5 'Onest', sans-serif; letter-spacing: .09em; color: #ff8f83; }
.sec-num::after { content: none; }
.sec-lead { max-width: 65ch; line-height: 1.7; }
.sec-dots::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, #ff796b 1px, transparent 1.3px);
  background-size: 24px 24px;
  opacity: calc(var(--dot-opacity) * .35);
  mask-image: linear-gradient(120deg, #000, transparent 65%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 65%);
}
.feature-group + .feature-group { margin-top: 36px; }
.sec .group-title { display: flex; gap: 14px; align-items: baseline; margin: 0 0 18px; font-size: 1.125rem; }
.group-title > span { color: #c2b9be; font: 400 .75rem/1.5 var(--font-mono); }
.sec .cards { border: 0; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.sec .cards li { min-width: 0; padding: 24px; border: 1px solid var(--rule); border-radius: 18px; background: var(--card); }
.sec .cards p { font-size: .9375rem; line-height: 1.75; }
.sec .rows { border: 0; display: grid; gap: 12px; margin-bottom: 24px; }
.sec .rows li { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); }
.sec .rows span { line-height: 1.75; font-size: .9375rem; }
#podklyucheniya .rows b { color: #e8c28f; }
#ogranicheniya .cards { --card: #17151a; }
#ogranicheniya .cards h3 { color: #c2b9be; }
.terms-panel { padding: clamp(24px, 4vw, 40px); background: var(--card); border: 1px solid var(--rule); border-radius: 18px; }
.terms-panel > p { max-width: 65ch; }
.terms-panel .kab { border-top: 1px solid var(--rule); padding-top: 24px; }
.terms-panel .kab p { color: var(--ink-2); margin-bottom: 0; }
.sec .note, .page .note { background: #211b20; border: 1px solid #51404a; border-left: 3px solid #ff8f83; border-radius: 12px; padding: 20px 24px; }
.sec .docs { border: 0; display: grid; gap: 12px; margin: 0; }
.sec .docs li { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; }
.sec .docs a { min-height: 80px; padding: 24px; gap: 16px; border-radius: inherit; }
.sec .docs a:hover { background: #282029; }
.sec .docs .t { flex: 1 1 18ch; }
.sec .docs .pending { padding: 24px; font-size: .9375rem; }
.sec .badge { color: #e8c28f; border: 1px solid #796348; border-radius: 999px; font-size: .625rem; padding: 7px 9px; }
.sec .contact { gap: 16px; }
.sec .contact > div { min-width: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.sec .contact p { margin-bottom: 0; }
.sec .todo, .page .todo, .foot .todo { color: #e8c28f; border-color: #796348; overflow-wrap: anywhere; box-decoration-break: clone; }
.foot { background: #0a090b; color: #c2b9be; padding-block: 48px; border-top: 1px solid #40343d; }
.foot .wrap { gap: 20px; }
.foot-brand { color: #f3efea; }
.foot a { color: #f3efea; }
.foot p { max-width: 70ch; }
.foot p:last-child { border-top: 1px solid #40343d; padding-top: 20px; max-width: none; }
.page { position: relative; isolation: isolate; padding-block: clamp(48px, 6vw, 88px); min-height: 60vh; }
.page > .wrap { position: relative; max-width: calc(68ch + 2 * var(--gutter)); }
.page h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
.page .doc-text { line-height: 1.85; }
.page .doc-text p { max-width: none; }
.page .lead { max-width: none; font-size: 1.125rem; line-height: 1.7; }
.page .draft { border: 1px solid #796348; border-radius: 12px; background: #211b20; padding: 20px; margin-bottom: 32px; }
.page .draft b { color: #e8c28f; font-size: .75rem; line-height: 1.6; }
.page .draft p { font-size: .875rem; }
.page-shield { position: absolute; z-index: -1; top: 32px; right: max(16px, calc((100vw - 1200px) / 2)); width: min(38vw, 20rem); height: auto; opacity: .055; pointer-events: none; }
.page .back { min-height: 44px; padding-block: 12px; margin-top: 24px; }
.sec :focus-visible, .page :focus-visible, .foot :focus-visible { outline: 3px solid #ff9c93; outline-offset: 4px; }
@media (min-width: 700px) {
  .sec .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec .rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; }
}
@media (min-width: 1100px) {
  .sec:not(#vozmozhnosti):not(#ogranicheniya) > .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  #vozmozhnosti .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #ogranicheniya .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sec *, .page *, .foot * { animation: none !important; transition: none !important; }
}

/* SITE6: native disclosure, compact cards and mobile reading. */
.s4-lead, .sec-lead, .page .lead, .s4-note { hyphens: none; }
.s4-service a { min-height: 40px; }
.s4-note a, .s4-command-bottom a { display: inline-flex; align-items: center; min-height: 40px; }
.feature-details summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: var(--red-ink); font-size: .875rem; }
.feature-details[open] summary { margin-bottom: 8px; }
.sec .cards { align-items: start; }
.sec .cards .feature-details p { margin-bottom: 0; }
@media (min-width: 700px) and (max-width: 1099px) {
  .sec .cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  body, body * { hyphens: none; }
  .s4-service, .s4-chips, .s4-note, .s4-command-top, .s4-command-bottom,
  .s4-kicker, .sec-num, .group-title > span, .sec .badge, .page .draft b,
  .s4-header .brand-copy > span { font-size: .875rem; }
  .s4-command-top { flex-wrap: wrap; letter-spacing: .02em; }
  .s4-chips > a { display: inline-flex; align-items: center; min-height: 40px; }
  .foot a { display: inline-flex; align-items: center; min-height: 40px; }
  .sec .cards li { padding: 20px; }
}
