/* KORNI — сайт семейной книги. Направление «Журнал» (этап 2, утверждено 03.12.2026):
   чистый светлый фон, гротеск Inter, книжная антиква только внутри книги, один акцент — бордовый.
   Без внешних ресурсов. Встроенные стили и скрипты запрещены CSP — всё здесь. */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Книжная антиква — только внутри демо-книги: PT Serif (ParaType, лицензия OFL), хранится в папке сайта.
   Literata ниже — запасной вариант. */
@font-face {
  font-family: "KSerif";
  src: url("/static/fonts/ptserif-cyrillic-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "KSerif";
  src: url("/static/fonts/ptserif-latin-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KSerif";
  src: url("/static/fonts/ptserif-cyrillic-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "KSerif";
  src: url("/static/fonts/ptserif-latin-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("/static/fonts/literata-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  src: url("/static/fonts/literata-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("/static/fonts/literata-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #ffffff;      /* фон страницы */
  --paper-2: #f4f3f1;    /* светлые секции */
  --stone: #e3e1dc;      /* стол под книгой, пока нет фото */
  --ink: #111111;
  --ink-2: #33322e;
  --ink-3: #6f6d68;      /* второстепенный текст (контраст 5:1) */
  --line: #dddbd6;
  --accent: #7a1c26;     /* бордовый — единственный акцент */
  --accent-2: #5e141d;
  --focus: #7a1c26;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --book: "KSerif", "PT Serif", "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1600px;
  --pad: 64px;
  --section: clamp(96px, 11vw, 168px);
  --gap: 24px;
}
@media (max-width: 1200px) { :root { --pad: 40px; } }
@media (max-width: 760px) { :root { --pad: 20px; --gap: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
p, h1, h2, h3, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--sans); color: inherit; }
h1 { font: 560 clamp(48px, 5.7vw, 104px)/.92 var(--sans); letter-spacing: -.055em; }
h2 { font: 560 clamp(38px, 4.6vw, 76px)/.95 var(--sans); letter-spacing: -.05em; }
h3 { font: 560 clamp(22px, 1.9vw, 28px)/1.08 var(--sans); letter-spacing: -.035em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 880px; }
.section { padding: var(--section) 0 0; }

/* Метка раздела: жирная линейка сверху, капитель слева, серая подпись справа */
.rule-label { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-top: 14px; border-top: 2px solid var(--ink);
  font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.rule-label span + span { color: var(--ink-3); font-weight: 500; letter-spacing: .08em; text-align: right; }
.rule-line { border-top: 2px solid var(--ink); }
.eyebrow { font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px; }

.lead { font: 400 20px/1.45 var(--sans); letter-spacing: -.01em; color: var(--ink); max-width: 24em; }
.fine { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.note { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--ink-3); max-width: 26em; }
.demo-note { font: 400 13px/1.45 var(--sans); color: var(--ink-3); }
.n { font: 600 12px/1 var(--sans); color: var(--accent); letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* Заголовок раздела: слева крупно, справа абзац */
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 40px; align-items: end; }
.sec-head h2 { grid-column: 1 / 7; }
.sec-head p { grid-column: 8 / 12; font: 400 18px/1.5 var(--sans); color: var(--ink-2); }
@media (max-width: 1100px) { .sec-head h2, .sec-head p { grid-column: 1 / 13; } .sec-head p { margin-top: 18px; } }
.section > .wrap > h2 { margin-top: 40px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 56px; padding: 16px 22px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font: 600 15px/1.2 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-2); color: #fff; }
.btn-arrow { display: flex; justify-content: space-between; text-align: left; }
.btn-arrow::after { content: "→"; font-weight: 400; }
.btn-small { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-link { background: none; border: 0; color: var(--ink-3); font: 500 15px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 10px; }
.link-under { display: inline-block; font: 500 15px/1.2 var(--sans); text-decoration: underline; text-underline-offset: 5px; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow::after { content: " →"; }
.link-arrow.back::after { content: ""; }
.link-arrow.back::before { content: "← "; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { font: 700 22px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a, .header-cta { font: 500 14px/1 var(--sans); text-decoration: none; }
.header-cta { color: var(--accent); white-space: nowrap; }
.header-cta:hover { text-decoration: underline; }
@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 760px) { .header-row { min-height: 60px; } }

/* ---------- 1. Первый экран ---------- */
.hero { padding-top: 8px; padding-bottom: 0; }
.hero h1 { margin-top: clamp(28px, 4.4vh, 56px); max-width: 12em; }
.hero-row { margin-top: clamp(36px, 6vh, 72px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.hero-text { grid-column: 1 / 5; display: flex; flex-direction: column; }
.buy { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ink); }
.hero-price { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hero-price strong { font: 560 46px/1 var(--sans); letter-spacing: -.045em; }
.hero-price span { font: 500 14px/1.3 var(--sans); text-align: right; max-width: 9em; }
.buy .btn { margin-top: 20px; width: 100%; }
.buy .link-under { margin-top: 14px; }
.hero-visual { grid-column: 6 / 13; }

/* Стол с книгой. Без фото — ровный светло-серый фон. Фото: static/img/gen/ (content.yaml → images) */
.table { position: relative; overflow: hidden; background: var(--stone); height: clamp(380px, calc(100vh - 440px), 600px); }
.table picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.on-table { position: absolute; z-index: 2; left: 5%; bottom: 8%; width: 63%; }
.on-table .spread { box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 4px 10px rgba(0,0,0,.08), 0 30px 46px -16px rgba(0,0,0,.34); }
.cover-on-table { position: absolute; z-index: 2; right: 6%; bottom: 8%; width: 19%; }
.cover-on-table .cover { box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 4px 10px rgba(0,0,0,.08), 0 24px 40px -16px rgba(0,0,0,.34); }
.fig-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 14px; align-items: baseline; }
.fig-cap .t { font: 400 14px/1.4 var(--sans); color: var(--ink-2); }

@media (max-width: 1100px) {
  .hero-text { grid-column: 1 / 13; } .buy { margin-top: 36px; max-width: 520px; }
  .hero-visual { grid-column: 1 / 13; margin-top: 44px; }
}
@media (max-width: 760px) {
  .rule-label span + span { display: none; }
  .hero h1 { font-size: clamp(40px, 12vw, 52px); letter-spacing: -.05em; }
  .hero-row { display: block; }
  .hero-visual { margin: 36px calc(var(--pad) * -1) 0; }
  .table { height: auto; aspect-ratio: 4 / 5; }
  .on-table { left: 5%; width: 90%; bottom: 6%; }
  .cover-on-table { right: 5%; bottom: auto; top: 9%; width: 28%; }
  .fig-cap { padding: 0 var(--pad); }
}

/* ---------- 2. Что внутри ---------- */
.book { padding: clamp(110px, 12vw, 180px) 0 0; }
.item { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(96px, 11vw, 170px); align-items: start; }
.item-cap { grid-column: 1 / 4; position: sticky; top: 96px; padding-right: 24px; }
.item-cap h3 { margin-top: 14px; }
.item-cap p:last-child { margin-top: 14px; font: 400 16px/1.55 var(--sans); color: var(--ink-2); }
.item-fig { grid-column: 4 / 13; }
.item--r .item-cap { grid-column: 10 / 13; grid-row: 1; padding: 0 0 0 24px; }
.item--r .item-fig { grid-column: 1 / 10; grid-row: 1; }
.item-fig .spread { box-shadow: 0 0 0 1px #e6e6e6, 0 40px 70px -40px rgba(0,0,0,.3); }
.book-photo { width: 100%; }
.scroll-hint { display: none; }

.quote { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(110px, 12vw, 190px); align-items: end; }
.quote-img { grid-column: 1 / 6; }
.quote-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.quote-img .demo-note { margin-top: 10px; }
.quote blockquote { grid-column: 7 / 12; font: 400 clamp(28px, 2.9vw, 44px)/1.14 var(--book); letter-spacing: -.02em; }
.quote--solo blockquote { grid-column: 4 / 11; }
.quote cite { display: block; margin-top: 20px; font: 500 13px/1.4 var(--sans); font-style: normal; color: var(--ink-3); }
.quote cite b { color: var(--accent); font-weight: 600; margin-right: 10px; }

.band { margin: clamp(110px, 12vw, 190px) 0 0; }
.band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; background: var(--stone); }
.band .demo-note { margin-top: 10px; }
.book-note { margin-top: 48px; max-width: 46em; font: 400 14px/1.55 var(--sans); color: var(--ink-3); }

@media (max-width: 1100px) {
  .item-cap, .item--r .item-cap { grid-column: 1 / 13; grid-row: 1; position: static; max-width: 36em; padding: 0; }
  .item-fig, .item--r .item-fig { grid-column: 1 / 13; grid-row: 2; margin-top: 28px; }
  .quote-img { grid-column: 1 / 8; } .quote blockquote, .quote--solo blockquote { grid-column: 1 / 13; margin-top: 28px; }
}
@media (max-width: 760px) {
  .item-fig { overflow-x: auto; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad) 12px; }
  .item-fig .spread { width: 720px; max-width: none; }
  .item-fig .book-photo { width: 100%; }
  .scroll-hint { display: block; margin-top: 10px; font: 500 12px/1.3 var(--sans); color: var(--ink-3); }
  .quote-img { grid-column: 1 / 13; }
  .band img { aspect-ratio: 4 / 3; }
}

/* ---------- 3. Для кого: строки с линейками ---------- */
.rows { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows .n { grid-column: 1 / 2; }
.rows h3 { grid-column: 2 / 7; }
.rows p { grid-column: 7 / 12; font: 400 17px/1.55 var(--sans); color: var(--ink-2); }
.after-rows { margin-top: 32px; }
@media (max-width: 860px) {
  .rows li { grid-template-columns: 44px 1fr; row-gap: 10px; }
  .rows .n { grid-column: 1; } .rows h3, .rows p { grid-column: 2; }
}

/* «Для кого» с фото слева */
.aud-body h2 { margin-top: 40px; }
.aud--img { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 40px; align-items: start; }
.aud-img { grid-column: 1 / 5; position: sticky; top: 96px; }
.aud-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.aud-img .demo-note { margin-top: 10px; }
.aud--img .aud-body { grid-column: 6 / 13; }
.aud--img .aud-body h2 { margin-top: 0; }
.aud--img .rows li { grid-template-columns: 48px 1fr 1.2fr; }
.aud--img .rows .n { grid-column: 1; } .aud--img .rows h3 { grid-column: 2; } .aud--img .rows p { grid-column: 3; }
@media (max-width: 1000px) {
  .aud-img, .aud--img .aud-body { grid-column: 1 / 13; }
  .aud-img { position: static; max-width: 460px; }
  .aud--img .aud-body { margin-top: 48px; }
  .aud--img .rows li { grid-template-columns: 44px 1fr; }
  .aud--img .rows h3, .aud--img .rows p { grid-column: 2; }
}

/* ---------- 4. Как создаётся ---------- */
.steps { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--gap); }
.steps li { padding-top: 18px; border-top: 1px solid var(--ink); }
.steps h3 { margin-top: 18px; font-size: 22px; }
.steps p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 22em; }
.aside { margin-top: clamp(40px, 5vw, 64px); padding-left: 18px; border-left: 2px solid var(--accent); max-width: 40em; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; row-gap: 28px; } }

/* Пара фото в «Как создаётся» */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(48px, 6vw, 88px); }
.pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone); }
.pair .demo-note { margin-top: 10px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Видео */
.video-frame { margin-top: 40px; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #111; }
.video-frame .demo-note { margin-top: 10px; }

/* ---------- 5. Карта поиска ---------- */
.map-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 40px; align-items: start; }
.map-text { grid-column: 1 / 6; }
.map-text .lead { margin-top: 24px; }
.map-art { grid-column: 7 / 13; background: var(--paper-2); padding: clamp(28px, 5vw, 72px); }
.map-art .demo-note { margin-top: 16px; }
.ruled { margin: 28px 0; border-top: 1px solid var(--ink); max-width: 36em; }
.ruled li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.ruled strong { color: var(--ink); font-weight: 600; }
.caveat { font: 400 18px/1.5 var(--sans); max-width: 30em; }
.map-text .fine { margin-top: 14px; max-width: 32em; }
.map-text .btn { margin-top: 32px; }
@media (max-width: 1100px) { .map-text, .map-art { grid-column: 1 / 13; } .map-art { margin-top: 48px; } }
@media (max-width: 760px) { .map-art { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 28px var(--pad); } }

/* Лист «Карта поиска» (пример, вымышленная семья) */
.sheet { container-type: inline-size; background: #fff; color: #1d1d1d; padding: 7cqw 7cqw 6cqw; max-width: 560px; margin: 0 auto;
  box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 30px 50px -30px rgba(0,0,0,.3); }
.sh-top { display: flex; justify-content: space-between; font: 600 2.1cqw/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.sh-top span + span { color: var(--accent); }
.sh-title { margin-top: 7cqw; font: 400 6.4cqw/1.05 var(--book); letter-spacing: -.01em; }
.sh-sub { margin-top: 1.6cqw; font: 400 2.5cqw/1.4 var(--sans); color: var(--ink-3); }
.sh-lines { margin-top: 5cqw; border-top: 1px solid #1d1d1d; }
.sh-lines li { display: grid; grid-template-columns: 17cqw 1fr auto; gap: 3cqw; align-items: baseline; padding: 2.4cqw 0; border-bottom: 1px solid var(--line); }
.sh-lines b { font: 600 2.6cqw/1.3 var(--sans); }
.sh-lines span { font: 400 2.7cqw/1.4 var(--book); color: var(--ink-2); }
.sh-p { font: 600 1.9cqw/1.3 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.sh-p--hi { color: #1d1d1d; } .sh-p--lo { color: var(--accent); }
.sh-cols { margin-top: 5cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; }
.sh-h { font: 600 2cqw/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.sh-cols p + p { margin-top: 1.4cqw; font: 400 2.7cqw/1.45 var(--book); color: var(--ink-2); }
.sh-foot { margin-top: 6cqw; padding-top: 2.4cqw; border-top: 1px solid var(--line); font: 400 2.2cqw/1.4 var(--sans); color: var(--ink-3); }

/* ---------- 6. Цена ---------- */
.price-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 40px; }
.price-grid > div:first-child { grid-column: 1 / 6; }
.price-grid > div:last-child { grid-column: 7 / 13; }
.amount { margin-top: clamp(24px, 3vw, 48px); font: 560 clamp(88px, 11vw, 176px)/.85 var(--sans); letter-spacing: -.06em; }
.price-sub { margin-top: 24px; font: 400 18px/1.5 var(--sans); color: var(--ink-2); max-width: 22em; }
.price-grid .ruled { margin-top: 0; }
.price-grid .fine { margin-top: 18px; }
.price-grid .btn { margin-top: 32px; }
.guarantee { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(56px, 7vw, 104px); padding-top: 22px; border-top: 2px solid var(--accent); }
.g-label { grid-column: 1 / 4; font: 600 12px/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.g-text { grid-column: 4 / 12; font: 500 clamp(24px, 2.6vw, 38px)/1.2 var(--sans); letter-spacing: -.03em; }
@media (max-width: 1000px) {
  .price-grid > div:first-child, .price-grid > div:last-child { grid-column: 1 / 13; }
  .price-grid > div:last-child { margin-top: 40px; }
  .g-label, .g-text { grid-column: 1 / 13; } .g-text { margin-top: 12px; }
}

/* ---------- 7. Вопросы ---------- */
/* Методология — тёмный «слайд» после книги */
.method { margin-top: var(--section); padding: 72px 0 var(--section); background: #141414; color: #ecebe8; }
.method .rule-label { border-color: #ecebe8; }
.method-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 40px; align-items: end; }
.method-head h2 { grid-column: 1 / 8; font-size: clamp(40px, 5.6vw, 92px); }
.method-head .lead { grid-column: 8 / 13; color: #cfcdc8; font-size: 19px; }
.method-list { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); margin-top: 72px; }
.method-list li { border-top: 1px solid rgba(236, 235, 232, .35); padding-top: 20px; }
.method-list .n { color: #c98a91; }
.method-list h3 { margin-top: 18px; color: #fff; }
.method-list p { margin-top: 14px; color: #bdbab4; font-size: 16px; line-height: 1.5; }
.marks { margin-top: 72px; }
.marks-title { font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #9c9993; }
.marks ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.mark { border: 1px solid rgba(236, 235, 232, .25); border-radius: 12px; padding: 18px 18px 20px; }
.mark b { display: block; font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.mark span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: #bdbab4; }
.mark--1 b { color: #fff; } .mark--2 b { color: #e0a3aa; } .mark--3 b { color: #cfcdc8; } .mark--4 b { color: #8f8c86; }
@media (max-width: 1100px) {
  .method-head h2, .method-head .lead { grid-column: 1 / 13; } .method-head .lead { margin-top: 22px; }
  .method-list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .marks ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .method { padding-top: 48px; }
  .method-list, .marks ul { grid-template-columns: 1fr; }
  .method-list { margin-top: 48px; } .marks { margin-top: 48px; }
}

/* Сравнение */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp { width: 100%; margin-top: 56px; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.cmp thead th { border-top: 2px solid var(--ink); font: 600 13px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 16px; }
.cmp thead th:first-child { width: 16%; }
.cmp tbody th { font-weight: 600; color: var(--ink); }
.cmp td { color: var(--ink-2); }
.cmp .ours { background: var(--paper-2); padding-left: 20px; color: var(--ink); }
.cmp thead .ours { color: var(--accent); border-radius: 12px 12px 0 0; }
.cmp tbody tr:last-child .ours { border-radius: 0 0 12px 12px; }
.cmp tbody td.ours { font-weight: 500; }
.cmp-note { margin-top: 18px; }
@media (max-width: 760px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp thead { display: none; }
  .cmp tr { margin-top: 28px; border-top: 2px solid var(--ink); }
  .cmp tbody th { padding: 14px 0 6px; border: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
  .cmp td { padding: 10px 0; border-top: 1px solid var(--line); }
  .cmp td::before { content: attr(data-col); display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
  .cmp td.ours { padding: 12px 14px; border-radius: 12px; border-top: 0; margin-top: 6px; }
  .cmp td.ours::before { color: var(--accent); }
}

/* Подарок */
.gift-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 40px; align-items: center; }
.gift-text { grid-column: 1 / 7; }
.gift-text .lead { margin-top: 28px; }
.gift-text .btn { margin-top: 8px; }
.gift-card { grid-column: 8 / 13; background: var(--paper-2); border-radius: 16px; padding: 48px; }
.gc-in { background: #fff; border: 1px solid var(--line); aspect-ratio: 7 / 5; padding: 9% 10%; display: flex; flex-direction: column; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.gc-brand { font: 600 12px/1 var(--sans); letter-spacing: .3em; }
.gc-kind { margin-top: auto; font: 600 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.gc-name { margin-top: 10px; font: 400 clamp(26px, 2.6vw, 40px)/1.05 var(--book); }
.gc-text { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.gc-lines { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 14px; margin-top: 9%; }
.gc-lines dt { font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.gc-lines dd { margin: 18px 0 0; border-bottom: 1px solid var(--ink); }
@media (max-width: 1000px) {
  .gift-text, .gift-card { grid-column: 1 / 13; }
  .gift-card { margin-top: 40px; padding: 28px; }
}
@media (max-width: 480px) { .gift-card { padding: 18px; } }


.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 40px; }
.faq-grid h2 { grid-column: 1 / 5; align-self: start; position: sticky; top: 96px; }
.faq-list { grid-column: 6 / 13; border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 500 19px/1.35 var(--sans); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 26px/1 var(--sans); color: var(--ink-3); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 40em; }
@media (max-width: 1000px) { .faq-grid h2, .faq-list { grid-column: 1 / 13; position: static; } .faq-list { margin-top: 32px; } }

/* ---------- 8. Заявка ---------- */
.final { margin-top: var(--section); padding-bottom: var(--section); background: #141414; color: #ecebe8; }
.final .rule-label { border-color: #ecebe8; }
.final .lead { color: #cfcdc8; margin-top: 28px; }
.final-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 40px; align-items: start; }
.final-grid > div:first-child { grid-column: 1 / 6; }
.final-grid > .lead-form { grid-column: 7 / 13; }
.final-steps { margin-top: 36px; counter-reset: s; }
.final-steps li { counter-increment: s; padding: 14px 0 14px 44px; border-top: 1px solid rgba(236, 235, 232, .22); position: relative; font-size: 16px; }
.final-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 600 12px/1.5 var(--sans); color: #c98a91; }
@media (max-width: 1000px) { .final-grid > div:first-child, .final-grid > .lead-form { grid-column: 1 / 13; } .final-grid > .lead-form { margin-top: 44px; } }

.lead-form { background: #fff; color: var(--ink); padding: clamp(24px, 4vw, 44px); }
.lead-form.closed p { font-size: 18px; line-height: 1.5; margin-bottom: 18px; }
.lead-form.closed .btn { margin: 6px 10px 0 0; }
.submit-note { text-align: center; font-size: 14px; color: var(--ink-3); margin: 12px 0 0; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 500; margin-bottom: 8px; font-size: 15px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #c9c7c2; border-radius: 10px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(17, 17, 17, .1); }
.hint { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.err { font-size: 14px; color: var(--accent); margin: 6px 0 0; font-weight: 500; }
.has-error input { border-color: var(--accent); }
.form-error { background: #f6e6e7; color: var(--accent-2); padding: 12px 14px; margin-bottom: 18px; }
.dev-banner { background: #fff1c9; color: #5c4300; padding: 10px 12px; font-size: 14px; margin-bottom: 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex !important; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid #c9c7c2; background: #fff; font-weight: 400 !important; cursor: pointer; margin: 0 !important; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
[hidden] { display: none !important; }

/* Страница «спасибо», юридические страницы, 404 */
.page-simple main { padding-bottom: var(--section); }
.page-simple main h1 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 28px; }
.page-simple main p { margin-bottom: 1em; }
.page-simple .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.thanks-card { margin-bottom: 56px; }
.step2 { border: 1px solid var(--line); margin-bottom: 40px; }
.step2 h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.step2 .fine { margin-bottom: 24px; }
.done-note { font-size: 17px; }
.legal h2 { font-size: 26px; letter-spacing: -.03em; margin: 1.6em 0 .6em; }
.legal ul, .legal ol { padding-left: 1.2em; margin-bottom: 1em; list-style: disc; }
.legal li { margin-bottom: .4em; }

/* Подвал */
.site-footer { margin-top: 0; padding: 56px 0 120px; color: var(--ink-2); font-size: 14px; }
.site-footer .wrap { border-top: 2px solid var(--ink); padding-top: 24px; }
.footer-grid { display: grid; gap: 24px; }
.footer-grid p + p { margin-top: 8px; }
.footer-links { display: grid; gap: 8px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .site-footer { padding-bottom: 56px; } }
.page-simple .site-footer { display: none; }

/* Закреплённая кнопка на телефоне */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .2s, transform .2s; }
.sticky-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Демо-книга: обложка и развороты (из эскиза этапа 2) ---------- */
/* ---------- Книга: обложка ---------- */
.cover { container-type: inline-size; aspect-ratio: 1 / 1.414; position: relative; background: #ecebe7; color: #161616; }
.cv-in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 11cqw 10cqw 9cqw; }
.cv-top, .cv-bot { font: 500 4.1cqw/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.cv-names { display: flex; flex-direction: column; font: 400 12.6cqw/1.02 var(--book); letter-spacing: -.01em; }
.cv-bot { display: flex; justify-content: space-between; align-items: baseline; gap: 4cqw; font-size: 3.3cqw; letter-spacing: .1em; }
.cv-bot span:last-child { font-weight: 650; letter-spacing: .22em; }
.cover--wine { background: #5a1b23; color: #f1e9e6; }
.cover--white { background: #fbfbfa; }
.cover--stone { background: #dcdad5; }

/* ---------- Книга: разворот ---------- */
.spread { container-type: inline-size; position: relative; aspect-ratio: 1.414 / 1;
  display: grid; grid-template-columns: 1fr 1fr; background: #fcfcfb; color: #1d1d1d; }
.spread::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 45%, rgba(0,0,0,.035) 48.6%, rgba(0,0,0,.11) 50%,
    rgba(0,0,0,.035) 51.4%, transparent 55%); }
.spread .page { position: relative; padding: 5.2cqw 4.6cqw 5cqw; display: flex; flex-direction: column; min-width: 0; }
.spread .page-l { padding-right: 5.4cqw; }
.spread .page-r { padding-left: 5.4cqw; }
.spread .rh { font: 500 .92cqw/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8a8782; }
.spread .page-r .rh { text-align: right; }
.spread .pn { position: absolute; bottom: 2.6cqw; font: 500 .95cqw/1 var(--sans); color: #8a8782; }
.spread .page-l .pn { left: 4.6cqw; } .spread .page-r .pn { right: 4.6cqw; }

.spread .opener { margin-top: 9cqw; }
.spread .ch { font: 600 .95cqw/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #6a1f27; }
.spread .nm { margin-top: 1.6cqw; font: 400 3.5cqw/1.04 var(--book); letter-spacing: -.012em; max-width: 90%; }
.spread .yr { margin-top: 1.5cqw; font: 400 1.25cqw/1 var(--sans); letter-spacing: .04em; color: #55524d; }
.spread .q { margin-top: auto; margin-bottom: 3cqw; padding-left: 1.6cqw; border-left: 1px solid #6a1f27;
  font: italic 400 1.62cqw/1.38 var(--book); max-width: 92%; }
.spread .q cite { display: block; margin-top: 1cqw; font: 400 .95cqw/1.3 var(--sans); font-style: normal; color: #77746e; }
.spread .route { width: 100%; height: auto; margin-bottom: 1.6cqw; overflow: visible; }
.spread .route path { fill: none; stroke: #1d1d1d; stroke-width: 1; }
.spread .route .dash { stroke-dasharray: 3 4; stroke: #8a8782; }
.spread .route circle { fill: #1d1d1d; } .spread .route circle.o { fill: #fcfcfb; stroke: #1d1d1d; stroke-width: 1; }
.spread .route text { font: 500 10px var(--sans); fill: #55524d; letter-spacing: .02em; }
.spread .route text.y { fill: #6a1f27; font-weight: 600; }

.spread .bio { margin-top: 3.4cqw; display: grid; grid-template-columns: 1fr 9.6cqw; gap: 2.1cqw; }
.spread .txt { font: 400 1.3cqw/1.5 var(--book); text-align: justify; hyphens: auto; }
.spread .txt p + p { text-indent: 1.4em; }
.spread .txt sup, .spread .notes sup { font: 600 .78cqw/0 var(--sans); color: #6a1f27; vertical-align: .55em; margin-left: .1em; }
.spread .dropcap::first-letter { float: left; font: 400 3.9cqw/.82 var(--book); margin: .3cqw .7cqw 0 0; color: #1d1d1d; }
.spread .notes { font: 400 .9cqw/1.42 var(--sans); color: #55524d; }
.spread .notes p + p { margin-top: 1.6cqw; }
.spread .notes sup { margin: 0 .3em 0 0; }
.spread .mk { display: inline-block; margin-top: .5cqw; font: 600 .74cqw/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.spread .mk-doc { color: #1d1d1d; } .spread .mk-fam { color: #6a1f27; }
.spread .ctx { margin-top: auto; margin-bottom: 1.6cqw; padding-top: 1.4cqw; border-top: 1px solid #1d1d1d; display: grid; grid-template-columns: 9cqw 1fr; gap: 2cqw; }
.spread .ctx-h { font: 600 .9cqw/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.spread .ctx p:last-child { font: 400 1.12cqw/1.45 var(--book); color: #33312d; }

/* ---------- Книга: развороты этапа 2 (древо, география, документ, время, содержание) ---------- */
.spread .pg-k { margin-top: 5cqw; }
.spread .pg-title { margin-top: 1.2cqw; font: 400 2.5cqw/1.1 var(--book); letter-spacing: -.01em; }
.spread .pg-note { margin-top: auto; font: 400 .95cqw/1.45 var(--sans); color: #55524d; max-width: 92%; padding-bottom: 1.4cqw; }
.spread .mk-hyp { color: #55524d; } .spread .mk-unk { color: #8a8782; }

.spread .tree { width: 100%; height: auto; margin-top: 3cqw; }
.spread .tree .ln path { fill: none; stroke: #1d1d1d; stroke-width: .9; }
.spread .tree .bx rect { fill: #fcfcfb; stroke: #1d1d1d; stroke-width: .9; }
.spread .tree .bx rect.dash { stroke-dasharray: 3 3; stroke: #77746e; }
.spread .tree .bx rect.hl { stroke: #6a1f27; stroke-width: 1.8; }
.spread .tree text { text-anchor: middle; }
.spread .tree .nmt text { font: 500 10.5px var(--sans); fill: #1d1d1d; letter-spacing: -.01em; }
.spread .tree .yrt text { font: 400 8.6px var(--sans); fill: #77746e; }
.spread .legend { margin-top: 2cqw; display: flex; flex-wrap: wrap; align-items: center; gap: .6cqw 1.2cqw; font: 400 .9cqw/1.3 var(--sans); color: #55524d; }
.spread .lg { display: inline-block; width: 2.6cqw; height: 1.3cqw; border: 1px solid #1d1d1d; margin-right: -.4cqw; vertical-align: middle; }
.spread .lg-d { border-style: dashed; border-color: #77746e; } .spread .lg-h { border: 2px solid #6a1f27; }

.spread .m-list { margin-top: auto; margin-bottom: 1.4cqw; border-top: 1px solid #1d1d1d; }
.spread .m-list li { display: grid; grid-template-columns: 8cqw 1fr auto; gap: 1.2cqw; align-items: baseline; padding: .75cqw 0; border-bottom: 1px solid #dddbd6;
  font: 400 1.05cqw/1.3 var(--book); }
.spread .m-list b { font: 600 .95cqw/1.3 var(--sans); } .spread .m-list .c-iv { color: #6a1f27; }
.spread .m-list .mk { margin: 0; font-style: normal; }

.spread .doc { margin-top: 2.2cqw; border-top: 1px solid #1d1d1d; }
.spread .doc dt { padding-top: .75cqw; font: 500 .82cqw/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8a8782; }
.spread .doc dd { margin: .2cqw 0 0; padding-bottom: .75cqw; border-bottom: 1px solid #dddbd6; font: 400 1.3cqw/1.3 var(--book); }
.spread .d-h { margin-top: 1.9cqw; font: 600 .9cqw/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.spread .d-p { margin-top: .6cqw; font: 400 1.2cqw/1.45 var(--book); color: #33312d; }
.spread .d-mk { margin-top: auto; padding-top: 1.2cqw; padding-bottom: 1.4cqw; font: 400 .9cqw/1.3 var(--sans); color: #77746e; }
.spread .d-mk .mk { margin: 0 1cqw 0 0; }

.spread .t-date { margin-top: 3cqw; font: 400 4.4cqw/1 var(--book); letter-spacing: -.02em; color: #6a1f27; }
.spread .page-r .pg-title + .txt, .spread .t-date + .pg-title + .txt { margin-top: 2cqw; }
.spread .tl { margin-top: auto; border-top: 1px solid #1d1d1d; }
.spread .tl li { display: grid; grid-template-columns: 6cqw 1fr; gap: 1.4cqw; padding: .9cqw 0; border-bottom: 1px solid #dddbd6; }
.spread .tl b { font: 600 1.05cqw/1.3 var(--sans); } .spread .tl span { font: 400 1.12cqw/1.35 var(--book); }
.spread .src { margin-top: 1.2cqw; padding-bottom: 1.4cqw; font: 400 .85cqw/1.35 var(--sans); color: #77746e; }

.spread .toc-t { margin-top: 6cqw; font-size: 3.2cqw; }
.spread .toc { margin-top: 3cqw; }
.spread .toc li { display: flex; justify-content: space-between; gap: 2cqw; padding: .42cqw 0 .42cqw 2cqw; font: 400 1.15cqw/1.3 var(--book); color: #33312d; }
.spread .toc .toc-p { padding-left: 0; margin-top: .9cqw; font: 600 .95cqw/1.3 var(--sans); letter-spacing: .02em; color: #1d1d1d; }
.spread .toc .toc-gap { margin-top: 2.6cqw; }
.spread .toc i { font: 400 1cqw/1.3 var(--sans); font-style: normal; color: #77746e; }
.spread .how-lead { margin-top: 2.4cqw; max-width: 90%; }
.spread .how { margin-top: 3cqw; display: grid; grid-template-columns: 11cqw 1fr; border-top: 1px solid #1d1d1d; }
.spread .how dt, .spread .how dd { margin: 0; padding: 1.3cqw 0; border-bottom: 1px solid #dddbd6; }
.spread .how dt .mk { margin: 0; }
.spread .how dd { font: 400 1.2cqw/1.45 var(--book); color: #33312d; }
.spread .how-foot { margin-top: auto; padding-bottom: 1.4cqw; font-size: 1.1cqw; color: #55524d; }

/* Страница «География»: карта на всю страницу, текст поверх */
.spread .page-map { overflow: hidden; }
.spread .page-map > :not(.map-bg):not(.pn) { position: relative; z-index: 1; }
.spread .page-map > .pn { z-index: 1; }
.spread .map-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; max-width: none; }
.spread .map-bg .grat path { fill: none; stroke: #ebe9e4; stroke-width: .7; }
.spread .map-bg .grat-l text { font: 500 7px var(--sans); fill: #bab6ae; }
.spread .map-bg .water path, .spread .map-bg .water ellipse { fill: #ecebe6; stroke: #d9d6cf; stroke-width: .6; }
.spread .map-bg .riv path { fill: none; stroke: #d2cec6; stroke-width: 1.3; stroke-linecap: round; }
.spread .map-bg .geo-l text { font: italic 400 8.5px var(--book); fill: #a7a39b; }
.spread .map-bg .r { fill: none; stroke: #1d1d1d; stroke-width: 1.1; }
.spread .map-bg .r-iv { stroke: #6a1f27; stroke-width: 1.8; } .spread .map-bg .r-fam { stroke-dasharray: 4 4; stroke: #77746e; }
.spread .map-bg .pts circle { fill: #1d1d1d; stroke: #fcfcfb; stroke-width: 1.5; }
.spread .map-bg .lbl-c text { font: 600 10.5px var(--sans); fill: #1d1d1d; paint-order: stroke; stroke: #fcfcfb; stroke-width: 3px; stroke-linejoin: round; }
.spread .map-bg text.y { font: 600 9.5px var(--sans); fill: #77746e; paint-order: stroke; stroke: #fcfcfb; stroke-width: 3px; }
.spread .map-bg text.y-iv { fill: #6a1f27; }
.spread .page-map .m-list { background: rgba(252,252,251,.94); box-shadow: 0 0 0 1.4cqw rgba(252,252,251,.94); }

/* ---------------- Админка ---------------- */
body.admin { background: #f7f4ee; font-size: 15px; }
.admin-header { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 14px 24px; background: var(--ink); }
.admin-header .logo { color: #fbf8f2; font-size: 1rem; letter-spacing: .12em; }
.admin-header nav { display: flex; flex-wrap: wrap; gap: 18px; }
.admin-header nav a { color: #e9e2d4; text-decoration: none; }
.admin-main { padding: 24px; max-width: 1300px; margin: 0 auto; }
.admin h1 { font-size: 1.8rem; }
.admin h2 { font-size: 1.15rem; margin-top: 1.3em; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.kpis { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.kpi { background: #f4f3f1; border-radius: 8px; padding: 10px 14px; min-width: 180px; }
.kpi span { display: block; color: var(--ink-3); font-size: .85rem; }
.kpi strong { font-size: 1.4rem; }
.kpi.warn { background: #f7e6df; }
.inline-form, .filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.filters { margin: 0 0 14px; }
.filters input, .filters select, .inline-form input[type=number], .admin-form input, .admin-form select, .admin-form textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.inline-form input[type=number] { width: 80px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
table.leads { width: 100%; border-collapse: collapse; }
table.leads th, table.leads td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #eee6d8; white-space: nowrap; }
table.leads th { font-size: .82rem; color: var(--ink-3); font-weight: 600; background: #fbf9f5; }
tr.is-new td { background: #f0f6f1; font-weight: 600; }
tr.is-due td { background: #fff6dd; }
.detail-grid { display: grid; gap: 18px; }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.admin dl { display: grid; grid-template-columns: 11em 1fr; gap: 6px 14px; margin: 0; }
.admin dt { color: var(--ink-3); }
.admin dd { margin: 0; overflow-wrap: anywhere; }
.admin-form { display: grid; gap: 12px; }
.admin-form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.history { padding-left: 1.1em; color: var(--ink-2); }
.ok { background: #e6f2ea; padding: 8px 12px; border-radius: 6px; }
.warn-note { background: #fff1c9; padding: 8px 12px; border-radius: 6px; }
.admin a.active { font-weight: 700; color: var(--ink); }
/* Отступы текста в админке (общий сброс отступов выше их обнуляет) */
.admin h1 { margin: .4em 0 .6em; }
.admin h2 { margin-bottom: .5em; }
.admin-panel > h2:first-child { margin-top: 0; }
.admin p { margin: 0 0 1em; }
.admin ul.history, .admin ol.history { list-style: disc; margin: 0 0 1em; }
