
/* ============================================================
   Лендинг (/) — «landing shell»: самодостаточная обвязка страницы.
   На главной подключается ТОЛЬКО этот файл (block head_css в
   base.html пустой): reset, @font-face, токены темы, типографика,
   кнопки и шапка. Копии правил из base.css/styles.css — те же
   значения; правка токенов/шапки дублируется в обоих местах.
   ============================================================ */

/* ---------- Шрифты (локально, woff2 из static/fonts/) ---------- */
/* Пути — от css/main.css до fonts/ (в fonts/fonts.css — соседние файлы). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Inter-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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-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;
}

/* ---------- Reset (копия из base.css) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
/* hidden должен переживать авторские display:flex/inline-flex. */
[hidden] { display: none !important; }
button,
input,
textarea { font: inherit; color: inherit; }

/* ---------- Токены темы (копия из styles.css) ---------- */
:root {
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace;

  /* Светлая тема */
  --bg: #f5f6f6;
  --surface: #ffffff;
  --surface-2: #f5f6f6;
  --surface-22: #eff0fa;
  --surface-3: #eceef0;
  --ink: #010102;
  --ink-soft: #3f4249;
  --muted: #62666d;
  --border: #e2e4e9;
  --border-strong: #d0d3da;
  --border-btn: #adadad;

  --accent: #10B981;
  --accent-hover: #10B981;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(94, 106, 210, 0.10);

  --ok: #27a644;
  --err: #e5484d;
  --shadow: 0 0 0 transparent;
  --radius: 12px;
  font-size: 16px;
}

[data-theme="dark"] {
  /* Тёмная тема */
  --bg: #0e0e0f;
  --surface: #0f1011;
  --surface-2: #141516;
  --surface-22: #1b1e30;
  --surface-3: #191a1b;
  --ink: #f7f8f8;
  --ink-soft: #d0d6e0;
  --muted: #8a8f98;
  --border: #23252a;
  --border-strong: #34343a;
  --border-btn: #474747;

  --accent: #10B981;
  --accent-hover: #10B981;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(94, 106, 210, 0.16);

  --ok: #47b26b;
  --err: #f0656a;
}

/* ---------- База ---------- */
html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  font-size: 16px;
}
body {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  background-attachment: fixed;
}

/* ---------- Типографика (копия из base.css) ---------- */
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: 1.55rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.25rem; margin: 1.2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.4rem; }

p { margin: 0 0 0.8rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 4px;
}
strong { font-weight: 600; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}
ul,
ol { margin: 0.5rem 0 0.8rem; padding-left: 1.4rem; }
li { margin: 0.25rem 0; }

/* ---------- Кнопки (копия из base.css) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-contrast);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- Иконки (Lucide-спрайт, локально) ---------- */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  stroke-width: 2; /* спрайт без stroke-width — наследуется отсюда */
}

