/* «Тушь и пергамент» — стиль снят с PDF-отчёта: те же цвета, бумага и пейзажи. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/CormorantGaramond-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/CormorantGaramond-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("fonts/CormorantGaramond-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/NotoSerif-400-normal-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/NotoSerif-400-italic-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/NotoSerif-600-normal-normal.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap;
  src: url("fonts/GolosText-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap;
  src: url("fonts/GolosText-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap;
  src: url("fonts/GolosText-600-normal.woff2") format("woff2"); }

:root {
  --ink: #2E2418;
  --body: #3A2E1F;
  --muted: #7A6A52;
  --gold: #A67C2E;
  --gold-soft: #CBB07A;
  --red: #A6322A;
  --dark: #1C1712;
  --dark-2: #2A221A;
  --paper: #F0DEBF;
  --card: #F9EFDC;
  --line: #C9B58A;
  --light: #F4ECDB;
  --display: "Cormorant Garamond", "Noto Serif", Georgia, serif;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --ui: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 17px/1.65 var(--serif); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }

.paper {
  /* Бумага — шумом и мягким пятном света, а не картинкой: фото-текстура при растяжении
     давала полосы по тону. SVG-шум бесшовный и весит полкилобайта. */
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(251, 241, 222, .75), rgba(240, 222, 191, 0) 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(166, 124, 46, .08));
}
.narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  font: 500 12px/1.4 var(--ui); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.section-title { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 16px; }
.section-lead { font-size: 18px; color: var(--muted); max-width: 640px; margin-bottom: 48px; }

/* --- Шапка ---------------------------------------------------------------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); max-width: 1240px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font: 500 14px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--light);
}
.seal {
  width: 22px; height: 22px; background: var(--red); border-radius: 2px; position: relative;
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4.5px rgba(244, 236, 219, .85);
}
.top-cta {
  font: 500 14px var(--ui); color: var(--light); text-decoration: none;
  border: 1px solid rgba(203, 176, 122, .55); padding: 9px 18px; border-radius: 3px;
  transition: background .2s, border-color .2s;
}
.top-cta:hover { background: rgba(244, 236, 219, .08); border-color: var(--gold-soft); }
body:not(.landing) .top { position: static; background: var(--dark); max-width: none; }

/* --- Кнопки --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--ui); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  padding: 18px 28px; border-radius: 3px; border: 0; transition: transform .15s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--light); color: var(--dark); }
.btn-light:hover { background: #fff8e8; }
.btn-dark { background: var(--ink); color: var(--light); width: 100%; }
.btn-dark:hover { background: #3d3021; }
.link-light { font: 500 15px var(--ui); color: var(--gold-soft); text-underline-offset: 4px; }

/* --- Первый экран ---------------------------------------------------------- */
.hero {
  position: relative; background: var(--dark); color: var(--light); overflow: hidden;
  min-height: min(100svh, 900px); display: flex; align-items: center;
}
.hero-art {
  position: absolute; inset: 0;
  background: url("img/cover.jpg") right 20% center / cover no-repeat;
  opacity: .55;
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, rgba(28, 23, 18, .92) 38%, rgba(28, 23, 18, .35) 75%, rgba(28, 23, 18, .6) 100%);
}
.hero-inner {
  position: relative; width: 100%; max-width: 1160px; margin: 0 auto;
  padding: 120px var(--gutter) 80px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center;
}
.hero h1 { color: var(--light); font-size: clamp(44px, 6.2vw, 84px); font-weight: 500; letter-spacing: -.01em; margin-bottom: 28px; }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: rgba(244, 236, 219, .82); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-bottom: 22px; }
.hero-note { font: 400 14px/1.5 var(--ui); color: rgba(244, 236, 219, .55); margin: 0; }
.hero-book { margin: 0; justify-self: center; position: relative; max-width: 380px; }
.hero-book::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid rgba(203, 176, 122, .45);
}
.hero-book img { position: relative; box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(203, 176, 122, .25); }

/* --- Вступление ------------------------------------------------------------ */
.intro { padding: clamp(72px, 10vw, 128px) 0; text-align: center; }
.big-quote {
  font: italic 500 clamp(25px, 3vw, 36px)/1.35 var(--display); color: var(--ink); margin: 0;
}
.big-quote::before {
  content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 32px;
  background: var(--red); border-radius: 2px;
  box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 6px rgba(244, 236, 219, .85);
}

