/* CRATONA.AI — design B: dark hero + light evidence sections, gold accent */

/* ---------- fonts (local, variable) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/Inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/Inter-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/assets/fonts/JBMono-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/assets/fonts/JBMono-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Tektur'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/Tektur-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tektur'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/Tektur-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- tokens ---------- */
:root {
  --ink: #16211b;
  --ink-soft: #46534c;
  --paper: #fbfcfa;
  --paper-alt: #f1f4ee;
  --line: #dde3d9;
  --dark: #0e1512;
  --dark-2: #131c17;
  --dark-line: #2a352e;
  --dark-text: #e8ece9;
  --dark-text-soft: #a7b3ab;
  --gold: #d9a441;
  --gold-bright: #e8b83a;
  --gold-ink: #8a6420;
  --radius: 8px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --display: 'Tektur', 'Inter', system-ui, sans-serif;
  --container: 1280px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.015em; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(1.8rem, 4.4vw, 2.85rem); line-height: 1.12; }
h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.accent { color: var(--gold-bright); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--dark); padding: .6em 1em; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 21, 18, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--dark-line); color: var(--dark-text); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; text-decoration: none; }
.logo-dot { color: var(--gold-bright); }
.nav-menu { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; font-size: .92rem; color: var(--dark-text-soft); }
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--dark-text); }
.nav-demo { color: var(--gold-bright) !important; font-weight: 600; }
.lang-switch { font-family: var(--mono); border: 1px solid var(--dark-line); padding: 3px 9px; border-radius: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--dark-line); color: var(--dark-text); border-radius: 8px; padding: 6px 8px; cursor: pointer; }

