/* ============================================================
   TAVROSKHID — ТавроСхід · Dark editorial redesign (v2)
   Тёмная редакционная тема: степь ночью, скифское золото, сталь.
   Шрифти: Lora (серифні заголовки), Onest (текст/UI),
   Unbounded (лого), Piazzolla (свідчення/цитати).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Onest:wght@400;500;600;700&family=Unbounded:wght@600;800&family=Piazzolla:ital,opsz,wght@0,8..30,400;0,8..30,500;1,8..30,400&display=swap&subset=cyrillic,latin-ext');

:root {
  /* фон */
  --bg: #0E1116;
  --bg-2: #12161C;
  --panel: #171C23;
  --panel-2: #1C222B;
  --line: #262D37;
  --line-soft: #1F2530;
  /* текст */
  --ink: #ECE7DC;
  --ink-2: #C4C1B8;
  --muted: #8A8F99;
  --faint: #626770;
  /* акценты */
  --gold: #D2A32C;
  --gold-2: #E7BE4B;
  --gold-deep: #A8801A;
  --teal: #2E7387;
  --teal-2: #3C8EA5;
  --clay: #C15A34;
  --steppe: #7E9152;
  /* прочее */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Onest', system-ui, 'Segoe UI', sans-serif;
  --font-logo: 'Unbounded', 'Arial Black', sans-serif;
  --font-serif: 'Piazzolla', Georgia, serif;
  --maxw: 1240px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.35);
  --head-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }
::selection { background: rgba(210,163,44,.28); color: #fff; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.hidden { display: none !important; }

/* плёночное зерно поверх всего фона */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* контент над зерном (grain z-index:1); НЕ чіпаємо оверлеї (fixed, z-index 110+) */
main, footer, .hero, .topbar { position: relative; z-index: 2; }
/* шапка вище секцій, щоб дропдауни перекривали hero; оверлеї (110+) — вище шапки */
#site-header { position: relative; z-index: 100; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: #0A0D11; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.topbar-date { color: var(--faint); letter-spacing: .04em; text-transform: capitalize; }
.lang-switch { display: flex; align-items: center; gap: 1px; flex-wrap: wrap; }
.lang-switch button {
  background: none; border: 1px solid transparent; color: var(--muted);
  font: 600 11.5px/1 var(--font-body); letter-spacing: .05em; padding: 5px 6px;
  border-radius: 5px; cursor: pointer; text-transform: uppercase;
}
.lang-switch button:hover { color: var(--gold-2); }
.lang-switch button.active { color: #0A0D11; background: var(--gold); border-color: var(--gold); }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,17,22,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.45); background: rgba(12,15,19,.95); }
.header-row { display: flex; align-items: center; gap: 18px; height: var(--head-h); }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(160deg, #211a09, #12161c);
  border: 1px solid var(--gold-deep); display: grid; place-items: center;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-txt { line-height: 1; }
.brand-name { font-family: var(--font-logo); font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--ink); }
.brand-name .accent { color: var(--gold); }
.brand-sub { font-size: 9.5px; letter-spacing: .28em; color: var(--faint); text-transform: uppercase; margin-top: 3px; }

/* десктоп-навигация */
.mainnav { display: flex; align-items: center; gap: 2px; margin-left: 6px; flex: 1 1 auto; }
.mainnav > a, .navdrop > button {
  font: 600 13.5px/1 var(--font-body); letter-spacing: .01em; color: var(--ink-2);
  padding: 10px 12px; border-radius: 8px; background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.mainnav > a:hover, .navdrop > button:hover { color: var(--ink); background: var(--panel); }
.mainnav > a.active { color: var(--gold-2); }
.mainnav > a.active::after,
.mainnav .navdrop.active > button::after { }
.navdrop > button .caret { font-size: 9px; opacity: .7; transition: transform .2s ease; }
.navdrop.open > button .caret { transform: rotate(180deg); }

.navdrop { position: relative; }
.droppanel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.navdrop.open .droppanel { opacity: 1; visibility: visible; transform: translateY(0); }
.droppanel.mega { min-width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dropitem { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); }
.dropitem:hover { background: var(--panel-2); color: var(--ink); }
.dropitem .di-t { font-weight: 600; font-size: 13.5px; }
.dropitem .di-d { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 16px;
}
.icon-btn:hover { color: var(--gold-2); border-color: var(--gold-deep); }
.btn-support {
  font: 700 13px/1 var(--font-body); letter-spacing: .01em; color: var(--gold-2);
  border: 1px solid var(--gold-deep); background: rgba(210,163,44,.08);
  padding: 11px 16px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}
.btn-support:hover { background: rgba(210,163,44,.16); color: var(--gold-2); }
.hamburger { display: none; }

/* поисковая панель */
.searchbar { border-top: 1px solid var(--line); background: var(--bg-2); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.searchbar.open { max-height: 80px; }
.searchbar .wrap { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.searchbar input {
  flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  border-radius: 9px; padding: 11px 14px; font: 400 15px var(--font-body); outline: none;
}
.searchbar input:focus { border-color: var(--gold-deep); }

/* ---------- Mobile menu ---------- */
.mobile-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 110; opacity: 0; visibility: hidden; transition: opacity .2s; }
.mobile-scrim.open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 88vw); z-index: 120;
  background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1); overflow-y: auto; padding: 18px 16px 40px;
}
.mobile-menu.open { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mm-close { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 20px; cursor: pointer; }
.mm-group { border-top: 1px solid var(--line-soft); padding: 6px 0; }
.mm-group > a, .mm-acc > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font: 600 15px var(--font-body); color: var(--ink); padding: 13px 6px; background: none; border: none; cursor: pointer; text-align: left;
}
.mm-acc-body { display: none; padding: 0 6px 8px 14px; }
.mm-acc.open .mm-acc-body { display: block; }
.mm-acc-body a { display: block; padding: 9px 6px; font-size: 14px; color: var(--ink-2); }
.mm-support { margin-top: 16px; width: 100%; text-align: center; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 78% 30%, rgba(46,115,135,.22), transparent 60%),
    radial-gradient(50% 70% at 15% 90%, rgba(168,128,26,.16), transparent 60%),
    linear-gradient(180deg, #0C0F14 0%, #0E1319 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 54px 22px 46px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 700 11.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(30px, 5vw, 58px); line-height: 1.06; margin: 16px 0 18px; color: #F5F1E7;
}
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 620px; margin-bottom: 24px; }
.hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--font-body); padding: 13px 20px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; transition: transform .1s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #eafcff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-gold { background: var(--gold); color: #14100a; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); color: #14100a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-2); }