/* --- Тома ------------------------------------------------------------------ */
.volumes { padding: 0 0 clamp(72px, 9vw, 120px); }
.volume-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.volume { border-top: 1px solid var(--line); padding-top: 22px; }
.volume-num { font: 500 12px var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.volume h3 { font-size: 27px; margin-bottom: 20px; }
.volume ol { list-style: none; margin: 0; padding: 0; counter-reset: sec var(--start, 0); }
.volume li { padding: 12px 0; border-bottom: 1px dashed rgba(201, 181, 138, .6); }
.volume li:last-child { border-bottom: 0; }
.sec-name { display: block; font-weight: 600; color: var(--ink); font-size: 16px; }
.sec-about { display: block; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.strip { position: relative; height: clamp(160px, 20vw, 280px); background-size: cover; background-position: center bottom; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; }
.strip::before { top: 0; height: 40%; background: linear-gradient(var(--paper), rgba(240, 222, 191, 0)); }
.strip::after { bottom: 0; height: 45%; background: linear-gradient(rgba(28, 23, 18, 0), var(--dark)); }

/* --- Страницы -------------------------------------------------------------- */
.pages { background: var(--dark); color: var(--light); padding: clamp(72px, 9vw, 112px) 0; }
.pages .section-title { color: var(--light); }
.pages .section-lead { color: rgba(244, 236, 219, .6); }
.page-rail {
  --rail-pad: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter)));
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--rail-pad) 28px; scroll-padding-inline: var(--rail-pad);
  scrollbar-width: thin; scrollbar-color: #5b4a33 transparent;
}
.page-card { flex: 0 0 clamp(230px, 24vw, 300px); margin: 0; scroll-snap-align: start; }
.page-card img { box-shadow: 0 18px 40px rgba(0, 0, 0, .5); transition: transform .25s; }
.page-card a:hover img { transform: translateY(-4px); }
.page-card figcaption { font: 500 14px var(--ui); color: var(--gold-soft); margin-top: 14px; }

/* --- Шаги ------------------------------------------------------------------ */
.steps { padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 60px); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step-list li { counter-increment: step; }
.step-list li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px;
  border: 1px solid var(--gold); border-radius: 50%; font: 500 22px var(--display); font-variant-numeric: lining-nums; color: var(--gold);
}
.step-list h3 { font-size: 26px; margin-bottom: 10px; }
.step-list p { font-size: 15.5px; color: var(--body); margin: 0; }

/* --- Метод ----------------------------------------------------------------- */
.method { padding: clamp(40px, 5vw, 60px) 0 clamp(72px, 9vw, 120px); }
.method-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); }
.method-list { list-style: none; margin: 0; padding: 0; }
.method-list li { padding: 0 0 22px 28px; position: relative; font-size: 16.5px; }
.method-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 1px; background: var(--gold); }
.method-list b { color: var(--ink); font-weight: 600; }

/* --- Заказ ----------------------------------------------------------------- */
.order { position: relative; background: var(--dark); padding: clamp(72px, 10vw, 140px) var(--gutter); overflow: hidden; }
.order-art { position: absolute; inset: 0; background: url("img/tom2.jpg") center 30% / cover no-repeat; opacity: .6; }
.order-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(28, 23, 18, .2), rgba(28, 23, 18, .85) 75%); }
.order-card {
  position: relative; max-width: 480px; margin: 0 auto; background: var(--card);
  padding: clamp(28px, 5vw, 48px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  outline: 1px solid var(--line); outline-offset: -10px;
}
.order-card .kicker { margin-bottom: 8px; }
.price { font: 500 64px/1 var(--display); font-variant-numeric: lining-nums; color: var(--ink); margin: 0 0 20px; }
.order-list { list-style: none; margin: 0 0 28px; padding: 0; font-size: 15.5px; }
.order-list li { padding: 6px 0 6px 22px; position: relative; }
.order-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 1px; background: var(--gold); }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font: 500 13px var(--ui); color: var(--muted); margin-bottom: 7px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.3 var(--ui); color: var(--ink); background: #fffaf0;
  border: 1px solid var(--line); border-radius: 3px; padding: 14px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(166, 124, 46, .18); }
.check { display: flex; gap: 12px; align-items: flex-start; font: 400 14px/1.5 var(--ui); color: var(--body); margin: 4px 0 22px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); text-underline-offset: 3px; }
.error { font: 500 14px var(--ui); color: var(--red); margin: -6px 0 16px; }
.fine { font: 400 13px var(--ui); color: var(--muted); text-align: center; margin: 14px 0 0; }