/* ---------- hero ---------- */
.dark { background: radial-gradient(1200px 600px at 75% 10%, #182620 0%, var(--dark) 60%); color: var(--dark-text); }
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 9vh, 110px); }
.kicker { color: var(--gold-bright); letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; font-family: var(--mono); margin-bottom: 1.1em; }
.hero-sub { color: var(--dark-text-soft); font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.hero-art img { border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2.4em 0 0; max-width: 560px; }
.hero-metrics dt { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 600; color: var(--gold-bright); white-space: nowrap; }
.hero-metrics dd { margin: 2px 0 0; font-size: .82rem; color: var(--dark-text-soft); max-width: 20ch; }

.page-hero { padding-block: clamp(42px, 7vh, 80px); }
.page-hero .hero-sub { max-width: 72ch; }
.src-note { margin-top: 1.6em; font-size: .74rem; color: var(--dark-text-soft); opacity: .8; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: .78em 1.5em; border-radius: 10px; font-weight: 600; font-size: .97rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #14100a; box-shadow: 0 6px 24px rgba(217, 164, 65, .35); }
.btn-ghost { border-color: var(--dark-line); color: var(--dark-text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: var(--gold); }
.btn-outline-dark { border-color: var(--dark-line); color: var(--dark-text); background: transparent; }
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vh, 104px); }
.light { background: var(--paper); }
.light.alt { background: var(--paper-alt); }
.section-sub { color: var(--ink-soft); max-width: 78ch; margin-bottom: 2em; }
.dark .section-sub { color: var(--dark-text-soft); }

/* ---------- cards ---------- */
.cards-3, .cards-4 { display: grid; gap: 18px; margin-block: 2em; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(23, 32, 27, .04); }
.light.alt .card, .card.mini { background: var(--paper); }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.product-card .p-num { color: var(--gold); font-size: .85rem; display: block; margin-bottom: 10px; }

.solution { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 26px 28px; background: linear-gradient(90deg, rgba(217, 164, 65, .06), transparent 40%); max-width: 900px; }
.solution p { margin: 0; color: var(--ink-soft); }

/* ---------- how / steps ---------- */
.pipeline-art { margin: 0 auto 2.4em; max-width: 720px; }
.pipeline-art img { border-radius: var(--radius); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 20px 18px; }
.step::after { content: '→'; position: absolute; right: -29px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 1rem; line-height: 1; z-index: 2; }
.step:last-child::after { content: none; }
.step-n { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #14100a; font-size: 1.02rem; font-weight: 700; letter-spacing: .02em; font-family: var(--mono); box-shadow: 0 4px 14px rgba(217, 164, 65, .35); }
.step h3 { font-size: 1rem; margin: .7em 0 .35em; }
.step p { font-size: .86rem; color: var(--ink-soft); margin: 0; }

/* ---------- tech ---------- */
.tech-block { display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); gap: clamp(20px, 3vw, 44px); align-items: start; margin-block: 2.6em; }
.tech-text p { color: var(--ink-soft); font-size: .97rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.models-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.models-table th, .models-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.models-table thead th { background: var(--paper-alt); font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.models-table tbody tr:last-child td { border-bottom: none; }
.models-table tr.hl td { background: rgba(217, 164, 65, .1); font-weight: 600; }
.models-table td.mono { color: var(--gold-ink); font-weight: 600; }

.auc-chart { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: var(--paper); }
.auc-chart.standalone { max-width: 880px; margin-bottom: 2.4em; }
.auc-row { display: grid; grid-template-columns: minmax(120px, 240px) 1fr 56px; align-items: center; gap: 14px; font-size: .88rem; }
.auc-label { color: var(--ink-soft); }
.auc-track { background: var(--paper-alt); border-radius: 99px; height: 14px; overflow: hidden; }
.auc-bar { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #b8bdb3, #8d9788); border-radius: 99px; transform-origin: left; }
.auc-row.hl .auc-bar { background: linear-gradient(90deg, var(--gold-bright), var(--gold)); }
.auc-row.hl { font-weight: 700; }
.auc-row.hl .auc-label { color: var(--ink); }
.chart-note { font-size: .84rem; color: var(--ink-soft); margin: 10px 0 0; }
.reveal.on .auc-bar { animation: grow .9s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }

.charts-2 { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 20px; align-items: start; margin-block: 2.4em; }
.chart-side { display: grid; gap: 18px; }
.chart-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 16px; }
.chart-card img { border-radius: 6px; width: 100%; }
.chart-card figcaption { font-size: .86rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.5; }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-cards.wide { margin-top: 1.8em; }
.card.mini h4 { margin-bottom: .4em; color: var(--gold-ink); }

.data-title { margin-top: 2.2em; }
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-block: 1.4em 2em; }
.data-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--paper); }
.data-card img { width: 76px; height: 73px; margin-bottom: 12px; }
.data-card h4 { font-size: .98rem; margin-bottom: .35em; }
.data-card p { font-size: .86rem; color: var(--ink-soft); margin: 0; }
.more-link { margin-top: 1em; }

