/* ============================================================
   МИР ЭЛЬДОРИИ — дизайн-система
   Тёмно-синий + золото + пергамент. Шрифты: Playfair Display / PT Sans.
   Разделы:
   01 Токены и сброс        05 Герой (книга, звёзды)
   02 База и типографика    06 Карточки и сетки
   03 Кнопки и бейджи       07 Формы и подписка
   04 Шапка / навигация     08 Футер, тосты, анимации
   ============================================================ */

/* ---------- 01. Токены ---------- */
:root {
  --navy-900: #070B24;
  --navy-800: #0B1030;
  --navy-700: #141B42;
  --navy-600: #1E2756;
  --navy-500: #2A3670;
  --gold-500: #D4AF37;
  --gold-400: #E3C566;
  --gold-300: #F0D68A;
  --gold-700: #A8862A;
  --parchment: #F5E9D0;
  --parchment-dim: #EDE0C4;
  --text: #EAE6DA;
  --muted: #A9B0CC;
  --line: rgba(212, 175, 55, .22);
  --card: linear-gradient(160deg, rgba(30, 39, 86, .72), rgba(11, 16, 48, .92));
  --shadow: 0 18px 45px rgba(0, 0, 0, .45);
  --radius: 18px;
  --font-head: 'Playfair Display', 'Georgia', serif;
  --font-body: 'PT Sans', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- 02. База ---------- */
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(42, 54, 112, .55), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(30, 39, 86, .5), transparent 60%),
    var(--navy-800);
  min-height: 100vh;
  overflow-x: hidden;
}
/* звёздное небо на весь сайт */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(240, 214, 138, .8), transparent 100%),
    radial-gradient(1px 1px at 34% 8%, rgba(255, 255, 255, .7), transparent 100%),
    radial-gradient(1.2px 1.2px at 58% 30%, rgba(240, 214, 138, .55), transparent 100%),
    radial-gradient(1px 1px at 76% 12%, rgba(255, 255, 255, .6), transparent 100%),
    radial-gradient(1.6px 1.6px at 88% 40%, rgba(240, 214, 138, .5), transparent 100%),
    radial-gradient(1px 1px at 22% 55%, rgba(255, 255, 255, .45), transparent 100%),
    radial-gradient(1.3px 1.3px at 45% 72%, rgba(240, 214, 138, .45), transparent 100%),
    radial-gradient(1px 1px at 68% 60%, rgba(255, 255, 255, .5), transparent 100%),
    radial-gradient(1.2px 1.2px at 8% 82%, rgba(240, 214, 138, .5), transparent 100%),
    radial-gradient(1px 1px at 92% 78%, rgba(255, 255, 255, .45), transparent 100%);
  animation: skyTwinkle 7s ease-in-out infinite alternate;
}
@keyframes skyTwinkle { from { opacity: .55; } to { opacity: 1; } }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p + p { margin-top: .8em; }
strong { color: var(--gold-300); }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--tint { background: linear-gradient(180deg, rgba(20, 27, 66, .55), rgba(7, 11, 36, .35)); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-sub { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: .9rem;
}
.ornament { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1.2rem; color: var(--gold-500); }
.ornament::before, .ornament::after {
  content: '';
  height: 1px;
  width: min(120px, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-500), transparent); }

.note {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: var(--muted);
  font-size: .95rem;
  background: rgba(11, 16, 48, .5);
}
.note strong { color: var(--gold-300); }

/* ---------- 03. Кнопки и бейджи ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #241B04;
  box-shadow: 0 10px 26px rgba(212, 175, 55, .3);
}
.btn--gold:hover { box-shadow: 0 14px 32px rgba(212, 175, 55, .45); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(240, 214, 138, .55); color: var(--gold-300); background: rgba(11, 16, 48, .35); }
.btn--ghost:hover { background: rgba(212, 175, 55, .12); }
.btn--light { background: var(--parchment); color: #2A2413; }
.btn--light:hover { background: #fff; }
.btn--small { padding: .55rem 1.3rem; font-size: .92rem; }
.btn--wide { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-300);
  font-size: .88rem;
  background: rgba(11, 16, 48, .5);
}
.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #241B04;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.check-list li { position: relative; padding-left: 2rem; margin-bottom: .85rem; }
.check-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-500);
}

/* ---------- 04. Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 36, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, .15);
}
.site-header__inner { display: flex; align-items: center; gap: 1.2rem; height: 66px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.logo b { color: var(--gold-300); font-weight: 700; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 1.15rem; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .97rem;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s;
}
.site-nav a:hover { color: var(--gold-300); }
.site-nav a.is-active { color: var(--gold-300); border-bottom-color: var(--gold-500); }
.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: .6rem; }
.site-nav + .header-actions { margin-left: 0; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--gold-300); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold-500);
  color: #241B04;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 12px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--gold-300); transition: .25s; }

/* нижняя панель на телефоне */
.mobile-tabbar { display: none; }