/* ---------- Шапка (копия из styles.css) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 0 80px;
}
.nav {
  /* max-width: 1080px; */
  margin: 0 auto;
  padding: 0.625rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-user { display: flex; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  margin-right: auto;
}
.logo .mark { color: var(--accent); font-size: 1.1em; display: inline-flex; }
.logo .mark img{width: 30px; margin-right: 0; margin-bottom: 2px;}
.logo .icon { width: 1em; height: 1em; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.nav-actions .btn-icon { margin-right: 5px; }
/* Иконки меню — нейтральные; при наведении — акцент. */
.nav-actions .icon { color: var(--ink-soft); }
.nav a:hover .icon,
.nav button:hover .icon { color: var(--accent-hover); }
.btn-icon {
  background: transparent;
  /* border: 1px solid var(--border-btn); */
  border-radius: 50px;
  padding: 0 0.625rem;
  color: var(--muted);
}
.btn-icon .icon { width: 1.15em; height: 1.15em; }
.btn-icon:hover { background: var(--surface-2); color: var(--ink); }
.btn-lang {
  background: transparent;
  /* border: 1px solid var(--border-btn); */
  border-radius: 50px;
  padding: 0.6rem 0.7rem;
  margin-left: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}
.btn-lang:hover { background: var(--surface-2); color: var(--accent-hover); }
#theme-toggle { font-size: 0.85rem; padding: 0.52rem 0.55rem; margin-right: 0; }
#theme-toggle .icon { font-size: 1.15em; }

/* ---------- Контейнер (лендинг-override ниже, в основной секции) ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Ключевые кадры hero-анимации — вариант «Сигнал» (расходящиеся кольца), лендинг (/) */
@keyframes hero-ring {
  0%   { transform: scale(.1); opacity: .5; }
  70%  { opacity: .12; }
  100% { transform: scale(2.5); opacity: 0; }
}


/* ============================================================
   Лендинг (/) — адаптация референса «R2 Cyber Tech»:
   фото-hero + градиент, «хард-теневые» акцентные карточки, шаги,
   статистика, схема платформы, панель экранов, subscribe, футер.
   Палитра/шрифты — токены темы проекта (один акцент, без CDN).
   Hero — фиксированная тёмная зона (белый текст в любой теме).
   ============================================================ */

.landing2 .container { max-width: none; padding: 0; }

/* ---------- 1. HERO ---------- */
.l2-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  padding: 56px 80px 72px;
  /* Палитра героя. Слой 1 (по умолчанию) — светлая тема: белый фон + тёмный
     текст; слой 2 — [data-theme="dark"] override (низ ниже). Фон — div
     .l2-hero-bg с CSS-background (не <img>): в CSS по теме подменяется
     изображение, и браузер скачивает только актуальную картинку. */
  --hero-ink: #010102;
  --hero-ink-85: rgba(1, 1, 2, .85);
  --hero-ink-55: rgba(1, 1, 2, .55);
  --hero-ink-50: rgba(1, 1, 2, .5);
  --hero-ink-45: rgba(1, 1, 2, .45);
  --hero-ink-35: rgba(1, 1, 2, .35);
  --hero-line: #010102;
  background: #f4f5f7;
  color: var(--hero-ink);
}
.l2-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: url("../docs/img/landing/back-w.jpeg") center / cover no-repeat;
  opacity: .5;
  pointer-events: none;
}
/* Градиент поверх фото — читаемость текста (белый — в светлой теме) */
.l2-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .92));
  pointer-events: none;
}
/* Тёмная тема: прежний вид героя (тёмный фон, белая фото-подложка, белый текст) */
[data-theme="dark"] .l2-hero {
  --hero-ink: #fff;
  --hero-ink-85: rgba(255, 255, 255, .85);
  --hero-ink-55: rgba(255, 255, 255, .55);
  --hero-ink-50: rgba(255, 255, 255, .5);
  --hero-ink-45: rgba(255, 255, 255, .45);
  --hero-ink-35: rgba(255, 255, 255, .35);
  --hero-line: #fff;
  background: #101318;
}
[data-theme="dark"] .l2-hero-bg {
  background-image: url("../docs/img/landing/back-b.jpg");
}
[data-theme="dark"] .l2-hero::after {
  background: linear-gradient(180deg, rgba(13, 16, 20, .72), rgba(13, 16, 20, .92));
}
/* Фон-анимация hero: вариант «Сигнал» — расходящиеся кольца от центра
   (SVG + CSS keyframes, без JS). z-index:1 — выше фото и тёмного градиента,
   но текст (z-index:1, позже в DOM) отрисовывается поверх. */
