/* Mirador · система «Оптика» · структура «разворот: слово + продукт»
   Бумага, графит, бордо. Literata — заголовки и wordmark, Source Sans 3 — всё остальное.
   Мотив: прицел прибора — окружность и линия горизонта. Углы прямые. Никаких теней на покое, тонких линий и градиентов. */

:root {
  --bg: #fbfaf7;
  --surface: #e7ebe6;          /* шалфей: панели, поля форм */
  --stone: #ebe9e3;            /* камень: вторая ступень тона */
  --ink: #141414;
  --muted: #5f5f5a;            /* 6.3:1 на бумаге */
  --accent: #8b1e2d;
  --accent-ink: #ffffff;
  --paper-on-dark: #f2efe8;

  --font: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Literata', Georgia, serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);     /* 14–15 */
  --step-body:  clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);         /* 17–20 */
  --step-lead:  clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);        /* 20–26 */
  --step-head:  clamp(1.9rem, 1rem + 2.6vw, 3.25rem);            /* 30–52 */
  --step-display: clamp(2.5rem, 0.8rem + 6vw, 6.25rem);          /* 40–100 */

  --margin: clamp(1rem, 2.6vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 12vw, 12rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms;
}
.dark { --bg: #141414; --surface: #262626; --stone: #1f1f1f; --ink: #f2efe8; --muted: #b7b3aa; --accent: #c2283f; background: var(--bg); color: var(--ink); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- тип ---------- */
h1, h2, h3, .display, .head { font-family: var(--font-display); font-weight: 600; font-variation-settings: 'opsz' 72; letter-spacing: -0.015em; text-wrap: balance; hyphens: none; }
.display { font-size: var(--step-display); line-height: 0.98; }
.head { font-size: var(--step-head); line-height: 1.04; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; text-wrap: pretty; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.medium { font-weight: 600; }
p { max-width: 64ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- сетка ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.spread { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gutter); align-items: start; }
.spread .word { position: sticky; top: 5rem; display: grid; gap: 1.2rem; align-content: start; padding-right: var(--gutter); }
@media (max-width: 56em) { .spread { grid-template-columns: 1fr; row-gap: 2rem; } .spread .word { position: static; padding-right: 0; } }

/* ---------- мотив ---------- */
.optic { display: inline-block; width: 1.5rem; height: 1.5rem; position: relative; flex: none; }
.optic::before { content: ""; position: absolute; inset: 0; border: 3px solid currentColor; border-radius: 50%; }
.optic::after { content: ""; position: absolute; left: -20%; right: -20%; top: calc(50% - 1.5px); height: 3px; background: var(--accent); }
.horizon { height: 6px; background: var(--accent); }
.qlist > li { position: relative; padding-left: 1.5em; }
.qlist > li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.7em; height: 0.7em; border: 2px solid var(--accent); border-radius: 50%; }

/* ---------- контролы ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: #6f1624; }
.dark .button:hover { background: #a21f35; }
.button:active { transform: scale(0.97); }
.button.ink { background: var(--ink); color: var(--bg); }
.button.ink:hover { background: #333; }
.button.wide { width: 100%; }
.link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: color var(--t-hover) ease; }
.link:hover { color: var(--accent); }
.field { width: 100%; min-height: 3.25rem; padding: 0.7rem 0.9rem; background: var(--surface); border: 0; font-size: max(1rem, var(--step-body)); }
.field:focus { outline: 3px solid var(--accent); outline-offset: 0; }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: 4.75rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; text-decoration: none; }
.top nav { display: flex; gap: clamp(0.9rem, 2vw, 1.6rem); margin-left: auto; }
.top nav a { text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--accent); }
.top .lang { display: flex; gap: 0.25rem; }
.top .lang button { min-width: 2.4rem; min-height: 2.4rem; font-weight: 600; color: var(--muted); }
.top .lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
.top .button { min-height: 2.9rem; }
.top .menu-btn { display: none; min-height: 2.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 56em) {
  .top nav, .top .lang { display: none; }
  .top .menu-btn { display: inline-flex; margin-left: auto; }
  .top.open nav { display: flex; position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; padding: var(--margin); gap: 1.2rem; background: var(--bg); font-family: var(--font-display); font-size: var(--step-head); font-weight: 600; z-index: 40; }
  .top.open .lang { display: flex; position: fixed; left: var(--margin); bottom: var(--margin); z-index: 41; }
  .top.open .menu-btn { position: fixed; right: var(--margin); top: 1.1rem; z-index: 41; }
}

/* ---------- герой: слово слева, лента высказываний справа ---------- */
.hero { display: grid; grid-template-columns: 5fr 7fr; min-height: 90svh; }
.hero .copy { display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; padding: clamp(2rem, 6vh, 5rem) var(--gutter) 3rem var(--margin); }
.hero h1 { max-width: 14ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.hero .srcline { color: var(--muted); font-size: var(--step-body); }
.hero .facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; color: var(--muted); font-size: var(--step-small); }
.hero .feed { background: var(--stone); padding: clamp(2rem, 9vh, 6rem) clamp(1.25rem, 3vw, 3rem) 2rem; display: grid; align-content: start; gap: 6px; }
.hero .feed .feedh { font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-bottom: 0.6rem; }
.feed .row { display: grid; grid-template-columns: 124px 1fr; gap: 1.1rem; padding: 1rem 1.2rem; background: var(--bg); }
.feed .row .when { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.feed .row .who { font-weight: 600; font-size: var(--step-small); line-height: 1.3; }
.feed .row .q { font-family: var(--font-display); font-weight: 400; font-variation-settings: 'opsz' 14; font-size: var(--step-lead); line-height: 1.35; letter-spacing: 0; }
.feed .row .src { color: var(--muted); font-size: var(--step-small); margin-top: 0.3rem; }
.feed .row .src b { color: var(--accent); font-weight: 600; }
@media (max-width: 56em) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero .copy { padding: 1.5rem var(--margin) 2rem; }
  .hero .feed { padding: 1.5rem var(--margin) 1.5rem; }
  .feed .row { grid-template-columns: 1fr; gap: 0.3rem; }
  .feed .row:nth-child(n+4) { display: none; }
}

/* ---------- 1. Что вы получаете: имена слева, продукт справа ---------- */
.show { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gutter); align-items: start; }
.show .names { display: grid; gap: 0.15em; font-family: var(--font-display); font-weight: 600; font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.015em; position: sticky; top: 5rem; }
.show .names h2 { font-size: inherit; color: var(--muted); margin-bottom: 0.4em; }
.show .names button { text-align: left; color: var(--muted); font: inherit; letter-spacing: inherit; padding: 0.05em 0; transition: color var(--t-hover) ease, transform var(--t-hover) var(--ease-out); }
.show .names button:hover { color: var(--ink); transform: translateX(0.2em); }
.show .names button[aria-selected="true"] { color: var(--ink); }
.show .fact { margin-top: 1.4rem; font-family: var(--font); font-weight: 400; font-size: var(--step-body); line-height: 1.5; letter-spacing: 0; max-width: 34ch; color: var(--ink); }
.show .stage { background: var(--stone); padding: clamp(1.5rem, 4vw, 3.5rem); min-height: 60vh; display: grid; place-items: center; }
.show .stage .object { position: relative; width: min(560px, 100%); }
.show .stage .object > * { display: none; }
.show .stage .object > .on { display: block; }
@media (max-width: 56em) {
  .show { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .show .names { position: static; display: flex; gap: 1.2rem; overflow-x: auto; font-size: 1.5rem; padding-bottom: 0.4rem; scrollbar-width: none; }
  .show .names h2 { flex: none; margin: 0; }
  .show .names button { flex: none; white-space: nowrap; }
  .show .fact { display: none; }
  .show .stage { min-height: auto; padding: 1rem; }
}

/* ---------- 2. Кто говорит: слово слева, карта источников справа ---------- */
.who .map { position: relative; display: grid; place-items: center; padding: 1rem 0; }
.who .map img { width: min(62vh, 100%); aspect-ratio: 1; }
.who .map .line { position: absolute; left: 0; right: 0; top: 50%; height: 6px; background: var(--accent); }
.who .legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
.who .legend span::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; margin-right: 0.45em; vertical-align: -0.02em; background: var(--dot, var(--ink)); }
.who .word .figures { display: grid; grid-template-columns: repeat(3, auto); gap: 1rem 2rem; justify-content: start; }
.who .word .figures b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.who .word .figures span { display: block; font-size: var(--step-small); color: var(--muted); margin-top: 0.3rem; }

