/* Коштар — посадкова. Світ Ordia: папір, тепле чорнило, кораловий знак, Onest.
   Своя деталь продукту — українська вишивка на міліметрівці: кошторисник працює
   на сітці, і вишивку шиють на сітці. Мотиви малює ornament.js із токенів нижче.
   Тема світла за замовчуванням; темна — лише за вибором (theme.js). */

@font-face { font-family: "Onest var"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/onest-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest var"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/onest-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Запасний шрифт із пропорціями Onest (виміряно на тексті сторінки, Onest 400/680 проти
   Arial/Arial Bold): поки Onest вантажиться, текст стоїть на тих самих рядках, і
   заміна шрифту нічого не зсуває (CLS). */
@font-face { font-family: "Onest fallback"; src: local("Arial"); font-weight: 100 599;
  size-adjust: 103.5%; ascent-override: 93.72%; descent-override: 29.47%; line-gap-override: 0%; }
@font-face { font-family: "Onest fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900;
  size-adjust: 98.85%; ascent-override: 98.13%; descent-override: 30.85%; line-gap-override: 0%; }

:root {
  --bg: #f3eee2; --surface: #fbf7ec; --raised: #fffdf8; --fg: #26231d; --body: #3a352c;
  --muted: #6d6656; --line: #e6ddca; --line-strong: #cdc3ab; --mark: #96482f; --on-mark: #fff;
  --ok: #4f6a43; --grid: rgba(38, 35, 29, .05); --grid-strong: rgba(38, 35, 29, .08);
  --band: #332f28; --band-fg: #f0ead9; --band-muted: #b3a992; --band-accent: #d5846a;
  --hl: rgba(214, 143, 38, .32);
  --sans: "Onest var", "Onest fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --shadow: 0 1px 2px rgba(38, 35, 29, .06), 0 24px 48px -24px rgba(38, 35, 29, .28);
  /* нитки вишивки: червона й чорна; поле зірок живе на темних смугах */
  /* нитка вишивки — тихий теплий сірий; корал лише в серці рожі і у вузлику */
  --stitch: #bdb19a; --stitch-deep: #968b76; --stitch-accent: #96482f; --ink: #26231d; --ink-fg: #f3eee2;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #211e19; --surface: #2a2620; --raised: #302b24; --fg: #f0ead9; --body: #ddd5c3;
  --muted: #a89f8c; --line: #3a352c; --line-strong: #55503f; --mark: #cf8265; --on-mark: #201c18;
  --ok: #9ab785; --grid: rgba(240, 234, 217, .045); --grid-strong: rgba(240, 234, 217, .075);
  --band: #191612; --hl: rgba(240, 180, 60, .30);
  --shadow: inset 0 1px 0 rgba(240, 234, 217, .05), 0 1px 2px rgba(0, 0, 0, .4), 0 28px 56px -28px rgba(0, 0, 0, .75);
  --stitch: #6b6352; --stitch-deep: #8a806b; --stitch-accent: #cf8265; --ink: #f0ead9; --ink-fg: #26231d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px;
  line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* Підвал завжди внизу вікна: коротка сторінка (контакти, 404, тема) розтягує main, і під підвалом не видно тла.
   Спільне для всіх сторінок Коштаря, що підключають цей файл. */
body { min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
::selection { background: var(--mark); color: var(--on-mark); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: 3px; }
.wrap { width: min(100% - 32px, 1160px); margin-inline: auto; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; font-weight: 620; }
p { margin: 0; text-wrap: pretty; }

/* ── навігація ── */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 98%, transparent);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
/* прокрутка як на ordia.agency (scroll.js): тінь після зсуву, на телефоні шапка йде вниз-з-дороги */
.nav.scrolled { box-shadow: 0 10px 28px -22px rgba(90, 70, 50, .5); }
:root[data-theme="dark"] .nav.scrolled { box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .8); }
@media (max-width: 640px) {
  .nav { transition: transform .28s var(--ease), box-shadow .25s var(--ease); }
  .nav.nav-away { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
/* Lenis володіє прокруткою, коли увімкнений — рідна плавна вимикається, щоб не сперечались */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
section[id] { scroll-margin-top: 76px; }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
/* шапка — лише «Коштар.»; «від Ordia.» живе тільки в підвалі */
.wordmark { font-weight: 730; font-size: 25px; letter-spacing: -.025em; line-height: 1; text-decoration: none; margin-right: auto; }
.wordmark i, .lockup i { font-style: normal; color: var(--mark); }
.lockup { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.lockup-name { font-weight: 730; font-size: 22px; letter-spacing: -.025em; }
.lockup-by { margin-top: 4px; font-size: 11.5px; font-weight: 520; }
.lockup-by b { font-weight: 730; letter-spacing: -.02em; }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg); cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease); }
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle .i { width: 17px; height: 17px; }
.theme-toggle .to-light, :root[data-theme="dark"] .theme-toggle .to-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .to-light { display: block; }
.links { display: flex; gap: 22px; font-size: 15px; }
.links a { text-decoration: none; color: var(--body); }
.links a:hover { color: var(--fg); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--ink-fg);
  text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 12px 20px; border-radius: 10px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .16s var(--ease), filter .2s, border-color .2s, background .2s; }