/* ---------- validation (dark) ---------- */
.section.dark { background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%); }
.case-tag { color: var(--gold-bright); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); margin-bottom: .8em; }
.validation-grid { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-block: 1.2em 2.4em; }
.validation-copy p { color: var(--dark-text-soft); }
.dark-stats { margin-bottom: 1.8em; }
.dark-stats dt { color: var(--gold-bright) !important; }
.dark-stats dd { color: var(--dark-text-soft) !important; }
.validation-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.validation-maps a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--dark-line); background: #fff; }
.validation-maps img { width: 100%; display: block; }
/* results carousel */
.gallery-title { margin-top: 2.2em; }
.result-figure { max-width: 680px; margin: 0 auto 2.4em; background: #fff; border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; }
.result-figure img { width: 100%; padding: 12px; }
.result-figure figcaption { padding: 12px 18px 14px; font-size: .86rem; color: var(--ink-soft); background: var(--paper); border-top: 1px solid var(--line); }

/* hero: AUC badge, bottom-right of the slide */
.hero-auc { grid-column: 2; align-self: end; justify-self: end; max-width: 40ch; background: rgba(14, 21, 18, .72); border: 1px solid var(--dark-line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; backdrop-filter: blur(4px); }
.hero-auc-head { margin: 0 0 .4em; font-weight: 700; }
.hero-auc-head .mono { color: var(--gold-bright); font-size: 1.25rem; margin-right: .35em; }
.hero-auc p:last-child { margin: 0; font-size: .82rem; color: var(--dark-text-soft); }
@media (max-width: 900px) { .hero-auc { grid-column: 1; justify-self: stretch; max-width: none; } }

/* funnel */
.funnel-figure { margin: 0 auto; max-width: 1100px; }
.funnel-figure img { border-radius: var(--radius); border: 1px solid var(--dark-line); }

/* standalone chart figures (methodology) */
.dist-figure { max-width: 720px; margin-inline: 0; }
.dist-figure img { max-width: 100%; }

.viewer-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border: 1px solid var(--gold); border-radius: var(--radius); padding: 26px 30px; background: linear-gradient(90deg, rgba(217, 164, 65, .12), rgba(217, 164, 65, .02)); }
.viewer-banner h3 { margin-bottom: .3em; }
.viewer-banner p { margin: 0; color: var(--dark-text-soft); max-width: 60ch; }

/* ---------- product: offers + limits ---------- */
.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 1.2em 2em; }
.offer-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper-alt); }
.offer-card .case-tag { color: var(--gold-ink); }
.offer-card h3 { font-size: 1.2rem; }
.offer-card > p { color: var(--ink-soft); font-size: .95rem; }
.offer-list { margin: 1em 0 0; padding: 0; list-style: none; }
.offer-list li { position: relative; padding-left: 22px; margin-bottom: .5em; font-size: .92rem; color: var(--ink); }
.offer-list li::before { content: ''; position: absolute; left: 0; top: .48em; width: 10px; height: 10px; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); border-radius: 2px; }
.limits { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-block: 2em; background: var(--paper); }
.limits h3 { margin-bottom: .8em; }
.limits ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.limits li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--ink-soft); }
.limits li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 2em; }
.team-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 26px; text-align: center; }
.avatar { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--dark); color: var(--gold-bright); font-size: 1.5rem; font-weight: 600; margin-bottom: 14px; }
.team-card h3 { font-size: 1.08rem; margin-bottom: .2em; }
.role { color: var(--ink-soft); font-size: .9rem; margin-bottom: .5em; }
.email { font-size: .82rem; color: var(--gold-ink); text-decoration: none; }
.email:hover { text-decoration: underline; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact p { color: var(--dark-text-soft); }
.contact-email a { color: var(--gold-bright); font-size: 1.1rem; }
.contact-form { display: grid; gap: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 28px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; color: var(--dark-text-soft); }
.contact-form input, .contact-form textarea { background: var(--dark); border: 1px solid var(--dark-line); border-radius: 8px; color: var(--dark-text); padding: 11px 13px; font: inherit; font-size: .95rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); outline: none; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .8rem; color: var(--dark-text-soft); margin: 0; }
.contact-card { display: grid; gap: 18px; justify-items: start; align-content: start; background: rgba(255, 255, 255, .03); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 32px; }
.contact-card > p:first-child { margin: 0; color: var(--dark-text-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn-ghost { border-color: var(--gold); color: var(--gold-bright); }
.contact-actions .btn-ghost:hover { background: rgba(217, 164, 65, .12); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text-soft); border-top: 1px solid var(--dark-line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: 40px 26px; }
.footer-logo { color: var(--dark-text); font-size: 1rem; }
.footer-tag { font-size: .86rem; max-width: 40ch; margin-top: 10px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--dark-text-soft); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bottom { border-top: 1px solid var(--dark-line); padding-block: 16px; font-size: .8rem; }

/* ---------- case page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 1.2em 0 0; }
.stat-grid.wide { grid-template-columns: repeat(4, 1fr); max-width: 980px; margin-top: 1.6em; }
.stat-grid dt { font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: var(--gold-ink); }
.stat-grid dd { margin: 2px 0 0; font-size: .85rem; color: var(--ink-soft); }
.map-triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block: 1.6em 3em; }
.map-triptych figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 12px; }
.map-triptych img { border-radius: 6px; width: 100%; }
.map-triptych figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 8px; }
.result-list { padding-left: 1.2em; color: var(--ink-soft); }
.result-list li { margin-bottom: .5em; }

/* ---------- hero scene (desktop: full-bleed brand art) ---------- */
@media (min-width: 901px) {
  .hero.has-scene { background: var(--dark) url('/assets/img/hero-scene.webp') right center / cover no-repeat; }
  .hero.has-scene .hero-art, .hero.has-scene .hero-topo { display: none; }
  .hero.has-scene .hero-grid { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); min-height: 600px; }
}

/* ---------- figures: full pipeline, data stack, architecture ---------- */
.pipeline-art.wide { max-width: 880px; }
.pipeline-art.wide img { box-shadow: 0 14px 48px rgba(14, 21, 18, .25); }
.data-block { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); gap: clamp(20px, 3vw, 44px); align-items: stretch; margin-block: 1.4em 2em; }
.data-stack { margin: 0; }
/* липкий стек только на широких экранах: в одноколоночной мобильной вёрстке
   sticky-картинка перекрывала контент и «не уезжала» при скролле */
