/* AIMSHOT site v2 — premium light theme, deep navy / cyan / green */
@import url("../fonts/fonts.css");

:root {
  --navy-900: #071627;
  --navy-800: #0a2540;
  --navy-700: #0d2b47;
  --navy-600: #123c5f;
  --cyan-700: #0e7490;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399;
  --ink: #10273f;
  --muted: #4a6478;
  --line: #dbe7f1;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --bg-soft: #f4f9fc;
  --bg-mint: #ecf8f3;
  --deep-navy: #0a2540;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, .07);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .14);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; color: var(--navy-800); margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font); }
h1 { font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3rem); }
h2 { font-weight: 650; font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--cyan-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0b5e73; }
h1, h2, h3, .section-lead { overflow-wrap: break-word; }
section[id] { scroll-margin-top: 84px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--deep-navy); color: #fff; padding: 10px 18px;
  border-radius: 10px; transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 23, 36, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  justify-content: space-between;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.site-footer .brand-logo { width: 42px; height: 42px; }
@media (min-width: 1200px) {
  .header-inner { min-height: 88px; }
  .brand-logo { width: 78px; height: 78px; }
  .site-footer .brand-logo { width: 71px; height: 71px; }
}
.brand-ai, .brand-m { font-weight: 800; }
.brand-ai {
  background: #07964f;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-m {
  background: linear-gradient(120deg, #0e7490, #047857);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* footer is always the dark navy panel: light gradient in both themes */
.site-footer .brand-ai {
  background: #07964f;
  -webkit-background-clip: text; background-clip: text;
}
.site-footer .brand-m {
  background: linear-gradient(120deg, #22d3ee, #34d399);
  -webkit-background-clip: text; background-clip: text;
}
.brand-name { font-weight: 600; letter-spacing: .14em; color: #fff; font-size: 1.12rem; }
@media (min-width: 1200px) { .brand-name { font-size: 1.9rem; } }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block; padding: 9px 14px; border-radius: 10px;
  color: #d7e5ef; text-decoration: none; font-weight: 500; font-size: .95rem;
  white-space: nowrap;
}
.main-nav a:hover { background: #16334c; color: #fff; }
.main-nav a.nav-cta {
  background: linear-gradient(120deg, #0e7490, #047857); color: #fff; margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: #16334c; color: #fff; }
.lang-switch {
  display: inline-flex; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  color: var(--muted); padding: 5px 11px; border-radius: 999px;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--navy-800); }
/* условный RU-переключатель (2026-12-01): кнопка RU рендерится всегда, но
   видна только RU-eligible аудитории — сервер ставит data-ru-eligible="1"
   на <html> (GeoIP/Accept-Language), main.js добавляет для browser-only RU;
   при смене языка атрибут не снимается, кнопка остается */
.lang-switch button[data-lang="ru"] { display: none; }
html[data-ru-eligible="1"] .lang-switch button[data-lang="ru"] { display: inline-block; }

.theme-switch {
  display: inline-flex; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.theme-switch button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 600;
  color: var(--muted); padding: 5px 10px; border-radius: 999px;
}
.theme-switch button svg { width: 15px; height: 15px; }
.theme-switch button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.theme-switch button:hover:not([aria-pressed="true"]) { color: var(--navy-800); }

.menu-toggle {
  display: none; border: 1px solid #345168; background: rgba(255, 255, 255, .06);
  border-radius: 10px; width: 44px; height: 40px; cursor: pointer;
  padding: 9px 10px; margin-left: auto;
}
.menu-toggle .mb {
  display: block; height: 2px; width: 100%;
  background: #d7e5ef; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle .mb + .mb { margin-top: 6px; }
.menu-toggle[aria-expanded="true"] .mb:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .mb:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .mb:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero (full-bleed photo backdrop, navy substrate in both themes) ---------- */
.hero {
  --hero-scrim: rgba(8, 20, 31, 0.88);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--navy-900);
  padding: 104px 0 72px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% center;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--hero-scrim) 0%, var(--hero-scrim) 36%, rgba(8, 20, 31, 0.55) 60%, rgba(8, 20, 31, 0.08) 80%),
    linear-gradient(0deg, var(--hero-scrim) 0%, rgba(8, 20, 31, 0) 34%);
}
.hero-grid { display: block; }
@media (min-width: 1200px) {
  .hero .container { max-width: none; margin: 0; padding-left: clamp(48px, 13vw, 250px); }
}
.hero-copy { max-width: 620px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--cyan-400); }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--cyan-700); margin-bottom: 14px;
}
.hero .lead { font-size: 1.13rem; color: #c3d6e4; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 20px; }
.hero-proof {
  font-size: .92rem; color: #a9c2d6;
  border-left: 3px solid var(--green-400); padding-left: 14px; max-width: 40em;
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, .1); color: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.hero .btn-ghost:hover { border-color: var(--cyan-400); color: #fff; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 72px;
}

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, #0e7490, #047857);
  color: #fff; box-shadow: 0 8px 22px rgba(14, 116, 144, .32);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(14, 116, 144, .42); }
.btn-ghost {
  background: var(--card-bg); color: var(--navy-800);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cyan-700); color: var(--navy-800); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
.stat {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-n {
  font-size: 2rem; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #0e7490, #047857);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* hero stats sit on the dark navy scrim in both themes: light gradient, as in dark theme */
.hero .stat-n {
  background: linear-gradient(120deg, #22d3ee, #34d399);
  -webkit-background-clip: text; background-clip: text;
}
.stat-l { color: var(--muted); font-size: .95rem; }
.hero .stat {
  background: rgba(10, 25, 40, .58); border-color: rgba(255, 255, 255, .14);
  box-shadow: none; backdrop-filter: blur(6px);
}
.hero .stat-l { color: #b7cbdb; }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 46em; }
.section h2 { max-width: 22em; }

/* ---------- scenario cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 44px;
}
.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfe3ee; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(140deg, #e0f7fb, #e7f9f2);
  color: var(--cyan-700); display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- impact ---------- */
.impact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  align-items: center; margin-top: 44px;
}
.impact-points { display: flex; flex-direction: column; gap: 26px; }
.impact-point { display: flex; gap: 18px; }
.impact-num {
  flex: 0 0 auto; font-weight: 600; font-size: .95rem; color: #fff;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(140deg, #0e7490, #047857);
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-top: 2px;
}
.impact-point p { color: var(--muted); margin: 0; font-size: .98rem; }
.impact-visual { margin: 0; }
.impact-visual svg { width: 100%; height: auto; display: block; border-radius: 24px; }

.measure {
  margin-top: 56px; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow-sm);
}
.measure-label {
  font-size: .82rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan-700); margin-bottom: 16px;
}
.measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.measure-item { border-radius: 12px; padding: 18px 20px; }
.measure-item h3 { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.45; }
.measure-before { background: #f1f5f9; border-left: 4px solid #94a3b8; }
.measure-before h3 { color: #3d5266; }
.measure-after { background: var(--bg-mint); border-left: 4px solid var(--green-500); }
.measure-after h3 { color: #065f46; }
.measure-scale { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- dark contour section ---------- */
.section-dark {
  background:
    radial-gradient(1000px 500px at 80% 0%, rgba(34, 211, 238, .10), transparent 55%),
    radial-gradient(800px 500px at 0% 100%, rgba(16, 185, 129, .10), transparent 55%),
    linear-gradient(180deg, var(--deep-navy), var(--navy-900));
  color: #d7e5f0;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow-dark { color: var(--cyan-400); }
.section-dark .section-lead { color: #a9c2d6; }

.contour-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.contour-visual { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.contour-visual svg {
  width: 100%; height: auto; display: block;
  border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
/* agent scheme card under the main visual: same radius/glow language,
   same 920x640 aspect as #ill-contour so both cards render equal size */
.contour-agents {
  display: block; width: 100%; height: auto;
  border-radius: 24px;
  background: linear-gradient(180deg, #0c2540, #071627);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.feature-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.feature-list h3 { margin-bottom: .3em; }
.feature-list p { margin: 0; color: #a9c2d6; font-size: .98rem; }
.feature-list li { position: relative; padding-left: 26px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg);
  background: linear-gradient(140deg, var(--cyan-400), var(--green-400));
}
.feature-list-light p { color: var(--muted); }
.sync-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 30px; padding: 16px 20px;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25);
  border-radius: 12px; color: #bfe9f5; font-size: .95rem;
}
.sync-note svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--cyan-400); margin-top: 2px; }
.sync-note span { margin: 0; }

/* ---------- human section ---------- */
.human-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.human-visual { margin: 0; order: 2; }
.human-visual svg { width: 100%; height: auto; display: block; border-radius: 24px; }

/* ---------- pilot steps ---------- */
.steps {
  list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.step {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  position: relative;
}
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; font-weight: 600; font-size: 1.15rem; color: #fff;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(140deg, #0e7490, #047857);
  margin-bottom: 18px;
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -22px;
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--cyan-400), var(--green-400));
}

/* ---------- CTA ---------- */
.cta-section { padding-top: 20px; }
.cta-panel {
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(34, 211, 238, .18), transparent 60%),
    linear-gradient(140deg, var(--deep-navy), var(--navy-900));
  border-radius: 28px; padding: 56px;
  color: #d7e5f0; box-shadow: var(--shadow-lg);
}
.cta-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: start;
}
.cta-grid > * { min-width: 0; }
.cta-copy h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.cta-lead { color: #a9c2d6; font-size: 1.06rem; margin-bottom: 22px; }
.cta-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-benefits li { position: relative; padding-left: 30px; color: #d7e5f0; font-size: .98rem; }
.cta-benefits li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background:
    linear-gradient(140deg, var(--cyan-400), var(--green-400));
  -webkit-mask: none;
}
.cta-benefits li::after {
  content: ""; position: absolute; left: 4.5px; top: 8px;
  width: 6px; height: 3.5px;
  border-left: 2px solid #06202e; border-bottom: 2px solid #06202e;
  transform: rotate(-45deg);
}
.cta-form {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px; padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.cta-form .field { display: flex; flex-direction: column; gap: 6px; }
.cta-form label { font-size: .86rem; font-weight: 600; color: #b9d2e2; letter-spacing: .02em; }
.cta-form input, .cta-form select {
  font: inherit; font-size: .95rem; color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px; padding: 11px 13px;
  width: 100%;
}
.cta-form select { appearance: none; }
.cta-form select option { color: #10273f; background: #fff; }
.cta-form input::placeholder { color: #7d99ad; }
.cta-form input:focus-visible, .cta-form select:focus-visible {
  outline: 2px solid var(--cyan-400); outline-offset: 1px;
  border-color: var(--cyan-400);
}
.cta-form .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.cta-formnote { margin: 0; font-size: .82rem; color: #8fb0c8; }
.cta-formstatus { margin: 0; font-size: .9rem; font-weight: 600; }
.cta-formstatus[data-kind="ok"] { color: #34d399; }
.cta-formstatus[data-kind="err"] { color: #f87171; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  color: #d7e5ef;
  background: var(--deep-navy) url("../img/footer-horizon.webp") center / cover no-repeat;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 18, 30, .72) 0%, rgba(7, 18, 30, .18) 55%, rgba(7, 18, 30, .45) 100%);
}
.footer-grid {
  display: grid; grid-template-columns: 1.25fr .75fr 1fr;
  gap: 44px; padding: 64px 24px 40px;
}
.footer-brandcol .brand { margin-bottom: 14px; }
.site-footer .brand-name { color: #fff; }
.footer-tag { color: #eaf3fa; font-weight: 600; margin-bottom: 8px; }
.footer-contact { color: #a9c2d6; font-size: .95rem; margin: 0; }
.footer-nav ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #d7e5ef; text-decoration: none; font-weight: 500; font-size: .95rem; }
.footer-nav a:hover { color: var(--cyan-400); }
.footer-controls { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center; }
.site-footer .lang-switch,
.site-footer .theme-switch { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.site-footer .lang-switch button,
.site-footer .theme-switch button { color: #a9c2d6; }
.site-footer .lang-switch button[aria-pressed="true"],
.site-footer .theme-switch button[aria-pressed="true"] {
  background: linear-gradient(120deg, #0e7490, #047857); color: #fff;
}
.site-footer .lang-switch button:hover:not([aria-pressed="true"]),
.site-footer .theme-switch button:hover:not([aria-pressed="true"]) { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 18px 24px 30px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-principles { color: #b7cbdb; font-size: .9rem; margin: 0; }
.footer-legal { color: rgba(202, 222, 236, .72); font-size: .82rem; margin: 0; }

/* ---------- dark theme ---------- */
:root[data-theme="dark"] {
  --bg: #0a1724;
  --card-bg: #11273a;
  --bg-soft: #0e1e2e;
  --bg-mint: #0f2a24;
  --line: #22394e;
  --ink: #d7e5ef;
  --muted: #93acc0;
  --navy-800: #edf6fc;
  --navy-700: #2a4a68;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}

/* surfaces */
:root[data-theme="dark"] .site-header { background: rgba(10, 23, 36, .88); }
:root[data-theme="dark"] .card:hover { border-color: #2b4a63; }
:root[data-theme="dark"] .card-icon {
  background: linear-gradient(140deg, #12303e, #0f2e28);
  color: #22d3ee;
}
:root[data-theme="dark"] .measure-before { background: #16293c; border-left-color: #5b7185; }
:root[data-theme="dark"] .measure-before h3 { color: #a9c2d6; }
:root[data-theme="dark"] .measure-after { background: #0f2a24; border-left-color: #34d399; }
:root[data-theme="dark"] .measure-after h3 { color: #6ee7b7; }
:root[data-theme="dark"] .skip-link { background: #e0f2f8; color: #0a1724; }

/* text accents that must stay readable on dark */
:root[data-theme="dark"] a { color: #22d3ee; }
:root[data-theme="dark"] a:hover { color: #7deefc; }
:root[data-theme="dark"] .brand-ai {
  background: #07964f;
  -webkit-background-clip: text; background-clip: text;
}
:root[data-theme="dark"] .brand-m {
  background: linear-gradient(120deg, #22d3ee, #34d399);
  -webkit-background-clip: text; background-clip: text;
}
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .measure-label { color: #22d3ee; }
:root[data-theme="dark"] .stat-n {
  background: linear-gradient(120deg, #22d3ee, #34d399);
  -webkit-background-clip: text; background-clip: text;
}

:root[data-theme="dark"] .main-nav a:hover { background: #16334c; color: #fff; }
:root[data-theme="dark"] .main-nav a.nav-cta { background: linear-gradient(120deg, #0e7490, #047857); }

/* white button text must survive the dark-theme link recolor */
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-primary:hover { color: #fff; }
:root[data-theme="dark"] .main-nav a.nav-cta,
:root[data-theme="dark"] .main-nav a.nav-cta:hover { color: #fff; }
:root[data-theme="dark"] .hero .btn-ghost,
:root[data-theme="dark"] .hero .btn-ghost:hover { color: #fff; }

/* illustration colour adaptation (inline SVG, not inversion) */
:root[data-theme="dark"] #ill-finance [fill="#ffffff"],
:root[data-theme="dark"] #ill-human [fill="#ffffff"] { fill: var(--card-bg); }
:root[data-theme="dark"] #ill-human [stroke="#dbe7f1"] { stroke: var(--line); }
:root[data-theme="dark"] #ill-finance [fill="#f1f5f9"] { fill: #16293c; }

/* ---------- motion: scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .impact-grid, .contour-grid, .human-grid { grid-template-columns: 1fr; gap: 40px; }
  .human-visual { order: 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* dense desktop band (961-1080, longest = RU nav): keep one line without overflow */
  .header-inner { gap: 14px; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 9px 10px; }
}

@media (max-width: 960px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    background: #0a1724; border-bottom: 1px solid #16334c;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
    padding: 12px 24px 20px;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 12px 14px; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .hero { padding: 72px 0 56px; min-height: 540px; }
  .hero-scrim {
    background:
      linear-gradient(0deg, var(--hero-scrim) 22%, rgba(8, 20, 31, 0.62) 60%, var(--hero-scrim) 100%);
  }
  .hero-stats { grid-template-columns: 1fr; margin-top: 48px; }
  .section { padding: 64px 0; }
  .measure-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 36px 26px; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