.order-closed p { font: 400 15px/1.55 var(--ui); color: var(--body); margin: 0 0 18px; }

/* --- Вопросы --------------------------------------------------------------- */
.faq { padding: clamp(72px, 9vw, 120px) 0; }
.faq .section-title { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 600 24px/1.25 var(--display); font-variant-numeric: lining-nums; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 30px var(--display); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; margin: 0; max-width: 680px; }

/* --- Подвал ---------------------------------------------------------------- */
.foot { background: var(--dark); color: rgba(244, 236, 219, .55); font: 400 13px/1.6 var(--ui); }
.foot-inner { max-width: 1160px; margin: 0 auto; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; }
.foot-note { max-width: 520px; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links a { color: rgba(244, 236, 219, .75); text-decoration: none; }
.foot-links a:hover { color: var(--light); }

/* --- Адаптив --------------------------------------------------------------- */
@media (max-width: 980px) {
  .volume-grid, .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .method-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 104px var(--gutter) 64px; }
  .hero-art { background-position: 70% center; opacity: .4; }
  .hero-art::after { background: linear-gradient(180deg, rgba(28, 23, 18, .7), var(--dark) 90%); }
  .hero-book { max-width: 250px; }
  .hero-actions .btn { width: 100%; }
  .volume-grid, .step-list { grid-template-columns: 1fr; }
  .top-cta { padding: 8px 14px; }
  .brand { font-size: 12px; }
  .price { font-size: 52px; }
}

/* --- Служебные страницы: форма, статус, документы -------------------------- */
.plain { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 110px); min-height: 70vh; }
.plain h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 18px; }
.card-page { background: var(--card); padding: clamp(24px, 5vw, 52px); outline: 1px solid var(--line); outline-offset: -10px; box-shadow: 0 20px 50px rgba(46, 36, 24, .12); }
.card-page .btn-dark { width: auto; min-width: 240px; }
.muted { color: var(--muted); font-size: 15.5px; }
.small { font-size: 13.5px; }
.fine-left { font: 400 14px var(--ui); color: var(--muted); margin-top: 28px; }
.doc h1 { font-size: 40px; } .doc h2 { font-size: 28px; margin: 28px 0 10px; }
.doc-li { padding-left: 20px; position: relative; } .doc-li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

.form-page form { margin-top: 28px; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field em { display: block; font: 500 13.5px var(--ui); font-style: normal; color: var(--red); margin-top: 6px; }
.field.bad input, .field.bad select { border-color: var(--red); }
.field small { display: block; margin-top: 6px; font: 400 13px/1.45 var(--ui); }
.field.off { opacity: .4; pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.seg { display: flex; gap: 10px; }
.seg-wrap { flex-wrap: wrap; }
.seg label { flex: 1 1 0; min-width: 120px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg b { display: block; text-align: center; font: 500 15px var(--ui); padding: 13px 10px; border: 1px solid var(--line); border-radius: 3px; background: #fffaf0; color: var(--body); transition: all .15s; }
.seg input:checked + b { background: var(--ink); border-color: var(--ink); color: var(--light); }
.seg input:focus-visible + b { box-shadow: 0 0 0 3px rgba(166, 124, 46, .3); }
.unknown { border-left: 2px solid var(--gold-soft); padding: 4px 0 4px 20px; margin: 0 0 24px; }
.events { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.place { position: relative; }
.suggest { position: absolute; z-index: 10; left: 0; right: 0; top: 76px; margin: 0; padding: 4px 0; list-style: none; background: #fffaf0; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(46, 36, 24, .15); }
.suggest li { padding: 10px 14px; font: 400 15px var(--ui); cursor: pointer; }
.suggest li:hover, .suggest li.on { background: #f1e4c8; }
.tg { margin: -4px 0 24px; }
.tg.linked #tg-state { color: #4E7A5A; font-weight: 600; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 13px 22px; }
.btn-outline:hover { background: rgba(46, 36, 24, .06); }
.stages { list-style: none; margin: 8px 0 28px; padding: 0; }
.stages li { position: relative; padding: 8px 0 8px 30px; font: 400 15.5px var(--ui); color: var(--muted); }
.stages li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); }
.stages li.done { color: var(--body); } .stages li.done::before { background: var(--gold); border-color: var(--gold); }
.stages li.now { color: var(--ink); font-weight: 600; } .stages li.now::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(166, 50, 42, .15); }
@media (max-width: 760px) { .row2, .events { grid-template-columns: 1fr; } }