@media (min-width: 1021px) { .data-stack { position: sticky; top: 80px; align-self: start; } }
.data-stack img { border-radius: var(--radius); border: 1px solid var(--line); }
.data-block .data-grid { grid-template-columns: 1fr 1fr; margin-block: 0; }
.arch-figure { margin: 0 auto; max-width: 1100px; }
.arch-figure img { border-radius: var(--radius); border: 1px solid var(--dark-line); }
@media (max-width: 1020px) {
  .data-block { grid-template-columns: 1fr; }
  .data-stack { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .data-block .data-grid { grid-template-columns: 1fr; }
}

/* ---------- signature: core-drill rail ---------- */
.corerail { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
/* показывать рейку только когда по бокам гарантированно есть место: контейнер 1280 + 2×(рейка 44 + отступы) */
@media (min-width: 1460px) { .corerail { display: flex; flex-direction: column; align-items: center; gap: 8px; } }
.corerail-col { position: relative; width: 12px; height: min(48vh, 400px); border: 1px solid rgba(120, 132, 120, .55); border-radius: 99px; overflow: hidden; display: flex; flex-direction: column; }
.corerail-seg { flex: 1; opacity: .38; transition: opacity .35s ease; }
.corerail-seg.on { opacity: 1; }
.corerail-bit { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #fff; mix-blend-mode: difference; }
.corerail-depth { font-family: var(--mono); font-size: .66rem; color: #8a9488; letter-spacing: .05em; }

/* ---------- hero topo contours ---------- */
.hero { position: relative; }
.hero-topo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-topo svg { width: 100%; height: 100%; }
.hero-topo path { fill: none; stroke: #35584593; stroke-width: 1.1; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: topo-draw 2.4s cubic-bezier(.3, .6, .3, 1) forwards; }
.hero-topo path:nth-child(2) { animation-delay: .25s; }
.hero-topo path:nth-child(3) { animation-delay: .5s; }
.hero-topo path:nth-child(4) { animation-delay: .75s; }
@keyframes topo-draw { to { stroke-dashoffset: 0; } }
.hero-grid { position: relative; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.on .auc-bar { animation: none; }
  .btn { transition: none; }
  .hero-topo path { animation: none; stroke-dashoffset: 0; }
  .corerail-seg { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step::after { content: none; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .charts-2, .tech-block { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px 56px; }
  .hero-art { order: -1; }
  .contact-grid, .split, .validation-grid, .offers-grid { grid-template-columns: 1fr; }
  .limits ul { grid-template-columns: 1fr; }
  .stat-grid.wide { grid-template-columns: 1fr 1fr; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .map-triptych { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--dark); border-bottom: 1px solid var(--dark-line); padding: 12px 20px 20px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 10px 4px; font-size: 1rem; }
  .lang-switch { justify-self: start; display: inline-block; margin-top: 6px; }
  .cards-3, .cards-4, .data-grid, .team-grid, .mini-cards, .steps { grid-template-columns: 1fr; }
  .auc-row { grid-template-columns: 1fr; gap: 4px; }
  .auc-val { display: none; }
  .auc-label { font-size: .8rem; }
}
