/*
 * EcoEsep public site — production stylesheet.
 * Derived from the accepted prototype (research_web/prototype/home-v2.css) with the
 * production upgrades from ECOESEP_PUBLIC_LAUNCH_IMPLEMENTATION_PLAN.md §Track 1:
 * audit type scale (nothing meaningful below 12px), fixed header, real mobile menu,
 * stats band, reveal/parallax motion behind prefers-reduced-motion.
 */
:root {
  --mist-50: #f9fbfb;
  --mist-100: #f1f6f5;
  --mist-200: #dce7e8;
  --mist-300: #c6d6d9;
  --ink: #142b2b;
  --navy: #193247;
  --navy-deep: #102738;
  --muted: #5d707a;
  --blue: #0d7470; /* brand teal since 2026-09-29 (owner: step away from emissions.kz blue); token names kept */
  --blue-dark: #0a5a57;
  --blue-pale: #e3f4f2;
  --success: #35825a;
  --warning: #b77317;
  --white: #fff;
  --shadow: 0 22px 62px rgba(25, 50, 71, .09);
  --soft-shadow: 0 12px 34px rgba(25, 50, 71, .065);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--mist-100); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; }
body { margin: 0; overflow-x: hidden; background: radial-gradient(circle at 72% 0, #fff 0, transparent 29%), var(--mist-50); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(13, 116, 112, .34); outline-offset: 3px; }
.site-shell { width: min(1420px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; color: white; border-radius: 8px; background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
section { scroll-margin-top: 92px; }

/* Header and brand */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; background: rgba(249, 251, 251, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(25, 50, 71, .09); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 30px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.wordmark { color: var(--navy); font-size: 21px; font-weight: 850; letter-spacing: -.055em; }
.wordmark span { color: var(--blue); }
.coordinate-mark { position: relative; width: 34px; height: 34px; overflow: hidden; border: 1.5px solid var(--navy); border-radius: 11px; background: rgba(255,255,255,.72); }
.coordinate-mark::before, .coordinate-mark::after { content: ""; position: absolute; background: rgba(25,50,71,.25); }
.coordinate-mark::before { width: 1px; top: 5px; bottom: 5px; left: 50%; }
.coordinate-mark::after { height: 1px; left: 5px; right: 5px; top: 50%; }
.coordinate-mark i { position: absolute; z-index: 1; width: 8px; height: 8px; top: calc(50% - 4px); left: calc(50% - 4px); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(13,116,112,.13); }
.coordinate-mark b { position: absolute; width: 4px; height: 4px; top: 5px; right: 5px; border-radius: 50%; background: #d8aa69; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a, .sign-in { color: #415761; font-size: 14px; font-weight: 650; }
.main-nav a:hover, .main-nav a.active, .sign-in:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch a, .lang-switch .lang-soon { padding: 6px 8px; border-radius: 8px; color: #415761; font-size: 13px; font-weight: 700; }
.lang-switch a[aria-current="page"] { background: var(--blue-pale); color: var(--blue); }
.lang-switch a:hover { color: var(--blue); }
.lang-switch .lang-soon { color: #9fb0b8; cursor: default; }

/* Mobile menu */
.menu-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(25,50,71,.16); border-radius: 10px; background: rgba(255,255,255,.75); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; position: relative; width: 17px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 78px; inset-inline: 0; z-index: 39; display: none; padding: 10px 22px 24px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--mist-200); box-shadow: var(--shadow); }
.mobile-menu.open { display: grid; gap: 2px; }
.mobile-menu a { padding: 13px 4px; color: var(--navy); border-bottom: 1px solid var(--mist-100); font-size: 16px; font-weight: 650; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .mobile-langs { display: flex; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--mist-100); }
.mobile-menu .mobile-langs a { padding: 0; border: 0; font-size: 15px; }
.mobile-menu .mobile-langs a[aria-current="page"] { color: var(--blue); }
.mobile-menu .mobile-langs .lang-soon { color: #9fb0b8; font-size: 15px; font-weight: 650; }
.mobile-menu .button { margin-top: 12px; }

/* Buttons */
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 720; box-shadow: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--blue); box-shadow: 0 10px 22px rgba(13,116,112,.2); }
.button.primary:hover { background: var(--blue-dark); box-shadow: 0 14px 28px rgba(13,116,112,.25); }
.button.secondary { color: var(--navy); border-color: rgba(25,50,71,.17); background: rgba(255,255,255,.75); }
.button.compact { min-height: 42px; padding-inline: 16px; font-size: 14px; }

/* Hero — content-led height (2026-09-22 homepage refresh): the box no longer forces a fixed
   760/800/860px minimum; it is sized by its content plus padding, so a shorter hero on a locale
   with less copy does not carry empty space. */
.hero { position: relative; overflow: hidden; background: #e8eeee; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 60%; }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,252,252,.98) 0%, rgba(250,252,252,.92) 27%, rgba(250,252,252,.32) 51%, rgba(12,35,52,.03) 100%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(420px, .82fr) minmax(460px, 1.18fr); align-items: center; padding: 78px 0 40px; }
.hero-copy { max-width: 620px; padding: 70px 0 64px; }
.eyebrow, .section-kicker { margin: 0 0 15px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--navy-deep); font-size: clamp(50px, 5.2vw, 80px); line-height: .99; letter-spacing: -.06em; }
.hero h1 span { color: var(--blue); }
.hero-intro { max-width: 540px; margin: 26px 0 0; color: #425963; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.beta-note { max-width: 470px; display: flex; align-items: flex-start; gap: 9px; margin: 19px 0 0; color: #687b83; font-size: 13px; line-height: 1.5; }
.beta-note > span { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; color: var(--navy); border: 1px solid var(--mist-300); border-radius: 50%; font-size: 12px; font-weight: 800; }
/* The photo's half of the hero: empty on purpose (it sets the desktop hero height). The result card (2026-09-29)
   and then the small «Условный результат» legend (removed 2026-09-30, owner: an illustrative number beside a
   real Almaty power plant reads as a finding about it; the plume lines and rings speak for themselves). */
.hero-data { position: relative; align-self: stretch; min-height: 600px; }

/* Stats band — real platform numbers, no adjectives */
.stats-band { background: #fff; border-bottom: 1px solid var(--mist-200); }
/* 2026-09-29: the three number tiles became the calculation chain every result can be traced along (owner: step away from the emissions.kz look) */
.chain-inner { display: grid; gap: 14px; padding: 30px 0 32px; }
.chain-kicker { margin: 0; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin: 0; padding: 0; list-style: none; }
.chain li { display: flex; align-items: center; color: var(--navy-deep); font-size: clamp(17px, 1.7vw, 22px); font-weight: 760; letter-spacing: -.02em; }
.chain li:not(:last-child)::after { content: "\2192"; margin: 0 clamp(10px, 1.6vw, 22px); color: var(--blue); font-weight: 600; }
.chain-counts { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.chain-counts b { color: var(--navy-deep); font-weight: 800; }

/* Sections */
.section { padding: 84px 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: end; gap: 50px; margin-bottom: 40px; }
.section-heading h2 { max-width: 760px; margin: 0; color: var(--navy-deep); font-size: clamp(36px, 4vw, 59px); line-height: 1.03; letter-spacing: -.052em; }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* Image-led product story */
.story-section { background: #fff; }
.story-map { background: var(--mist-100); }
.story-report { background: linear-gradient(180deg, #fff, #f4f8f9); }
.story-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(38px, 6vw, 92px); align-items: center; }
.story-layout-reverse { grid-template-columns: 1.28fr .72fr; }
.story-copy h2 { max-width: 560px; margin: 0; color: var(--navy-deep); font-size: clamp(40px, 4.3vw, 64px); line-height: 1.01; letter-spacing: -.055em; }
.story-copy > p:not(.section-kicker, .workspace-note) { max-width: 560px; margin: 24px 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.story-media { position: relative; min-width: 0; min-height: 560px; margin: 0; overflow: hidden; border: 1px solid var(--mist-200); border-radius: 24px; background: #eef3f4; box-shadow: var(--shadow); }
.story-media img { width: 100%; height: 100%; min-height: 560px; display: block; object-fit: cover; }
.map-media img { filter: saturate(.8) contrast(.96); }

/* Method-document visual — pure HTML (owner decision 2026-08-03: images only for the map). */
.method-visual { min-height: 560px; display: grid; grid-template-columns: 1.22fr .78fr; gap: 14px; padding: 18px; border: 1px solid var(--mist-200); border-radius: 24px; background: #eaf1f3; box-shadow: var(--shadow); }
.method-sheet, .method-summary { border: 1px solid var(--mist-200); border-radius: 15px; background: #fff; }
.method-sheet { padding: 26px 28px; }
.method-sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--mist-200); color: var(--muted); font-size: 12px; }
.method-sheet-head b { color: var(--navy); }
.method-sheet h3 { margin: 18px 0 4px; color: var(--navy); font-size: 17px; letter-spacing: -.02em; }
.method-sheet h4 { margin: 16px 0 8px; color: var(--navy); font-size: 13.5px; }
/* Formulas typeset like real math: serif italic variables, upright operators. */
.formula-block { margin: 8px 0; padding: 13px 16px; border: 1px solid var(--mist-200); border-radius: 10px; background: var(--mist-50); color: var(--navy); font-family: "Cambria Math", "STIX Two Math", "Times New Roman", Georgia, serif; font-size: 19px; font-style: normal; }
.formula-block var { font-family: inherit; font-style: italic; }
.formula-block sub, .formula-block sup { font-size: 12px; }
.formula-block .prod { font-size: 135%; line-height: 0; vertical-align: -.06em; }
.formula-legend div { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--mist-100); color: var(--muted); font-size: 12px; }
.formula-legend i { color: var(--navy); font-family: "Cambria Math", "STIX Two Math", "Times New Roman", Georgia, serif; font-style: italic; font-size: 15px; }
.method-table { margin-top: 4px; border-top: 1px solid var(--mist-200); }
.method-table > div { display: grid; grid-template-columns: 26px 1fr 62px; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--mist-200); color: var(--muted); font-size: 12px; }
.method-table b { color: #84969e; font-size: 12px; text-transform: uppercase; }
.method-page { margin-top: 14px; color: #9fb0b8; font-size: 12px; text-align: right; }
.method-summary { display: flex; flex-direction: column; padding: 24px; }
.eyebrow-mini { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.method-summary h3 { margin: 6px 0 10px; color: var(--navy); font-size: 20px; letter-spacing: -.02em; }
.method-status { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 5px 10px; border-radius: 99px; background: #e7f4ec; color: #1f6b43; font-size: 12px; font-weight: 750; }
.method-status i { width: 7px; height: 7px; border-radius: 50%; background: #35825a; }
.method-summary dl { margin: 14px 0 0; }
.method-summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--mist-200); }
.method-summary dt { color: var(--muted); font-size: 12.5px; }
.method-summary dd { margin: 0; color: var(--navy); font-size: 13px; font-weight: 700; text-align: right; }

/* Guided-calculation visual — pure HTML for the same reason. Fake controls are spans on
   purpose: nothing in a mockup may receive focus or pretend to be interactive. */
.calc-demo { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(18px, 2.4vw, 30px); border: 1px solid var(--mist-200); border-radius: 24px; background: #eaf1f3; box-shadow: var(--shadow); }
.calc-app-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--mist-200); border-radius: 12px; background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; }
.calc-progress { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.calc-progress i { position: relative; width: 70px; height: 5px; overflow: hidden; border-radius: 99px; background: var(--mist-200); }
.calc-progress i::after { content: ""; position: absolute; inset: 0 60% 0 0; border-radius: inherit; background: var(--blue); }
.calc-card { padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--mist-200); border-radius: 14px; background: #fff; box-shadow: var(--soft-shadow); }
.calc-source { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--mist-100); color: var(--muted); font-size: 12.5px; }
.calc-source i, .calc-where li i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); }
.calc-step { color: var(--blue); font-size: 12px; font-weight: 800; }
.calc-card h3 { margin: 6px 0 8px; color: var(--navy-deep); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.15; letter-spacing: -.03em; }
.calc-help { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.calc-input { display: flex; overflow: hidden; border: 2px solid var(--blue); border-radius: 10px; background: #fff; }
.calc-input b { flex: 1; padding: 13px 16px; color: var(--navy-deep); font-size: 24px; letter-spacing: -.02em; }
.calc-input span { display: grid; place-items: center; padding: 0 16px; border-left: 1px solid var(--mist-200); background: var(--mist-50); color: var(--muted); font-size: 13px; }
.calc-hint { margin: 8px 0 0; color: #7b8c93; font-size: 12px; }
.calc-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; }
.calc-btn-back { padding: 10px 14px; border: 1px solid var(--mist-200); border-radius: 9px; background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; }
.calc-btn-next { padding: 10px 14px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 750; }
.calc-where { padding: 14px 16px; border: 1px solid var(--mist-200); border-radius: 12px; background: #fff; }
.calc-where strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 13px; }
.calc-where ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.calc-where li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.calc-result-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; padding: 9px 13px; border: 1px solid var(--mist-200); border-radius: 99px; background: #fff; color: var(--muted); font-size: 12px; box-shadow: var(--soft-shadow); }
.calc-result-chip b { color: var(--navy); }
.story-details { margin: 30px 0 0; }
.story-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--mist-200); }
.story-details dt { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.story-details dd { margin: 0; color: var(--navy); font-size: 14px; font-weight: 650; }
.workspace-note { margin: 20px 0 0; color: #7b8c93; font-size: 12.5px; line-height: 1.55; }
.embedded-ai { max-width: 540px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; margin-top: 6px; padding: 14px; border: 1px solid #c5ddf2; border-radius: 12px; background: var(--blue-pale); }
.embedded-ai > span { padding: 5px 8px; color: white; border-radius: 7px; background: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.embedded-ai p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.embedded-ai strong { color: var(--navy); }

/* Calculation focus — same grid and left edge as the other chapters (owner: 02 must
   align with 01 and 04), so no wrapping card and no inner padding. */
.calculation-focus { background: radial-gradient(circle at 90% 10%, #fff, transparent 32%), var(--mist-100); }
.calculation-focus-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(38px, 6vw, 92px); align-items: center; }
.calculation-focus-copy { display: flex; flex-direction: column; justify-content: center; }
.calculation-focus-copy h2 { max-width: 560px; margin: 0; color: var(--navy-deep); font-size: clamp(40px, 4.3vw, 64px); line-height: 1.01; letter-spacing: -.055em; }
.calculation-focus-copy > p:not(.section-kicker) { max-width: 560px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.calculation-focus-copy > p:not(.section-kicker) + p { margin-top: 14px; }
.question-context { margin-top: 26px; }
.question-context { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.question-context span { padding: 10px 12px; border: 1px solid var(--mist-200); border-radius: 9px; background: var(--mist-50); }
.question-context small, .question-context strong { display: block; }
.question-context small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.question-context strong { margin-top: 4px; color: var(--navy); font-size: 13px; }

/* Report + review visual */
.report-visual { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--mist-200); border-radius: 24px; background: #eaf1f3; box-shadow: var(--shadow); }
.report-sheet { border: 1px solid var(--mist-200); border-radius: 15px; background: white; }
.report-sheet { padding: 26px; }
.report-sheet-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--mist-200); color: var(--navy); font-size: 13px; font-weight: 750; }
.report-sheet-head b { padding: 5px 8px; color: var(--blue); border-radius: 6px; background: var(--blue-pale); font-size: 12px; text-transform: uppercase; }
.report-sheet > p { margin: 22px 0 5px; color: var(--muted); font-size: 12.5px; }
.report-sheet h3 { margin: 0 0 22px; color: var(--navy); font-size: 22px; letter-spacing: -.04em; }
.report-table { border-top: 1px solid var(--mist-200); }
.report-table > div { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--mist-200); color: var(--muted); font-size: 13px; }
.report-table b { color: #84969e; font-size: 12px; text-transform: uppercase; }
.report-table strong { color: var(--navy); }
.evidence-row { display: flex; justify-content: space-between; gap: 15px; margin-top: 28px; padding: 16px; border-radius: 10px; background: var(--mist-100); color: var(--muted); font-size: 12.5px; }
.evidence-row strong { color: var(--navy); }

/* Workflow */
.workflow-section { background: var(--navy-deep); }
.workflow-section .section-kicker { color: #6fd0c5; }
.workflow-section .section-heading h2 { color: white; }
.workflow-section .section-heading > p { color: #afc1cc; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.workflow-grid article { position: relative; min-height: 220px; padding: 30px 34px; border-top: 1px solid rgba(255,255,255,.19); border-left: 1px solid rgba(255,255,255,.13); }
.workflow-grid article:first-child { border-left: 0; }
.workflow-grid article:not(:last-child)::after { content: "→"; position: absolute; top: 32px; right: -9px; color: #6fd0c5; font-size: 14px; }
.workflow-grid span { color: #6fd0c5; font-size: 12px; font-weight: 800; }
.workflow-grid h3 { margin: 48px 0 8px; color: white; font-size: 21px; }
.workflow-grid p { margin: 0; color: #afc1cc; font-size: 14px; line-height: 1.55; }

/* CTA and footer */
.final-cta { padding: 80px 0; color: white; background: linear-gradient(120deg, var(--navy-deep), #173f5c); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.section-kicker.light { color: #7fd6cc; }
.cta-inner h2 { margin: 0; font-size: clamp(38px, 4.2vw, 60px); letter-spacing: -.055em; }
.cta-inner p:not(.section-kicker) { max-width: 650px; margin: 14px 0 0; color: #b8c9d2; font-size: 15px; line-height: 1.6; }
/* the BUTTONS column (a second child); a heading-only .cta-inner (the #status block since the 2026-09-22 refresh) is one child and must stay a normal block */ .cta-inner > div:last-child:not(:first-child) { display: flex; gap: 10px; flex: 0 0 auto; }
.button.bright { color: var(--navy); background: white; }
.button.dark-outline { color: white; border-color: rgba(255,255,255,.25); background: transparent; }
.site-footer { padding: 65px 0 24px; color: #afc1cc; background: #091d2b; }
.footer-main { display: grid; grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); gap: 34px; }
.footer-brand .wordmark { color: white; }
.footer-brand .coordinate-mark { border-color: white; background: rgba(255,255,255,.05); }
.footer-main > div:first-child p { margin: 15px 0 0; font-size: 13px; line-height: 1.55; }
.footer-main > div:not(:first-child) { display: grid; align-content: start; gap: 10px; }
.footer-main strong { margin-bottom: 3px; color: white; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.footer-main a:not(.brand-lockup) { font-size: 13px; }
.footer-item { color: #7e93a1; font-size: 13px; }
.footer-main a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

/* Statement band — the one-sentence product thesis, large and centered */
.statement { padding: 96px 0; }
.statement .site-shell { max-width: 1120px; text-align: center; }
.statement h2 { max-width: 900px; margin: 0 auto 20px; color: var(--navy-deep); font-size: clamp(26px, 2.5vw, 38px); line-height: 1.15; letter-spacing: -.04em; }
.statement-main { margin: 0; color: var(--navy-deep); font-size: clamp(21px, 2.1vw, 30px); font-weight: 620; line-height: 1.4; letter-spacing: -.02em; }
.statement-main span { color: var(--blue); }
@media (max-width: 620px) {
  .statement { padding: 60px 0; }
}

/* Bulleted lists inside chapters */
.story-list { display: grid; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; max-width: 560px; }
.story-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.story-list li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--blue); }

/* Review chapter — check summary + issue list (counts, never a compliance percentage) */
.review-visual { min-height: 480px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; border: 1px solid var(--mist-200); border-radius: 24px; background: #eaf1f3; box-shadow: var(--shadow); }
.check-summary, .issue-panel { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--mist-200); border-radius: 15px; background: #fff; }
.check-summary h3, .issue-panel h3 { margin: 8px 0 16px; color: var(--navy); font-size: 17px; letter-spacing: -.02em; }
.check-rows { display: grid; gap: 10px; }
.check-row { display: flex; align-items: baseline; gap: 12px; padding: 13px 15px; border-radius: 11px; background: var(--mist-50); }
.check-row b { min-width: 34px; color: var(--navy-deep); font-size: 25px; letter-spacing: -.03em; }
.check-row span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.check-row.ok b { color: #1f6b43; }
.check-row.attention b { color: var(--warning); }
.issue-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.issue-panel li { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 12px 13px; border-radius: 10px; background: var(--mist-100); }
.issue-panel li > i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--blue); }
.issue-panel li > i.high { background: #a95535; }
.issue-panel li > i.medium { background: var(--warning); }
.issue-panel li strong, .issue-panel li small { display: block; }
.issue-panel li strong { color: var(--navy); font-size: 13px; }
.issue-panel li small { margin-top: 3px; color: var(--muted); font-size: 12px; }

/* Report status row */
.report-status { display: flex; justify-content: space-between; gap: 15px; margin-top: 10px; padding: 14px 16px; border-radius: 10px; background: var(--blue-pale); color: var(--blue-dark); font-size: 12.5px; }
.report-status strong { color: var(--navy); }

/* Availability lists inside the final CTA */
.availability { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.16); }
.availability h3 { margin: 0 0 12px; color: #fff; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.availability ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.availability li { display: flex; align-items: flex-start; gap: 9px; color: #b8c9d2; font-size: 13.5px; line-height: 1.45; }
.availability li::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: #6fd0c5; }
.availability .soon li::before { background: rgba(255,255,255,.3); }

/* About */
.about { background: #fff; }
.about-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.about h2 { margin: 0; color: var(--navy-deep); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.045em; }
.about p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.about p:last-child { margin-bottom: 0; }
@media (max-width: 920px) {
  .review-visual { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .availability { grid-template-columns: 1fr; }
}

/* Story chapter actions */
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Method catalog page */
.catalog-head { padding: 136px 0 36px; }
.catalog-head h1 { max-width: 820px; margin: 0; color: var(--navy-deep); font-size: clamp(38px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.055em; }
.catalog-head > .site-shell > p { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 34px 0 6px; }
.catalog-search { flex: 1 1 320px; min-height: 48px; padding: 0 16px; border: 1px solid var(--mist-300); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.catalog-search:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(13,116,112,.15); }
.catalog-count { color: var(--muted); font-size: 14px; }
.catalog-note { margin: 10px 0 0; color: #7b8c93; font-size: 12.5px; line-height: 1.55; max-width: 720px; }

/* Status filters and legend */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter-chip { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid var(--mist-200); border-radius: 99px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 650; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.filter-chip span { padding: 2px 7px; border-radius: 99px; background: var(--mist-100); color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.filter-chip.active span { background: rgba(255,255,255,.22); color: #fff; }
.catalog-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; padding: 16px 18px; border: 1px solid var(--mist-200); border-radius: 12px; background: #fff; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.legend-item b { color: var(--navy); font-weight: 700; }
.legend-item i { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.legend-item i.status-available { background: #35825a; }
.legend-item i.status-review { background: var(--blue); }
.legend-item i.status-testing { background: var(--warning); }
.legend-item i.status-planned { background: var(--mist-300); }

.catalog-section { padding: 26px 0 72px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 26px; }
.catalog-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--mist-200); border-radius: 16px; background: #fff; box-shadow: var(--soft-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.catalog-card:hover { transform: translateY(-2px); border-color: var(--mist-300); box-shadow: var(--shadow); }
.catalog-card h3 { margin: 0; color: var(--navy); font-size: 16.5px; line-height: 1.35; }
.catalog-card .catalog-act { color: var(--muted); font-size: 12.5px; }
.catalog-card .catalog-summary { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.catalog-card .catalog-facts { align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: var(--mist-100); color: var(--navy); font-size: 12.5px; font-weight: 650; }
.catalog-card .catalog-cta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--mist-100); }
.catalog-source { color: var(--blue); font-size: 13px; font-weight: 700; }
.catalog-source:hover { color: var(--blue-dark); }
.catalog-card .catalog-meta { color: var(--ink-soft); font-size: 12.5px; }
.catalog-card .catalog-limitation { color: var(--navy); }
.catalog-request { color: var(--blue); font-size: 13px; font-weight: 700; }
.catalog-request:hover { color: var(--blue-dark); }
.catalog-sort-wrap { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 13px; margin-left: auto; }
.catalog-sort-wrap select { border: 1px solid var(--mist-200); border-radius: 8px; padding: 6px 9px; font: inherit; color: var(--ink); background: #fff; }
.catalog-clear { border: 1px solid var(--mist-200); border-radius: 99px; background: #fff; color: var(--ink-soft); font: inherit; font-size: 13px; padding: 6px 13px; cursor: pointer; }
.catalog-clear:hover { border-color: var(--blue); color: var(--blue); }
.catalog-detail-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(25, 50, 71, 0.45); display: flex; align-items: center; justify-content: center; padding: 18px; }
.catalog-detail { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--shadow); max-width: 680px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 26px 28px; }
.catalog-detail h3 { margin: 10px 0 4px; font-size: 20px; color: var(--navy); }
.catalog-detail h4 { margin: 15px 0 4px; font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.catalog-detail p, .catalog-detail li { font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.catalog-detail ul { margin: 4px 0 0 18px; }
.catalog-detail .catalog-meta { display: block; font-size: 13px; color: var(--ink-soft); margin: 2px 0; }
.catalog-detail-close { position: absolute; top: 14px; right: 16px; border: 1px solid var(--mist-200); border-radius: 99px; background: #fff; color: var(--ink-soft); font: inherit; font-size: 13px; padding: 6px 13px; cursor: pointer; }
.catalog-detail-close:hover { border-color: var(--blue); color: var(--blue); }
.catalog-more { border: 0; background: none; color: var(--blue); font: inherit; font-size: 13px; font-weight: 700; padding: 0; cursor: pointer; }
.catalog-more:hover { color: var(--blue-dark); }
@media (max-width: 640px) { .catalog-detail-overlay { padding: 0; align-items: stretch; } .catalog-detail { border-radius: 0; max-height: none; } }
.status-badge { align-self: flex-start; padding: 5px 9px; border-radius: 99px; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.status-available { background: #e7f4ec; color: #1f6b43; }
.status-review { background: var(--blue-pale); color: var(--blue-dark); }
.status-testing { background: #fdf3e4; color: #8f5a12; }
.status-planned { background: var(--mist-100); color: var(--muted); }
.catalog-empty { margin: 40px 0; color: var(--muted); font-size: 15px; }

/* Motion — everything below is additive and fully disabled under reduced motion. */
.js-enabled .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js-enabled .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-drift 26s ease-in-out infinite alternate; }
  @keyframes hero-drift {
    from { transform: scale(1); }
    to { transform: scale(1.055) translateY(-8px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
  .js-enabled .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .site-shell { width: calc(100% - 42px); max-width: 1120px; }
  .main-nav { gap: 14px; }
  .main-nav a, .sign-in { font-size: 13px; }
  .footer-main { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .hero-inner { grid-template-columns: minmax(390px, .9fr) 1.1fr; }
  .story-layout { gap: 42px; }
}

@media (max-width: 920px) {
  .site-shell { width: calc(100% - 32px); max-width: 860px; }
  .main-nav, .lang-switch, .sign-in { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .hero-media img { object-position: 74% center; }
  .hero-inner { display: block; padding-top: 78px; }
  .hero-copy { padding-top: 82px; }
  /* no fixed hero height since the 2026-09-22 refresh, so an absolutely placed card landed ON the intro and buttons; below 920px it follows the copy in normal flow */ .hero-data { position: static; min-height: 0; padding: 0 0 36px; pointer-events: none; }
  .section { padding: 62px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { max-width: 600px; }
  .story-layout, .story-layout-reverse { min-height: auto; grid-template-columns: 1fr; }
  .story-layout-reverse .story-media { order: 2; }
  .story-media, .story-media img { min-height: 440px; }
  .calculation-focus-layout { grid-template-columns: 1fr; }
  .method-visual { min-height: auto; grid-template-columns: 1fr; }
  .report-visual { min-height: 520px; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid article:nth-child(3) { border-left: 0; }
}

@media (max-width: 620px) {
  .site-shell { width: calc(100% - 24px); max-width: 560px; }
  .header-inner { min-height: 70px; }
  .mobile-menu { top: 70px; }
  .wordmark { font-size: 18px; }
  .coordinate-mark { width: 30px; height: 30px; }
  .button.compact { min-height: 39px; padding-inline: 12px; }
  .hero-inner { padding-top: 70px; }
  .hero-media img { object-position: 76% center; }
  .hero-wash { background: linear-gradient(180deg, rgba(250,252,252,.97) 0%, rgba(250,252,252,.9) 44%, rgba(250,252,252,.12) 72%, rgba(16,39,56,.06) 100%); }
  .hero-copy { padding-top: 52px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  html[lang="ru"] .hero h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1; padding-inline: 12px; }

  .section { padding: 52px 0; }
  .section-heading h2 { font-size: 36px; }
  .story-copy h2 { font-size: 40px; }
  .story-media, .story-media img { min-height: 300px; }
  .calculation-focus-copy { padding: 36px 26px; }
  .calculation-focus-copy h2 { font-size: 40px; }
  .method-visual { padding: 10px; }
  .method-sheet, .method-summary { padding: 20px; }
  .calc-demo { padding: 16px; }
  .embedded-ai { grid-template-columns: 1fr; }
  .embedded-ai > span { justify-self: start; }
  .report-visual { min-height: auto; grid-template-columns: 1fr; padding: 10px; }
  .report-sheet { padding: 20px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article { border-left: 0; }
  .workflow-grid article:not(:last-child)::after { content: "↓"; top: auto; right: 20px; bottom: -9px; }
  .cta-inner, .cta-inner > div:last-child:not(:first-child) { align-items: stretch; flex-direction: column; }
  .cta-inner { display: flex; }
  .cta-inner > div:last-child:not(:first-child) { width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { display: grid; }
}

html[lang="ru"] .hero-inner { grid-template-columns: minmax(520px, .92fr) minmax(440px, 1.08fr); }
/* 921-1180px: the two minimums above (520+440) exceed the frame, so the card column was pushed ~96px past the edge and clipped by .hero overflow:hidden */
@media (max-width: 1180px) and (min-width: 921px) { html[lang="ru"] .hero-inner { grid-template-columns: minmax(0, 1fr) 330px; column-gap: 40px; } }
html[lang="ru"] .hero-copy { max-width: 680px; }
html[lang="ru"] .hero h1 { font-size: clamp(48px, 4.6vw, 72px); }
html[lang="ru"] .section-heading h2 { font-size: clamp(35px, 3.65vw, 55px); }
html[lang="ru"] .story-copy h2 { font-size: clamp(38px, 3.9vw, 58px); }
html[lang="ru"] .report-table > div { grid-template-columns: .65fr .95fr 1.15fr; }
@media (max-width: 920px) {
  html[lang="ru"] .hero-inner { grid-template-columns: 1fr; }
}

/* Glossary */
.glossary-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 10px; }
.glossary-term { padding: 22px; border: 1px solid var(--mist-200); border-radius: 16px; background: #fff; box-shadow: var(--soft-shadow); scroll-margin-top: 100px; }
.glossary-term h3 { margin: 0 0 8px; color: var(--navy); font-size: 16.5px; letter-spacing: -.01em; }
.glossary-term p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.term-related { margin-top: 10px !important; font-size: 12.5px !important; }
.term-related a { color: var(--blue); font-weight: 650; }
.term-related a:hover { color: var(--blue-dark); }

/* Trust/support pages — Template D: narrow reading width, dated, no dashboards. */
.trust-head { padding: 136px 0 12px; }
.trust-head h1 { max-width: 780px; margin: 0; color: var(--navy-deep); font-size: clamp(34px, 3.8vw, 54px); line-height: 1.05; letter-spacing: -.045em; }
.trust-updated { margin: 14px 0 0; color: #7b8c93; font-size: 13px; }
.trust-body { padding: 26px 0 90px; }
.trust-article { max-width: 760px; }
.trust-article h2 { margin: 34px 0 10px; color: var(--navy); font-size: 21px; letter-spacing: -.02em; }
.trust-article h2:first-child { margin-top: 6px; }
.trust-article p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.trust-article ul { margin: 0 0 12px; padding-left: 22px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.trust-article li { margin-bottom: 5px; }
.trust-article a { color: var(--blue); font-weight: 650; }
.trust-article a:hover { color: var(--blue-dark); }
.trust-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.trust-card { display: flex; flex-direction: column; gap: 9px; padding: 24px; border: 1px solid var(--mist-200); border-radius: 16px; background: #fff; box-shadow: var(--soft-shadow); }
.trust-card h2 { margin: 0; color: var(--navy); font-size: 16.5px; line-height: 1.35; }
.trust-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.trust-card a { margin-top: auto; padding-top: 10px; color: var(--blue); font-size: 13.5px; font-weight: 700; }
.trust-card a:hover { color: var(--blue-dark); }
.contact-general { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; padding: 18px 22px; border: 1px solid var(--mist-200); border-radius: 14px; background: var(--blue-pale); }
.contact-general strong { color: var(--navy); font-size: 14.5px; }
.contact-general a { color: var(--blue-dark); font-size: 15px; font-weight: 750; }
.contact-general span { color: var(--muted); font-size: 13px; }

.demo-shell { max-width: 720px; padding-top: 118px; padding-bottom: 60px; }
.demo-lede { color: var(--ink-soft); font-size: 16px; margin: 6px 0 10px; }
.demo-notice { background: var(--mist-100); border-radius: 10px; color: var(--navy); font-size: 13.5px; padding: 10px 14px; margin-bottom: 18px; }
.demo-card { background: #fff; border: 1px solid var(--mist-200); border-radius: 16px; box-shadow: var(--soft-shadow); padding: 26px 28px; }
.demo-card h2 { color: var(--navy); font-size: 21px; margin: 0 0 10px; }
.demo-meta { color: var(--ink-soft); font-size: 13px; margin-top: 10px; }
.demo-step-label { color: var(--blue); font-size: 12.5px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 6px; }
.demo-progress { background: var(--mist-100); border-radius: 99px; height: 6px; margin: 0 0 14px; overflow: hidden; }
.demo-progress span { background: var(--blue); border-radius: 99px; display: block; height: 100%; transition: width 0.25s; }
.demo-facts div { border-bottom: 1px solid var(--mist-200); display: flex; gap: 14px; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.demo-facts dt { color: var(--ink-soft); }
.demo-facts dd { font-weight: 650; margin: 0; text-align: right; }
.demo-input-row { align-items: center; display: flex; gap: 14px; margin: 14px 0 4px; }
.demo-input-row input[type='range'] { flex: 1; }
.demo-input-row input[type='number'] { border: 2px solid var(--blue); border-radius: 10px; font-size: 17px; padding: 9px 12px; width: 120px; }
.demo-formula { background: var(--mist-50); border: 1px solid var(--mist-200); border-radius: 10px; color: var(--navy); font-family: "Cambria Math", "STIX Two Math", "Times New Roman", Georgia, serif; font-size: 19px; padding: 13px 16px; }
.demo-result { font-size: 19px; }
.demo-result strong { color: var(--navy); font-size: 24px; }
.demo-nav { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-top: 18px; }
.demo-btn-primary { background: var(--blue); border: 0; border-radius: 99px; color: #fff; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 700; padding: 12px 22px; text-decoration: none; }
.demo-btn-primary:hover { background: var(--blue-dark); }
.demo-btn-secondary { background: #fff; border: 1px solid var(--mist-200); border-radius: 99px; color: var(--ink-soft); cursor: pointer; font: inherit; font-size: 14px; padding: 11px 18px; text-decoration: none; }
.demo-btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.demo-convert { border-top: 1px solid var(--mist-200); margin-top: 22px; padding-top: 18px; }
.demo-convert h3 { color: var(--navy); font-size: 17px; margin: 0 0 6px; }
.demo-convert-actions { flex-wrap: wrap; justify-content: flex-start; }

.demo-map-svg { border: 1px solid var(--mist-200); border-radius: 12px; display: block; margin: 12px 0 8px; max-width: 100%; }
.demo-band-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0 2px; }
.demo-band-row { align-items: center; display: flex; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.demo-band-row i { border: 1px solid #fff; border-radius: 3px; display: inline-block; height: 12px; width: 18px; }
.demo-report { background: #fff; border: 1px solid var(--mist-200); border-radius: 16px; overflow: hidden; padding: 30px 32px; position: relative; }
.demo-report-watermark { color: rgba(169, 85, 53, 0.13); font-size: 26px; font-weight: 800; inset: 0; letter-spacing: 2px; line-height: 2.4; overflow: hidden; pointer-events: none; position: absolute; transform: rotate(-24deg) scale(1.4); user-select: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.demo-report h2 { color: #a95535; letter-spacing: 0.08em; }
.demo-report-disclaimer { border: 1.5px solid #a95535; border-radius: 8px; color: #7c2a24; font-size: 13.5px; padding: 9px 12px; }
.demo-report h3, .demo-report h4 { color: var(--navy); margin: 16px 0 5px; }
.demo-report-table { border-collapse: collapse; width: 100%; }
.demo-report-table td { border-bottom: 1px solid var(--mist-200); font-size: 14px; padding: 6px 4px; }
.demo-report-table td:last-child { font-weight: 650; text-align: right; }
@media print {
  .site-header, .site-footer, .demo-nav, .demo-notice, .demo-lede, .demo-progress, .skip-link, h1 { display: none !important; }
  .demo-shell { max-width: none; padding: 0; }
  .demo-report { border: 0; border-radius: 0; }
}

.demo-scenarios { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.demo-scenario { background: #fff; border: 1px solid var(--mist-200); border-radius: 16px; box-shadow: var(--soft-shadow); display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; }
.demo-scenario h2 { color: var(--navy); font-size: 18px; margin: 0; }
.demo-scenario p { color: var(--ink-soft); font-size: 14px; flex: 1; margin: 0; }
.demo-scenario .demo-btn-primary { align-self: flex-start; }
.demo-leaflet { border: 1px solid var(--mist-200); border-radius: 12px; height: 420px; margin: 12px 0 8px; width: 100%; }
.demo-muted-tiles { filter: grayscale(0.8) saturate(0.55) brightness(1.04); }

.demo-scenario-featured { border: 2px solid var(--blue); }
.demo-pollutants th { border-bottom: 2px solid var(--mist-200); color: var(--ink-soft); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; padding: 6px 4px; text-align: left; text-transform: uppercase; }
.demo-pollutants th:not(:first-child), .demo-pollutants td:not(:first-child) { text-align: right; }

.hero-note { color: var(--ink-soft); font-size: 13px; margin-top: 10px; }

/* ── Public demo: no-training journey (plan Phases A/B/D/E, 2026-08-05) ─────────────────────
   The journey replaced a percentage bar with named steps, added contextual help under every
   question, a permit-utilisation table and a readiness list. Every class below is emitted by
   site/demo.js; server/tests/demo_ui_contract.js fails if one of them loses its rule, because a
   class with no rule behind it renders as an unstyled list and nothing else notices. */

.demo-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Named steps. On a narrow screen the list collapses and the "Шаг X из 7" line carries the
   position on its own — a seven-item stepper squeezed into 360 px is unreadable. */
.demo-stepper {
  margin: 0 0 18px;
}

.demo-stepper ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-stepper li {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  gap: 6px;
}

.demo-stepper li.is-current {
  color: var(--navy);
  font-weight: 650;
}

.demo-stepper li.is-done {
  color: var(--success);
}

.demo-step-mark {
  align-items: center;
  background: var(--mist-100);
  border-radius: 50%;
  display: inline-flex;
  font-size: 0.72rem;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.demo-stepper li.is-current .demo-step-mark {
  background: var(--blue);
  color: #fff;
}

.demo-step-count {
  color: var(--navy);
  font-weight: 650;
  margin: 0 0 8px;
}

@media (max-width: 640px) {
  .demo-stepper ol { display: none; }
}

.demo-outcomes {
  margin: 0 0 16px;
  padding-left: 20px;
}

.demo-outcomes li { margin-bottom: 4px; }

.demo-detour {
  border-top: 1px solid var(--mist-200);
  margin-top: 26px;
  padding-top: 14px;
}

.demo-detour summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 0.9rem;
}

/* Source readiness: the five values EcoEsep already holds beside the four it asks for. */
.demo-readiness,
.demo-permit-table {
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 12px 0;
  width: 100%;
}

.demo-readiness th,
.demo-readiness td,
.demo-permit-table th,
.demo-permit-table td {
  border-bottom: 1px solid var(--mist-200);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.demo-readiness th[scope="row"],
.demo-permit-table th[scope="row"] {
  font-weight: 500;
}

.demo-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* State is never carried by colour alone — every tag has its own words. */
.demo-tag {
  border-radius: 3px;
  display: inline-block;
  font-size: 0.74rem;
  padding: 1px 6px;
  white-space: nowrap;
}

.demo-tag-ok { background: #e3f2e9; color: #25603f; }
.demo-tag-ask { background: var(--blue-pale); color: var(--blue-dark); }
.demo-tag-near { background: #fdf0dc; color: #8f5a12; }
.demo-tag-over { background: #fbe6de; color: #8d3f22; }
.demo-tag-absent { background: var(--mist-100); color: var(--muted); }

.demo-withheld {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: italic;
}

.demo-share {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
}

.demo-note {
  background: var(--mist-100);
  border-left: 3px solid var(--blue);
  font-size: 0.86rem;
  margin: 14px 0;
  padding: 10px 12px;
}

/* Question screen: the number is the primary control, its unit sits beside it, and the help
   below is addressed by aria-describedby rather than being decoration. */
.demo-unit {
  color: var(--muted);
  font-size: 0.9rem;
}

.demo-help {
  background: var(--mist-100);
  border-radius: 6px;
  font-size: 0.86rem;
  margin: 14px 0;
  padding: 12px 14px;
}

.demo-help p { margin: 0 0 8px; }
.demo-help ul { margin: 0 0 8px; padding-left: 20px; }

.demo-field-error {
  color: #a95535;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 6px 0 0;
}

.demo-drawer {
  border: 1px solid var(--mist-200);
  border-radius: 6px;
  margin: 12px 0;
  padding: 10px 12px;
}

.demo-drawer summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
}

/* Substance «что это» glossary inside the result drawer — a definition list. */
.demo-substances {
  margin: 8px 0 0;
}
.demo-substances dt {
  font-weight: 600;
  margin-top: 8px;
}
.demo-substances dd {
  margin: 2px 0 0;
}

/* Pre-generated AI report-review panel (a demonstration). Set apart like a helper note, accented. */
.demo-checker {
  background: var(--mist-100);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  margin: 14px 0 18px;
  padding: 12px 14px;
}
.demo-checker h3 {
  margin: 0 0 8px;
}

.demo-map-facts {
  margin-bottom: 12px;
}

/* Terrain context under the map. Set slightly back from the result facts on purpose: these
   are elevations the calculation did NOT use, and they should read as context rather than as
   part of the answer. */
.demo-terrain-facts {
  margin-bottom: 8px;
}

/* Copernicus attribution. A licence condition, like the OSM line on the report figure —
   set small but never hidden. */
.demo-terrain-licence {
  font-size: 0.85em;
  opacity: 0.75;
}

.demo-review {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
}

.demo-review li {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.demo-review-ready .demo-mark { color: var(--success); }
.demo-review-info .demo-mark { color: var(--muted); }

.demo-mark {
  flex: 0 0 auto;
  font-weight: 700;
}

.demo-exit {
  margin: 18px 0 0;
  text-align: center;
}

.demo-link {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  padding: 4px 8px;
  text-decoration: underline;
}

.demo-link:hover { color: var(--blue); }

/* ── Three-surface homepage (MAIN_PAGE_UPGRADE 2026-08-16) ─────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; background: #fff; border: 1px solid var(--mist-300, #dfe7e7); border-radius: 16px; }
.product-card h3 { margin: 0; font-size: 21px; }
.product-card p { margin: 0; color: var(--ink-soft, #47605f); font-size: 14.5px; line-height: 1.55; }
.product-card .button { margin-top: auto; align-self: flex-start; }
.product-chain { font-size: 12.5px !important; letter-spacing: .01em; color: var(--ink-soft, #47605f); }
.product-note { font-size: 12px !important; }
.status-chip { align-self: flex-start; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.status-available { background: #e3f2e8; color: #1c6b3c; }
.status-beta { background: #e3f4f2; color: #0a5a57; }
.status-pilot { background: #fdf1df; color: #8a5a12; }
.hero-textlink { align-self: center; color: #fff; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.hero-textlink:hover { opacity: .85; }

.backbone-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.backbone-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: bb; }
.backbone-chain li { position: relative; background: #fff; border: 1px solid var(--mist-300, #dfe7e7); border-radius: 12px; padding: 12px 16px 12px 44px; font-size: 14.5px; font-weight: 600; }
.backbone-chain li + li { margin-top: 14px; }
.backbone-chain li + li::before { content: "↓"; position: absolute; top: -16px; left: 20px; color: var(--ink-soft, #47605f); font-size: 13px; }
.backbone-chain li::after { counter-increment: bb; content: counter(bb); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--mist-100, #eef3f3); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: var(--ink-soft, #47605f); }

.atlas-preview { background: #f2f7f6; }
.atlas-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; padding: 0; }
.atlas-chips li { background: #fff; border: 1px solid var(--mist-300, #dfe7e7); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; }
.atlas-note { color: var(--ink-soft, #47605f); font-size: 13px; margin: 0 0 18px; }

.availability-three { grid-template-columns: 1.2fr .9fr 1.1fr; }
.availability .beta-col h3 { color: #8fdcd3; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 26px; }
.why-grid article { background: #fff; border: 1px solid var(--mist-300, #dfe7e7); border-radius: 14px; padding: 20px 18px; }
.why-grid h3 { margin: 0 0 8px; font-size: 16.5px; }
.why-grid p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft, #47605f); }

@media (max-width: 920px) {
  .products-grid { grid-template-columns: 1fr; }
  .backbone-layout { grid-template-columns: 1fr; gap: 26px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .availability-three { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-textlink { align-self: flex-start; }
}

/* live Atlas thumbnail — the real published layer, honestly captioned (best of 48 h, not «now») */
.atlas-live { margin: 24px 0 6px; border: 1px solid var(--mist-300, #dfe7e7); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #dbe7f2, #eef4f0); }
.atlas-live img { display: block; width: 100%; height: auto; }
.atlas-live figcaption { padding: 10px 16px; font-size: 12.5px; color: var(--ink-soft, #47605f); background: #fff; }
.product-counts { font-size: 12.5px !important; font-weight: 600; color: var(--ink, #142b2b) !important; }

/* spacing utilities — the CSP refuses style attributes, so margins are classes (audit 2026-08-16) */
.mt-22 { margin-top: 22px; }
.mt-34 { margin-top: 34px; }

/* 404 page (site/404.html) — was an inline <style> block, which the CSP refuses (BUG-P-006). */
.nf-page { background: var(--bg, #f9fbfb); }
.nf-header { padding: 18px 24px; }
.nf-wrap { min-height: calc(100vh - 90px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.nf-card { max-width: 520px; text-align: center; }
.nf-code { color: #c6d6d9; font-size: clamp(64px, 12vw, 120px); font-weight: 850; letter-spacing: -.06em; line-height: 1; }
.nf-card h1 { color: #102738; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; margin: 10px 0 12px; }
.nf-card p { color: #5d707a; font-size: 15.5px; line-height: 1.6; margin: 0 0 14px; }
.nf-card .nf-en { font-size: 13.5px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

/* Buttons with a secondary line («See the demo (in Russian) →») wrapped into two ragged columns on a
   390 px phone (BUG-P-011): the label stays one line, the button grows instead. */
.button { flex-wrap: wrap; text-align: center; row-gap: 2px; }
.button small { white-space: nowrap; font-size: .86em; opacity: .85; }

/* 2026-09-29 (owner): «Воздух в городах сейчас» — live AQI cards filled by site.js from the public
   Cities API; the static page prints no number. Band colours come from the API's own scale. */
.air-now { background: #fff; border-bottom: 1px solid var(--mist-200); }
.air-now-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px 52px; align-items: center; padding: 58px 0; }
.air-now-copy h2 { margin: 0; color: var(--navy-deep); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.air-now-copy > p:not(.section-kicker) { max-width: 46ch; margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.air-now-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.air-cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.air-cities a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "city aqi" "cat aqi"; align-items: center; gap: 3px 14px; padding: 16px 18px; border: 1px solid var(--mist-200); border-radius: 12px; background: var(--mist-50); color: var(--navy-deep); transition: border-color .18s ease, transform .18s ease; }
.air-cities a:hover { border-color: var(--blue); transform: translateY(-1px); }
.air-city { grid-area: city; font-size: 17px; font-weight: 760; }
.air-cat { grid-area: cat; color: var(--muted); font-size: 13px; line-height: 1.35; }
.air-aqi { grid-area: aqi; min-width: 60px; padding: 8px 10px; border-radius: 10px; background: var(--air-color, var(--mist-200)); color: var(--air-text, var(--muted)); font-size: 24px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.air-also { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.air-also a { color: var(--blue); font-weight: 650; }
@media (max-width: 920px) { .air-now-inner { grid-template-columns: 1fr; padding: 46px 0; } }
@media (max-width: 520px) { .air-cities { grid-template-columns: 1fr; } }
