/* Шрифт свой, а не с Google Fonts: CSP стенда (font-src 'self') общий
   для приложения и лендинга, и внешние шрифты в него не входят. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* Цвета — через токены: тёмная тема ниже переопределяет только их.
   Тему выставляет site.js атрибутом data-theme на <html> до первой отрисовки. */
:root {
  color-scheme: light;

  /* Цвета логотипа: lockup-light.svg. --brand-navy не зависит от темы:
     это фон подвала, кнопки закрытия просмотра и подсказок поверх скриншотов. */
  --brand-navy: #0B2545;
  --brand-blue: #2563EB;

  --heading: #0B2545;
  --ink: #1E2B3C;
  --muted: #56667D;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-soft: #EAF1FF;

  /* Зелёный CTA из макета (#00B050) затемнён до контраста 4.5:1 с белым текстом */
  --green: #0A8541;
  --green-hover: #086E36;

  /* Нав-ссылки — цвет из макета */
  --nav: #205867;

  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --surface: #FFFFFF;
  --surface-muted: #F8FAFC;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --header-bg: rgba(255, 255, 255, .92);
  --menu-shadow: 0 16px 32px -16px rgba(11, 37, 69, .25);

  --hero-glow: #DCE7FF;
  --hero-top: #F6F9FF;
  --hero-dots: rgba(37, 99, 235, .14);

  --frame-line: #D8E0EB;
  --frame-bar: #F1F4F9;
  --frame-bar-line: #E3E8F0;
  --frame-shadow: 0 2px 4px rgba(11, 37, 69, .04), 0 24px 48px -20px rgba(11, 37, 69, .22);

  --segment-bg: #E9EEF5;
  --segment-on: #FFFFFF;
  --bpm-bg: #0B2545;

  /* Жёлтые плашки макета */
  --callout-bg: #FFF4BF;
  --callout-line: #F0D25A;
  --callout-text: #0B2545;

  --warn-text: #9A3412;
  --error: #DC2626;
  --success-bg: #E8F6EE;
  --success-line: #A7DDBE;
  --success-text: #0B5A2F;

  --footer-bg: #0B2545;
  --footer-line: rgba(255, 255, 255, .12);

  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 6px 20px -6px rgba(11, 37, 69, .10);
  --header-h: 68px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --heading: #EEF3FA;
  --ink: #C9D4E3;
  --muted: #93A3B8;
  /* Осветлённый синий бренда (brand.primary_dark): базовый на тёмном фоне не читается */
  --blue: #60A5FA;
  --blue-hover: #93C5FD;
  --blue-soft: rgba(96, 165, 250, .14);

  --nav: #A9BCD3;

  --bg: #0A1424;
  --bg-alt: #0E1B2E;
  --surface: #122136;
  --surface-muted: #0F1C2E;
  --line: #22324A;
  --line-strong: #33465F;
  --header-bg: rgba(10, 20, 36, .86);
  --menu-shadow: 0 16px 32px -16px rgba(0, 0, 0, .6);

  --hero-glow: #173564;
  --hero-top: #0D1C33;
  --hero-dots: rgba(96, 165, 250, .12);

  --frame-line: #2A3B52;
  --frame-bar: #17263B;
  --frame-bar-line: #22324A;
  --frame-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .7);

  --segment-bg: #16263B;
  --segment-on: #24384F;
  --bpm-bg: #17325A;

  --callout-bg: rgba(250, 204, 21, .14);
  --callout-line: rgba(250, 204, 21, .45);
  --callout-text: #FDE68A;

  --warn-text: #FDBA74;
  --error: #F87171;
  --success-bg: rgba(16, 185, 129, .12);
  --success-line: rgba(16, 185, 129, .40);
  --success-text: #86EFAC;

  --footer-bg: #07101D;
  --footer-line: rgba(255, 255, 255, .08);

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }

h1, h2, h3 { margin: 0; color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 700; }
h3 { font-weight: 600; }
p { margin: 0; }

:focus-visible { outline: 3px solid #8FB2F7; outline-offset: 2px; border-radius: 6px; }

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--brand-navy); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(10, 133, 65, .25), 0 6px 16px -6px rgba(10, 133, 65, .45); }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-outline { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }

/* В шапке логотип меняется с темой; в подвале фон тёмный всегда */
.brand .logo-on-dark { display: none; }
:root[data-theme="dark"] .site-header .logo-on-light { display: none; }
:root[data-theme="dark"] .site-header .logo-on-dark { display: block; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  display: block; padding: 6px 0;
  color: var(--nav); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav ul a:hover { color: var(--heading); }
.site-nav ul a[aria-current] { color: var(--blue); border-bottom-color: var(--blue); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 10px; color: var(--heading); cursor: pointer;
}
.nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Переключатель темы — те же три положения, что в шапке приложения */
.theme-picker {
  display: inline-flex; flex-shrink: 0; gap: 2px; padding: 2px;
  background: var(--segment-bg);
  border: 1px solid var(--line); border-radius: 999px;
}
.theme-picker button {
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--muted); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.theme-picker button:hover { color: var(--heading); }
.theme-picker button[aria-pressed="true"] {
  background: var(--segment-on); color: var(--blue);
  box-shadow: 0 1px 2px rgba(11, 37, 69, .12), 0 2px 6px rgba(11, 37, 69, .08);
}
.theme-picker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1060px) {
  .site-nav ul { gap: 18px; }
}

/* Без JS меню на узком экране остаётся открытым строкой под логотипом:
   кнопка-гамбургер без скрипта ничего бы не раскрыла. */
@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { flex-wrap: wrap; gap: 12px 20px; margin-left: 0; }
  .site-nav ul { flex-wrap: wrap; gap: 4px 18px; }

  .js .header-inner { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  /* В DOM кнопка меню стоит перед меню (порядок фокуса), а переключатель
     темы — после; на телефоне он визуально встаёт левее гамбургера. */
  .js .theme-picker { order: 1; margin-left: auto; }
  .js .nav-toggle { display: inline-flex; order: 2; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--menu-shadow);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .js .site-nav ul a[aria-current] { border-bottom-color: var(--line); }
  .js .site-nav .btn { width: 100%; min-height: 48px; }
}

/* ---------- Общие блоки ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { max-width: 68ch; margin-top: 16px; font-size: 1.125rem; color: var(--muted); }
.section-title-center { text-align: center; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }

.eyebrow {
  margin: 0 0 16px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-spaced { margin-top: 48px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.icon-tile {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
}
.icon-tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.callout {
  margin-top: 48px; padding: 18px 24px;
  background: var(--callout-bg);
  border: 1px solid var(--callout-line);
  border-radius: 12px;
  text-align: center;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); font-weight: 600; line-height: 1.4;
  color: var(--callout-text);
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 6vw, 80px);
  background:
    radial-gradient(900px 480px at 88% -8%, var(--hero-glow) 0%, transparent 65%),
    linear-gradient(var(--hero-top), var(--bg) 85%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--hero-dots) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.lead { max-width: 60ch; margin-top: 24px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.benefits { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.benefit { display: flex; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.benefit h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.benefit p { margin-top: 4px; font-size: .96875rem; line-height: 1.55; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Скриншоты ---------- */

.showcase { padding: clamp(64px, 8vw, 104px) 0; background: var(--bg-alt); }
.shots { display: grid; gap: clamp(48px, 6vw, 80px); margin-top: clamp(32px, 4vw, 48px); }
.shot { margin: 0; }
.shot-stack { display: grid; gap: 16px; }