.l2-hero-anim {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  color: #9BA1AB; /* серые кольца (по требованию); было var(--accent) */
  pointer-events: none;
}
.l2-hero-anim .l2-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-ring 18s cubic-bezier(.22,.61,.36,1) infinite; /* ещё медленнее: было 12s */
}
@media (prefers-reduced-motion: reduce) {
  .l2-hero-anim .l2-ring { animation: none; display: none; }
}
.l2-hero > .l2-hero-main, .l2-hero > .l2-steps { position: relative; z-index: 1; }
/* Толщина штриха — наследуемое свойство: спрайт без stroke-width, значение
   берётся от внешнего <svg class="icon">. Здесь override только для героя. */
.l2-hero .icon { stroke-width: 1; }
.l2-hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 0 64px;
}
.l2-hero-big-wrap { margin: 0; }
.l2-hero-tt {
  display: block;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 4px solid var(--hero-line);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.l2-hero-big {
  /* FORTENC — 7 букв: фикс. 128px переполняет мобильный вьюпорт (≈400px при 104px),
     clamp масштабирует по ширине экрана: 12.5vw ≈ 47px на 375px */
  font-size: clamp(40px, 12.5vw, 83px);
  line-height: .9;
  letter-spacing: -.02em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
}
.l2-hero-big img{
  width: 28px;
  margin-right: 8px;
}
.l2-callout { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.c-ico {
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 3px solid var(--hero-ink-35);
  display: grid; place-items: center;
  color: var(--accent);
}
.c-ico svg { width: 54px; height: 54px; }
.c-text { display: flex; flex-direction: column; gap: 8px; }
.c-title { font-size: 20px; font-weight: 600; color: var(--hero-ink-85); }
.c-brand {
  font-size: 26px; font-weight: 800; letter-spacing: .02em;
  display: flex; align-items: center; gap: 12px;
}
.c-brand .sep { width: 2px; height: 36px; background: var(--hero-line); }
.c-small { font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--hero-ink-45); }

.l2-steps { display: flex; justify-content: space-between; gap: 32px; }
.l2-step { width: 25%; }
.st-ico { width: 38px; height: 38px; margin-bottom: 18px; }
.st-ico svg { width: 38px; height: 38px; }
.st-label {
  font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  line-height: 1.3; max-width: 250px;
}
.st-dash { width: 48px; border-top: 2px solid var(--hero-ink-55); margin: 18px 0 10px; }
.st-num { font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--hero-ink-50); }

/* ---------- 2. СТАТИСТИКА ---------- */
.l2-stats {
  background: var(--bg);
  padding: 110px 80px 90px;
  display: flex; gap: 32px;
}
.l2-stat { flex: 1; border-top: 1px solid var(--border); padding-top: 36px; }
.s-num {
  display: flex; align-items: baseline; gap: 4px;
  font-size: 88px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.s-sup {
  font-size: 22px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.l2-stat p { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 260px; }
/* «фирменная» карточка R2: акцент + жирная рамка + хард-тень, всплывает из hero */
.l2-stat.feat {
  margin-top: -70px;
  background: var(--accent);
  color: #fff;
  /* border: 4px solid var(--ink); */
  border-radius: 2px;
  padding: 36px 32px 28px;
  display: flex; flex-direction: column;
  box-shadow: 10px 10px 0 rgba(1, 1, 2, .14);
}
[data-theme="dark"] .l2-stat.feat { box-shadow: 10px 10px 0 rgba(33, 33, 37, 1); }
.l2-stat.feat p { color: rgba(255, 255, 255, .85); }
.l2-stat.feat .s-num { font-size: 60px; margin-top: 20px; }
.l2-stat.feat .s-sup { color: #fff; }
.s-ico { width: 64px; height: 64px; color: #fff; }
.s-ico svg { 
  width: 64px; 
  height: 64px; 
  margin-left: -10px;
}
.s-logo {
  margin-top: auto; padding-top: 24px;
  font-size: 11px; font-weight: 800; letter-spacing: .22em;
  color: rgba(255, 255, 255, .75);
}

/* ---------- 3. ПРЕИМУЩЕСТВА ---------- */
.l2-benefits {
  position: relative;
  background: var(--surface);
  padding: 110px 80px 90px;
  text-align: center;
}
/* точечная сетка — как «dots» в референсе (токен --border → работает в обеих темах) */
.l2-benefits::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
.l2-benefits > * { position: relative; }
.l2-h2 {
  font-size: 40px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.08;
  margin-bottom: 64px;
}
.hl { color: var(--accent); }
.l2-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1080px;
  margin: 0 auto; 
}
.l2-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 40px 24px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  transition: transform .15s ease, border-color .15s ease;
}
.l2-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.l2-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  padding: 4px 9px;
}
.l2-card-ico { font-size: 42px; color: var(--ink); }
.l2-card h3 {
  font-size: 16px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.3;
}
.l2-card h3 span {
  display: block; margin-top: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  text-transform: none; letter-spacing: 0;
}
.l2-card svg{
  stroke-width: 1;
}
.l2-line { width: min(760px, 80%); height: 3px; background: var(--accent); margin: 72px auto 0; }

/* ---------- 4. ПЛАТФОРМА ---------- */
.l2-platform { background: var(--bg); padding: 110px 112px 90px; }
.p-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; margin-bottom: 72px;
}
.p-title { display: flex; align-items: center; gap: 18px; }
.p-title svg { width: 52px; height: 52px; flex-shrink: 0; }
.p-title h2 {
  margin: 0;
  font-size: 34px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.1;
}
.p-btns { display: grid; grid-template-columns: repeat(2, 220px); gap: 12px; }
.p-btn {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--ink);
  padding: 13px 18px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
}
.p-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.p-btn:hover { background: var(--ink); color: var(--bg); }