/* ---------- 3. Как работает: ползунок по стадиям ---------- */
.how .split { display: grid; grid-template-columns: 1fr 1fr; min-height: 80svh; }
.how .clause { background: var(--surface); padding: clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.how .clause h2 { font-size: var(--step-head); max-width: 14ch; }
.how .clause p { max-width: 36ch; }
.how .frag { background: var(--stone); display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); overflow: hidden; }
.how .frag > * { grid-area: 1 / 1; width: min(480px, 100%); opacity: 0; transition: opacity 200ms ease; }
.how .frag > .on { opacity: 1; }
.how .track { padding: 1.5rem clamp(1.25rem, 2vw, 1.75rem) 2.5rem; }
.how .rail { position: relative; height: 32px; display: flex; align-items: center; }
.how .rail::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 8px; background: var(--surface); }
.how .rail .fill { position: absolute; left: 0; top: 12px; height: 8px; width: var(--fill, 0%); background: var(--accent); transition: width 200ms var(--ease-out); }
.how input[type="range"] { -webkit-appearance: none; appearance: none; position: relative; width: 100%; height: 32px; background: transparent; cursor: pointer; margin: 0; }
.how input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; background: var(--accent); border-radius: 50%; border: 4px solid var(--bg); }
.how input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; background: var(--accent); border-radius: 50%; border: 4px solid var(--bg); }
.how .stages { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 0.6rem; }
.how .stages button { text-align: left; color: var(--muted); font-weight: 600; min-height: 2.75rem; }
.how .stages button:nth-child(2), .how .stages button:nth-child(3) { text-align: center; }
.how .stages button:last-child { text-align: right; }
.how .stages button[aria-current="step"] { color: var(--ink); }
@media (max-width: 56em) {
  .how .split { grid-template-columns: 1fr; min-height: auto; }
  .how .frag { order: 1; min-height: 46svh; padding: 1.25rem; align-items: start; }
  .how .track { order: 2; padding: 1.25rem var(--margin) 0.5rem; }
  .how .clause { order: 3; padding: 1.5rem var(--margin) 2.5rem; }
  .how .stages { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .how .stages button { text-align: left !important; }
}

/* ---------- 4. Один случай в цифрах ---------- */
.stats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: start; }
.stats h2 { grid-column: 7 / 13; grid-row: 1; font-size: var(--step-head); padding-bottom: 1rem; }
.stats .tile { position: relative; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.stats .tile b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats .tile span { display: block; max-width: 26ch; font-size: var(--step-body); line-height: 1.4; }
.stats .t1 { grid-column: 1 / 7; grid-row: 1 / 4; height: 64vh; background: var(--accent); color: var(--accent-ink); }
.stats .t2 { grid-column: 7 / 10; grid-row: 2; margin-top: 10vh; height: 42vh; background: var(--ink); color: var(--paper-on-dark); }
.stats .t3 { grid-column: 10 / 13; grid-row: 2; margin-top: 22vh; height: 30vh; background: var(--surface); color: var(--ink); }
.stats .note { grid-column: 1 / 7; margin-top: 1rem; }
@media (max-width: 56em) {
  .stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stats h2 { grid-column: 1 / 3; grid-row: 1; }
  .stats .t1 { grid-column: 1 / 3; grid-row: 2; height: 56vw; }
  .stats .t2 { grid-column: 1; grid-row: 3; margin-top: 0; height: 52vw; }
  .stats .t3 { grid-column: 2; grid-row: 3; margin-top: 32px; height: calc(52vw - 32px); }
  .stats .tile { padding: 16px; }
  .stats .tile span { font-size: var(--step-small); }
  .stats .note { grid-column: 1 / 3; }
}

/* ---------- 5. Что ещё умеет: доска ---------- */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; }
.board .cell { position: relative; overflow: hidden; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.board .cell h2 { font-size: var(--step-head); align-self: flex-start; margin-block: auto; }
.board .cell .name { font-weight: 600; font-size: var(--step-body); line-height: 1.2; }
.board .cell .line { font-size: var(--step-small); line-height: 1.35; max-width: 30ch; }
.board .cell .el { position: absolute; pointer-events: none; right: 20px; top: 20px; }
.board .c64 .el { font-size: 64px; top: 40px; right: 40px; }
.board .c34 .el { font-size: 22px; left: 20px; right: auto; top: 28px; }
.board .c62 .el { font-size: 34px; }
.board .c32 .el { font-size: 26px; }
.board .c64 { grid-column: span 6; grid-row: span 4; }
.board .c62 { grid-column: span 6; grid-row: span 2; }
.board .c34 { grid-column: span 3; grid-row: span 4; }
.board .c32 { grid-column: span 3; grid-row: span 2; }
.board .f1 { background: var(--surface); color: var(--ink); }
.board .f2 { background: var(--stone); color: var(--ink); }
.board .f3 { background: var(--surface); color: var(--ink); }
.board .f4 { background: var(--accent); color: var(--accent-ink); }
.board .f4 .el { color: #fff; }
.board .fs { background: var(--stone); color: var(--ink); }
.board .fi { background: var(--ink); color: var(--paper-on-dark); }
@media (max-width: 56em) {
  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; gap: 6px; }
  .board .c64, .board .c62 { grid-column: span 2; grid-row: span 3; }
  .board .c62.heading { grid-row: span 2; }
  .board .c34, .board .c32 { grid-column: span 1; grid-row: span 2; }
  .board .cell { padding: 14px; }
  .board .c64 .el { font-size: 40px; } .board .c34 .el { font-size: 13px; } .board .c62 .el { font-size: 20px; } .board .c32 .el { font-size: 15px; } .board .cell .el { right: 14px; top: 14px; }
}

/* ---------- 6. Цены: два поля ---------- */
.plans { display: grid; grid-template-columns: 5fr 7fr; min-height: 90svh; }
.plan { padding: 40px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.2rem; }
.plan.pilot { background: var(--surface); color: var(--ink); }
.plan.sub { background: var(--ink); color: var(--paper-on-dark); }
.plan h2 { font-size: var(--step-head); }
.plan .who { font-size: var(--step-lead); max-width: 26ch; }
.plan .incl { max-width: 48ch; align-self: start; }
.plan .bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.plan .price { font-family: var(--font-display); font-weight: 600; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price small { display: inline-block; font-family: var(--font); font-size: var(--step-body); letter-spacing: 0; font-weight: 400; margin-left: 0.4em; }
.plan .price .from { font-size: 0.34em; letter-spacing: 0; font-family: var(--font); font-weight: 600; vertical-align: 0.25em; margin-right: 0.15em; }
.plan.sub .button { background: var(--accent); color: var(--accent-ink); }
.plan.pilot .button { background: var(--ink); color: var(--bg); }
.calc { display: grid; gap: 1rem; margin-top: 0.5rem; padding: 1.25rem 0 0; }
.calc label { display: grid; gap: 0.35rem; font-weight: 600; }
.calc output { font-weight: 600; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: #5a5a56; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; background: var(--accent); border-radius: 50%; border: 3px solid var(--paper-on-dark); }
.calc input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; background: var(--accent); border-radius: 50%; border: 3px solid var(--paper-on-dark); }
.calc .toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.calc .toggles label { flex-direction: row; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.6rem; padding: 0 0.9rem 0 0.7rem; background: #262626; color: var(--paper-on-dark); font-weight: 600; cursor: pointer; }
.calc .toggles input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); margin: 0; }
.calc .what { max-width: 48ch; }
@media (max-width: 56em) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 20px; min-height: 70svh; }
  .plan.sub { order: -1; }
  .plan .bottom { flex-direction: column; align-items: stretch; }
  .plan .bottom .button { width: 100%; }
  .calc .row { grid-template-columns: 1fr; }
}

