/* ==========================================================================
   PARS · TOJIK — История персов и таджиков
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg: #faf6ec;
  --bg-alt: #f2ead8;
  --surface: #ffffff;
  --surface-2: #fbf8f1;
  --ink: #1c1815;
  --ink-soft: #55503f;
  --ink-faint: #8b8370;
  --line: rgba(28,22,15,0.12);
  --line-strong: rgba(28,22,15,0.22);

  /* фирменный тёмно-синий Laxora History (имена переменных сохранены) */
  --teal-950: #071227;
  --teal-900: #0b1b3a;
  --teal-800: #102a52;
  --teal-700: #16386b;
  --teal-600: #1d4a85;
  --teal-500: #2560a8;

  --gold-300: #ecd08b;
  --gold-400: #ddb662;
  --gold-500: #c7973b;
  --gold-600: #a97a2b;

  --terracotta: #b5573a;
  --terracotta-soft: #d98b6f;

  --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px rgba(20,14,4,0.06), 0 1px 1px rgba(20,14,4,0.04);
  --shadow-md: 0 8px 24px -8px rgba(20,14,4,0.18);
  --shadow-lg: 0 24px 64px -16px rgba(6,12,28,0.35);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --container: 1180px;
  --nav-h: 76px;

  color-scheme: light;
}

:root[data-theme="dark"]{
  --bg: #081020;
  --bg-alt: #0c1730;
  --surface: #11203c;
  --surface-2: #0d1a33;
  --ink: #f3ede0;
  --ink-soft: #cbc2ab;
  --ink-faint: #8f9cb5;
  --line: rgba(230,220,195,0.12);
  --line-strong: rgba(230,220,195,0.22);
  --gold-500: #d9b463;
  --gold-400: #e7c988;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg: #081020;
    --bg-alt: #0c1730;
    --surface: #11203c;
    --surface-2: #0d1a33;
    --ink: #f3ede0;
    --ink-soft: #cbc2ab;
    --ink-faint: #8f9cb5;
    --line: rgba(230,220,195,0.12);
    --line-strong: rgba(230,220,195,0.22);
    --gold-500: #d9b463;
    --gold-400: #e7c988;
    color-scheme: dark;
  }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