/* ---------- 05. Герой ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { margin-bottom: 1.1rem; }
.hero__title .accent { color: var(--gold-300); }
.hero__lead { color: var(--muted); font-size: 1.15rem; max-width: 34rem; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.4rem; max-width: 34rem; }
.hero__facts li { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; }
.hero__facts svg { width: 20px; height: 20px; color: var(--gold-500); flex: none; }

.hero__book { position: relative; justify-self: center; animation: heroIn 1.1s ease both; }
.hero__book .book { width: min(340px, 72vw); filter: drop-shadow(0 0 42px rgba(212, 175, 55, .32)); animation: bookFloat 6.5s ease-in-out infinite; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bookFloat { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
.sparkle { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle, var(--gold-300), transparent 70%); animation: twinkle 3.2s ease-in-out infinite; }
.sparkle.s1 { top: 6%; left: 8%; animation-delay: .2s; }
.sparkle.s2 { top: 18%; right: 4%; animation-delay: 1.1s; width: 6px; height: 6px; }
.sparkle.s3 { bottom: 24%; left: 2%; animation-delay: 1.8s; width: 7px; height: 7px; }
.sparkle.s4 { bottom: 8%; right: 12%; animation-delay: .7s; }
.sparkle.s5 { top: 46%; right: -2%; animation-delay: 2.4s; width: 5px; height: 5px; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }

/* ---------- 06. Карточки и сетки ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .6rem; color: var(--gold-300); }
.card p { color: var(--muted); font-size: .97rem; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, .12);
  border: 1px solid var(--line);
  color: var(--gold-400);
  margin-bottom: 1rem;
}
.feature-icon svg { width: 26px; height: 26px; }

/* тарифы / версии книги */
.price-card { position: relative; display: flex; flex-direction: column; text-align: center; padding: 2.2rem 1.6rem 1.8rem; }
.price-card--featured { border-color: var(--gold-500); background: linear-gradient(170deg, rgba(42, 54, 112, .85), rgba(11, 16, 48, .95)); }
.price-card__name { font-family: var(--font-head); font-size: 1.25rem; color: #fff; margin-bottom: .4rem; }
.price-card__price { font-family: var(--font-head); font-size: 2.3rem; color: var(--gold-300); margin: .6rem 0 .2rem; }
.price-card__price small { font-size: 1.1rem; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 1rem; margin-right: .4rem; }
.price-card ul { text-align: left; margin: 1.1rem 0 1.5rem; flex: 1; }
.price-card ul li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; color: var(--muted); font-size: .95rem; }
.price-card ul li::before { content: '✦'; position: absolute; left: 0; color: var(--gold-500); font-size: .8rem; top: .2rem; }

/* галерея страниц */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.gallery__item { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--navy-700); box-shadow: var(--shadow); transition: transform .25s ease; }
.gallery__item:hover { transform: translateY(-6px); }
.gallery__item svg { width: 100%; height: auto; }
.gallery__item figcaption { padding: .7rem 1rem; font-size: .88rem; color: var(--muted); }

/* отзывы */
.review { display: flex; flex-direction: column; gap: .8rem; }
.review__stars { color: var(--gold-500); letter-spacing: .2em; font-size: .95rem; }
.review__text { color: var(--text); font-size: .98rem; }
.review__author { color: var(--muted); font-size: .9rem; margin-top: auto; }

/* видео-заглушка */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(212, 175, 55, .14), transparent 65%),
    linear-gradient(160deg, var(--navy-600), var(--navy-900));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.video-frame__play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  background: rgba(7, 11, 36, .6);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}