/* ---------- 7. Вопросы: карточки с вкладками ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); overflow: clip; }
.faq h2 { grid-column: 3 / 11; font-size: var(--step-head); margin-bottom: 2.5rem; }
.faq .drawer { grid-column: 3 / 11; display: grid; }
.faq .card { --k: 0; --step: clamp(40px, 9vw, 150px); --tabw: clamp(120px, 20vw, 200px); --tab-x: calc(var(--k) * var(--step)); position: relative; padding: 50px 1.5rem 1.25rem; clip-path: polygon(var(--tab-x) 0, calc(var(--tab-x) + var(--tabw)) 0, calc(var(--tab-x) + var(--tabw)) 40px, 100% 40px, 100% 100%, 0 100%, 0 40px, var(--tab-x) 40px); }
.faq .card:nth-child(2) { --k: 1; } .faq .card:nth-child(3) { --k: 2; } .faq .card:nth-child(4) { --k: 3; } .faq .card:nth-child(5) { --k: 4; } .faq .card:nth-child(6) { --k: 5; }
.faq .card.c1 { background: var(--surface); } .faq .card.c2 { background: var(--stone); } .faq .card.c3 { background: var(--ink); color: var(--paper-on-dark); }
.faq .card summary { list-style: none; cursor: pointer; display: block; }
.faq .card summary::-webkit-details-marker { display: none; }
.faq .card .tab { position: absolute; left: calc(var(--tab-x) + 1rem); top: 10px; font-size: var(--step-small); font-weight: 600; }
.faq .card .q { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.3; min-height: 2.75rem; display: flex; align-items: center; }
.faq .card summary:hover .q { text-decoration: underline; text-underline-offset: 0.2em; }
.faq .card .a { max-width: 52ch; padding: 0.5rem 0 0.25rem; }
@media (max-width: 56em) {
  .faq h2, .faq .drawer { grid-column: 1 / 13; }
  .faq .card { padding: 46px 20px 20px; }
}

/* ---------- 8. Финал ---------- */
.cta { min-height: 88svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding: 40px var(--margin); }
.cta .close { grid-column: 1 / 7; align-self: end; }
.cta .close h2 { font-size: var(--step-head); max-width: 16ch; }
.cta .close p { margin-top: 1.25rem; max-width: 40ch; }
.cta .dialog { grid-column: 7 / 12; align-self: center; width: min(440px, 100%); justify-self: center; }
@media (max-width: 64em) { .cta .close { grid-column: 1 / 13; } }
@media (max-width: 56em) {
  .cta { grid-template-columns: 1fr; align-items: start; min-height: 84svh; padding: 24px var(--margin); row-gap: 2rem; }
  .cta .dialog { grid-column: 1; width: 100%; align-self: end; }
}

