/* ============================================================
   Книжное ателье by Lazurnaya — дизайн-система
   Концепт: 1 экран = 1 блок = решение одной проблемы.
   Палитра — от акварельной обложки: ночь, золото, крем.
   ============================================================ */

:root {
  --paper: #FBF7F0;
  --paper-2: #F4EDE1;
  --ink: #2C2838;
  --ink-soft: #6E6879;
  --night: #2E3058;
  --night-2: #22243F;
  --accent: #D2604A;
  --accent-dark: #B94C38;
  --gold: #E3B23C;
  --green: #3E8F6B;
  --line: #E7DECF;

  --shadow-sm: 0 2px 10px rgba(44, 40, 56, .08);
  --shadow-md: 0 10px 30px rgba(44, 40, 56, .14);
  --shadow-lg: 0 24px 60px rgba(44, 40, 56, .22);

  --r-md: 18px;
  --r-lg: 26px;

  --font-display: 'PT Sans', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'PT Sans', 'Segoe UI', Tahoma, sans-serif;
  --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Типографика ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.16; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section--night .eyebrow { color: var(--gold); }

.screen-title { font-size: clamp(30px, 4.6vw, 50px); margin-bottom: 20px; }

.screen-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 38px;
}
.section--night .screen-sub { color: #B7B2CF; }

/* Экран: один блок = один экран */
.screen {
  padding: 110px 0;
  display: flex;
  align-items: center;
}
.section--paper { background: var(--paper); }
.section--white { background: #fff; }
.section--cream { background: var(--paper-2); }
.section--night {
  background:
    radial-gradient(ellipse 55% 45% at 85% 8%, rgba(227, 178, 60, .10), transparent),
    linear-gradient(165deg, var(--night) 0%, var(--night-2) 100%);
  color: #F5F2FB;
}
.screen--center { text-align: center; }
.screen--center .screen-sub { margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px; border-radius: 999px;
  font-family: var(--font-body); font-size: 17px; font-weight: 800;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; box-shadow: 0 12px 26px rgba(210, 96, 74, .38);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 2px solid currentColor; padding: 15px 30px; }
.btn--light { background: #fff; color: var(--night); }
.btn--sm { padding: 11px 22px; font-size: 15px; }

.text-link {
  font-weight: 800; color: var(--accent);
  border-bottom: 2px solid transparent;
}
.text-link:hover { border-color: var(--accent); }

/* ---------- Шапка ---------- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px;
}
.logo { font-family: var(--font-display); font-weight: 800; color: var(--night); line-height: 1.1; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__img { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; box-shadow: var(--shadow-sm); }
.logo__text b { display: block; font-size: 17px; white-space: nowrap; }
.logo__text span { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

.nav { display: flex; gap: 18px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.nav a { font-weight: 700; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
@media (max-width: 1280px) {
  .nav { gap: 13px; }
  .nav a { font-size: 13.5px; }
  .header__right .socials { display: none; }
  .header__inner { gap: 12px; }
}

.header__right { display: flex; align-items: center; gap: 14px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--night); transition: .15s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
}
.burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); margin: 5px auto; border-radius: 2px; }

.mobile-menu { display: none; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 24px 26px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-weight: 700; font-size: 18px; border-bottom: 1px dashed var(--line); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 82% 12%, rgba(227, 178, 60, .13), transparent),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  color: #F5F2FB;
}
.hero .screen { padding: 140px 0 160px; }
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(32px, 4.8vw, 54px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__sub { font-size: 19px; color: #C6C1DD; max-width: 520px; margin-bottom: 30px; }

.hero__photo { position: relative; }
.hero__photo img {
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  transform: rotate(2deg);
}
.hero__photo figcaption {
  position: absolute; left: 18px; bottom: -16px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 800;
  padding: 9px 18px; border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
}

/* Магия имени */
.magic {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-lg);
  padding: 22px;
  max-width: 560px;
}
.magic__row { display: flex; gap: 10px; flex-wrap: wrap; }
.magic input[type="text"] {
  flex: 1 1 190px; padding: 14px 18px; border-radius: 14px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 17px; font-weight: 700; color: var(--ink);
  outline: none; background: #fff;
}
.magic input[type="text"]:focus { border-color: var(--gold); }
.magic__ages { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.age-chip {
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent; color: #D9D5EC;
  font-family: var(--font-body); font-size: 14px; font-weight: 800; cursor: pointer;
}
.age-chip.active, .age-chip:hover { background: var(--gold); border-color: var(--gold); color: var(--night-2); }
.magic__row--cta { margin-top: 14px; }
.magic__hint { margin-top: 12px; font-size: 13.5px; color: #A29DC4; }

.hero__note {
  margin-top: 26px;
  font-size: 14.5px;
  color: #A29DC4;
}

/* Полоса доверия под hero */
.trustline {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trustline__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
  gap: 0;
}
.trustline__inner span {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 30px;
  position: relative;
  white-space: nowrap;
}
.trustline__inner span + span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 16px;
  background: var(--line);
}
.trustline__inner b { color: var(--accent); }

@media (max-width: 720px) {
  .trustline__inner { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; }
  .trustline__inner span {
    text-align: center;
    padding: 12px 10px;
    white-space: normal;
    border-top: 1px dashed var(--line);
  }
  .trustline__inner span:nth-child(-n+2) { border-top: 0; }
  .trustline__inner span + span::before { display: none; }
}

/* ---------- Фото-блоки ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media img, .split__media video {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.split__media figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* «Что именно вашего» — карточки с водяными номерами */
.weave-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.weave-item {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px;
  overflow: hidden;
}
.weave-item::after {
  content: attr(data-num);
  position: absolute; right: 14px; top: 2px;
  font-family: var(--font-display);
  font-size: 88px; font-weight: 700; line-height: 1;
  color: rgba(46, 48, 88, .07);
  pointer-events: none;
}
.weave-item h3 { font-size: 19px; margin-bottom: 8px; position: relative; }
.weave-item p { font-size: 15px; color: var(--ink-soft); position: relative; }

/* Инлайн-панель заказа в калькуляторе */
.order-panel {
  grid-column: 1 / -1;
  background: #fff; border: 2px solid var(--gold); border-radius: var(--r-lg);
  padding: 34px;
  display: none;
}
.order-panel.open { display: block; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.order-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.order-panel__head h3 { font-size: 24px; }
.order-panel__step { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.order-panel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.order-panel .form-field input[type="text"], .order-panel .form-field input[type="tel"], .order-panel .form-field textarea {
  border-color: var(--line);
}
.order-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.order-back {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 800; color: var(--ink-soft);
  padding: 12px 16px;
}
.order-back:hover { color: var(--accent); }

/* Наглядное сравнение изданий */
.format-demo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: stretch; margin-bottom: 34px; }
.format-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px;
}
.format-card h3 { font-size: 18px; margin-bottom: 20px; }
.sizes-row { display: flex; align-items: flex-end; justify-content: center; gap: 34px; min-height: 200px; }
.size-shape { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.size-shape .shape {
  background: #FBF7F0; border: 2px solid var(--night); border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(46, 48, 88, .12);
  position: relative;
}
.size-shape .shape::after {
  content: "";
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: 5px;
  border-radius: 3px;
  background: rgba(46, 48, 88, .14);
}
.size-shape .shape.s1 { width: 116px; height: 116px; }
.size-shape .shape.s2 { width: 145px; height: 145px; }
.size-shape .shape.s3 { width: 116px; height: 162px; }
.size-shape .lbl { text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.size-shape .lbl small { display: block; color: var(--ink-soft); font-weight: 400; }

.thick-row { display: flex; align-items: flex-end; justify-content: center; gap: 40px; min-height: 200px; }
.thick-stack { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.thick-stack .pages {
  width: 74px;
  border: 2px solid var(--night); border-radius: 4px;
  background: repeating-linear-gradient(#fff 0 4px, #D9D2C4 4px 6px);
  box-shadow: 6px 6px 0 rgba(46, 48, 88, .12);
}
.thick-stack .pages.p1 { height: 64px; }
.thick-stack .pages.p2 { height: 110px; }
.thick-stack .pages.p3 { height: 168px; }
.thick-stack .lbl { text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.thick-stack .lbl small { display: block; color: var(--ink-soft); font-weight: 400; }

/* ---------- Чистые списки без иконок ---------- */

.clean-list { display: grid; gap: 0; max-width: 640px; }
.clean-list li {
  list-style: none;
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.clean-list li:last-child { border-bottom: 0; }
.clean-list .num { font-family: var(--font-display); font-size: 24px; color: var(--gold); font-weight: 700; }
.clean-list h3 { font-size: 18.5px; margin-bottom: 3px; }
.clean-list p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Шаги ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step-card { border-top: 2px solid var(--gold); padding-top: 20px; }
.step-card__num { font-family: var(--font-display); font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { font-size: 15px; color: var(--ink-soft); }
.section--night .step-card p { color: #B7B2CF; }

/* ---------- Калькулятор ---------- */

.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: start; }
.calc__params { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 30px; }
.calc-group__label { font-weight: 900; font-size: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-group__label small { color: var(--ink-soft); font-weight: 600; font-size: 13.5px; text-align: right; }

.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt {
  border: 2px solid var(--line); border-radius: var(--r-md);
  padding: 14px 12px; cursor: pointer; background: #fff;
  transition: .15s; font-family: var(--font-body); text-align: left;
}
.opt:hover { border-color: var(--night); }
.opt.active { border-color: var(--accent); background: rgba(210, 96, 74, .05); }
.opt b { display: block; font-size: 15.5px; }
.opt span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.35; }

input[type="range"].spread-range { width: 100%; accent-color: var(--accent); height: 30px; }

.stepper { display: flex; align-items: center; gap: 16px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff;
  font-size: 22px; font-weight: 900; color: var(--accent); cursor: pointer;
}
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper__val { font-size: 22px; font-weight: 900; min-width: 130px; text-align: center; }
.stepper__val small { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 600; }

.calc__result {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px;
}
.calc__result-label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--ink-soft); }
.calc__price { font-family: var(--font-display); font-size: 54px; font-weight: 800; line-height: 1.05; margin: 10px 0 2px; }
.calc__price small { font-size: 26px; }
.calc__sameday { font-size: 14.5px; color: var(--green); font-weight: 800; min-height: 22px; }
.calc__breakdown { margin: 18px 0; padding: 16px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-soft); display: grid; gap: 7px; }
.calc__breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.calc__breakdown b { color: var(--ink); }
.calc__payways { display: grid; gap: 8px; margin: 16px 0 20px; font-size: 14px; color: var(--ink-soft); }
.calc__payways b { color: var(--ink); }
.calc__delivery { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.calc__result .btn { width: 100%; }

/* ---------- Каталог ---------- */

.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.book-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.book-card__cover {
  aspect-ratio: 1 / 1.05; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 20px;
  color: #fff; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.25;
}
.book-card__cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.book-card__cover .book-card__title { position: relative; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.span-name.is-empty { opacity: .8; border-bottom: 2px dashed rgba(255,255,255,.55); padding: 0 2px; }
.cover-g1 { background: linear-gradient(150deg, #52549B 0%, #26274E 100%); }
.cover-g2 { background: linear-gradient(150deg, #7A5FA8 0%, #3C2A57 100%); }
.cover-g3 { background: linear-gradient(150deg, #3F8E7E 0%, #1E4F48 100%); }
.cover-g4 { background: linear-gradient(150deg, #C97F4E 0%, #7E4426 100%); }
.cover-g5 { background: linear-gradient(150deg, #B8617E 0%, #5E2A40 100%); }
.cover-g6 { background: linear-gradient(150deg, #4A93BC 0%, #24486B 100%); }

.book-card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.tag--gift { background: rgba(62, 143, 107, .13); color: var(--green); }
.book-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.price-from { font-size: 13.5px; color: var(--ink-soft); }
.price-from b { font-size: 19px; color: var(--ink); font-weight: 900; }

/* ---------- Оплата ---------- */

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; }
.pay-card--hit { border: 2px solid var(--gold); position: relative; }
.pay-card--hit::before {
  content: "Выгодно"; position: absolute; top: -13px; left: 26px;
  background: var(--gold); color: var(--night-2);
  font-size: 12px; font-weight: 900; padding: 4px 14px; border-radius: 999px;
}
.pay-card h3 { font-size: 21px; }
.pay-card p { font-size: 14.5px; color: var(--ink-soft); }
.pay-num { font-weight: 900; font-size: 16px; }
.pay-num--accent { color: var(--accent); font-size: 18px; }

/* ---------- Издание ---------- */

.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 30px; }
.edition-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.edition-card__swatch { height: 96px; }
.sw-std { background: repeating-linear-gradient(45deg, #F6EDE0 0 14px, #EFE2CF 14px 28px); }
.sw-card { background: repeating-linear-gradient(45deg, #EBE4D6 0 22px, #DED2BE 22px 44px); }
.sw-prem { background: repeating-linear-gradient(45deg, #F1E5CE 0 30px, #E4D2AF 30px 60px); }
.edition-card__body { padding: 22px; }
.edition-card h3 { font-size: 19px; }
.edition-card .price { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--accent); margin: 5px 0; }
.edition-card p { font-size: 14px; color: var(--ink-soft); }

.gift-note {
  border: 1.5px dashed var(--green); border-radius: var(--r-lg);
  padding: 24px 30px; max-width: 720px;
}
.gift-note h3 { color: var(--green); margin-bottom: 6px; }
.gift-note p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Запросы ---------- */

.requests { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.request-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 20px; text-align: center; transition: .18s; }
.request-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.request-card h3 { font-size: 17px; margin-bottom: 8px; }
.request-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Создатель ---------- */

.creator { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: center; }
.creator__photo {
  aspect-ratio: 3 / 3.6; border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--paper-2), #E4D8C2);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  color: #A79878; font-size: 14.5px; font-weight: 800; text-align: center; padding: 24px;
  transform: rotate(-1.5deg);
}
.creator h3 { font-size: 26px; margin-bottom: 4px; }
.creator .role { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.creator p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 14px; }
.creator p b { color: var(--ink); }

/* ---------- Отзывы ---------- */

.reviews-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.badge-site {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; font-weight: 900; font-size: 15px;
}
.badge-site .stars { color: var(--gold); letter-spacing: 2px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.review-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.review-card p { font-size: 15px; margin-bottom: 14px; }
.review-card .who { font-size: 13.5px; color: var(--ink-soft); font-weight: 800; }
.review-card .who small { display: block; font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { max-width: 1000px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; }
.faq-item__q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 17px; font-weight: 800; color: var(--ink);
  padding: 20px 56px 20px 24px; position: relative;
}
.faq-item__q::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); font-size: 24px; color: var(--accent); transition: .2s;
}
.faq-item.open .faq-item__q::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__a { display: none; padding: 0 24px 20px; font-size: 15.5px; color: var(--ink-soft); }
.faq-item.open .faq-item__a { display: block; }

/* ---------- Листалка ---------- */

.flipbook { max-width: 760px; margin: 0 auto; }
.flipbook__stage {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.flipbook__stage img, .flipbook__stage video { width: 100%; height: 100%; object-fit: cover; }
.flipbook__bar { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 22px; }
.flipbook__counter { font-weight: 800; color: var(--ink-soft); min-width: 70px; text-align: center; }

/* ---------- Финальный CTA / футер ---------- */

.final-cta { text-align: center; padding: 120px 0; }
.final-cta h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.final-cta p { color: #B7B2CF; font-size: 18px; margin-bottom: 34px; }
.final-cta .btn--primary { margin-right: 14px; margin-bottom: 12px; }

.footer { background: var(--night-2); color: #B7B2CF; padding: 60px 0 34px; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer .logo b { color: #fff; }
.footer__legal { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #837FA8; }
.footer .socials a { border-color: rgba(255,255,255,.2); color: #D9D5EC; }
.footer .socials a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Модальная форма заказа ---------- */

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: flex-start; justify-content: center;
  background: rgba(34, 36, 63, .62);
  backdrop-filter: blur(4px);
  overflow-y: auto; padding: 4vh 16px;
}
.modal.open { display: flex; }
.modal__box {
  background: var(--paper); border-radius: var(--r-lg);
  max-width: 620px; width: 100%; padding: 34px 34px 38px;
  box-shadow: var(--shadow-lg); position: relative;
  margin: auto 0;
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--paper-2); color: var(--ink);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.modal__summary {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 18px; font-size: 14px; color: var(--ink-soft);
  display: grid; gap: 4px; margin: 16px 0 6px;
}
.modal__summary b { color: var(--ink); }
.form-field { margin-top: 16px; }
.form-field label { display: block; font-weight: 800; font-size: 14.5px; margin-bottom: 6px; }
.form-field label small { font-weight: 600; color: var(--ink-soft); }
.form-field input[type="text"], .form-field input[type="tel"], .form-field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: var(--font-body); font-size: 16px; color: var(--ink); outline: none;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { min-height: 84px; resize: vertical; }
.form-field .hint { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }
.form-field input[type="file"] {
  width: 100%; padding: 12px 14px; border: 1.5px dashed var(--line);
  border-radius: 12px; background: #fff; font-family: var(--font-body); font-size: 14.5px;
}
.form-error { color: var(--accent-dark); font-size: 14px; margin-top: 12px; min-height: 20px; font-weight: 700; }
.modal__success { text-align: center; padding: 30px 6px; }
.modal__success h3 { font-size: 26px; margin-bottom: 12px; }
.modal__success p { color: var(--ink-soft); }

/* ---------- Анимации ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Блог и статьи (blog/index.php, blog/post.php, page.php)
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card__cover {
  height: 120px;
  background: linear-gradient(150deg, var(--paper-2) 0%, #F2E2CC 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800;
  color: var(--night);
}
.post-card__body { padding: 20px 22px 24px; }
.post-card__date { font-size: 13px; font-weight: 800; color: var(--ink-soft); margin-bottom: 8px; }
.post-card h2 { font-size: 21px; margin-bottom: 8px; }
.post-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; }

.post-content { max-width: 760px; }
.post-content h2 { font-size: 28px; margin: 34px 0 12px; }
.post-content h3 { font-size: 21px; margin: 26px 0 10px; }
.post-content p { margin: 0 0 16px; font-size: 17px; }
.post-content ul, .post-content ol { margin: 0 0 16px 22px; }
.post-content li { margin-bottom: 6px; }
.post-content img { border-radius: var(--r-md); margin: 20px 0; }
.post-content blockquote {
  border-left: 4px solid var(--gold);
  background: #fff;
  padding: 14px 20px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.post-content a { color: var(--accent); font-weight: 700; }
.post-content code { background: var(--paper-2); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.post-content h2[id] { scroll-margin-top: 90px; }

/* Навигация и служебные элементы статей */
.breadcrumbs { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumbs a { color: var(--accent); font-weight: 700; }
.breadcrumbs a:hover { text-decoration: underline; }
.read-time { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); vertical-align: middle; }

/* Содержание статьи */
.toc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 26px; margin: 0 0 30px;
}
.toc__title {
  font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px;
}
.toc ol { margin: 0 0 0 20px; }
.toc li { margin: 7px 0; font-size: 15.5px; }
.toc a { color: var(--ink); border-bottom: 1px dashed var(--line); }
.toc a:hover { color: var(--accent); border-color: var(--accent); }

/* Автор статьи (E-E-A-T) */
.author-box {
  display: flex; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px; margin: 32px 0 0;
  font-size: 14.5px; color: var(--ink-soft);
}
.author-box .ava {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--paper-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--accent);
}
.author-box b { color: var(--ink); }

/* ---------- Шорткоды-конвертеры [cta_*] ---------- */
.cta-block {
  margin: 34px 0; border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 55% 60% at 90% 10%, rgba(227, 178, 60, .14), transparent),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  color: #F5F2FB;
  padding: 30px 32px;
}
.cta-block h3 { font-size: 23px; margin-bottom: 6px; }
.cta-block > p, .cta-block .cta-desc { color: #B7B2CF; font-size: 15px; margin-bottom: 18px; }
.cta-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-form-row input {
  flex: 1 1 180px; padding: 13px 16px; border-radius: 12px; border: 0;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700; color: var(--ink);
  outline: none;
}
.cta-form-row input:focus { box-shadow: 0 0 0 3px var(--gold); }
.cta-form-row .btn { flex: 0 0 auto; }
.cta-error { color: #FFB4A3; font-size: 13.5px; font-weight: 700; margin-top: 8px; min-height: 18px; }
.cta-success { font-size: 16px; font-weight: 800; color: #A8F0CB; margin: 0; }
.cta-note { font-size: 12.5px; color: #A29DC4; margin: 12px 0 0; }

.cta-book { display: flex; gap: 26px; align-items: center; }
.cta-book__img { width: 170px; flex-shrink: 0; }
.cta-book__img img { border-radius: var(--r-md); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.cta-messengers { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-messengers .btn--light { border: 0; }

@media (max-width: 640px) {
  .cta-block { padding: 22px 20px; }
  .cta-book { flex-direction: column; text-align: center; }
  .cta-book__img { width: 140px; }
  .cta-form-row input { flex: 1 1 100%; }
  .cta-form-row .btn { width: 100%; }
}

/* ---------- Содержание статьи ---------- */

.post-cta {
  margin-top: 36px;
  background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  color: #F5F2FB;
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
}
.post-cta h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.post-cta p { color: #B7B2CF; margin-bottom: 18px; }

/* ============================================================
   V2: слайдер «до/после», аудитории, чипы, кнопки hero
   ============================================================ */

/* Кнопки в ряд (hero) */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.btn-row .btn { flex: 1 1 170px; }
.btn--outline-light {
  background: transparent; color: #F5F2FB;
  border: 2px solid rgba(255, 255, 255, .45);
  padding: 15px 28px;
}
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* Видео в hero */
.hero__media video {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  transform: rotate(1.5deg);
}
.hero__media figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: 13.5px; font-weight: 700; color: #A29DC4;
}

/* Слайдер «до / после» */
.ba {
  position: relative;
  max-width: 620px; margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  touch-action: none;
  user-select: none;
  --ba-pos: 50%;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { z-index: 1; }
.ba__before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}
.ba__handle {
  position: absolute; z-index: 3;
  left: var(--ba-pos); top: 0; bottom: 0;
  width: 3px; background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
}
.ba__handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.ba__handle::before {
  content: "↔";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: var(--night);
  font-size: 22px; font-weight: 900;
}
.ba__label {
  position: absolute; z-index: 4;
  bottom: 16px;
  background: rgba(34, 36, 63, .78);
  color: #fff;
  font-size: 12.5px; font-weight: 800;
  padding: 7px 16px; border-radius: 999px;
  letter-spacing: .04em;
  pointer-events: none;
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; }

/* Аудитории (второй экран) */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.aud-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; text-align: left;
}
.aud-card__who { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.aud-card h3 { font-size: 19px; margin-bottom: 12px; }
.aud-card ul { list-style: none; display: grid; gap: 8px; }
.aud-card li { font-size: 14.5px; color: var(--ink-soft); padding-left: 16px; position: relative; }
.aud-card li::before { content: "—"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }

.if-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.if-col { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; }
.if-col h3 { font-size: 18px; margin-bottom: 12px; }
.if-col ul { list-style: none; display: grid; gap: 9px; }
.if-col li { font-size: 15px; color: var(--ink-soft); padding-left: 18px; position: relative; }
.if-col li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Чипы «что внутри» */
.inside-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.inside-chips span {
  padding: 10px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 700; color: var(--ink);
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .requests { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .creator { grid-template-columns: 1fr; gap: 34px; }
  .creator__photo { max-width: 320px; }
}

@media (max-width: 880px) {
  .nav, .header__right .socials { display: none; }
  .burger { display: block; }
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split--rev .split__media { order: 0; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-grid, .editions, .reviews-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .screen { padding: 72px 0; }
  .hero .screen { padding: 80px 0 90px; }
  .requests { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .if-grid { grid-template-columns: 1fr; }
  .weave-grid { grid-template-columns: 1fr; }
  .format-demo { grid-template-columns: 1fr; }
  .order-panel { padding: 24px 20px; }
  .order-panel__cols { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .steps { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .final-cta .btn--primary { margin-right: 0; width: 100%; }
  .final-cta .btn--light { width: 100%; }
  .hero__photo img { transform: none; }
  .hero__media video { transform: none; }
  .calc__result { padding: 24px; }
  .calc__params { padding: 22px; }
  .modal__box { padding: 26px 20px 30px; }
  .header__right .btn { display: none; }
  .aud-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}