.btn:hover { filter: brightness(1.28); transform: translateY(-1px); }
.btn:active { transform: scale(.975); }
.btn-sm { font-size: 14.5px; padding: 9px 16px; }
.btn-quiet { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn-quiet:hover { filter: none; border-color: var(--line-strong); }

/* Ширини текстів — в em, не в ch: ch міряється цифрою 0 поточного шрифту, і коли Onest
   приходить після першого малювання, рядки переносяться інакше (CLS). em = ch × 0,66 для Onest. */
/* ── перший екран: текст ліворуч, телефон із живим чатом праворуч ── */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 680; max-width: 9.25em; }
.lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--body); max-width: 30.6em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.free { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--body); }
.free li { display: inline-flex; align-items: center; gap: 7px; }
.free .i { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.4; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats p { font-size: 14px; color: var(--muted); line-height: 1.35; }
.stats b { display: block; color: var(--fg); font-size: 26px; letter-spacing: -.02em; font-weight: 680; font-variant-numeric: tabular-nums; }

/* сцена: вишита рожа на колі міліметрівки, над нею — телефон */
.stage { position: relative; height: 700px; display: grid; place-items: center; }
.emblem { position: absolute; right: -170px; top: 50%; width: 440px; height: 440px; transform: translateY(-50%); pointer-events: none; }
.emblem::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-image: linear-gradient(var(--grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%); mask-image: radial-gradient(circle, #000 52%, transparent 70%); }
.emblem svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.phone { position: relative; z-index: 1; width: 320px; height: 660px; border-radius: 50px; background: #1f1c17; padding: 11px;
  box-shadow: inset 0 2px 0 #3a352c, 0 40px 80px -30px rgba(38, 35, 29, .55), 0 12px 24px -12px rgba(38, 35, 29, .35); }
.screen { position: relative; height: 100%; border-radius: 40px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 94px; height: 27px; border-radius: 14px; background: #1f1c17; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 15px 28px 0; height: 46px; font-size: 13px; font-weight: 650; }
.status svg { width: 38px; height: 12px; }
/* шапка чату: круглий знак «К.» і два рядки — назва та стан, по одній осі */
.chat-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); }
.chat-top .av { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ink); color: var(--ink-fg);
  display: grid; place-items: center; font-weight: 730; font-size: 17px; letter-spacing: -.03em; line-height: 1; white-space: nowrap; padding-left: 3px; }
.chat-top i { font-style: normal; color: var(--mark); }
.chat-top .av i { color: #d5846a; }
.who { display: grid; gap: 3px; line-height: 1; }
.who b { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.who small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.who small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.msgs { flex: 1; min-height: 0; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 9px; overflow: hidden;
  font-size: 12.5px; line-height: 1.45; scroll-behavior: smooth; }
.dim { color: var(--muted); font-weight: 400; }
/* літера джерела у відповіді: А, Б… */
.cm { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin: 0 2px 0 4px;
  border: 1px solid var(--mark); color: var(--mark); font-size: 11.5px; font-weight: 650; vertical-align: 2px; line-height: 1; }
.msg-q { align-self: flex-end; max-width: 86%; background: var(--ink); color: var(--ink-fg); padding: 8px 12px; border-radius: 16px 16px 4px 16px; }
.msg-a { align-self: flex-start; max-width: 94%; background: var(--raised); border: 1px solid var(--line); padding: 9px 11px;
  border-radius: 16px 16px 16px 4px; color: var(--body); }
.msg-a .cm { width: 16px; height: 16px; font-size: 9.5px; margin: 0 0 0 3px; }
.msg-src { margin-top: 7px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px dashed var(--line-strong);
  border-radius: 9px; background: var(--surface); font-size: 11px; }
.msg-src .cm { margin: 0; }
.msg-src .dim { margin-left: auto; }
.msg-steps { align-self: flex-start; display: grid; gap: 5px; padding: 2px 4px; font-size: 11.5px; color: var(--muted); }
.msg-steps span { display: flex; align-items: center; gap: 7px; }
.msg-steps span::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.msg-steps span.on::before { border-color: var(--muted); border-top-color: transparent; animation: spin .7s linear infinite; }
.msg-steps span.done { color: var(--body); }
.msg-steps span.done::before { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.3 5 8.2 9 4' fill='none' stroke='%23fbf7ec' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.inbar { display: flex; align-items: center; gap: 8px; margin: 6px 10px 24px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--raised); font-size: 12.5px; }
.inbar .txt { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbar .txt.typing { color: var(--fg); }
.inbar b { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ink); color: var(--ink-fg); display: grid; place-items: center; }
.inbar b .i { width: 14px; height: 14px; stroke-width: 2.4; }
.home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 112px; height: 4px; border-radius: 3px; background: var(--fg); opacity: .8; }
.appear { animation: appear .35s var(--ease) both; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── рушник: смуга між розділами ── */
.band { height: 56px; background-repeat: repeat-x; background-position: center; }

/* ── спільне для розділів ── */
.sub { margin-top: 12px; color: var(--body); font-size: 18px; max-width: 37.2em; }
.chip { display: inline-flex; align-items: center; gap: 7px; width: fit-content; font-size: 13.5px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); }
.chip .i { width: 15px; height: 15px; }
.qbubble { margin-left: auto; width: fit-content; max-width: 88%; background: var(--ink); color: var(--ink-fg);
  padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 15px; line-height: 1.45; }
.clause { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px dashed var(--line-strong);
  border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.clause .cm { margin: 0; }
.clause .dim { margin-left: auto; }
.ok-dot { width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.7 12 13 6.4' fill='none' stroke='%23fbf7ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mini { border: 1px solid var(--line); background: var(--raised); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.mini-input { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.mini-send { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--ink-fg); display: grid; place-items: center; flex: none; }
.mini-send .i { width: 16px; height: 16px; stroke-width: 2.2; }

/* ── як працює: кроки ліворуч, екран продукту праворуч (walkthrough.js) ── */
.how { padding: clamp(72px, 10vw, 128px) 0; }
.walk { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-top: 48px; }
.walk-steps { display: grid; gap: 8px; }
.walk-step { position: relative; text-align: left; font: inherit; color: inherit; background: none; border: 0;
  border-radius: 0 14px 14px 0; border-left: 4px solid var(--line); padding: 18px 20px 18px 26px; cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease); }
/* прогрес кроку: товста лінія зліва заповнюється, поки крок показується (walkthrough.js) */
.walk-step::before { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--fg);
  transform: scaleY(0); transform-origin: top; }
.walk-step[aria-selected="true"]::before { transform: scaleY(1); }
.walk.is-playing .walk-step[aria-selected="true"]::before { animation: walk-fill var(--walk-ms, 5200ms) linear both; }
.walk.is-paused .walk-step[aria-selected="true"]::before { animation-play-state: paused; }
@keyframes walk-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.walk-step h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 20px; color: var(--muted); transition: color .2s var(--ease); }
.walk-step h3::after { content: "\2192"; font-size: 16px; opacity: 0; transform: translateX(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.walk-step p { margin-top: 8px; color: var(--body); display: none; max-width: 29.3em; }
/* поточний крок — піднята картка; наведений — лише темніший текст і стрілка */
.walk-step[aria-selected="true"] { background: var(--raised); box-shadow: var(--shadow); }
.walk-step[aria-selected="true"] h3 { color: var(--fg); }
.walk-step[aria-selected="true"] p { display: block; }
@media (hover: hover) and (pointer: fine) {
  .walk-step[aria-selected="false"]:hover h3 { color: var(--fg); }
  .walk-step[aria-selected="false"]:hover h3::after { opacity: 1; transform: none; }
}
.walk-step:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.walk-screen { min-height: 380px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 36px; display: grid; align-content: center; }
.walk-pane { display: none; gap: 16px; }
.walk-pane.is-on { display: grid; animation: appear .35s var(--ease) both; }
.walk-progress { font-size: 14.5px; gap: 10px; }
.walk-progress span::before { width: 14px; height: 14px; }
.pdf { max-width: 380px; background: #fffdf8; border: 1px solid var(--line); border-radius: 8px; padding: 24px 24px 20px; box-shadow: var(--shadow); }
.pdf .ln { height: 7px; border-radius: 4px; background: #ebe5d8; margin-top: 10px; }
.pdf .hl { margin-top: 10px; padding: 6px 8px 8px; border-radius: 6px; background: rgba(214, 143, 38, .14); }
.pdf .hl b { font-size: 11px; }
.pdf .hl .ln { background: rgba(184, 118, 26, .4); margin-top: 7px; }
.pdf-t { font-size: 12.5px; font-weight: 650; line-height: 1.35; color: #26231d; }
.pdf-s { font-size: 11.5px; color: #6d6656; margin-top: 3px; }

/* ── чому не звичайний ШІ-чат: дві відповіді поруч ── */
.versus { background: var(--surface); border-block: 1px solid var(--line); padding: clamp(64px, 9vw, 112px) 0; }
.pair { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.side { border-radius: 20px; padding: 28px; border: 1px solid var(--line); display: grid; gap: 14px; }
.side.them { border-style: dashed; }
.side.us { background: var(--raised); box-shadow: var(--shadow); }
.side h3 { font-size: 15px; }
.side h3 i { font-style: normal; color: var(--mark); }
.side .qbubble { font-size: 14px; }
.reply { font-size: 15px; line-height: 1.6; color: var(--body); }
.them .reply { color: var(--muted); }
.flag { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.flag::before { content: "?"; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.facts { display: grid; gap: 8px; }
.facts span { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }

/* ── база: полиця з книжками норм ── */
.base { padding: clamp(72px, 10vw, 128px) 0; }
.base-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: end; }
.legend { margin-top: 26px; display: grid; gap: 12px; }
.legend p { display: grid; grid-template-columns: 124px 1fr; gap: 16px; font-size: 15px; color: var(--body); padding-top: 12px; border-top: 1px solid var(--line); }
.legend b { color: var(--fg); }
.note { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.bookshelf { display: flex; align-items: flex-end; gap: 6px; padding: 0 16px; height: 330px; border-bottom: 10px solid #d9ccb3; }
.spine { height: var(--h); width: 44px; flex: none; border-radius: 4px 4px 1px 1px; background: #f7f1e4; color: #26231d; border: 1px solid #e1d7c3;
  display: flex; flex-direction: column; align-items: center; padding: 12px 0; box-shadow: inset -6px 0 0 rgba(38, 35, 29, .04); }
.spine i { width: 100%; height: 10px; margin-top: 8px; border-block: 1px solid #e1d7c3;
  background-image: radial-gradient(circle, var(--stitch) 1.2px, transparent 1.4px); background-size: 6px 10px; }
.spine span { writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg); font-size: 12.5px; font-weight: 650; white-space: nowrap; margin-top: auto; }
.spine.dark { background: #332f28; border-color: #332f28; color: #f0ead9; }
.spine.dark i { border-color: #4a443a; background-image: radial-gradient(circle, #8c8373 1.2px, transparent 1.4px); }
.spine.tilt { transform: rotate(-4deg); transform-origin: bottom left; margin-left: 8px; }

/* ── хто ми: темна оболонка з паперовою карткою, як на ordia.agency ── */
.about { --about-bg: #332f28; background: var(--about-bg); padding: clamp(24px, 4vw, 40px); }
.about-paper { max-width: 1160px; margin: 0 auto; background: #efe5d0; color: #26231d; border-radius: 22px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.about-paper h2 { max-width: 13.2em; }
.about-paper p { margin-top: 16px; color: #4a4436; max-width: 37.2em; font-size: 17px; }
.about-paper a { text-decoration: underline; text-decoration-color: #b3a992; }
.about-mark { font-size: clamp(48px, 6vw, 72px); font-weight: 730; letter-spacing: -.04em; line-height: .9; }
.about-mark i { font-style: normal; color: #96482f; }
:root[data-theme="dark"] .about { --about-bg: #191612; }

/* ── питання: як FAQ на ordia.agency ── */
.faq-sec { padding: clamp(64px, 9vw, 112px) 0; }
.faq-split { display: grid; grid-template-columns: .64fr 1fr; gap: 36px 64px; align-items: start; }
.faq-aside { position: sticky; top: 96px; }
.eyebrow { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.faq-aside h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 0 0 14px; }
.faq-aside p { color: var(--muted); font-size: 15px; margin: 0 0 22px; max-width: 22.6em; }
.faq-cta { display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; letter-spacing: .02em;
  text-decoration: none; color: var(--ink-fg); background: var(--ink); border-radius: 999px; padding: 12px 20px; transition: transform .12s var(--ease); }
.faq-cta::after { content: "\2192"; transition: transform .18s var(--ease); }
.faq-cta:hover::after { transform: translateX(3px); }
.faq-cta:active { transform: scale(.97); }
:root { interpolate-size: allow-keywords; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 21px 4px; display: flex; justify-content: space-between; gap: 22px;
  align-items: center; font-size: 17px; letter-spacing: -.01em; font-weight: 650; transition: color .18s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--mark); }
.faq summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 5px; }
.faq summary .ic { flex: none; width: 20px; height: 20px; position: relative; }
.faq summary .ic::before, .faq summary .ic::after { content: ""; position: absolute; border-radius: 2px; background: var(--muted);
  transition: transform .28s var(--ease), background .18s var(--ease); }
.faq summary .ic::before { top: 50%; left: 1px; right: 1px; height: 1.6px; transform: translateY(-50%); }
.faq summary .ic::after { left: 50%; top: 1px; bottom: 1px; width: 1.6px; transform: translateX(-50%); }
.faq details[open] summary .ic::after { transform: translateX(-50%) scaleY(0); }
.faq details[open] summary .ic::before { background: var(--mark); }
.faq .ans { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.62; max-width: 41.2em; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .32s var(--ease), content-visibility .32s var(--ease) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ── останній заклик: панель із вишитими краями ── */
.last { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 104px); }
.last-box { position: relative; max-width: 900px; margin: 0 auto; padding: 88px 40px; text-align: center; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.last-box .band { position: absolute; left: 0; right: 0; height: 30px; }
.band-top { top: 20px; } .band-bottom { bottom: 20px; }
.last-box .sub { margin-inline: auto; }
.last-box .cta { justify-content: center; }
.last-box .free { justify-content: center; }


/* ── темна тема: глибина й читабельність ──
   Одна плоска темрява робила сторінку «сирою»: телефон зливався з тлом, темні
   книжки зникали, папір сліпив. Тут — шари поверхонь, тонкий верхній відблиск
   на картках, теплий світловий ореол за телефоном і приглушений папір. */
:root[data-theme="dark"] body { background: radial-gradient(1200px 600px at 78% 8%, #2a251f 0%, transparent 60%), var(--bg); }
:root[data-theme="dark"] .hero::after { content: ""; position: absolute; z-index: 0; right: 4%; top: 12%; width: 640px; height: 640px; pointer-events: none;
  background: radial-gradient(circle, rgba(207, 130, 101, .10), transparent 62%); }
:root[data-theme="dark"] .phone { background: linear-gradient(145deg, #57504a 0%, #2f2b26 42%, #3d3832 100%);
  box-shadow: inset 0 0 0 1px rgba(240, 234, 217, .16), inset 0 2px 0 rgba(240, 234, 217, .12),
    0 0 0 1px rgba(0, 0, 0, .5), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(207, 130, 101, .18); }
:root[data-theme="dark"] .screen { background: #1b1814; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .island { background: #0b0a08; }
:root[data-theme="dark"] .chat-top { border-bottom-color: #2c2821; }
:root[data-theme="dark"] .msg-a { background: #26221d; border-color: #35302a; }
:root[data-theme="dark"] .msg-src { background: #1f1c17; }
:root[data-theme="dark"] .inbar { background: #26221d; border-color: #3a352c; }
:root[data-theme="dark"] .chat-top .av { background: #e9e2d3; color: #1b1814; }
:root[data-theme="dark"] .chat-top .av i { color: #96482f; }

:root[data-theme="dark"] .walk-screen, :root[data-theme="dark"] .side.us, :root[data-theme="dark"] .last-box {
  background: linear-gradient(180deg, #2c2822, #26221d); border-color: #3a352c; box-shadow: var(--shadow); }
:root[data-theme="dark"] .versus { background: #1d1a16; border-color: #2c2821; }
:root[data-theme="dark"] .side.them { border-color: #3a352c; }
:root[data-theme="dark"] .mini, :root[data-theme="dark"] .chip { background: #211e19; border-color: #3a352c; }
:root[data-theme="dark"] .clause { background: #211e19; border-color: #4a443a; }
:root[data-theme="dark"] .pdf { background: #e6ded0; border-color: #cfc5b2; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .pdf .ln { background: #d3c9b6; }

:root[data-theme="dark"] .bookshelf { border-bottom-color: #5a5244; }
:root[data-theme="dark"] .spine { background: #d9d0bf; border-color: #c4b9a4; color: #26231d; box-shadow: inset -6px 0 0 rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .spine i { border-color: #c4b9a4; }
:root[data-theme="dark"] .spine.dark { background: #4a443a; border-color: #5d5647; color: #f0ead9; box-shadow: inset 1px 0 0 rgba(240, 234, 217, .08); }
:root[data-theme="dark"] .spine.dark i { border-color: #5d5647; }

:root[data-theme="dark"] .qbubble, :root[data-theme="dark"] .msg-q { background: #e9e2d3; color: #1b1814; }
:root[data-theme="dark"] .btn-quiet { background: #26221d; border-color: #3a352c; }
:root[data-theme="dark"] .nav { background: color-mix(in srgb, #1d1a16 82%, transparent); border-bottom-color: #2c2821; }

/* ── підвал: темний каталог, як на ordia.agency (ті самі значення) ── */
.foot { background: #332f28; color: #f0ead9; font-size: 14px; padding: 38px 0 28px;
  --foot-muted: #b3a992; --foot-line: #4a443a; --foot-accent: #d5846a; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
.foot-col h2 { margin: 0 0 2px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--foot-muted); }
.foot-col a { color: #f0ead9; text-decoration: none; line-height: 1.35; min-height: 24px; display: inline-flex; align-items: center;
  transition: color .16s var(--ease); }
.foot-col a:hover { color: var(--foot-accent); }
/* логотип і правовий рядок на одній базовій лінії з «Коштар.»; «від Ordia.» — підпис під знаком */
.foot-end { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--foot-line); }
.foot .lockup { color: #f0ead9; }
.foot .lockup i { color: var(--foot-accent); }
.foot .lockup-by { color: var(--foot-muted); }
.foot-legal { color: var(--foot-muted); font-size: 12.5px; }
.to-top { display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; align-self: center; border-radius: 999px;
  border: 1px solid var(--foot-line); color: var(--foot-muted); transition: color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease); }
.to-top:hover { color: #f0ead9; border-color: var(--foot-accent); transform: translateY(-2px); }
.to-top .i { width: 16px; height: 16px; }
:root[data-theme="dark"] .foot { background: #191612; }

@media (max-width: 960px) {
  .hero-grid, .walk, .pair, .base-grid, .faq-split { grid-template-columns: 1fr; gap: 40px; }
  .emblem { right: 50%; transform: translate(50%, -50%); }
  .faq-aside { position: static; }
  .about-paper { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .links { display: none; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { height: 600px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .stats b { font-size: 21px; }
  .stats p { font-size: 13px; }
  .phone { transform: scale(.88); }
  .cta { flex-direction: column; }
  .last-box { padding: 72px 20px; }
  .bookshelf { gap: 4px; padding: 0 8px; height: 300px; }
  .spine { width: 24px; }   /* 12 корінців × 24 + проміжки вміщаються в 358 px екрана телефона */
  .spine span { font-size: 10.5px; }
  .clause { flex-wrap: wrap; }
  .clause b { white-space: nowrap; }
  .clause .dim { flex-basis: 100%; margin-left: 0; }
  .cta .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