.video-frame__play:hover { transform: scale(1.08); background: rgba(212, 175, 55, .18); }
.video-frame__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-frame__label { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .92rem; }

/* тизер карты */
.map-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.map-teaser__map { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }

/* автор */
.author { display: grid; grid-template-columns: 190px 1fr; gap: 2rem; align-items: center; }
.author__photo { width: 190px; height: 190px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold-500); box-shadow: 0 0 34px rgba(212, 175, 55, .3); }

/* доставка */
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; }
.facts-row .card { text-align: center; }
.facts-row .feature-icon { margin: 0 auto .9rem; }

/* соцсети */
.social-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  transition: border-color .2s, transform .2s;
}
.social-links a:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.social-links svg { width: 22px; height: 22px; color: var(--gold-400); }

/* FAQ (details) — используется на нескольких страницах */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: .9rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 700; color: var(--gold-300); list-style: none; position: relative; padding-right: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold-500); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.15rem; color: var(--muted); }

/* таблица характеристик */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid rgba(212, 175, 55, .14); font-size: .97rem; }
.spec-table th { color: var(--muted); font-weight: 400; width: 45%; }
.spec-table td { color: var(--text); }

/* ---------- 07. Формы ---------- */
.subscribe {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(212, 175, 55, .14), transparent 70%),
    var(--card);
  border: 1px solid var(--gold-500);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.4rem);
  box-shadow: var(--shadow), 0 0 60px rgba(212, 175, 55, .12);
}
.subscribe__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: center; }
.subscribe-form { display: flex; gap: .7rem; }
.subscribe-form .input { flex: 1; }
.input {
  width: 100%;
  padding: .95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 36, .65);
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.input::placeholder { color: var(--muted); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .7rem; }
.form-note a { color: var(--gold-300); }
.form-success {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--gold-500);
  background: rgba(212, 175, 55, .1);
  color: var(--gold-300);
  font-weight: 700;
}
.form-success svg { width: 26px; height: 26px; flex: none; }