.container{ width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p{ margin: 0 0 1.1em; }
.eyebrow{
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
:root[data-theme="dark"] .eyebrow{ color: var(--gold-400); }
.eyebrow::before{
  content:"";
  width: 26px; height: 1px;
  background: currentColor;
  display:inline-block;
}

.visually-hidden{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:12px; top:-60px;
  background:var(--gold-500); color:var(--teal-950); font-family:var(--font-ui); font-weight:700;
  padding:10px 16px; border-radius:8px; z-index:999; transition: top .2s ease;
}
.skip-link:focus{ top:12px; }

/* ---------- Decorative motifs (inline SVG helpers) ---------- */
.divider{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin: 2.4em 0; color: var(--gold-500); opacity:.9;
}
.divider::before,.divider::after{ content:""; height:1px; flex:1; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.divider svg{ width:22px; height:22px; flex-shrink:0; }

/* ============================== NAV ============================== */
.site-header{
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  height: var(--nav-h);
  display:flex; align-items:center;
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease, height .3s ease, backdrop-filter .4s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.site-header.is-hidden{ transform: translateY(-110%); }
.site-header.is-scrolled{
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  height: 68px;
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap: 24px; }

.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-mark{ width:38px; height:38px; color: var(--gold-500); flex-shrink:0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand-mark{ transform: rotate(24deg) scale(1.06); }
.brand-text{ font-family: var(--font-ui); line-height:1.05; }
.brand-text strong{ display:block; font-size:16.5px; font-weight:800; letter-spacing:0.02em; color:var(--ink); transition: color .3s ease; }
.brand-text span{ display:block; font-size:11px; font-weight:600; letter-spacing:0.1em; color: var(--ink-faint); text-transform:uppercase; transition: color .3s ease; }

.nav-links{ display:flex; align-items:center; gap:2px; list-style:none; margin:0; padding:0; font-family: var(--font-ui); }
.nav-links a{
  display:inline-block; padding:10px 15px; font-size:14.5px; font-weight:600;
  text-decoration:none; color: var(--ink-soft); border-radius: 999px; position:relative;
  transition: color .3s ease, background .2s ease;
}
.nav-links a:hover{ color: var(--ink); background: var(--line); }
.nav-links a.is-active{ color: var(--teal-600); }
:root[data-theme="dark"] .nav-links a.is-active{ color: var(--gold-400); }

.nav-tools{ display:flex; align-items:center; gap:8px; }
.icon-btn{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: transform .25s ease, background .3s ease, border-color .3s ease, color .3s ease;
}
.icon-btn:hover{ border-color: var(--gold-500); transform: translateY(-2px); }
.icon-btn svg{ width:18px; height:18px; }
.icon-btn .i-moon{ display:none; }
:root[data-theme="dark"] .icon-btn .i-sun{ display:none; }
:root[data-theme="dark"] .icon-btn .i-moon{ display:block; }

.nav-burger{ display:none; }

@media (max-width: 900px){
  .nav-links{ display:none; }
  .nav-burger{
    display:flex; width:40px; height:40px; border-radius:50%; border:1px solid var(--line);
    background: var(--surface); color: var(--ink); align-items:center; justify-content:center; cursor:pointer;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
  }
  .nav-burger svg{ width:20px; height:20px; }
}

/* Every page opens on a dark hero/page-hero, and the header floats
   transparently over it until scrolled — force light, legible chrome
   for that state regardless of the light/dark theme setting. */
.site-header:not(.is-scrolled) .brand-text strong{ color:#f6f1e3; }
.site-header:not(.is-scrolled) .brand-text span{ color: rgba(246,241,227,0.62); }
.site-header:not(.is-scrolled) .nav-links a{ color: rgba(246,241,227,0.78); }
.site-header:not(.is-scrolled) .nav-links a:hover{ color:#fbf7ea; background: rgba(255,255,255,0.1); }
.site-header:not(.is-scrolled) .nav-links a.is-active{ color: var(--gold-400); }
.site-header:not(.is-scrolled) .icon-btn,
.site-header:not(.is-scrolled) .nav-burger{
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color:#f6f1e3;
}
.site-header:not(.is-scrolled) .icon-btn:hover{ border-color: var(--gold-400); }

.mobile-menu{
  position: fixed; inset:0; z-index:600; background: var(--teal-950);
  display:flex; flex-direction:column; padding: 100px 32px 40px;
  transform: translateY(-100%); transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu a{
  font-family: var(--font-display); font-size: 30px; font-weight:700; color:#f3ede0;
  text-decoration:none; padding: 14px 0; border-bottom:1px solid rgba(255,255,255,0.1);
  opacity:0; transform: translateY(18px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.mobile-menu.is-open a{ opacity:1; transform:none; }
.mobile-menu.is-open a:nth-of-type(1){ transition-delay:.08s; }
.mobile-menu.is-open a:nth-of-type(2){ transition-delay:.14s; }
.mobile-menu.is-open a:nth-of-type(3){ transition-delay:.2s; }
.mobile-menu.is-open a:nth-of-type(4){ transition-delay:.26s; }
.mobile-menu.is-open a:nth-of-type(5){ transition-delay:.32s; }
.mobile-menu.is-open a:nth-of-type(6){ transition-delay:.38s; }
.mobile-menu.is-open a:nth-of-type(7){ transition-delay:.44s; }
.mobile-menu-close{
  position:absolute; top:24px; right:24px; width:44px; height:44px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.25); background:transparent; color:#f3ede0; cursor:pointer;
}

/* ============================== HERO ============================== */
.hero{
  position: relative; min-height: 100svh; display:flex; align-items:flex-end;
  background: radial-gradient(120% 90% at 18% 8%, var(--teal-800) 0%, var(--teal-900) 42%, var(--teal-950) 100%);
  color: #f6f1e3; overflow:hidden; padding-top: var(--nav-h);
}
.hero-pattern{ position:absolute; inset:0; opacity:.16; mix-blend-mode: screen; }
.hero-pattern svg{ width:100%; height:100%; }
.hero-glow{
  position:absolute; top:-20%; right:-10%; width:70%; height:70%; border-radius:50%;
  background: radial-gradient(circle, rgba(199,151,59,0.35), transparent 65%);
  filter: blur(10px);
}
.hero-skyline{ position:absolute; left:0; right:0; bottom:0; width:100%; color: rgba(4,10,24,0.9); }
.hero-skyline svg{ width:100%; height:auto; display:block; }

.hero-inner{ position:relative; z-index:2; padding-block: 120px 190px; width:100%; }
.hero-kicker{
  font-family: var(--font-ui); font-size:13px; letter-spacing:.22em; text-transform:uppercase;
  color: var(--gold-400); font-weight:700; margin-bottom:22px; display:flex; align-items:center; gap:12px;
}
.hero-kicker .farsi{ font-family: 'Noto Naskh Arabic','Lora', serif; font-size:20px; letter-spacing:0; color: var(--gold-300); font-weight:500; }

.hero h1{
  font-size: clamp(2.4rem, 6vw, 5rem); color:#fbf7ea; max-width: 16ch; margin-bottom: 28px;
}
.hero h1 em{ font-style: italic; color: var(--gold-400); }
.hero-lede{
  font-family: var(--font-body); font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 640px;
  color: rgba(246,241,227,0.86); font-style: italic;
}
.hero-meta{
  display:flex; flex-wrap:wrap; gap: 28px; margin-top: 44px; font-family: var(--font-ui);
}
.hero-meta div{ display:flex; flex-direction:column; gap:4px; }
.hero-meta strong{ font-size: 22px; font-family: var(--font-display); color: var(--gold-400); }
.hero-meta span{ font-size: 12px; letter-spacing:.06em; text-transform:uppercase; color: rgba(246,241,227,0.62); }

.scroll-cue{
  position:absolute; left:50%; bottom:34px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-family: var(--font-ui); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color: rgba(246,241,227,0.7); z-index:3;
}
.scroll-cue .line{ width:1px; height:40px; background: linear-gradient(to bottom, rgba(246,241,227,.9), transparent); animation: scrollpulse 2.2s ease-in-out infinite; }
@keyframes scrollpulse{ 0%,100%{ transform: scaleY(.4); opacity:.4; } 50%{ transform: scaleY(1); opacity:1; } }

/* ============================== LEDE / INTRO ============================== */
.lede-section{ background: var(--surface); padding: 96px 0 40px; }
.lede-grid{ display:grid; grid-template-columns: 1fr; gap:40px; }
.lede-text{ max-width: 760px; }
.lede-text .drop{ font-size: clamp(1.2rem,2vw,1.5rem); line-height:1.55; color: var(--ink-soft); font-style:italic; }
.lede-text .drop::first-letter{
  font-family: var(--font-display); font-style:normal; font-weight:800; font-size: 4.4em; line-height:.78;
  float:left; margin: 0.03em 0.09em 0 0; color: var(--teal-600);
}
:root[data-theme="dark"] .lede-text .drop::first-letter{ color: var(--gold-400); }

/* ============================== TIMELINE ============================== */
.timeline-section{ background: var(--bg-alt); padding: 88px 0; position:relative; }
.section-head{ max-width: 720px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(1.8rem,3.4vw,2.7rem); margin-top:14px; }
.section-head p{ color: var(--ink-soft); font-size:1.08rem; margin-top:14px; }

.timeline-scroller{ position:relative; }
.timeline-track{
  display:flex; gap:0; overflow-x:auto; scroll-snap-type:x proximity; padding-bottom: 28px;
  scrollbar-width: thin; scrollbar-color: var(--gold-500) transparent;
}
.timeline-track::-webkit-scrollbar{ height:6px; }
.timeline-track::-webkit-scrollbar-thumb{ background: var(--line-strong); border-radius:4px; }

.tl-card{
  scroll-snap-align:start; flex: 0 0 auto; width: min(320px, 78vw); margin-right:22px;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px 24px; position:relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  text-decoration: none; color: inherit; display:block;
}
.tl-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.tl-card:last-child{ margin-right:0; }
.tl-year{ font-family: var(--font-ui); font-weight:800; color: var(--gold-600); font-size:13px; letter-spacing:.08em; }
:root[data-theme="dark"] .tl-year{ color: var(--gold-400); }
.tl-card h3{ font-size:1.25rem; margin: 10px 0 10px; }
.tl-card p{ font-size:0.95rem; color: var(--ink-soft); margin-bottom:0; }
.tl-dot{ width:10px; height:10px; border-radius:50%; background: var(--terracotta); position:absolute; top:24px; right:24px; }

/* ============================== ARTICLE ============================== */
.article-section{ background: var(--surface); padding: 20px 0 40px; }
.chapter{ padding-block: 76px; border-top: 1px solid var(--line); }
.chapter:first-of-type{ border-top:none; }
.chapter-grid{ display:grid; grid-template-columns: minmax(0,1fr); gap: 40px; align-items:start; }
.chapter-num{ font-family: var(--font-display); font-size: 15px; color: var(--ink-faint); letter-spacing:.1em; }
.chapter h2{ font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 12px 0 26px; max-width: 18ch; }
.chapter-body{ max-width: 720px; font-size: 1.08rem; color: var(--ink); }
.chapter-body p{ margin-bottom: 1.35em; }
.chapter-body strong{ color: var(--ink); }
.chapter-body a{ color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset:3px; }
:root[data-theme="dark"] .chapter-body a{ color: var(--gold-400); }

.pull-quote{
  margin: 2.4em 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--gold-500);
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height:1.4; color: var(--ink);
}
.pull-quote cite{ display:block; margin-top:12px; font-family: var(--font-ui); font-style:normal; font-size:13px; color: var(--ink-faint); letter-spacing:.04em; }

.figure{
  margin: 2.6em 0; border-radius: var(--radius-md); overflow:hidden; background: var(--bg-alt);
  border:1px solid var(--line); box-shadow: var(--shadow-sm);
}
.figure .media{ position:relative; aspect-ratio: 16/10; background: var(--bg-alt); overflow:hidden; }
.figure .media img{ width:100%; height:100%; object-fit:cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.figure:hover .media img{ transform: scale(1.045); }
.figure figcaption{ padding: 16px 22px; font-family: var(--font-ui); font-size: 13.5px; color: var(--ink-faint); line-height:1.5; }
.figure figcaption a{ color: inherit; text-decoration: underline; text-underline-offset:2px; }

.media.media--fallback img,
.g-item.media--fallback img{ display:none; }
.figure .media.media--fallback,
.g-item.media--fallback{
  display:flex; align-items:center; justify-content:center; text-align:center; padding: 24px;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-950));
}
.figure .media.media--fallback::after,
.g-item.media--fallback::after{
  content: attr(data-fallback); color: rgba(246,241,227,0.85); font-family: var(--font-display); font-style:italic; font-size:1.05rem; max-width:80%;
}
.g-item.media--fallback{ cursor: default; }
.g-item.media--fallback .g-cap{ display:none; }

.chip-row{ display:flex; flex-wrap:wrap; gap:10px; margin: 1.6em 0; }
.chip{
  font-family: var(--font-ui); font-size:13px; font-weight:600; padding:8px 16px; border-radius:999px;
  background: var(--bg-alt); border:1px solid var(--line); color: var(--ink-soft);
}

.stat-row{ display:grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap:22px; margin: 2em 0; }
.stat{ padding: 20px 0; border-top: 1px solid var(--line); }
.stat strong{ display:block; font-family: var(--font-display); font-size: 2rem; color: var(--teal-600); }
:root[data-theme="dark"] .stat strong{ color: var(--gold-400); }
.stat span{ font-family: var(--font-ui); font-size: 12.5px; color: var(--ink-faint); text-transform:uppercase; letter-spacing:.05em; }

@media (min-width: 980px){
  .chapter-grid{ grid-template-columns: 220px minmax(0,1fr); gap: 56px; }
  .chapter-aside{ position: sticky; top: 110px; }
}

/* ============================== HERITAGE / SHARED ============================== */
.heritage-section{ background: var(--teal-950); color:#f3ede0; padding: 100px 0; position:relative; overflow:hidden; }
.heritage-section .hero-pattern{ opacity:.1; }
.heritage-grid{ display:grid; grid-template-columns: 1fr; gap: 48px; position:relative; z-index:2; }
.heritage-section .section-head p{ color: rgba(243,237,224,0.72); }
.heritage-section .eyebrow{ color: var(--gold-400); }
.heritage-section h2{ color:#fbf7ea; }

.heritage-cards{ display:grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap:20px; }
.h-card{
  background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md);
  padding: 26px; transition: transform .3s ease, background .3s ease;
}
.h-card:hover{ transform: translateY(-5px); background: rgba(255,255,255,0.07); }
.h-card svg{ width:30px; height:30px; color: var(--gold-400); margin-bottom:16px; }
.h-card h3{ color:#f6f1e3; font-size:1.15rem; margin-bottom:10px; }
.h-card p{ color: rgba(243,237,224,0.68); font-size:0.94rem; margin:0; }

/* ============================== GALLERY ============================== */
.gallery-section{ background: var(--bg-alt); padding: 100px 0; }
.gallery-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 14px;
}
.g-item{
  position:relative; border-radius: var(--radius-sm); overflow:hidden; cursor:zoom-in; border:1px solid var(--line);
  background: var(--bg-alt);
}
.g-item img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease, filter .5s ease; }
.g-item:hover img{ transform: scale(1.08); }
.g-item .g-cap{
  position:absolute; inset:auto 0 0 0; padding: 10px 12px 8px;
  background: linear-gradient(to top, rgba(3,8,20,0.85), transparent);
  color:#f3ede0; font-family: var(--font-ui); font-size:12px; opacity:0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.g-item:hover .g-cap{ opacity:1; transform: translateY(0); }
.g-item.g-tall{ grid-row: span 2; }
.g-item.g-wide{ grid-column: span 2; }

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 150px; }
  .g-item.g-wide{ grid-column: span 2; }
}

.lightbox{
  position: fixed; inset:0; z-index: 900; background: rgba(4,9,22,0.92);
  display:flex; align-items:center; justify-content:center; padding: 40px;
  opacity:0; pointer-events:none; transition: opacity .3s ease;
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width: 100%; max-height: 80vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption{ color:#f3ede0; font-family: var(--font-ui); font-size:13.5px; text-align:center; margin-top:16px; max-width:640px; }
.lightbox-close{
  position:absolute; top:26px; right:26px; width:46px; height:46px; border-radius:50%;
  background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.2); color:#f3ede0; cursor:pointer;
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%;
  background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.2); color:#f3ede0; cursor:pointer;
}
.lightbox-prev{ left: 20px; } .lightbox-next{ right: 20px; }

/* ============================== VIDEO ============================== */
.video-section{ background: var(--surface); padding: 100px 0; }
.video-wrap{
  position:relative; border-radius: var(--radius-lg); overflow:hidden; background: var(--teal-950);
  aspect-ratio: 16/9; box-shadow: var(--shadow-lg); border:1px solid var(--line);
}
.video-wrap video{ width:100%; height:100%; object-fit:cover; display:block; }
.video-poster{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(150deg, var(--teal-800), var(--teal-950) 70%); cursor:pointer;
}
.video-poster .pattern-layer{ position:absolute; inset:0; opacity:.14; }
.play-btn{
  position:relative; z-index:2; width: 92px; height:92px; border-radius:50%;
  background: rgba(246,241,227,0.12); border:1.5px solid rgba(246,241,227,0.5);
  display:flex; align-items:center; justify-content:center; transition: transform .3s ease, background .3s ease;
}
.video-poster:hover .play-btn{ transform: scale(1.08); background: rgba(246,241,227,0.2); }
.play-btn svg{ width:30px; height:30px; color:#f6f1e3; margin-left:4px; }
.video-caption-overlay{
  position:absolute; left:28px; bottom:26px; z-index:2; color:#f3ede0; font-family: var(--font-ui);
  max-width: 70%;
}
.video-caption-overlay strong{ display:block; font-family: var(--font-display); font-size: clamp(1.3rem,2.4vw,1.9rem); margin-bottom:6px; }
.video-caption-overlay span{ font-size: 13px; color: rgba(243,237,224,0.72); }
.video-note{
  margin-top: 22px; font-family: var(--font-ui); font-size: 13.5px; color: var(--ink-faint);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px 18px;
}
.video-note code{ background: var(--bg-alt); padding:2px 6px; border-radius:4px; font-size:12.5px; }

/* ============================== SOURCES / FOOTER ============================== */
.sources-section{ background: var(--bg-alt); padding: 90px 0; }
.sources-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: 1fr; gap: 14px; max-width: 760px; }
.sources-list li{
  font-family: var(--font-ui); font-size: 14.5px; color: var(--ink-soft); padding: 16px 20px;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-sm);
  display:flex; gap:14px; align-items:baseline;
}
.sources-list b{ color: var(--ink); font-weight:700; }
@media (min-width:760px){ .sources-list{ grid-template-columns: 1fr 1fr; } }

.site-footer{ background: var(--teal-950); color: rgba(243,237,224,0.72); padding: 64px 0 32px; font-family: var(--font-ui); }
.footer-grid{ display:grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p{ max-width: 380px; font-size: 14px; line-height:1.7; color: rgba(243,237,224,0.6); }
.footer-cols{ display:grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 30px; }
.footer-cols h4{ font-family: var(--font-ui); font-size: 12.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--gold-400); margin-bottom: 14px; }
.footer-cols ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.footer-cols a{ text-decoration:none; color: rgba(243,237,224,0.72); font-size:14px; transition: color .2s ease; }
.footer-cols a:hover{ color: var(--gold-400); }
.footer-bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding-top: 26px; font-size: 12.5px; color: rgba(243,237,224,0.45); }

@media (min-width: 760px){
  .footer-grid{ grid-template-columns: 1.2fr 2fr; }
}

/* ============================== REVEAL ANIMATION ============================== */
[data-reveal]{ opacity:0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible{ opacity:1; transform: translateY(0); }
[data-reveal="fade"]{ transform:none; }

/* ============================== UTIL ============================== */
.btn{
  display:inline-flex; align-items:center; gap:10px; font-family: var(--font-ui); font-weight:700; font-size:14.5px;
  padding: 14px 26px; border-radius: 999px; text-decoration:none; cursor:pointer; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-gold{ background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--teal-950); }
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(199,151,59,0.55); }
.btn-ghost{ background: transparent; border-color: rgba(246,241,227,0.4); color: inherit; }
.btn-ghost:hover{ background: rgba(246,241,227,0.08); }

@media (max-width: 640px){
  body{ font-size: 16px; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 130px; }
  .hero-inner{ padding-block: 90px 150px; }
}

/* ==========================================================================
   MOTION SYSTEM v2 — Laxora History
   ========================================================================== */

/* ---------- Focus ring ---------- */
:focus-visible{ outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Cinematic preloader ---------- */
.preloader{
  position: fixed; inset: 0; z-index: 1200;
  background: radial-gradient(120% 90% at 30% 20%, var(--teal-900), var(--teal-950) 75%);
  display: none; align-items: center; justify-content: center;
  transition: opacity .65s ease, visibility .65s ease;
}
html.js .preloader.is-active{ display: flex; }
.preloader.is-done{ opacity: 0; visibility: hidden; }
.preloader-inner{ text-align: center; }
.preloader-star{ width: 76px; height: 76px; color: var(--gold-400); }
.preloader-star .draw{
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: star-draw 1.05s cubic-bezier(.4,0,.2,1) forwards .1s;
}
.preloader-star .d2{ animation-delay: .4s; }
.preloader-star .d3{ animation-delay: .55s; }
.preloader-star .fig{ opacity: 0; animation: fade-up .7s ease forwards .85s; }
@keyframes star-draw{ to{ stroke-dashoffset: 0; } }
.preloader-name{
  font-family: var(--font-display); color: #f6f1e3; font-size: 21px;
  letter-spacing: .34em; text-transform: uppercase; margin-top: 20px; padding-left: .34em;
  opacity: 0; animation: fade-up .8s cubic-bezier(.2,.7,.2,1) forwards .55s;
}
.preloader-name span{ color: var(--gold-400); }
@keyframes fade-up{ from{ opacity:0; transform: translateY(12px); } to{ opacity:1; transform:none; } }

/* ---------- Hero entrance choreography ---------- */
.hero .w{ display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero .wi{
  display: inline-block; transform: translateY(112%);
  transition: transform 1s cubic-bezier(.19,.8,.22,1);
}
body.hero-ready .hero .wi{ transform: none; }

html.js .hero-kicker,
html.js .hero-lede,
html.js .hero-meta > *,
html.js .scroll-cue{
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
body.hero-ready .hero-kicker{ opacity:1; transform:none; transition-delay:.1s; }
body.hero-ready .hero-lede{ opacity:1; transform:none; transition-delay:.55s; }
body.hero-ready .hero-meta > *:nth-child(1){ opacity:1; transform:none; transition-delay:.75s; }
body.hero-ready .hero-meta > *:nth-child(2){ opacity:1; transform:none; transition-delay:.87s; }
body.hero-ready .hero-meta > *:nth-child(3){ opacity:1; transform:none; transition-delay:.99s; }
body.hero-ready .scroll-cue{ opacity:1; transform:none; transition-delay:1.35s; }

/* ---------- Reading progress bar ---------- */
.scroll-progress{
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 900;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* ---------- Back to top ---------- */
.to-top{
  position: fixed; right: 24px; bottom: 24px; z-index: 750;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--teal-800); color: #f6f1e3; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), background .25s ease;
}
.to-top.is-visible{ opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover{ background: var(--teal-700); transform: translateY(-3px); }
.to-top svg{ width: 20px; height: 20px; }

/* ---------- Section titles: gold underline draws itself in ---------- */
.section-head h2::after,
.chapter-body h2::after{
  content: ""; display: block; width: 64px; height: 3px; margin-top: 20px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(.2,.7,.2,1) .3s;
}
.section-head.is-visible h2::after,
.chapter-body.is-visible h2::after{ transform: scaleX(1); }

/* ---------- Images: soft fade-in when loaded ---------- */
html.js .figure .media img{
  opacity: 0;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
html.js .figure .media img.is-loaded{ opacity: 1; }
html.js .g-item img{
  opacity: 0;
  transition: opacity .7s ease, transform .5s ease, filter .5s ease;
}
html.js .g-item img.is-loaded{ opacity: 1; }

/* ---------- Lightbox: scale-in and image crossfade ---------- */
.lightbox figure{
  transform: scale(.95); opacity: 0;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}
.lightbox.is-open figure{ transform: none; opacity: 1; }
html.js #lightboxImg{ opacity: 0; transition: opacity .45s ease; }
html.js #lightboxImg.is-loaded{ opacity: 1; }

/* ---------- Motion layers: promote to their own compositor layer ---------- */
.hero-pattern, .hero-glow, .hero-inner, .hero-skyline{ will-change: transform; }
.tl-card, .h-card{ will-change: transform; }

/* ==========================================================================
   PORTAL v3 — разделы Laxora History
   ========================================================================== */

/* ---------- Page hero (внутренние страницы) ---------- */
.page-hero{
  position: relative; overflow: hidden; color: #f6f1e3;
  background: radial-gradient(120% 100% at 20% 0%, var(--teal-800) 0%, var(--teal-900) 45%, var(--teal-950) 100%);
  padding: calc(var(--nav-h) + 72px) 0 76px;
}
.page-hero .hero-pattern{ opacity: .13; }
.page-hero h1{ font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fbf7ea; margin: 14px 0 18px; }
.ph-lede{
  max-width: 620px; font-style: italic; font-size: 1.08rem;
  color: rgba(246,241,227,0.85); margin: 0;
}
.page-hero .eyebrow, .page-hero h1, .page-hero .ph-lede, .page-hero .hero-meta{
  opacity: 0; transform: translateY(20px);
  animation: fade-up .8s cubic-bezier(.2,.7,.2,1) forwards;
}
.page-hero .eyebrow{ animation-delay: .05s; }
.page-hero h1{ animation-delay: .16s; }
.page-hero .ph-lede{ animation-delay: .3s; }
.page-hero .hero-meta{ animation-delay: .44s; }

/* ---------- Хаб: карточки разделов ---------- */
.portal-section{ background: var(--surface); padding: 96px 0; }
.portal-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin-top: 8px;
}
.portal-card{
  position: relative; display: block; text-decoration: none; color: inherit;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px 26px 28px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.portal-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.portal-card > svg{ width: 34px; height: 34px; color: var(--gold-600); }
:root[data-theme="dark"] .portal-card > svg{ color: var(--gold-400); }
.portal-card h3{ font-size: 1.35rem; margin: 16px 0 10px; }
.portal-card p{ font-size: .95rem; color: var(--ink-soft); margin: 0 0 18px; }
.portal-card.is-soon{ opacity: .88; }
.portal-arrow{
  position: absolute; top: 26px; right: 22px; font-family: var(--font-ui);
  font-size: 18px; color: var(--ink-faint);
  transition: transform .3s ease, color .3s ease;
}
.portal-card:hover .portal-arrow{ transform: translateX(4px); color: var(--gold-600); }

.badge{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 700;
  padding: 6px 13px; border-radius: 999px;
}
.badge-live{ background: rgba(31,130,113,0.14); color: var(--teal-600); }
:root[data-theme="dark"] .badge-live{ color: #7db3e8; }
.badge-soon{ background: var(--line); color: var(--ink-faint); }

/* ---------- Хаб: главный материал ---------- */
.feature-section{ background: var(--bg-alt); padding: 90px 0; }
.feature-card{
  display: grid; grid-template-columns: 1fr; text-decoration: none;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--teal-950); color: #f3ede0; box-shadow: var(--shadow-lg);
}
.feature-media{ position: relative; min-height: 260px; overflow: hidden; }
.feature-media img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.feature-card:hover .feature-media img{ transform: scale(1.05); }
.feature-body{ padding: 44px 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.feature-body h2{ color: #fbf7ea; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.feature-body h2::after{ display: none; }
.feature-body p{ color: rgba(243,237,224,0.75); margin: 0 0 6px; }
@media (min-width: 900px){
  .feature-card{ grid-template-columns: 1.1fr 1fr; }
}

/* ---------- Хаб: превью музея ---------- */
.museum-preview{ background: var(--surface); padding: 90px 0 100px; }
.preview-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.preview-item{
  position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt);
}
.preview-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.preview-item:hover img{ transform: scale(1.06); }
html.js .preview-item img{ opacity: 0; transition: opacity .7s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .preview-item img.is-loaded{ opacity: 1; }
.preview-cap{
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(3,8,20,0.88), transparent);
  color: #f3ede0; font-family: var(--font-ui);
}
.preview-cap strong{ display: block; font-size: 15px; }
.preview-cap span{ font-size: 12px; color: rgba(243,237,224,0.7); }

/* ---------- Музей ---------- */
.museum-section{ background: var(--surface); padding: 76px 0 100px; }
.m-filter{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chip{
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease;
}
.filter-chip:hover{ border-color: var(--gold-500); transform: translateY(-2px); }
.filter-chip.is-active{
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--teal-950); border-color: transparent;
}
.museum-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 22px; }
.m-card{
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.m-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.m-card.is-hidden{ display: none; }
.m-media{
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  cursor: zoom-in; background: var(--bg-alt);
}
.m-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.m-card:hover .m-media img{ transform: scale(1.06); }
html.js .m-media img{ opacity: 0; transition: opacity .7s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .m-media img.is-loaded{ opacity: 1; }
.m-tag{
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(7,18,39,0.78); color: var(--gold-300);
  backdrop-filter: blur(6px);
}
.m-body{ padding: 20px 22px 24px; }
.m-period{
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; color: var(--gold-600);
}
:root[data-theme="dark"] .m-period{ color: var(--gold-400); }
.m-body h3{ font-size: 1.15rem; margin: 8px 0; }
.m-body p{ font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* заглушка для .m-media без изображения */
.m-media.media--fallback img{ display: none; }
.m-media.media--fallback{
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-950)); cursor: default;
}
.m-media.media--fallback::after{
  content: attr(data-fallback); color: rgba(246,241,227,0.85);
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; max-width: 85%;
}
.m-media.media--fallback .m-tag{ display: none; }

/* ---------- Статьи ---------- */
.articles-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.a-card{
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.a-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.a-card.is-soon:hover{ transform: none; box-shadow: none; border-color: var(--line); }
.a-card .m-media{ cursor: pointer; }
.a-card.is-soon .m-media{ cursor: default; }

/* ---------- «Скоро» ---------- */
.soon-wrap{ background: var(--surface); padding: 90px 0 110px; }
.soon-panel{
  max-width: 680px; margin: 0 auto; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 64px 34px;
}
.soon-panel > svg{ width: 54px; height: 54px; color: var(--gold-500); margin-bottom: 20px; }
.soon-panel h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
.soon-panel h2::after{ margin-inline: auto; transform: scaleX(1); }
.soon-panel p{ color: var(--ink-soft); max-width: 500px; margin: 16px auto 0; }
.soon-actions{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.btn-outline{ border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover{ border-color: var(--gold-500); transform: translateY(-2px); }

/* ---------- Переключатель языка ---------- */
.lang-switch{ position: relative; }
.lang-btn{
  width: auto; min-width: 46px; padding: 0 14px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 800; letter-spacing: .04em;
}
.lang-menu{
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 650;
  min-width: 150px; padding: 6px; display: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.lang-menu.is-open{ display: block; }
.lang-menu button{
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 13px; border: none; background: none; border-radius: 9px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.lang-menu button:hover{ background: var(--line); }
.lang-menu button.is-active{ color: var(--teal-600); }
:root[data-theme="dark"] .lang-menu button.is-active{ color: var(--gold-400); }

.lang-banner{
  position: relative; z-index: 400;
  margin-top: var(--nav-h);
  padding: 12px 24px; text-align: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--teal-950);
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 600;
}
.lang-banner + .hero,
.lang-banner + .page-hero{ padding-top: 0; }
.lang-banner + .hero{ min-height: calc(100svh - var(--nav-h) - 46px); }

/* ---------- Академия: уроки ---------- */
.lessons-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.lesson-card{
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 22px 52px 22px 24px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.lesson-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.lesson-num{
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 800;
  color: var(--gold-500); line-height: 1; flex-shrink: 0; min-width: 46px;
}
.lesson-card h3{ font-size: 1.05rem; margin: 0 0 4px; }
.lesson-era{
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; color: var(--ink-faint);
}
.lesson-card .portal-arrow{ top: 50%; transform: translateY(-50%); }
.lesson-card:hover .portal-arrow{ transform: translateY(-50%) translateX(4px); }

/* ---------- Books ---------- */
.books-section{ background: var(--bg-alt); padding: 90px 0; }
.books-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 260px));
  justify-content: start; gap: 22px;
}
.book-card{
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.book-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.book-cover{
  position: relative; aspect-ratio: 2/3; overflow: hidden;
  background: radial-gradient(130% 150% at 25% 0%, var(--teal-700), var(--teal-950) 78%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 26px 18px;
}
.book-cover::before{
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(217,180,99,0.45);
  border-radius: 4px; pointer-events: none;
}
.book-cover .book-emblem{ width: 32px; height: 32px; color: var(--gold-400); margin-bottom: 16px; }
.book-cover .book-title{
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fbf7ea; line-height: 1.25;
}
.book-cover .book-author{
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-300); margin-top: 14px;
}
.book-body{ padding: 20px 22px 24px; }
.book-meta{
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--gold-600);
}
:root[data-theme="dark"] .book-meta{ color: var(--gold-400); }
.book-body h3{ font-size: 1.05rem; margin: 8px 0; }
.book-body p{ font-size: .92rem; color: var(--ink-soft); margin: 0; }