/* ---------- 9. Подвал ---------- */
.foot { background: var(--stone); padding: clamp(2rem, 4vw, 3.5rem) var(--margin) 2rem; }
.foot .big { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 12vw, 12rem); line-height: 0.9; letter-spacing: -0.02em; }
.foot .big .optic { width: 0.55em; height: 0.55em; }
.foot .big .optic::before { border-width: 0.06em; } .foot .big .optic::after { height: 0.06em; top: calc(50% - 0.03em); }
.foot .rows { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; margin-top: 48px; }
.foot .links { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; font-size: var(--step-small); }
.foot .links a { display: block; text-decoration: none; min-height: 2rem; }
.foot .links a:hover { color: var(--accent); }
.foot .contact { grid-column: 9 / 13; font-size: var(--step-small); display: grid; gap: 0.5rem; align-content: start; }
.foot .contact a { color: var(--accent); text-decoration: none; }
.foot .last { grid-column: 1 / 13; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; font-size: var(--step-small); flex-wrap: wrap; }
.foot .last .button { min-height: 2.6rem; font-size: var(--step-small); }
.foot .credits { grid-column: 1 / 13; font-size: var(--step-small); color: var(--muted); max-width: none; }
.foot .credits a { color: inherit; }
@media (max-width: 56em) { .foot .links { grid-column: 1 / 13; grid-template-columns: 1fr 1fr; } .foot .contact { grid-column: 1 / 13; } }