.shot-frame {
  position: relative; display: block; overflow: hidden;
  background: #fff;
  border: 1px solid var(--frame-line); border-radius: 14px;
  box-shadow: var(--frame-shadow);
  cursor: zoom-in;
}
/* Полоса «окна» над скриншотом */
.shot-frame::before {
  content: ""; display: block; height: 26px;
  background:
    radial-gradient(circle at 16px 13px, #F2A19B 4px, transparent 4.5px),
    radial-gradient(circle at 32px 13px, #F3D27A 4px, transparent 4.5px),
    radial-gradient(circle at 48px 13px, #9BD8AE 4px, transparent 4.5px),
    var(--frame-bar);
  border-bottom: 1px solid var(--frame-bar-line);
}
.shot-frame img { width: 100%; }

.zoom-hint {
  position: absolute; top: 38px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(11, 37, 69, .82); color: #fff;
  font-size: .8125rem; font-weight: 600;
  opacity: 0; transition: opacity .15s ease;
}
.zoom-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shot-frame:hover .zoom-hint, .shot-frame:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }

.shot figcaption {
  max-width: 62ch; margin: 20px auto 0;
  text-align: center; text-wrap: balance;
  font-size: 1.0625rem; font-weight: 600; color: var(--heading);
}

/* ---------- Как запускать ---------- */

.run-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.run-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.run-card h3 { margin-top: 4px; font-size: 1.375rem; }
.run-card p { color: var(--muted); }
.run-card .run-price { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-weight: 600; color: var(--heading); }

@media (max-width: 760px) {
  .run-options { grid-template-columns: 1fr; }
}

/* ---------- Платформа ---------- */

.config-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.config {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; line-height: 1.35; color: var(--heading);
}
.config-bpm { background: var(--bpm-bg); border-color: var(--bpm-bg); color: #fff; }
.config-bpm .icon-tile { background: rgba(255, 255, 255, .12); color: #A9C2FF; }

@media (max-width: 900px) {
  .config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .config-grid { grid-template-columns: 1fr; }
}

/* ---------- Цены ---------- */

.pricing-controls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 40px; margin-top: 32px; }

.cycle { display: inline-flex; margin: 26px 0 0; padding: 4px; border: 0; border-radius: 12px; background: var(--segment-bg); }
.cycle label { position: relative; }
.cycle input { position: absolute; opacity: 0; pointer-events: none; }
.cycle span {
  display: block; padding: 9px 18px; border-radius: 9px;
  font-size: .9375rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.cycle input:checked + span { background: var(--segment-on); color: var(--heading); box-shadow: 0 1px 2px rgba(11, 37, 69, .12), 0 2px 6px rgba(11, 37, 69, .08); }
.cycle input:focus-visible + span { outline: 3px solid #8FB2F7; outline-offset: 1px; }

.seats label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; color: var(--heading); }
.seats input[type="number"] { width: 160px; }
.seats-hint { margin-top: 6px; font-size: .875rem; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.plan { display: flex; flex-direction: column; padding: 24px; transition: background-color .15s ease; }
.plan h3 { font-size: 1.25rem; }
/* Подпись под ценой, а не рядом: $14.25 с подписью в строку не помещается,
   и карточки разъезжались бы по высоте при переключении на годовую оплату. */
.plan-price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 14px; }
.plan-price .amount { font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--heading); font-variant-numeric: tabular-nums; }
.plan-price .unit { font-size: .9375rem; color: var(--muted); }
.plan-billing { min-height: 2.9em; margin-top: 8px; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.plan-features { display: grid; gap: 10px; margin: 16px 0 24px; padding: 0; list-style: none; font-size: .9375rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; }
.plan-features svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .plan-features svg { stroke: #4ADE80; }
.plan-total { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.plan-total strong { display: block; margin-top: 2px; font-size: 1.25rem; color: var(--heading); font-variant-numeric: tabular-nums; }
.plan.is-over { background: var(--surface-muted); }
.plan.is-over .plan-total strong { color: var(--warn-text); }

.pricing-note { margin-top: 20px; text-align: center; color: var(--muted); }
.pricing-note a { font-weight: 600; }

@media (max-width: 1040px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .plan-billing { min-height: 0; }
}

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

input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
input:user-invalid, textarea:user-invalid { border-color: var(--error); }
textarea { min-height: 148px; resize: vertical; }

.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-email { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-weight: 600; }
.contact-email svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); }
.field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; color: var(--heading); }
.field .optional { font-weight: 400; color: var(--muted); }
.form-actions { display: flex; }

.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 10px; font-size: .9375rem; line-height: 1.5; }
.form-status.is-notice { background: var(--callout-bg); border: 1px solid var(--callout-line); color: var(--heading); }
.form-status.is-success { background: var(--success-bg); border: 1px solid var(--success-line); color: var(--success-text); }
.form-status .btn { margin-top: 12px; }
.form-privacy { font-size: .875rem; color: var(--muted); }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

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

.site-footer { padding: 48px 0 32px; background: var(--footer-bg); color: #B9C6DA; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand img { width: 140px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #DCE4F2; font-size: .9375rem; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  width: 100%; margin-top: 8px; padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  font-size: .875rem;
}

/* ---------- Просмотр скриншота ---------- */

.lightbox {
  width: min(96vw, 1600px); max-width: none; max-height: 94vh;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(6, 16, 32, .84); }
.lightbox-body { max-height: 94vh; overflow: auto; border-radius: 10px; background: #fff; }
.lightbox-body img { width: 100%; }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: #fff; color: var(--brand-navy); border: 0; border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3); cursor: pointer;
}
.lightbox-close svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* На телефоне вписанный скриншот нечитаем — показываем крупно с прокруткой */
@media (max-width: 900px) {
  .lightbox-body img { width: 1100px; max-width: none; }
}

/* ---------- Узкие экраны ---------- */

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .js .site-nav { padding-left: 16px; padding-right: 16px; }
  .brand img { width: 132px; }
  .actions .btn { flex: 1 1 100%; }
  .callout { padding: 16px 18px; }
  .run-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