/* ---------- 08. Футер, тост, анимации ---------- */
.site-footer { border-top: 1px solid rgba(212, 175, 55, .15); background: rgba(7, 11, 36, .7); padding: 3.4rem 0 1.6rem; margin-top: 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2.4rem; }
.site-footer h4 { color: var(--gold-300); font-size: 1rem; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer__about { color: var(--muted); font-size: .95rem; margin-top: .8rem; max-width: 22rem; }
.site-footer__bottom { border-top: 1px solid rgba(212, 175, 55, .12); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; color: var(--muted); font-size: .85rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  background: rgba(7, 11, 36, .95);
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  padding: .85rem 1.5rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  max-width: 90vw;
  text-align: center;
  font-size: .95rem;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

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

/* ---------- 09. Главная в стиле иллюстрированного портала ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-page .container { width: min(1380px, 94%); }
.home-header { position: relative; background: rgba(3, 12, 28, .96); }
.home-header .site-header__inner { height: 74px; }
.logo--expanded { min-width: 250px; font-size: 1.42rem; line-height: 1.05; }
.logo--expanded span { display: grid; }
.logo--expanded small {
  margin-top: .28rem;
  color: var(--gold-400);
  font: 700 .61rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.logo__emblem {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-700);
  box-shadow: 0 0 24px rgba(212, 175, 55, .18);
}
.home-header .site-nav { gap: 1.35rem; }
.home-header .site-nav a { font-family: var(--font-head); font-size: .9rem; }

.home-hero {
  position: relative;
  min-height: 615px;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, .42);
  background: #06152a;
}
.home-hero__art {
  position: absolute;
  z-index: -3;
  inset: 0;
  background: url('../assets/visuals/p0/home/home_hero_vova_wolf_cat_1920x1080.webp') left center / cover no-repeat;
  filter: saturate(.92) contrast(1.03);
}
.home-hero__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 10, 23, .04) 0%, rgba(2, 10, 23, .28) 31%, #06152a 52%, rgba(6, 21, 42, .97) 100%),
    radial-gradient(circle at 65% 28%, rgba(25, 76, 119, .38), transparent 38%),
    linear-gradient(0deg, rgba(2, 10, 23, .72), transparent 42%);
}
.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr) minmax(280px, .72fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 615px;
  align-items: center;
  padding-block: 4rem;
}
.home-hero__copy { text-align: center; align-self: center; }
.home-hero__welcome {
  display: flex;
  align-items: center;
  gap: .7rem;
  justify-content: center;
  color: var(--gold-300);
  font-family: var(--font-head);
  font-size: 1.18rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-hero__welcome::before,
.home-hero__welcome::after {
  content: '';
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.home-hero__welcome::after { background: linear-gradient(90deg, var(--gold-500), transparent); }
.home-hero h1 {
  margin: .6rem 0 .65rem;
  color: var(--gold-300);
  font-size: clamp(3.3rem, 6vw, 6rem);
  font-weight: 600;
  line-height: .95;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .55);
}
.home-hero__tagline { max-width: 42rem; margin-inline: auto; color: #f1eadb; font-family: var(--font-head); font-size: 1.22rem; }
.home-hero__book-title { margin-top: .8rem; color: var(--gold-300); font-weight: 700; }
.home-hero .hero__cta { justify-content: center; margin: 1.8rem 0 0; }
.home-hero .btn { border-radius: 3px; font-family: var(--font-head); text-transform: uppercase; font-size: .88rem; letter-spacing: .04em; }

.home-heroes {
  border: 1px solid rgba(212, 175, 55, .72);
  border-radius: 22px 6px 22px 6px;
  padding: 1.4rem;
  background: rgba(3, 13, 29, .72);
  box-shadow: inset 0 0 0 3px rgba(212, 175, 55, .07), var(--shadow);
  backdrop-filter: blur(8px);
}
.home-heroes > h2 { color: var(--gold-300); text-align: center; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.home-heroes__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1rem 0; }
.home-heroes article { text-align: center; min-width: 0; }
.home-heroes article h3 { margin: .55rem 0 .2rem; color: var(--gold-300); font-size: .9rem; }
.home-heroes article p { color: #e0d7c3; font-size: .73rem; line-height: 1.35; }
.character-medallion {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  color: var(--gold-300);
  background:
    radial-gradient(circle, rgba(212, 175, 55, .2), transparent 64%),
    url('../assets/art/five-lights.webp') center / 190% no-repeat;
  box-shadow: 0 0 18px rgba(212, 175, 55, .2);
  font: 800 1.45rem/1 var(--font-head);
  text-shadow: 0 2px 8px #000;
}
img.character-medallion {
  display: block;
  object-fit: cover;
  object-position: center 32%;
}
.home-heroes__more { display: block; width: max-content; margin: 1rem auto 0; padding: .45rem 1.3rem; color: var(--gold-300); border: 1px solid var(--gold-700); text-decoration: none; font: 700 .78rem var(--font-head); text-transform: uppercase; }

.adventure-nav { position: relative; z-index: 3; margin-top: -14px; }
.adventure-nav__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(212, 175, 55, .7);
  border-radius: 9px;
  overflow: hidden;
  background: #06172a;
  box-shadow: var(--shadow);
}
.adventure-nav a {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  gap: 0 .75rem;
  padding: .95rem 1.05rem;
  color: var(--gold-300);
  text-decoration: none;
  border-right: 1px solid rgba(212, 175, 55, .3);
  transition: background .2s;
}
.adventure-nav a:last-child { border-right: 0; }
.adventure-nav a:hover { background: rgba(212, 175, 55, .1); }
.adventure-nav a > span { grid-row: 1 / 3; align-self: center; font: 1.9rem/1 var(--font-head); text-align: center; }
.adventure-nav b { font: 700 .9rem/1.1 var(--font-head); text-transform: uppercase; }
.adventure-nav small { color: #ddd4c1; font-size: .72rem; }

.home-panels { padding-top: 2.3rem; }
.home-panels__grid { display: grid; grid-template-columns: 1.12fr 1.35fr .92fr; gap: 1.15rem; align-items: stretch; }
.parchment-panel {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  color: #271d0d;
  background:
    linear-gradient(rgba(247, 232, 201, .94), rgba(238, 217, 177, .96)),
    radial-gradient(circle at 30% 20%, #fff, #dfc99f);
  border: 1px solid #ba9654;
  border-radius: 20px 7px 20px 7px;
  box-shadow: var(--shadow);
}
.parchment-panel::after { content: ''; position: absolute; inset: 9px; pointer-events: none; border: 1px solid rgba(126, 84, 25, .32); border-radius: 14px 4px 14px 4px; }
.parchment-panel h2 { color: #251b0c; font-size: 1.55rem; }
.parchment-panel p { color: #42341f; line-height: 1.48; }
.panel-kicker { display: block; position: relative; z-index: 1; margin-bottom: .9rem; color: var(--gold-300); font: 700 1.02rem var(--font-head); text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.parchment-panel .panel-kicker { color: #4b3618; }
.new-book-panel__body { position: relative; z-index: 1; display: grid; grid-template-columns: 145px 1fr; gap: 1.25rem; align-items: center; }
.new-book-panel img { width: 145px; height: 220px; object-fit: cover; border: 1px solid #9b783c; border-radius: 7px; box-shadow: 0 13px 22px rgba(35, 21, 5, .38); }
.book-subtitle { margin: .45rem 0 .7rem; color: #8a5a1c !important; font-family: var(--font-head); font-weight: 700; }
.btn--dark { background: linear-gradient(135deg, #09213a, #061426); border-color: #b78e45; color: var(--gold-300); }
.btn--dark:hover { box-shadow: 0 7px 20px rgba(6, 20, 38, .35); transform: translateY(-2px); }
.new-book-panel .btn { margin-top: .9rem; border-radius: 3px; }
.map-panel {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 1.1rem;
  border: 1px solid rgba(212, 175, 55, .7);
  border-radius: 8px;
  background: #04101f;
  box-shadow: var(--shadow);
}
.map-panel img { width: 100%; height: 270px; object-fit: cover; border: 1px solid rgba(212, 175, 55, .22); }
.map-panel .btn { position: absolute; left: 50%; bottom: 1.05rem; transform: translateX(-50%); border-radius: 3px; }
.map-panel .btn:hover { transform: translateX(-50%) translateY(-2px); }
.truth-panel { position: relative; z-index: 1; }
.truth-panel h2 { margin-bottom: 1rem; text-align: center; }
.truth-panel .compact-list { margin-top: .8rem; color: #43351f; font-size: .92rem; }
.truth-panel .compact-list li { margin-bottom: .5rem; }
.truth-panel .compact-list li::before { color: #84601f; }
.launch-note { font-size: .84rem; }
.text-link { display: inline-block; margin-top: .9rem; color: #63410f; font-weight: 700; }

.story-cast { display: grid; grid-template-columns: minmax(360px, .9fr) 1.1fr; gap: 2rem; align-items: start; }
.story-cast__art { position: relative; overflow: hidden; min-height: 0; aspect-ratio: 4 / 3; border: 1px solid var(--gold-700); border-radius: 22px 7px 22px 7px; box-shadow: var(--shadow); }
.story-cast__art img { width: 100%; height: 100%; object-fit: cover; }
.story-cast__art figcaption { position: absolute; inset: auto 0 0; padding: 1.5rem; color: #fff; background: linear-gradient(transparent, rgba(2, 9, 20, .95)); font-size: .88rem; }
.story-cast__cards { display: grid; gap: 1rem; }
.story-cast__cards .card { position: relative; padding-left: 5rem; }
.cast-number { position: absolute; left: 1.4rem; top: 1.15rem; color: var(--gold-500); font: 800 1.8rem var(--font-head); opacity: .75; }
.lesson-grid .card { text-align: center; }
.lesson-icon { display: block; margin-bottom: .6rem; color: var(--gold-400); font-size: 2rem; }
.visual-story__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.visual-story figure { overflow: hidden; border: 1px solid var(--gold-700); border-radius: 18px 5px 18px 5px; box-shadow: var(--shadow); }
.visual-story figure img { width: 100%; }
.visual-story__copy p { color: var(--muted); }
.visual-story__copy .btn { margin-top: 1.4rem; }
.parents-banner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.6rem);
  color: #2b210f;
  background: linear-gradient(135deg, #f4e4c5, #dfbf82);
  border: 1px solid #b58b43;
  border-radius: 20px 7px 20px 7px;
  box-shadow: var(--shadow);
}
.parents-banner h2 { color: #271d0d; }
.parents-banner p { margin: .9rem 0 1.3rem; color: #43351f; }
.parents-banner .eyebrow { color: #795315; }
.parents-banner img { width: 250px; border-radius: 50%; box-shadow: 0 12px 30px rgba(48, 29, 4, .28); }
.home-page #subscribe .subscribe { text-align: center; }
.home-page #subscribe .subscribe > p { color: var(--muted); }
.home-page #subscribe .subscribe-form { max-width: 660px; margin: 1.4rem auto 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .home-header .logo--expanded { min-width: 210px; }
  .home-header .logo--expanded small { display: none; }
  .home-hero__grid { grid-template-columns: .55fr 1fr; }
  .home-heroes { grid-column: 1 / -1; width: min(760px, 100%); margin-inline: auto; }
  .home-hero__spacer { min-height: 220px; }
  .home-panels__grid { grid-template-columns: 1fr 1fr; }
  .truth-panel { grid-column: 1 / -1; }
  .story-cast { grid-template-columns: .8fr 1.2fr; }
}
@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 11, 36, .98);
    border-bottom: 1px solid var(--line);
    padding: .6rem 4%;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem .4rem; border-bottom: 1px solid rgba(212, 175, 55, .1); }
  .site-nav a.is-active { border-bottom-color: rgba(212, 175, 55, .1); color: var(--gold-300); }
  .nav-toggle { display: flex; }
  .home-header .site-nav { top: 74px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead, .hero__facts { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__book { order: -1; }
  .hero__book .book { width: min(240px, 60vw); }
  .map-teaser, .subscribe__grid, .author { grid-template-columns: 1fr; text-align: center; }
  .author__photo { margin-inline: auto; }
  .home-hero__art { inset: 0; opacity: .58; }
  .home-hero__veil { background: linear-gradient(0deg, rgba(2, 10, 23, .98) 0%, rgba(2, 10, 23, .42) 72%, rgba(2, 10, 23, .72) 100%); }
  .home-hero__grid { grid-template-columns: 1fr; padding-block: 3rem; text-align: center; }
  .home-hero__spacer { display: none; }
  .home-hero__copy { max-width: 720px; margin: auto; }
  .adventure-nav { margin-top: 0; }
  .adventure-nav__grid { grid-template-columns: repeat(2, 1fr); }
  .adventure-nav a { border-bottom: 1px solid rgba(212, 175, 55, .3); }
  .home-panels__grid, .story-cast, .visual-story__grid { grid-template-columns: 1fr; }
  .story-cast__art { min-height: 0; }
}
@media (max-width: 720px) {
  body { padding-bottom: 62px; }
  .grid--3, .grid--2, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscribe-form { flex-direction: column; }
  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: rgba(7, 11, 36, .96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .mobile-tabbar a, .mobile-tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: .55rem 0 .5rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: .72rem;
    text-decoration: none;
  }
  .mobile-tabbar svg { width: 21px; height: 21px; }
  .mobile-tabbar a.is-active, .mobile-tabbar a:hover, .mobile-tabbar button:hover { color: var(--gold-300); }
  .toast { bottom: 78px; }
  .logo--expanded { min-width: auto !important; font-size: 1.03rem; }
  .logo__emblem { width: 40px; height: 40px; }
  .home-hero { min-height: auto; }
  .home-hero__grid { min-height: 640px; }
  .home-hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .home-hero__welcome { font-size: .9rem; }
  .home-hero__welcome::before, .home-hero__welcome::after { width: 34px; }
  .home-heroes__list { grid-template-columns: 1fr; }
  .home-heroes article { display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; gap: 0 .8rem; text-align: left; }
  .character-medallion { grid-row: 1 / 3; width: 58px; }
  .home-heroes article h3 { margin: .2rem 0 0; }
  .adventure-nav__grid { grid-template-columns: 1fr; }
  .adventure-nav a { border-right: 0; }
  .new-book-panel__body { grid-template-columns: 105px 1fr; }
  .new-book-panel img { width: 105px; height: 170px; }
  .map-panel img { height: 240px; }
  .story-cast__art { min-height: 0; }
  .story-cast__cards .card { padding-left: 1.5rem; padding-top: 4rem; }
  .cast-number { left: 1.5rem; }
  .parents-banner { grid-template-columns: 1fr; text-align: center; }
  .parents-banner img { width: 190px; order: -1; margin: auto; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