/* ---------- движение (контент виден без JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(22px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-rise].in { opacity: 1; transform: none; }
}

/* ---------- вкладки кейсов и перевод в ленте ---------- */
.feed .cases { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.feed .cases button { min-height: 2.5rem; padding: 0 0.9rem; font-weight: 600; font-size: var(--step-small); background: transparent; color: var(--ink); border: 1.5px solid var(--ink); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.feed .cases button:hover { background: var(--bg); }
.feed .cases button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.feed .rows { display: grid; gap: 6px; }
.feed .row .tr { font-size: var(--step-small); color: var(--muted); margin-top: 0.35rem; line-height: 1.45; }
.feed .row .tr b { color: var(--ink); font-weight: 600; }
.feed .row .src a { display: inline-block; padding: 0.25rem 0; color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }   /* зона нажатия не ниже 24 px */
.feed .row .tone-negative { color: var(--accent); } .feed .row .tone-positive { color: #1f6d3a; } .feed .row .tone-neutral { color: var(--muted); font-weight: 600; }
[data-ui] .quotes .tr { font-size: 13px; color: #555; }
[data-ui] .quotes .q > div > .q { font-family: var(--font-display); font-size: 15px; }
@media (max-width: 56em) { .feed .cases { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .feed .cases button { flex: none; } }

/* ---------- герой: заголовок в две строки на всех языках ---------- */
.hero { grid-template-columns: 1fr 1fr; }
.hero h1 { max-width: none; font-size: clamp(2.3rem, 0.6rem + 4.6vw, 4.5rem); }
html[lang="tr"] .hero h1, html[lang="az"] .hero h1 { font-size: clamp(2.1rem, 0.5rem + 4vw, 4rem); }
@media (max-width: 56em) { .hero { grid-template-columns: 1fr; } }

/* ---------- лента в герое: компактнее, герой не выше экрана ---------- */
.hero { min-height: auto; align-items: stretch; }
.hero .copy { justify-content: flex-start; padding-top: clamp(3rem, 12vh, 8rem); }
.hero .feed { padding-top: clamp(1.5rem, 5vh, 3rem); padding-bottom: 1.5rem; }
.feed .row { padding: 0.9rem 1.1rem; }
.feed .row .q { font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem); line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feed .row .tr { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed .rows .row:nth-child(n+4) { display: none; }
.hero h1 { font-size: clamp(2.3rem, 0.6rem + 4.2vw, 4.1rem); }
.board .f4 .el .pair span { color: #111; }
.board .f4 .el .pair span.tr { color: #fff; }
.spread .word p, .who p { color: var(--ink); }
.who .legend span::before { border: 1px solid #a9a9a2; }
@media (max-width: 56em) { .top > .button { display: none; } .top { gap: 0.75rem; } }
.feed .row .src b.tone-neutral { color: var(--muted); }
.feed .row .src b.tone-positive { color: #1f6d3a; }

/* язык ещё не применён (boot.js) — не показываем русский текст англоязычному гостю */
.i18n-wait body { visibility: hidden; }