.l2-flow { display: flex; align-items: center; margin-bottom: 72px; position: relative; }
.f-node {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 180px; flex-shrink: 0;
}
.f-node .f-ico {
  width: 56px; height: 56px;
  border: 2px solid var(--border-strong); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px; color: var(--ink);
}
.f-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.f-line {
  position: relative; flex: 1; height: 14px;
  border-top: 0;
  background: linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 10px)
    left top / 10px 1px repeat-x;
  animation: f-dash-flow .8s linear infinite;
}
@keyframes f-dash-flow {
  to { background-position: 10px 0; }
}
/* .f-line::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 55%; height: 3px;
  background: var(--border-strong);
} */
.f-line.r::before { left: auto; right: 0; }
/* .f-line.r::after {
  content: "";
  position: absolute; right: -2px; top: 5.5px;
  width: 0; height: 0;
  border-left: 10px solid var(--border-strong);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
} */
.f-dot {
  position: absolute; top: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}
.f-block {
  display: flex; align-items: center; gap: 16px;
  background: var(--accent); color: #fff;
  /* border: 3px solid var(--ink); */
  box-shadow: 7px 7px 0 rgba(1, 1, 2, .14);
  padding: 22px 28px;
}
[data-theme="dark"] .f-block { box-shadow: 7px 7px 0 rgba(33, 33, 37, 1); }
.f-block .f-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 30px; color: #fff;
}
.f-text {
  font-size: 13px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.5;
}
.l2-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.l2-logo {
  width: 100%; max-width: 180px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 12px; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

.l2-outcomes { background: var(--bg); padding: 30px 80px 120px; }
.l2-o-panel {
  display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 24px;
  padding: 32px; align-items: stretch;
  transition: grid-template-columns .35s ease;
}
/* Активная карточка крупнее — её колонка плавно расширяется. */
.l2-o-panel:has(#l2-shot-chat.active) { grid-template-columns: 260px 2fr 1fr 1fr; }
.l2-o-panel:has(#l2-shot-seed.active) { grid-template-columns: 260px 1fr 2fr 1fr; }
.l2-o-panel:has(#l2-shot-login.active) { grid-template-columns: 260px 1fr 1fr 2fr; }
.l2-o-side { 
  padding-right: 24px; 
}
.l2-o-title {
  font-size: 40px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.05;
  padding: 8px 0 28px;
}
.l2-o-tabs { display: flex; flex-direction: column; }
.l2-o-tab {
  /* табы — <button>: сбрасываем нативный фон/рамку */
  width: 100%; padding: 18px 0 18px 20px; text-align: left;
  font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  background: none; border: 0; border-left: 4px solid transparent; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.l2-o-tab:hover { color: var(--ink); }
.l2-o-tab.active { color: var(--ink); border-left-color: var(--accent); }
.l2-f-card {
  background: var(--surface);
  border: 4px solid var(--border-strong); /* ширина рамки общая — при выделении не сдвигается */
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
/* Фото — широкий 16:9 (нативный формат скриншотов, без обрезки) */
.l2-f-card img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--border); display: block;
}
.l2-f-card.active {
  background: var(--accent); color: #fff;
  border: 0;
  box-shadow: 7px 7px 0 rgba(1, 1, 2, .14);
}
[data-theme="dark"] .l2-f-card.active { box-shadow: 7px 7px 0 rgba(52, 52, 58, 1); }
.l2-f-card.active .o-meta, .l2-f-card.active .o-link { color: rgba(255, 255, 255, .85); }
.l2-f-card.active .o-meta .dash { border-top-color: rgba(255, 255, 255, .5); }
.l2-f-card.active img { border-color: rgba(255, 255, 255, .4); }
.l2-f-card.active .o-link { color: #fff; }
.l2-f-card.active .o-link:hover { color: #fff; opacity: .8; }
.o-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.o-meta .dash { flex: 1; border-top: 2px dashed var(--border-strong); }
.o-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
}
.o-link svg { width: 18px; height: 18px; }
.o-link:hover { color: var(--accent); }
.l2-faq { background: var(--bg); padding: 0 80px 120px; }
.l2-faq-panel {
  display: grid; grid-template-columns: 1fr 2fr; gap: 0;
  padding: 32px; align-items: stretch;
}
.l2-faq-side {padding-right: 24px; }
.l2-faq-note {
  margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6;
}
.l2-faq-list { display: flex; flex-direction: column; min-width: 0; }
.l2-faq-item { border-bottom: 1px solid var(--border); }
.l2-faq-item:first-child { border-top: 1px solid var(--border); }
.l2-faq-item summary {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 15px; cursor: pointer; list-style: none;
}
.l2-faq-item summary::-webkit-details-marker { display: none; }
.q-num {
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  color: var(--muted); min-width: 22px; flex-shrink: 0;
}
.q-text {
  flex: 1;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1.3;
  transition: color .15s ease;
}
.q-ico { color: var(--muted); display: grid; place-items: center; transition: transform .25s ease, color .15s ease; }
.q-ico svg { width: 18px; height: 18px; display: block; }
.l2-faq-item summary:hover .q-text { color: var(--accent); }
.l2-faq-item[open] .q-text { color: var(--accent); }
.l2-faq-item[open] .q-ico { transform: rotate(180deg); color: var(--accent); }
.a-body { padding: 0 4px 24px 55px; }
.a-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 68ch; }
.a-body b { color: var(--ink); font-weight: 700; }

/* ---------- 6. SUBSCRIBE ---------- */
.l2-sub { display: flex; }
.l2-sub-left {
  position: relative; overflow: hidden;
  flex: 1.3;
  background: var(--surface);
  padding: 90px 80px;
}
.l2-sub-left h2, .l2-sub-right h2 {
  font-size: 40px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.1;
}
.l2-sub-left p {
  margin: 24px 0 40px;
  font-size: 14px; line-height: 1.6; color: var(--muted);
  max-width: 480px;
}
.sub-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-ink, .btn-line {
  display: inline-block; padding: 16px 30px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid var(--ink);
}
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-line { color: var(--ink); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-line:hover { background: var(--ink); color: var(--bg); }
/* призрачный watermark, как «R2» в референсе */
.l2-sub-left::after {
  content: "E2E";
  position: absolute; left: 28px; bottom: -96px;
  font-size: 280px; font-weight: 800; letter-spacing: -.02em; line-height: 1;
  color: rgba(127, 127, 127, .07);
  pointer-events: none;
}
.l2-sub-right { flex: 1; background: var(--surface-2); padding: 90px 80px; }
.l2-sub-right h2 { margin-bottom: 40px; }
.l2-c-item { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.ci-ico {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid; place-items: center;
  font-size: 20px; color: var(--accent);
}
.ci-text {
  font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
}
.l2-c-item:hover .ci-text { color: var(--accent); }

/* Плавный скрол по якорным ссылкам (футер): скролл-контейнер — html, поэтому
   правило вешаем на html, ограничив страницу /v2 через класс body */
html:has(body.landing2) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html:has(body.landing2) { scroll-behavior: auto; }
}

/* ---------- 7. FOOTER ---------- */
.l2-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 80px 40px;
}
.f-inner { display: flex; align-items: center; gap: 40px; margin-bottom: 48px; }
.f-logo { display: flex; align-items: center; gap: 16px; }
.f-big { font-size: 44px; font-weight: 800; letter-spacing: -.01em; color: var(--accent); }
.f-sep { width: 2px; height: 52px; background: var(--ink); }
.f-text {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; line-height: 1.5;
  text-transform: uppercase; color: var(--ink);
}
.f-nav { flex: 1; display: flex; justify-content: flex-end; gap: 40px; flex-wrap: wrap; }
.f-nav a {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.f-nav a:hover { color: var(--ink); }
.l2-legal {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .l2-hero { padding: 48px 48px 56px; }
  .l2-hero-tt { font-size: 36px; }
  .l2-stats, .l2-benefits, .l2-platform, .l2-outcomes, .l2-faq { padding-left: 48px; padding-right: 48px; }
  .l2-sub-left, .l2-sub-right { padding: 80px 48px; }
  .l2-footer { padding: 56px 48px 36px; }
}
@media (max-width: 1000px) {
  .l2-hero { min-height: 0; padding: 32px 24px 48px; }
  .l2-hero-main { flex-direction: column; align-items: flex-start; gap: 40px; padding: 24px 0 40px; }
  .l2-hero-tt { font-size: 28px; }
  .c-ico { width: 96px; height: 96px; }
  .c-ico svg { width: 40px; height: 40px; }
  .c-brand { font-size: 20px; }
  .c-brand .sep { height: 28px; }
  .l2-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .l2-step { width: auto; }
  .l2-stats { flex-wrap: wrap; padding: 60px 24px; gap: 20px; }
  .l2-stat { flex: 1 1 40%; }
  .l2-stat.feat { margin-top: 0; }
  .s-num { font-size: 56px; }
  .l2-benefits { padding: 70px 24px 60px; }
  .l2-h2 { font-size: 30px; margin-bottom: 40px; }
  .l2-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .l2-line { margin-top: 48px; }
  .l2-platform { padding: 70px 24px 60px; }
  .p-head { flex-direction: column; align-items: flex-start; gap: 32px; margin-bottom: 48px; }
  .p-btns { width: 100%; grid-template-columns: 1fr 1fr; }
  .l2-flow { flex-direction: column; align-items: center; }
  .f-line { display: none; }
  .f-block { margin: 24px 0; }
  .l2-outcomes { padding: 20px 24px 80px; }
  .l2-outcomes { padding: 24px 16px 72px; }
  /* Стек в одну колонку. !important — иначе побеждает десктопный
     .l2-o-panel:has(#l2-shot-*.active) (специфичность 1,2,0 против 0,1,0
     у этой строки), и сетка остаётся 260px + 3 карточки → секция
     уезжает вправо за экран (body.scrollWidth 850px на 375px). */
  .l2-o-panel { grid-template-columns: 1fr !important; gap: 20px; padding: 20px; }
  .l2-o-side { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 16px; }
  .l2-o-title { font-size: 34px; padding: 4px 0 16px; }
  .l2-o-tabs { flex-direction: row; }
  .l2-o-tab { flex: 1; width: auto; text-align: center; padding: 14px 4px; border-left: 0; border-bottom: 3px solid transparent; }
  .l2-o-tab.active { border-left: 0; border-bottom-color: var(--accent); }
  .l2-faq { padding: 0 24px 72px; }
  .l2-faq-panel { grid-template-columns: 1fr; gap: 0; padding: 20px; }
  .l2-faq-side { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 16px; }
  .l2-faq-note { margin-bottom: 16px; }
  .l2-faq-item summary { padding: 18px 0; gap: 14px; }
  .a-body { padding: 0 0 20px 36px; }
  .l2-sub { flex-direction: column; }
  .l2-sub-left, .l2-sub-right { padding: 64px 24px; }
  .l2-sub-right h2 { margin-bottom: 32px; }
  .l2-footer { padding: 48px 24px 32px; }
  .f-inner { flex-direction: column; gap: 28px; align-items: center; text-align: center; }
  .f-nav { justify-content: center; gap: 20px; }
}
@media (max-width: 640px) {
  /* Логотип — только знак: с текстом «Fortenc» шапка (padding 0 80px) не
     влезает в мобильную ширину (правый край 446px на 375px); без текста
     367/375 — влезает. (Правило дублируется в styles.css ≤760px — app-страницы. */
  .logo .logo-text { display: none; }
  .l2-hero { padding: 24px 16px 40px; }
  .l2-hero-tt { font-size: 24px; border-bottom-width: 3px; }
  .l2-hero-big { font-size: 68px; }
  .l2-hero-big img {width: 16px;}
  .l2-callout { width: 100%; }
  .l2-stats { 
    padding: 48px 16px;
    flex-direction: column; 
  }
  .s-num { font-size: 44px; }
  .l2-stat.feat .s-num { font-size: 40px; }
  .l2-cards { grid-template-columns: 1fr; }
  .l2-steps { grid-template-columns: 1fr 1fr; }
  .l2-sub-left::after { font-size: 180px; bottom: -60px; left: 16px; }
  .f-nav { justify-content: flex-start;}
  .f-big { font-size: 34px;}
  .f-inner { align-items: flex-start;}
  .f-text {
  text-align: start;
  font-size: 10px;
  }
}

@media (max-width: 440px){
  .l2-hero-big { font-size: 58px; }
  .l2-hero-big img {width: 14px;}
}

html.js-reveal [data-reveal] { opacity: 0; }
html.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  animation: l2-reveal .55s ease-out backwards;
  animation-delay: var(--reveal-delay, 0ms);
  border: 0;
}
@keyframes l2-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal] { opacity: 1; }
  html.js-reveal [data-reveal].is-revealed { animation: none; }
}

.l2-hero h1, .l2-h2, .l2-o-title, .p-title h2,
.l2-sub-left h2, .l2-sub-right h2 { text-wrap: balance; }
.a-body p, .l2-sub-left p, .l2-sub-right p, .l2-faq-note { text-wrap: pretty; }

/* --- Тактильность: кнопки CTA «уходят внутрь» при нажатии --- */
.btn-ink, .btn-line, .p-btn {
  transition: transform .15s ease, background-color .15s ease,
              color .15s ease, border-color .15s ease;
}
.btn-ink:active, .btn-line:active, .p-btn:active { transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) {
  .btn-ink:active, .btn-line:active, .p-btn:active { transform: none; }
}

/* reduced-motion: бегущий пунктир схемы выключен */
@media (prefers-reduced-motion: reduce) {
  .f-line { animation: none; }
}