/* also-today sidebar */
.also { border-left: 1px solid var(--line); padding-left: 26px; }
@media (max-width: 900px){ .also { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; } }
.also h3 { font: 700 11.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.also-item { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.also-item:last-child { border-bottom: none; }
.also-item .t { font-family: var(--font-display); font-size: 17px; line-height: 1.28; color: var(--ink); font-weight: 500; }
.also-item:hover .t { color: var(--gold-2); }
.also-item .m { font-size: 11.5px; color: var(--muted); margin-top: 6px; letter-spacing: .02em; }

/* ---------- DEMO / badges ---------- */
.badge-demo { display: inline-flex; align-items: center; font: 700 10px/1 var(--font-body); letter-spacing: .12em; color: var(--gold-2); border: 1px solid var(--gold-deep); border-radius: 20px; padding: 4px 8px; text-transform: uppercase; }
.cat-tag { display: inline-flex; align-items: center; font: 700 10.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }
.cat-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 7px; }
.cat-war::before { background: var(--clay); } .cat-war { color: #e08a68; }
.cat-occ::before { background: #b06fc9; } .cat-occ { color: #c79bd6; }
.cat-deocc::before { background: var(--steppe); } .cat-deocc { color: #a7bd7f; }
.cat-rebuild::before { background: var(--teal-2); } .cat-rebuild { color: #6fc3d8; }
.cat-people::before { background: var(--gold); } .cat-people { color: var(--gold-2); }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); color: #F2EEE3; letter-spacing: -.01em; }
.section-head .link { font: 600 13px var(--font-body); color: var(--gold-2); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- News feed ---------- */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px){ .feed { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .feed { grid-template-columns: 1fr; } }
.article-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--gold-deep); }
.article-card.lead { grid-column: 1 / -1; }
.card-thumb { aspect-ratio: 16/9; position: relative; background: linear-gradient(135deg, #223, #142027); overflow: hidden; }
.card-thumb .ph { position: absolute; inset: 0; opacity: .85; }
.card-thumb .thumb-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card-body { padding: 16px 17px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); }
.article-card.lead .card-body h3 { font-size: 24px; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--gold-2); }
.card-excerpt { font-size: 14px; color: var(--ink-2); }
.card-meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.card-meta a { color: var(--gold-2); font-weight: 600; }
.card-meta .no-src { color: var(--faint); font-style: italic; }

/* category filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { font: 600 13px var(--font-body); color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); padding: 8px 14px; border-radius: 40px; cursor: pointer; }
.chip:hover { border-color: var(--gold-deep); color: var(--ink); }
.chip.active { background: var(--gold); color: #14100a; border-color: var(--gold); }

/* loading / empty states */
.skeleton { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.skeleton .sk-thumb { aspect-ratio: 16/9; background: linear-gradient(90deg, #1a2029 25%, #222a34 37%, #1a2029 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
.skeleton .sk-line { height: 12px; margin: 14px 16px; border-radius: 6px; background: linear-gradient(90deg, #1a2029 25%, #222a34 37%, #1a2029 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
.skeleton .sk-line.short { width: 55%; }
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state .ico { font-size: 40px; opacity: .5; margin-bottom: 12px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 10px; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold-deep), var(--line) 60%); }
@media (min-width: 780px){ .timeline::before { left: 50%; transform: translateX(-1px); } }
.tl-event { position: relative; padding: 0 0 26px 52px; }
@media (min-width: 780px){
  .tl-event { width: 50%; padding: 0 40px 34px 40px; }
  .tl-event:nth-child(odd) { left: 0; text-align: right; }
  .tl-event:nth-child(even) { left: 50%; }
}
.tl-dot { position: absolute; left: 11px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); z-index: 2; }
@media (min-width: 780px){
  .tl-event:nth-child(odd) .tl-dot { left: auto; right: -8px; }
  .tl-event:nth-child(even) .tl-dot { left: -8px; }
}
.tl-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: border-color .18s, transform .18s; text-align: left; }
.tl-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.tl-date { font: 700 12px var(--font-body); color: var(--gold-2); letter-spacing: .05em; }
.tl-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin: 6px 0; line-height: 1.3; }
.tl-card .tl-sum { font-size: 14px; color: var(--ink-2); }
.tl-card .tl-full { font-size: 14px; color: var(--ink-2); margin-top: 10px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.tl-card.open .tl-full { max-height: 400px; }
.tl-card .tl-toggle { margin-top: 10px; font: 600 12.5px var(--font-body); color: var(--gold-2); display: inline-flex; align-items: center; gap: 6px; }
.tl-src { margin-top: 10px; font-size: 12px; color: var(--muted); }
.tl-src a { color: var(--gold-2); } .tl-src .no-src { color: var(--faint); font-style: italic; }
.tl-reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.tl-reveal.in { opacity: 1; transform: none; }

/* ---------- Settlements ---------- */
.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.controls input, .controls select {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  border-radius: 9px; padding: 11px 13px; font: 400 14px var(--font-body); outline: none;
}
.controls input { flex: 1; min-width: 200px; }
.controls input:focus, .controls select:focus { border-color: var(--gold-deep); }
.set-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 940px){ .set-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .set-grid { grid-template-columns: 1fr; } }
.set-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px; cursor: pointer; transition: border-color .18s, transform .18s; }
.set-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.set-card .sc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.set-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.set-card .sc-reg { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.set-card .sc-stat { display: flex; gap: 16px; margin-top: 12px; }
.set-card .sc-stat div { font-size: 12px; color: var(--muted); }
.set-card .sc-stat b { display: block; font: 600 16px var(--font-display); color: var(--ink); }
.status-pill { font: 700 10px var(--font-body); letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; }
.st-occ { color: #c79bd6; border: 1px solid #6a4a78; } .st-front { color: #e08a68; border: 1px solid #7a4433; }
.st-deocc { color: #a7bd7f; border: 1px solid #566338; } .st-controlled { color: #6fc3d8; border: 1px solid #34606c; }

/* drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 130; opacity: 0; visibility: hidden; transition: opacity .2s; }
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(480px, 94vw); z-index: 140;
  background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1); overflow-y: auto; padding: 22px 24px 44px;
}
.drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 20px; cursor: pointer; }
.drawer h2 { font-family: var(--font-display); font-size: 26px; color: #F2EEE3; margin: 6px 0 4px; padding-right: 44px; }
.drawer .d-reg { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.drawer .d-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.drawer .d-row .k { color: var(--muted); } .drawer .d-row .v { color: var(--ink); text-align: right; }
.drawer .d-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.drawer .d-src { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- Generic page ---------- */
.page { padding: 40px 0 60px; min-height: 50vh; }
.page-head { max-width: 820px; margin-bottom: 28px; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; color: #F4F0E6; }
.page-head h1::after { content: ""; display: block; width: 74px; height: 3px; background: var(--gold); margin-top: 16px; border-radius: 2px; }
.page-head p { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.prose { max-width: 800px; font-size: 16.5px; color: var(--ink-2); }
.prose p { margin-bottom: 15px; }
.prose h2 { font-family: var(--font-display); color: var(--ink); font-weight: 600; font-size: 22px; margin: 32px 0 12px; }
.prose ul, .prose ol { margin: 0 0 15px 22px; } .prose li { margin-bottom: 9px; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold-deep); }
.quote { font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.6; border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; margin: 22px 0; color: var(--ink); }

/* cards grid (petitions / links) */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 10px 0 26px; }
@media (max-width: 760px){ .cards { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card.clay { border-left-color: var(--clay); } .card.steppe { border-left-color: var(--steppe); } .card.teal { border-left-color: var(--teal-2); }
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card .card-links { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; font-weight: 600; }

/* story (testimonies) */
.story { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.story .story-text { font-family: var(--font-serif); font-style: italic; font-size: 17.5px; line-height: 1.62; color: var(--ink-2); }
.story .story-sig { margin-top: 12px; font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }
.story .story-sig::before { content: "— "; color: var(--gold-2); }

.baba-banner { display: flex; gap: 22px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 26px; }
.baba-banner img { width: 78px; flex: 0 0 auto; opacity: .9; }
.baba-banner p { color: var(--ink-2); font-size: 15px; }
.baba-banner strong { color: var(--gold-2); }

/* video / forms */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px){ .video-grid { grid-template-columns: 1fr; } }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
.video-cap .d { color: var(--muted); font-size: 12px; }
.form-shell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.form-shell iframe { width: 100%; height: 900px; border: 0; display: block; background: #fff; }
.form-placeholder { padding: 44px 26px; text-align: center; color: var(--muted); background: repeating-linear-gradient(45deg, #12161c, #12161c 12px, #151a21 12px, #151a21 24px); }
.form-placeholder .ico { font-size: 34px; margin-bottom: 10px; opacity: .6; }
.form-placeholder code { display: inline-block; background: #0a0d11; color: var(--gold-2); border-radius: 6px; padding: 3px 9px; font-size: 12.5px; margin-top: 8px; }

.note { background: rgba(210,163,44,.08); border-left: 4px solid var(--gold); border-radius: 8px; padding: 14px 16px; font-size: 14px; margin: 18px 0; color: var(--ink-2); }
.note.safety { background: rgba(193,90,52,.1); border-left-color: var(--clay); }
.note.demo { background: rgba(46,115,135,.1); border-left-color: var(--teal-2); }

.rule-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); max-width: 820px; }
.rule-num { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); border: 1px solid var(--gold-deep); color: var(--gold-2); font: 600 15px/38px var(--font-display); text-align: center; }
.rule-item h3 { font-family: var(--font-display); font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.rule-item p { font-size: 14.5px; color: var(--ink-2); }

/* support modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s; }
.modal-scrim.open { opacity: 1; visibility: visible; }
.modal { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); max-width: 440px; width: 100%; padding: 28px; text-align: center; box-shadow: var(--shadow); transform: scale(.96); transition: transform .2s; }
.modal-scrim.open .modal { transform: scale(1); }
.modal .m-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; background: rgba(210,163,44,.12); border: 1px solid var(--gold-deep); }
.modal h3 { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.modal p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 20px; }
.modal .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
footer { background: #0A0D11; border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 30px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px){ footer .wrap { grid-template-columns: 1fr; } }
footer h4 { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
footer a { color: var(--ink-2); display: inline-block; padding: 3px 0; }
footer a:hover { color: var(--gold-2); }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand .brand-mark { width: 34px; height: 34px; } .foot-brand .brand-mark svg { width: 22px; height: 22px; }
.foot-brand b { font-family: var(--font-logo); color: var(--ink); font-size: 15px; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); margin-top: 24px; padding-top: 16px; font-size: 12px; color: var(--faint); }
.footer-langs { font-size: 11.5px; color: var(--faint); margin-top: 8px; letter-spacing: .06em; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .tl-reveal { opacity: 1; transform: none; }
}

/* responsive header */
@media (max-width: 1080px){
  .mainnav { display: none; }
  .hamburger { display: grid; }
  .btn-support { display: none; }
}
