/* ============================================
   PREMIUM LAYER — high-end polish
   ============================================ */

/* Selection & scrollbar */
::selection { background: rgba(212,168,75,.35); color: #fff; }
html { scrollbar-width: thin; scrollbar-color: rgba(212,168,75,.45) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e8c15a, #a67c1a);
  border-radius: 99px;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
[data-theme="light"] body::before { opacity: .04; mix-blend-mode: multiply; }

/* Page transition — works with main.css display:none/block */
.page.active {
  animation: pageIn .55s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px) scale(.992); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page.active { animation: none; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Brand mark glow */
.brand-mark {
  background: radial-gradient(circle at 35% 30%, rgba(243,215,138,.25), transparent 55%);
  box-shadow: 0 0 0 1px rgba(212,168,75,.2), 0 0 20px rgba(212,168,75,.15);
  transition: .3s;
}
.brand:hover .brand-mark {
  box-shadow: 0 0 0 1px rgba(212,168,75,.5), 0 0 28px rgba(212,168,75,.35);
  transform: rotate(-6deg);
}

/* Theme / menu buttons */
.theme-btn, .menu-btn {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  backdrop-filter: blur(10px);
  transition: .25s;
}
.theme-btn:hover, .menu-btn:hover {
  border-color: var(--gold);
  box-shadow: var(--glow);
  transform: scale(1.05);
}

/* Hero title polish */
.hero h1 {
  background: linear-gradient(180deg, #fff 20%, #e8d9b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
}
[data-theme="light"] .hero h1 {
  background: linear-gradient(180deg, #1a2233 10%, #5a4a20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero h1 em {
  background: linear-gradient(120deg, #fff6d0, #e8c15a 40%, #c9a227 70%, #f3d78a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldFlow 6s ease-in-out infinite;
  font-style: normal;
}
.hero .lead {
  font-size: 17.5px;
  line-height: 1.65;
  max-width: 34em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

/* Floating particles behind slogan */
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}
.hero-particles span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #f3d78a;
  box-shadow: 0 0 10px #e8c15a, 0 0 20px rgba(212,168,75,.4);
  opacity: .0;
  animation: floatSpark var(--s, 8s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
  left: var(--x); top: var(--y);
}
@keyframes floatSpark {
  0%, 100% { opacity: 0; transform: translateY(0) scale(.6); }
  20% { opacity: .7; }
  50% { opacity: .35; transform: translateY(-40px) scale(1); }
  80% { opacity: .5; }
}

/* Section head underline */
.section-head h2 {
  position: relative;
  display: inline-block;
  letter-spacing: -.01em;
}
.section-head h2::after {
  content: "";
  display: block;
  width: min(100%, 120px);
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

/* ===== MAP PREMIUM ===== */
.map-block {
  position: relative;
}
.map-block::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(243,215,138,.35), transparent 40%, transparent 60%, rgba(42,95,173,.25));
  z-index: 0;
  pointer-events: none;
  opacity: .6;
}
.map-block > * { position: relative; z-index: 1; }
.map-canvas {
  height: 480px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(30,79,150,.28), transparent 62%),
    radial-gradient(circle at 20% 30%, rgba(212,168,75,.06), transparent 40%),
    linear-gradient(180deg, #0a1220, #0e1830 50%, #0a1424);
  box-shadow: inset 0 0 80px rgba(0,0,0,.35);
}
[data-theme="light"] .map-canvas {
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(42,95,173,.12), transparent 62%),
    linear-gradient(180deg, #e8f0fa, #dfe8f5);
}
.map-svg path {
  stroke-dasharray: 4 3;
  animation: dash 40s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -200; } }

.region-dot {
  width: 8px; height: 8px;
  background: rgba(212,168,75,.4);
  box-shadow: 0 0 0 1px rgba(212,168,75,.15);
  border: none;
  z-index: 1;
}
.region-dot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,75,0);
  transition: .4s;
}
.region-dot.on {
  width: 12px; height: 12px;
  background: radial-gradient(circle at 35% 30%, #fff6d0, #e8c15a 40%, #a67c1a);
  box-shadow:
    0 0 0 0 rgba(212,168,75,.45),
    0 0 24px rgba(243,215,138,.7),
    0 0 40px rgba(212,168,75,.35);
  animation: pulseRing 1.5s ease-out;
  z-index: 5;
}
.region-dot.on::before {
  border-color: rgba(243,215,138,.55);
  inset: -14px;
  animation: ringOut 1.5s ease-out;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(212,168,75,.6), 0 0 12px rgba(243,215,138,.8); }
  100% { box-shadow: 0 0 0 16px rgba(212,168,75,0), 0 0 28px rgba(243,215,138,.5); }
}
@keyframes ringOut {
  from { transform: scale(.4); opacity: 1; }
  to { transform: scale(1.4); opacity: 0; }
}
.region-dot.moscow {
  background: radial-gradient(circle at 35% 30%, #ffb0a8, #c43c32 50%, #8b1e18);
  width: 11px; height: 11px;
  box-shadow: 0 0 12px rgba(196,60,50,.55);
}
.region-dot.moscow.on {
  box-shadow: 0 0 0 0 rgba(196,60,50,.5), 0 0 28px rgba(196,60,50,.7);
}

.map-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: .1em;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  border: 1px solid rgba(212,168,75,.4);
  background: linear-gradient(135deg, rgba(20,28,42,.92), rgba(12,18,30,.88));
}
[data-theme="light"] .map-tip {
  background: rgba(255,253,248,.92);
}
.map-tip .dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e8c15a;
  box-shadow: 0 0 8px #e8c15a;
  animation: blink .9s step-end infinite;
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.map-legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.map-legend .i-gold { background: #e8c15a; box-shadow: 0 0 8px #e8c15a; }
.map-legend .i-red { background: #c43c32; box-shadow: 0 0 8px #c43c32; }

/* ===== DIRS ===== */
.dirs-grid {
  gap: 20px;
}
.dir-card {
  position: relative;
  overflow: hidden;
}
.dir-card::before {
  content: "";
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent, rgba(212,168,75,.2), transparent 30%);
  opacity: 0;
  transition: .5s;
  animation: spinSlow 8s linear infinite;
  animation-play-state: paused;
}
.dir-card:hover::before { opacity: 1; animation-play-state: running; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.dir-card span { transition: transform .25s ease; }
.dir-card:hover span { transform: scale(1.12) translateY(-2px); }

/* ===== STELA ===== */
.stela-grid {
  gap: 48px;
}
.stela-photo {
  aspect-ratio: 4/5;
  max-height: 560px;
}
.stela-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s ease;
}
.stela-photo:hover img { transform: scale(1.04); }
.stela-badge {
  position: absolute;
  top: 16px; left: 16px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(10,14,22,.7);
  border: 1px solid rgba(212,168,75,.4);
  color: var(--gold2);
  padding: 8px 12px; border-radius: 999px;
  backdrop-filter: blur(10px);
}
.spec-list li {
  transition: .25s padding-left;
}
.spec-list li:hover {
  padding-left: 6px;
  border-bottom-color: rgba(212,168,75,.4);
}

/* ===== PARTNER PYRAMID ===== */
.pyramid {
  gap: 14px;
  perspective: 800px;
}
.pyr-level {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition: .35s transform, .35s box-shadow, .35s border-color;
}
.pyr-level::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #fff6d0, #c9a227, #a67c1a);
  opacity: .85;
}
.pyr-level:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(212,168,75,.45);
  box-shadow: var(--shadow), var(--glow);
}
.pyr-level.l1 {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(243,215,138,.2), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 16%, var(--card)), var(--card));
  border-color: rgba(212,168,75,.4);
  box-shadow: var(--shadow), 0 0 40px rgba(212,168,75,.12);
}
.pyr-level .lvl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212,168,75,.3);
  background: rgba(212,168,75,.08);
  margin-bottom: 6px;
}
.table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.table th {
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 12%, var(--card)), var(--card));
}
.table tr:hover td {
  background: color-mix(in srgb, var(--gold) 6%, transparent);
  color: var(--text);
}

/* ===== REGION PAGE ===== */
.region-page .wrap {
  padding-bottom: 64px;
}
.region-hero {
  padding: 32px 0 8px;
}
.region-emblem {
  width: 112px; height: 112px;
  padding: 10px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  border-radius: 50%;
  border: 1px solid rgba(212,168,75,.25);
  animation: emblemFloat 5s ease-in-out infinite;
}
@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.chip {
  transition: .25s;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.chip:hover {
  border-color: rgba(212,168,75,.5);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* Clouds premium */
.clouds-stage {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(42,95,173,.08), transparent 70%);
  border-radius: var(--radius);
  padding: 12px 0 8px;
  margin: 32px 0 24px;
}
.cloud .t {
  font-size: 18px;
  background: linear-gradient(180deg, #fff, #e8d9b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .cloud .t {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text);
}
.cloud.dragging {
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 30px rgba(212,168,75,.25);
  transform: scale(1.04);
}

/* Panels */
.panel-nav {
  gap: 10px;
  padding: 6px;
  background: color-mix(in srgb, var(--card) 55%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  width: fit-content;
  max-width: 100%;
}
.panel-nav button {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-weight: 600;
  transition: .25s;
}
.panel-nav button.active {
  background: linear-gradient(135deg, #e8c15a, #c9a227);
  color: #1a1408;
  box-shadow: 0 6px 20px rgba(212,168,75,.35);
  border: none;
}
.panel {
  background:
    linear-gradient(160deg, rgba(255,255,255,.04), transparent 40%),
    color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}
.panel.active { animation: panelIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.fact {
  position: relative;
  overflow: hidden;
  transition: .3s;
}
.fact::after {
  content: "";
  position: absolute; right: -20%; top: -40%;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(212,168,75,.15), transparent 70%);
  pointer-events: none;
}
.fact:hover {
  border-color: rgba(212,168,75,.4);
  transform: translateY(-2px);
}
.fact .v {
  background: linear-gradient(120deg, #fff6d0, #e8c15a, #c9a227);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

/* Photos */
.photo-card {
  position: relative;
  box-shadow: var(--shadow);
  transition: .4s;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--glow); }
.photo-card img {
  transition: transform 6s ease;
}
.photo-card:hover img { transform: scale(1.05); }

/* People / events */
.person, .event {
  transition: .35s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(8px);
}
.person:hover, .event:hover {
  transform: translateY(-6px);
  border-color: rgba(212,168,75,.4);
  box-shadow: var(--shadow), var(--glow);
}
.person img {
  transition: transform 5s ease, filter .4s;
  filter: saturate(1.05);
}
.person:hover img { transform: scale(1.06); filter: saturate(1.15); }

/* Region tiles */
.reg-tile {
  position: relative;
  overflow: hidden;
  font-weight: 500;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.06), transparent 50%),
    var(--card);
  backdrop-filter: blur(8px);
  transition: .3s cubic-bezier(.2,.8,.2,1);
}
.reg-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,168,75,.15), transparent 50%);
  opacity: 0;
  transition: .3s;
}
.reg-tile:hover::after, .reg-tile.hot::after { opacity: 1; }
.reg-tile.hot {
  box-shadow: 0 0 24px rgba(212,168,75,.2);
  font-weight: 700;
  color: var(--gold2);
}

/* Info box */
.info-box {
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-soft);
}

/* Footer */
.site-footer {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg2) 80%, transparent));
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,75,.4), transparent);
}

/* Stats strip on home */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
  position: relative;
  z-index: 5;
  padding: 12px 0 28px;
}
@media (max-width: 800px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: 8px; }
}
.stat-card {
  background:
    linear-gradient(160deg, rgba(255,255,255,.06), transparent 50%),
    color-mix(in srgb, var(--card) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: .3s;
}
.stat-card:hover {
  border-color: rgba(212,168,75,.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--glow);
}
.stat-card .n {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  background: linear-gradient(120deg, #fff6d0, #e8c15a, #c9a227);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat-card .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* Contact / empty pages richer */
.page .section {
  min-height: 50vh;
}

/* Map connection lines canvas */
.map-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Loading shimmer for images */
.photo-card img, .stela-photo img, .person img {
  background: linear-gradient(90deg, var(--bg2), var(--card), var(--bg2));
  background-size: 200% 100%;
}

/* Mobile panel nav scroll */
@media (max-width: 700px) {
  .panel-nav {
    border-radius: 16px;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .panel-nav button { white-space: nowrap; flex: 0 0 auto; }
  .panel { padding: 18px; }
  .map-canvas { height: 360px; }
}

/* Focus accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Gold divider utility */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,75,.45), transparent);
  margin: 28px 0;
  border: none;
}



/* ===== INK PEN SLOGAN ===== */
.ink-stage {
  position: relative;
  min-height: clamp(56px, 8vw, 84px);
  display: block;
}
.ink-pen {
  position: absolute;
  top: 0; left: 0;
  z-index: 5;
  color: #c9a227;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -8px) rotate(-18deg);
  transition: opacity .2s;
}
.ink-pen.is-writing { opacity: 1; }
.ink-pen svg { display: block; }

.hand-slogan {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
  color: transparent;
  white-space: pre-wrap;
}
.hand-slogan .ink-ch {
  display: inline-block;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 1.35px rgba(180, 140, 60, 0.35);
  transform: translateY(2px);
  opacity: 0;
  transition: none;
}
.hand-slogan .ink-ch.is-stroke {
  opacity: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #5c3d12;
  filter: drop-shadow(0 0 1px rgba(60,30,0,.2));
}
.hand-slogan .ink-ch.is-ink {
  opacity: 1;
  color: #2a1a08;
  -webkit-text-stroke: 0 transparent;
  text-shadow:
    0 0 1px rgba(80,50,10,.25),
    0 1px 0 rgba(255,220,150,.15);
  animation: inkBleed .35s ease-out both;
}
@keyframes inkBleed {
  from {
    color: transparent;
    -webkit-text-stroke: 1.4px #3a2510;
    filter: blur(0.4px);
    transform: translateY(1px) scale(0.98);
  }
  55% {
    color: #3d2a12;
    -webkit-text-stroke: 0.4px #2a1a08;
    filter: blur(0);
  }
  to {
    color: #241608;
    -webkit-text-stroke: 0 transparent;
    transform: none;
  }
}
[data-theme="dark"] .hand-slogan .ink-ch.is-ink {
  color: #f3e6c8;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  animation-name: inkBleedDark;
}
@keyframes inkBleedDark {
  from {
    color: transparent;
    -webkit-text-stroke: 1.4px #c9a227;
  }
  50% { color: #e8d4a0; -webkit-text-stroke: 0.3px #c9a227; }
  to { color: #f5ead0; -webkit-text-stroke: 0 transparent; }
}
.hand-slogan .ink-ch.space { width: 0.28em; }

/* Final state: solid ink + gold outline shimmer (outline layer) */
.hand-slogan.is-done .ink-ch {
  opacity: 1;
  color: #241608;
  -webkit-text-stroke: 0;
  animation: none;
}
[data-theme="dark"] .hand-slogan.is-done .ink-ch {
  color: #f3e6c8;
}

.hand-slogan.ink-outline {
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  pointer-events: none;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  white-space: pre-wrap;
}
.hand-slogan.ink-outline.is-gold {
  opacity: 1;
}
.hand-slogan.ink-outline .ink-ch,
.hand-slogan.ink-outline {
  background: linear-gradient(
    110deg,
    #8b6914 0%,
    #c9a227 14%,
    #fff6d0 26%,
    #e8c15a 40%,
    #a67c1a 55%,
    #fff1b0 68%,
    #d4a84b 82%,
    #f3d78a 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  /* trick: use text-stroke with same gradient is hard; use layered stroke via paint */
  -webkit-text-stroke: 1.6px transparent;
  /* gold outline via text-shadow cascade that shimmers */
  filter: drop-shadow(0 0 0.5px #c9a227);
}
/* Better gold outline: stroke-only pseudo via text-shadow ring + animated gradient stroke */
.hand-slogan.ink-outline.is-gold {
  -webkit-text-stroke: 1.7px #c9a227;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background: none;
  animation: goldStroke 3.8s ease-in-out infinite;
  filter:
    drop-shadow(0 0 2px rgba(243,215,138,.55))
    drop-shadow(0 0 8px rgba(212,168,75,.25));
}
@keyframes goldStroke {
  0%, 100% {
    -webkit-text-stroke-color: #a67c1a;
    filter: drop-shadow(0 0 2px rgba(212,168,75,.4)) drop-shadow(0 0 6px rgba(168,120,20,.2));
  }
  35% {
    -webkit-text-stroke-color: #fff3c4;
    filter: drop-shadow(0 0 4px rgba(255,246,208,.7)) drop-shadow(0 0 12px rgba(232,193,90,.45));
  }
  65% {
    -webkit-text-stroke-color: #e8c15a;
    filter: drop-shadow(0 0 3px rgba(232,193,90,.55)) drop-shadow(0 0 10px rgba(201,162,39,.35));
  }
}
.hand-slogan.ink-outline .ink-ch {
  background: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: inherit;
  opacity: 1;
  animation: none !important;
  filter: none;
}

/* hide old full-gold fill if any */
.hand-slogan.is-gold:not(.ink-outline) {
  background: none;
  -webkit-text-fill-color: unset;
  color: inherit;
  animation: none;
  filter: none;
}
.hand-slogan .cursor {
  display: inline-block;
  width: 2px; height: 0.9em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: linear-gradient(180deg, #fff6d0, #a67c1a);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(243,215,138,.7);
  animation: blink .65s step-end infinite;
}

/* ===== REAL LEAFLET MAP ===== */
#mapCanvas.map-canvas {
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}
.map-canvas .leaflet-container {
  width: 100%; height: 100%;
  background: #0a1220;
  font-family: var(--font);
}
[data-theme="light"] .map-canvas .leaflet-container {
  background: #e8eef6;
}
.leaflet-container { background: #0a1220; }
.mn-region {
  fill: #1a2740;
  fill-opacity: 0.82;
  stroke: rgba(212,168,75,0.28);
  stroke-width: 0.8;
  transition: fill 0.35s, fill-opacity 0.35s, stroke 0.35s, stroke-width 0.35s;
}
.mn-region:hover {
  fill: #243556;
  stroke: rgba(212,168,75,0.55);
}
.mn-region.is-active {
  fill: #c9a227 !important;
  fill-opacity: 0.92 !important;
  stroke: #fff6d0 !important;
  stroke-width: 1.8 !important;
  filter: drop-shadow(0 0 10px rgba(232,193,90,.55));
}
.mn-region.is-moscow {
  fill: #8b2e28;
  stroke: rgba(255,160,140,0.45);
}
.mn-region.is-moscow.is-active {
  fill: #d44a40 !important;
  stroke: #ffd0c8 !important;
}
.map-name-label {
  background: linear-gradient(135deg, rgba(20,28,42,.94), rgba(12,18,30,.9));
  border: 1px solid rgba(212,168,75,.55);
  color: #f3d78a;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 20px rgba(212,168,75,.15);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: .02em;
}
.map-name-label::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e8c15a;
  box-shadow: 0 0 8px #e8c15a;
  margin-right: 8px;
  vertical-align: 1px;
}
[data-theme="light"] .map-name-label {
  background: rgba(255,253,248,.95);
  color: #8a6412;
}
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(0,0,0,.35) !important;
  color: #9eabc0 !important;
}


.hand-slogan.ink-outline.is-gold .ink-ch {
  opacity: 1 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.7px #c9a227;
  animation: none !important;
  filter: none !important;
  background: none !important;
}
.hand-slogan.ink-outline.is-gold {
  /* parent drives shimmer via filter */
}
.ink-stage .hand-slogan.ink-outline {
  width: 100%;
}


/* ===== MAP CLEAN (no tiles / no watermarks) ===== */
#mapCanvas.mn-map-clean,
#mapCanvas.leaflet-container,
.mn-map-clean.leaflet-container {
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(30,79,150,.22), transparent 62%),
    linear-gradient(180deg, #070d18 0%, #0b1526 50%, #070d18 100%) !important;
}
#mapCanvas.leaflet-container {
  width: 100%;
  height: 100%;
}
.leaflet-control-attribution,
.leaflet-control-attribution a {
  display: none !important;
}
.leaflet-container .leaflet-control-zoom a {
  background: rgba(16, 24, 40, 0.92) !important;
  color: #f3d78a !important;
  border: 1px solid rgba(212,168,75,.35) !important;
  width: 32px; height: 32px; line-height: 32px;
  border-radius: 8px !important;
}
.leaflet-bar {
  border: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
}
.mn-name-icon {
  background: transparent !important;
  border: none !important;
}
.mn-tooltip {
  background: rgba(12,18,30,.92) !important;
  border: 1px solid rgba(212,168,75,.45) !important;
  color: #f3d78a !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.35) !important;
  font-weight: 600;
}
.mn-tooltip::before { border-top-color: rgba(212,168,75,.45) !important; }

/* region polygons crisper on dark */
.mn-region {
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ===== GOLD RIM SHIMMER (outline only after ink) ===== */
.hand-slogan.ink-outline {
  position: absolute !important;
  left: 0; top: 0;
  right: 0;
  margin: 0 !important;
  z-index: 4 !important;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity .45s ease;
}
.hand-slogan.ink-outline.is-gold {
  opacity: 1 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: none !important;
  animation: none !important;
  /* soft outer gold glow around whole phrase */
  filter: drop-shadow(0 0 6px rgba(232,193,90,.35));
}
.hand-slogan.ink-outline.is-gold .ink-ch {
  opacity: 1 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: none !important;
  /* the gold rim */
  -webkit-text-stroke: 1.85px #c9a227;
  paint-order: stroke fill;
  animation: goldRim 2.8s ease-in-out infinite !important;
  filter: none !important;
  text-shadow:
    0 0 2px rgba(255, 246, 208, 0.35),
    0 0 8px rgba(212, 168, 75, 0.25);
}
@keyframes goldRim {
  0%, 100% {
    -webkit-text-stroke-color: #8b6914;
    text-shadow:
      0 0 1px rgba(166, 124, 26, 0.5),
      0 0 6px rgba(166, 124, 26, 0.2);
  }
  25% {
    -webkit-text-stroke-color: #e8c15a;
    text-shadow:
      0 0 3px rgba(232, 193, 90, 0.7),
      0 0 10px rgba(232, 193, 90, 0.35);
  }
  50% {
    -webkit-text-stroke-color: #fff6d0;
    text-shadow:
      0 0 4px rgba(255, 246, 208, 0.9),
      0 0 14px rgba(243, 215, 138, 0.55),
      0 0 22px rgba(201, 162, 39, 0.3);
  }
  75% {
    -webkit-text-stroke-color: #d4a84b;
    text-shadow:
      0 0 3px rgba(212, 168, 75, 0.75),
      0 0 12px rgba(212, 168, 75, 0.4);
  }
}

/* Ensure fill layer stays ink (not gold fill) after done */
.hand-slogan.is-done .ink-ch.is-ink,
.hand-slogan.is-done .ink-ch {
  background: none !important;
  -webkit-text-fill-color: unset !important;
}
[data-theme="dark"] .hand-slogan.is-done .ink-ch {
  color: #f3e6c8 !important;
  -webkit-text-stroke: 0 transparent !important;
}
[data-theme="light"] .hand-slogan.is-done .ink-ch {
  color: #241608 !important;
  -webkit-text-stroke: 0 transparent !important;
}

/* Kill old full-gold-fill rules from main/premium that fill the whole letters */
.hand-slogan.is-gold:not(.ink-outline) {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: unset !important;
  color: inherit !important;
  animation: none !important;
  filter: none !important;
}

[data-theme="light"] #mapCanvas.leaflet-container,
[data-theme="light"] #mapCanvas.mn-map-clean {
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(42,95,173,.12), transparent 62%),
    linear-gradient(180deg, #e9eef6 0%, #dce5f2 100%) !important;
}
[data-theme="light"] .mn-region {
  fill: #c5d0e0;
}

/* ===== HOME BY SKETCH: map-first ===== */
.home-map-hero {
  padding: 36px 0 20px;
  position: relative;
}
.home-map-head {
  text-align: center;
  margin-bottom: 18px;
}
.home-map-head .eyebrow { justify-content: center; }
.home-map-head .eyebrow::before { display: none; }
.home-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff 20%, #e8d9b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .home-title {
  background: linear-gradient(180deg, #1a2233 10%, #5a4a20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.home-title em {
  font-style: normal;
  background: linear-gradient(120deg, #fff6d0, #e8c15a 40%, #c9a227 70%, #f3d78a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldFlow 6s ease-in-out infinite;
}
.home-map-head .hand-slogan-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
}
.home-map-head .ink-stage {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.home-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.map-stage { position: relative; }
.map-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--glow);
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(30,79,150,.18), transparent 62%),
    linear-gradient(180deg, #070d18 0%, #0b1526 50%, #070d18 100%);
}
[data-theme="light"] .map-frame {
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(42,95,173,.10), transparent 62%),
    linear-gradient(180deg, #e9eef6, #dce5f2);
}

.ru-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 560px);
}
.ru-map-bg { fill: transparent; }
.ru-region {
  fill: #1a2740;
  stroke: rgba(212,168,75,0.32);
  stroke-width: 0.7;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .3s, stroke .3s, stroke-width .3s, filter .3s;
}
.ru-region:hover {
  fill: #2a3d5c;
  stroke: rgba(243,215,138,0.7);
}
.ru-region.is-moscow {
  fill: #8b2e28;
  stroke: rgba(255,160,140,0.45);
}
.ru-region.is-active {
  fill: #c9a227 !important;
  stroke: #fff6d0 !important;
  stroke-width: 1.6 !important;
  filter: drop-shadow(0 0 6px rgba(232,193,90,.55));
}
.ru-region.is-moscow.is-active {
  fill: #d44a40 !important;
  stroke: #ffd0c8 !important;
}
[data-theme="light"] .ru-region {
  fill: #c5d0e0;
  stroke: rgba(139,101,16,0.35);
}
[data-theme="light"] .ru-region:hover { fill: #aebcd0; }
[data-theme="light"] .ru-region.is-active {
  fill: #c9a227 !important;
}

.map-float-label {
  position: absolute;
  transform: translate(-50%, -120%);
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(20,28,42,.95), rgba(12,18,30,.92));
  border: 1px solid rgba(212,168,75,.55);
  color: #f3d78a;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 20px rgba(212,168,75,.15);
  white-space: nowrap;
  letter-spacing: .02em;
}
.map-float-label::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e8c15a;
  box-shadow: 0 0 8px #e8c15a;
  margin-right: 8px;
  vertical-align: 1px;
}
[data-theme="light"] .map-float-label {
  background: rgba(255,253,248,.95);
  color: #8a6412;
}

.map-stage .map-tip {
  position: relative;
  left: auto; bottom: auto;
  transform: none;
  margin: 14px auto 0;
  width: fit-content;
  max-width: 100%;
}

/* Sponsors row from sketch */
.sponsors-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .sponsors-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .sponsors-row { grid-template-columns: repeat(2, 1fr); }
}
.sponsor-slot {
  aspect-ratio: 2.2 / 1;
  border-radius: 12px;
  border: 1px dashed rgba(212,168,75,.35);
  background:
    linear-gradient(160deg, rgba(255,255,255,.04), transparent 50%),
    var(--card);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: .25s;
}
.sponsor-slot:hover {
  border-style: solid;
  border-color: rgba(212,168,75,.55);
  color: var(--gold2);
  box-shadow: var(--glow);
}

/* kill old leaflet leftovers if any */
.leaflet-container, .leaflet-pane, .leaflet-control { display: none !important; }
#mapCanvas { display: none !important; }


/* ===== INTERACTIVE STELE (monument look) ===== */
.stele-section { overflow: hidden; }
.stele-interactive {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .stele-interactive { grid-template-columns: 1fr; }
}

.stele-stage {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  padding: 8px 4px 4px;
}

.stele-monument {
  width: min(100%, 380px);
  margin: 0 auto;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.5));
}

/* Top mast */
.sm-top {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 72px;
}
.sm-pole {
  position: absolute;
  top: 0;
  width: 3px;
  height: 36px;
  background: linear-gradient(90deg, #8b6914, #f3d78a, #8b6914);
  border-radius: 1px;
  left: 50%;
  transform: translateX(-50%);
}
.sm-rf {
  position: absolute;
  top: 2px;
  left: calc(50% + 4px);
  width: 44px;
  height: 28px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.2);
  background: linear-gradient(180deg, #fff 0 33.3%, #0039a6 33.3% 66.6%, #d52b1e 66.6% 100%);
  box-shadow: 2px 3px 8px rgba(0,0,0,.35);
  transform-origin: left center;
  animation: smFlagWave 3.5s ease-in-out infinite;
}
@keyframes smFlagWave {
  0%, 100% { transform: skewY(0deg); }
  50% { transform: skewY(-3deg); }
}
.sm-eagle {
  position: absolute;
  bottom: 10px;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)) drop-shadow(0 0 10px rgba(212,168,75,.45));
  z-index: 2;
}
.sm-cap {
  position: absolute;
  bottom: 0;
  width: 42%;
  height: 12px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #fff1b0, #c9a227 40%, #7a5a12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  z-index: 1;
}

/* Cone */
.sm-cone-wrap {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  width: 86%;
}
.sm-cone {
  --stele-rot: 0deg;
  position: relative;
  min-height: 280px;
  padding: 12px 6px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  background:
    linear-gradient(180deg, rgba(255,246,208,.18), transparent 12%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, transparent 14%, transparent 86%, rgba(0,0,0,.45) 100%),
    linear-gradient(165deg, #e8c15a 0%, #b8860b 28%, #8b6914 62%, #5c4210 100%);
  clip-path: polygon(18% 0%, 82% 0%, 100% 100%, 0% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,246,208,.28),
    inset 0 -30px 50px rgba(0,0,0,.2);
  border-radius: 4px 4px 2px 2px;
}
.sm-cone-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  clip-path: polygon(18% 0%, 82% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.12) 48%, transparent 62%);
  border-radius: 4px;
}

.stele-row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 0 2px;
  will-change: transform;
}

.stele-flag {
  position: relative;
  flex: 0 0 auto;
  width: clamp(20px, 3.8vw, 30px);
  height: clamp(14px, 2.6vw, 22px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
  transition: transform .15s ease, box-shadow .15s ease;
  background-size: cover !important;
}
.stele-flag:hover {
  transform: translateY(-3px) scale(1.15);
  z-index: 5;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), 0 0 0 1px #fff6d0;
}
.stele-flag.is-active {
  transform: translateY(-3px) scale(1.18);
  z-index: 6;
  box-shadow: 0 0 0 2px #fff6d0, 0 0 18px rgba(232,193,90,.7);
}
.stele-flag.is-pilot {
  box-shadow: 0 0 0 1px #ffb4a8, 0 0 10px rgba(212,74,64,.5);
}
.stele-flag-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  opacity: 0;
  text-align: center;
  line-height: 1.05;
  padding: 1px;
  pointer-events: none;
}
.stele-flag:hover .stele-flag-label,
.stele-flag.is-active .stele-flag-label {
  opacity: 1;
}

/* Pedestal */
.sm-base {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: -2px;
}
.sm-base-top {
  height: 14px;
  margin: 0 auto;
  width: 96%;
  border-radius: 6px;
  background: linear-gradient(180deg, #f3d78a, #a67c1a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.sm-base-mid {
  position: relative;
  margin: 0 auto;
  width: 100%;
  padding: 14px 16px 16px;
  border-radius: 6px 6px 30% 30% / 6px 6px 22px 22px;
  background: linear-gradient(180deg, #e8c15a 0%, #b8860b 40%, #6b4f12 100%);
  color: #1a1208;
  text-align: center;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.25),
    0 16px 32px rgba(0,0,0,.35);
}
.sm-base-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 36px;
}
.sm-base-copy span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .85;
}
.sm-base-copy strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
}
.sm-qr {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: repeating-conic-gradient(#1a1208 0% 25%, #f3d78a 0% 50%) 50% / 8px 8px;
  box-shadow: inset 0 0 0 3px #f3d78a;
  font-size: 0;
  border: 1px solid rgba(0,0,0,.3);
}
.sm-base-foot {
  height: 10px;
  width: 88%;
  margin: 4px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.35), transparent 70%);
  filter: blur(2px);
}

.stele-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.stele-hint {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.stele-panel-inner {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow);
}
.stele-panel-flag {
  width: 100%;
  height: 76px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.stele-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.stele-ref img {
  max-height: 240px;
  object-fit: contain;
  background: #111;
  width: 100%;
}

/* file:// warning banner (optional via JS) */
.file-protocol-note {
  margin: 0 auto 16px;
  max-width: 720px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212,168,75,.45);
  background: rgba(212,168,75,.12);
  color: var(--gold2);
  font-size: 13px;
  text-align: center;
}


/* ===== SVERDLOVSK REGION PAGE (premium) ===== */
.sve-page {
  position: relative;
  min-height: 100vh;
  background: #0b1220;
  color: #f3efe6;
}
.sve-page .folk-ribbon {
  position: relative;
  z-index: 20;
}

/* HERO */
.sve-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 28px 0 36px;
  overflow: hidden;
}
.sve-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  animation: sveKen 22s ease-in-out infinite alternate;
}
@keyframes sveKen {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.1) translateY(-2%); }
}
.sve-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,10,18,.55) 0%, rgba(6,10,18,.25) 35%, rgba(6,10,18,.78) 78%, #0b1220 100%),
    radial-gradient(ellipse 70% 55% at 70% 30%, rgba(196,30,58,.18), transparent 60%),
    linear-gradient(90deg, rgba(6,10,18,.55), transparent 50%);
}
.sve-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.sve-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.sve-back {
  color: #fff !important;
  border-color: rgba(255,255,255,.25) !important;
  background: rgba(0,0,0,.25) !important;
}
.sve-badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f3d78a;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243,215,138,.35);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.sve-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(15,22,36,.72), rgba(12,18,30,.55));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
@media (max-width: 820px) {
  .sve-hero-card { grid-template-columns: 1fr; text-align: center; }
  .sve-emblem-wrap { margin: 0 auto; }
  .sve-hero-actions { justify-content: center; }
  .sve-stats { justify-content: center; }
}
.sve-emblem-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sve-emblem {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.45));
}
.sve-flag {
  width: 88px;
  height: 52px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 16px rgba(0,0,0,.3);
  background: linear-gradient(180deg,
    #ffffff 0 35%,
    #0039a6 35% 80%,
    #ffffff 80% 85%,
    #2e8b57 85% 100%);
}
.sve-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e8c15a;
  margin: 0 0 8px;
}
.sve-hero-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.sve-lead {
  margin: 0 0 18px;
  max-width: 56ch;
  color: rgba(243,239,230,.88);
  font-size: 16px;
  line-height: 1.55;
}
.sve-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.sve-stat {
  min-width: 110px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.sve-stat b {
  display: block;
  font-size: 15px;
  color: #fff6d0;
  margin-bottom: 2px;
}
.sve-stat span {
  font-size: 11px;
  color: rgba(243,239,230,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sve-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sve-btn-light {
  color: #fff !important;
  border-color: rgba(255,255,255,.22) !important;
}
.sve-hero-cap {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  font-family: var(--mono);
  letter-spacing: .04em;
}

/* GALLERY */
.sve-gallery {
  position: relative;
  z-index: 3;
  margin-top: -28px;
  padding: 0 0 8px;
}
.sve-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 0 max(16px, calc((100% - 1120px) / 2)) 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.sve-g-item {
  margin: 0;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #111;
  box-shadow: 0 16px 32px rgba(0,0,0,.35);
  transition: transform .25s ease;
}
.sve-g-item:hover { transform: translateY(-4px); }
.sve-g-item img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.sve-g-item figcaption {
  padding: 10px 12px 12px;
  font-size: 12px;
  color: rgba(243,239,230,.8);
  background: linear-gradient(180deg, #141b2a, #0f1522);
}

/* BODY */
.sve-body {
  position: relative;
  padding: 28px 0 72px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(30,79,150,.15), transparent 55%),
    #0b1220;
}
.sve-clouds {
  margin-bottom: 28px;
}
.glass-block {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(16, 22, 36, 0.72);
  backdrop-filter: blur(12px);
  padding: 22px 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  margin-bottom: 22px;
}
.sve-intro h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 14px;
  line-height: 1.15;
}
.sve-intro p {
  color: rgba(243,239,230,.82);
  line-height: 1.6;
  margin: 0 0 12px;
}
.sve-intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
}
@media (max-width: 860px) {
  .sve-intro-grid { grid-template-columns: 1fr; }
}
.sve-side-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sve-side-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.sve-side-fact span {
  color: rgba(243,239,230,.55);
  font-size: 12px;
}
.sve-side-fact strong {
  color: #f3d78a;
  font-size: 13px;
  text-align: right;
}

/* NAV */
.sve-nav {
  position: sticky;
  top: 72px;
  z-index: 10;
  margin-bottom: 18px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(10,14,24,.85);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sve-nav button {
  border: 0;
  background: transparent;
  color: rgba(243,239,230,.75);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
}
.sve-nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.sve-nav button.active {
  background: linear-gradient(135deg, #d4a84b, #8b6914);
  color: #1a1208;
  font-weight: 600;
}

/* PANELS */
.sve-panel {
  display: none;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(16, 22, 36, 0.78);
  backdrop-filter: blur(10px);
}
.sve-panel.active { display: block; }
.sve-panel h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 12px;
}
.sve-panel p {
  color: rgba(243,239,230,.84);
  line-height: 1.6;
  margin: 0 0 12px;
}
.sve-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}
.sve-split:nth-child(even of .sve-split),
.sve-panel .sve-split.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
@media (max-width: 860px) {
  .sve-split { grid-template-columns: 1fr !important; }
}
.sve-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 36px rgba(0,0,0,.3);
  background: #111;
}
.sve-photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.sve-photo figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(243,239,230,.7);
  background: #121826;
}
.sve-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: rgba(243,239,230,.85);
}
.sve-list li { margin-bottom: 6px; }
.sve-mini-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .sve-mini-facts { grid-template-columns: 1fr; }
  .sve-photo img { height: 200px; }
}
.sve-mini-facts > div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(212,168,75,.08);
  border: 1px solid rgba(212,168,75,.2);
}
.sve-mini-facts b {
  display: block;
  font-size: 20px;
  color: #f3d78a;
  margin-bottom: 4px;
}
.sve-mini-facts span {
  font-size: 12px;
  color: rgba(243,239,230,.6);
}
.sve-cards-3, .sve-cards-4 {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.sve-cards-3 { grid-template-columns: repeat(3, 1fr); }
.sve-cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .sve-cards-3, .sve-cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sve-cards-3, .sve-cards-4 { grid-template-columns: 1fr; }
}
.sve-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.sve-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff6d0;
}
.sve-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(243,239,230,.7);
}
.sve-footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
.sve-footer-cta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 6px 0 0;
}

/* Light theme overrides for sve page */
[data-theme="light"] .sve-page {
  background: #f4efe6;
  color: #1a2233;
}
[data-theme="light"] .sve-body {
  background: linear-gradient(180deg, #efe8da, #f4efe6);
}
[data-theme="light"] .glass-block,
[data-theme="light"] .sve-panel {
  background: rgba(255,252,246,.92);
  border-color: rgba(0,0,0,.08);
  color: #1a2233;
}
[data-theme="light"] .sve-panel p,
[data-theme="light"] .sve-intro p,
[data-theme="light"] .sve-list {
  color: #3a4455;
}
[data-theme="light"] .sve-nav {
  background: rgba(255,252,246,.92);
  border-color: rgba(0,0,0,.08);
}
[data-theme="light"] .sve-nav button { color: #3a4455; }
[data-theme="light"] .sve-g-item figcaption,
[data-theme="light"] .sve-photo figcaption {
  background: #fffaf2;
  color: #3a4455;
}
[data-theme="light"] .sve-side-fact {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.06);
}
[data-theme="light"] .sve-card {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.06);
}
[data-theme="light"] .sve-card h4 { color: #6b4f12; }

/* Improve folk ribbon on sve */
.sve-page .folk-ribbon {
  height: 44px;
  background-color: #f7f0e6;
  background-image: url('../img/ural_pattern.svg');
  background-repeat: repeat-x;
  background-size: 420px 56px;
}
.sve-page .folk-ribbon-top { border-bottom: 3px solid #c41e3a; }
.sve-page .folk-ribbon-bottom {
  border-top: 3px solid #c41e3a;
  transform: scaleY(-1);
}

/* Realistic clouds on dark body */
.sve-clouds .cloud-photo {
  box-shadow: 0 16px 36px rgba(0,0,0,.28), inset 0 2px 10px rgba(255,255,255,.75);
}


/* sve photo stack + mosaic */
.sve-photo-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sve-photo-stack .sve-photo img { height: 180px; }
.sve-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 900px) {
  .sve-mosaic { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .sve-mosaic { grid-template-columns: 1fr; }
}
.sve-mosaic .sve-photo img { height: 140px; }


/* =========================================================
   CULTURE · SVERDLOVSK — premium page (sketch «Культура 78»)
   ========================================================= */
.sve-culture-page {
  position: relative;
  min-height: 100vh;
  background: #0a101c;
  color: #f3efe6;
  overflow: hidden;
}
.sve-culture-page .folk-ribbon {
  height: 44px;
  background-color: #f7f0e6;
  background-image: url('../img/ural_pattern.svg');
  background-repeat: repeat-x;
  background-size: 420px 56px;
  position: relative;
  z-index: 30;
}
.sve-culture-page .folk-ribbon-top {
  border-bottom: 3px solid #c41e3a;
  animation: ribbonShift 28s linear infinite;
}
.sve-culture-page .folk-ribbon-bottom {
  border-top: 3px solid #c41e3a;
  transform: scaleY(-1);
  animation: ribbonShift 32s linear infinite reverse;
}
@keyframes ribbonShift {
  from { background-position: 0 0; }
  to { background-position: 420px 0; }
}

/* top bar + handwritten title */
.cult-top {
  position: relative;
  z-index: 5;
  padding: 22px 0 8px;
}
.cult-top-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cult-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cult-back {
  color: #fff !important;
  border-color: rgba(255,255,255,.25) !important;
  background: rgba(0,0,0,.28) !important;
}
.cult-title-block {
  text-align: center;
  padding: 8px 0 18px;
}
.cult-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e8c15a;
  margin: 0 0 10px;
}
.cult-hand-title {
  font-family: 'Marck Script', 'Caveat', cursive;
  font-weight: 600;
  font-size: clamp(56px, 12vw, 104px);
  line-height: 1;
  margin: 0;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #fff8e7 0%, #f0d48a 45%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(201,162,39,.25));
  animation: cultTitleIn .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cultTitleIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: drop-shadow(0 6px 24px rgba(201,162,39,.25)); }
}
.cult-sub {
  margin: 12px auto 0;
  max-width: 46ch;
  color: rgba(243,239,230,.72);
  font-size: 15px;
  line-height: 1.5;
}

/* STAGE — sketch layout */
.cult-stage {
  position: relative;
  padding: 12px 0 40px;
  min-height: 720px;
}
.cult-bg-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  opacity: .14;
  filter: saturate(.7) blur(1px);
  transform: scale(1.06);
  pointer-events: none;
}
.cult-bg-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cult-bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(12,18,30,.2), rgba(10,16,28,.92) 70%),
    linear-gradient(180deg, #0a101c 0%, transparent 12%, transparent 88%, #0a101c 100%);
  pointer-events: none;
}
.cult-stage-inner {
  position: relative;
  z-index: 2;
}

/* cloud frame container */
.cult-cloud-frame {
  position: relative;
  min-height: 640px;
  padding: 28px 12px 36px;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(160deg, rgba(18,26,42,.55), rgba(12,18,30,.35));
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: visible;
}
.cult-cloud-edge {
  position: absolute;
  left: 0; right: 0; top: -1px;
  width: 100%;
  height: 42px;
  color: rgba(247,240,230,.08);
  pointer-events: none;
}

/* ORBS — four circles from sketch */
.cult-orb {
  --orb-size: clamp(150px, 18vw, 196px);
  position: absolute;
  width: var(--orb-size);
  height: var(--orb-size);
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.cult-orb-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(201,162,39,.45);
  animation: orbSpin 18s linear infinite;
  pointer-events: none;
}
.cult-orb-tl .cult-orb-ring { animation-duration: 22s; }
.cult-orb-tr .cult-orb-ring { animation-duration: 26s; animation-direction: reverse; }
.cult-orb-bl .cult-orb-ring { animation-duration: 20s; animation-direction: reverse; }
.cult-orb-br .cult-orb-ring { animation-duration: 24s; }
@keyframes orbSpin { to { transform: rotate(360deg); } }

.cult-orb-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 14px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.14), transparent 45%),
    linear-gradient(155deg, rgba(28,38,58,.92), rgba(14,20,34,.95));
  border: 1px solid rgba(243,215,138,.35);
  box-shadow:
    0 18px 40px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.12);
  overflow: hidden;
}
.cult-orb-inner::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.cult-orb-ico {
  font-size: 22px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}
.cult-orb h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(12px, 1.35vw, 15px);
  line-height: 1.25;
  margin: 0 0 6px;
  color: #fff6d0;
  max-width: 14ch;
}
.cult-orb p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.35;
  color: rgba(243,239,230,.68);
  max-width: 16ch;
}
.cult-orb:hover,
.cult-orb:focus-visible {
  transform: scale(1.06) translateY(-4px);
  outline: none;
  z-index: 6;
}
.cult-orb:hover .cult-orb-inner,
.cult-orb:focus-visible .cult-orb-inner {
  border-color: rgba(243,215,138,.75);
  box-shadow:
    0 22px 48px rgba(0,0,0,.45),
    0 0 0 4px rgba(201,162,39,.15),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.cult-orb.is-active .cult-orb-inner {
  border-color: #c41e3a;
  box-shadow:
    0 22px 48px rgba(196,30,58,.25),
    0 0 0 4px rgba(196,30,58,.18);
}

/* positions like sketch corners */
.cult-orb-tl { top: 4%; left: 1%; animation: floatA 7s ease-in-out infinite; }
.cult-orb-tr { top: 4%; right: 1%; animation: floatB 8s ease-in-out infinite; }
.cult-orb-bl { bottom: 6%; left: 1%; animation: floatB 7.5s ease-in-out infinite; }
.cult-orb-br { bottom: 6%; right: 1%; animation: floatA 8.5s ease-in-out infinite; }
@keyframes floatA {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatB {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.cult-orb-tl:hover, .cult-orb-br:hover { animation-play-state: paused; }
.cult-orb-tr:hover, .cult-orb-bl:hover { animation-play-state: paused; }

/* CENTER block */
.cult-center {
  position: relative;
  z-index: 3;
  margin: 88px auto 72px;
  max-width: 720px;
  padding: 18px !important;
  border-radius: 28px !important;
  display: grid;
  gap: 16px;
  background: linear-gradient(160deg, rgba(18,26,42,.88), rgba(12,18,30,.82)) !important;
  border: 1px solid rgba(243,215,138,.22) !important;
  box-shadow: 0 30px 70px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.cult-center-media {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 12px;
}
.cult-main-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.cult-main-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.cult-center:hover .cult-main-photo img { transform: scale(1.04); }
.cult-main-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  font-family: var(--mono);
  letter-spacing: .03em;
}
.cult-video {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  min-height: 220px;
}
.cult-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.55) saturate(.85);
  transition: filter .35s ease, transform .8s ease;
}
.cult-video:hover img { filter: brightness(.45) saturate(1); transform: scale(1.03); }
.cult-video-veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
}
.cult-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8c15a, #c9a227);
  color: #1a1408;
  font-size: 18px;
  box-shadow: 0 10px 28px rgba(201,162,39,.4);
  transition: transform .25s ease;
  padding-left: 3px;
}
.cult-video:hover .cult-play { transform: scale(1.08); }
.cult-video.is-pulse .cult-play {
  animation: cultPulse .6s ease 2;
}
@keyframes cultPulse {
  0%,100% { transform: scale(1); box-shadow: 0 10px 28px rgba(201,162,39,.4); }
  50% { transform: scale(1.12); box-shadow: 0 14px 36px rgba(201,162,39,.65); }
}
.cult-video-label {
  font-family: var(--serif);
  font-size: 16px;
  color: #fff6d0;
  margin-top: 4px;
}
.cult-video-hint {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  max-width: 16ch;
}
.cult-center-copy { padding: 4px 6px 6px; }
.cult-center-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  margin: 6px 0 12px;
  line-height: 1.15;
}
.cult-center-copy p {
  color: rgba(243,239,230,.82);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.cult-bullets {
  margin: 0 0 16px;
  padding-left: 18px;
  color: rgba(243,239,230,.78);
  font-size: 13.5px;
  line-height: 1.55;
}
.cult-bullets li { margin-bottom: 4px; }
.cult-bullets li::marker { color: #c9a227; }
.cult-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* DETAILS */
.cult-details {
  position: relative;
  z-index: 2;
  padding: 10px 0 20px;
  background: linear-gradient(180deg, #0a101c 0%, #0d1524 40%, #0a101c 100%);
}
.cult-detail-block {
  margin-bottom: 36px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(15,22,36,.55);
  backdrop-filter: blur(8px);
  scroll-margin-top: 90px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.cult-detail-block.is-highlight {
  border-color: rgba(201,162,39,.45);
  box-shadow: 0 0 0 1px rgba(201,162,39,.12), 0 20px 50px rgba(0,0,0,.25);
}
.cult-detail-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.cult-detail-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: #c41e3a;
  background: rgba(196,30,58,.12);
  border: 1px solid rgba(196,30,58,.3);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 48px;
  text-align: center;
}
.cult-detail-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  margin: 4px 0 0;
}
.cult-people .person img {
  object-position: center top;
}
.cult-symbols-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}
.cult-symbol-card {
  padding: 22px !important;
  text-align: center;
}
.cult-symbol-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 14px 0 8px;
}
.cult-symbol-card p {
  color: rgba(243,239,230,.8);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.cult-gerb {
  width: min(180px, 50%);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.4));
}
.cult-flag-big {
  width: min(220px, 70%);
  height: 120px;
  margin: 8px auto 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
  background: linear-gradient(180deg,
    #ffffff 0 32%,
    #0039a6 32% 72%,
    #ffffff 72% 78%,
    #2e8b57 78% 100%);
}

/* Light theme */
[data-theme="light"] .sve-culture-page {
  background: #f4efe6;
  color: #1a2233;
}
[data-theme="light"] .cult-sub,
[data-theme="light"] .cult-center-copy p,
[data-theme="light"] .cult-bullets,
[data-theme="light"] .cult-symbol-card p {
  color: #3a4455;
}
[data-theme="light"] .cult-hand-title {
  background: linear-gradient(180deg, #8a6a12, #c41e3a);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .cult-cloud-frame {
  background: linear-gradient(160deg, rgba(255,252,246,.9), rgba(244,239,230,.85));
  border-color: rgba(0,0,0,.08);
}
[data-theme="light"] .cult-center {
  background: rgba(255,252,246,.95) !important;
  border-color: rgba(0,0,0,.08) !important;
}
[data-theme="light"] .cult-orb-inner {
  background: linear-gradient(155deg, #fffaf2, #f3ebe0);
  border-color: rgba(196,30,58,.25);
}
[data-theme="light"] .cult-orb h3 { color: #6b4f12; }
[data-theme="light"] .cult-orb p { color: #4a5568; }
[data-theme="light"] .cult-detail-block {
  background: rgba(255,252,246,.9);
  border-color: rgba(0,0,0,.07);
}
[data-theme="light"] .cult-details {
  background: linear-gradient(180deg, #f4efe6, #efe8da, #f4efe6);
}
[data-theme="light"] .cult-bg-collage { opacity: .08; }
[data-theme="light"] .cult-bg-veil {
  background: radial-gradient(ellipse 55% 50% at 50% 45%, rgba(244,239,230,.3), rgba(244,239,230,.95) 70%);
}
[data-theme="light"] .cult-back {
  color: #1a2233 !important;
  border-color: rgba(0,0,0,.12) !important;
  background: rgba(255,255,255,.7) !important;
}

/* Mobile / tablet */
@media (max-width: 980px) {
  .cult-orb {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 20px;
    animation: none !important;
  }
  .cult-orb-ring { display: none; }
  .cult-orb-inner {
    position: relative;
    inset: auto;
    border-radius: 20px;
    flex-direction: row;
    text-align: left;
    gap: 12px;
    padding: 14px 16px;
    justify-content: flex-start;
  }
  .cult-orb-inner::before { display: none; }
  .cult-orb h3 { max-width: none; font-size: 15px; margin: 0 0 4px; }
  .cult-orb p { max-width: none; font-size: 12.5px; }
  .cult-cloud-frame {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 16px;
  }
  .cult-center {
    margin: 8px 0;
    order: -1;
  }
  .cult-center-media {
    grid-template-columns: 1fr;
  }
  .cult-main-photo img,
  .cult-video { height: 180px; min-height: 180px; }
  .cult-symbols-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cult-hand-title { font-size: 52px; }
  .cult-orb-inner { flex-direction: column; text-align: center; }
  .cult-top-row { justify-content: center; }
  .cult-top-actions { justify-content: center; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .cult-hand-title,
  .cult-orb,
  .sve-culture-page .folk-ribbon,
  .cult-orb-ring,
  .cult-main-photo img {
    animation: none !important;
    transition: none !important;
  }
}

/* subtle global polish: smoother reveal + gold focus */
.reveal.visible {
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
:focus-visible {
  outline: 2px solid rgba(201,162,39,.7);
  outline-offset: 3px;
}


/* ===== TOURISM PAGE (эскиз «Туризм по Необъятной») ===== */
.tour-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(201,162,39,.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(61,139,184,.08), transparent 45%),
    var(--bg, #0b1220);
  padding-bottom: 48px;
}
[data-theme="light"] .tour-page {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(201,162,39,.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(61,139,184,.1), transparent 45%),
    #f4f1ea;
}

.tour-ribbon {
  height: 28px;
  background-image: url('../img/ural_pattern.svg');
  background-repeat: repeat-x;
  background-size: auto 28px;
  background-position: center;
  opacity: .55;
  border-block: 1px solid rgba(201,162,39,.25);
}
.tour-ribbon-top { margin-bottom: 8px; }
.tour-ribbon-bottom { margin-top: 40px; }

.tour-hero {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 28px 36px;
  padding: 28px 0 12px;
  align-items: start;
}
.tour-title {
  font-family: var(--serif, Marcellus, Georgia, serif);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.15;
  margin: 6px 0 14px;
  letter-spacing: .01em;
}
.tour-lead {
  color: var(--muted, #9aa6b8);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 58ch;
  margin-bottom: 18px;
}
.tour-goals {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tour-goals li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
[data-theme="light"] .tour-goals li {
  background: rgba(255,255,255,.75);
  border-color: rgba(0,0,0,.06);
}
.tour-goals .tg-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 20px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(201,162,39,.2), rgba(61,139,184,.15));
}
.tour-goals b { display: block; font-size: 14px; margin-bottom: 2px; }
.tour-goals p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.tour-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tour-hero-aside {
  display: grid;
  gap: 12px;
}
.tour-stat-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(201,162,39,.14), rgba(255,255,255,.03));
  border: 1px solid rgba(201,162,39,.28);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.tour-stat-card b {
  display: block;
  font-family: var(--serif, Marcellus, serif);
  font-size: 32px;
  color: #e8c86a;
  line-height: 1.1;
}
.tour-stat-card span {
  font-size: 13px;
  color: var(--muted);
}

.tour-section { padding: 36px 0 8px; }
.tour-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.tour-section-head h2 {
  font-family: var(--serif, Marcellus, serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  margin: 4px 0 6px;
}
.tour-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
  line-height: 1.5;
}
.tour-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tour-filter button {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s ease;
}
[data-theme="light"] .tour-filter button {
  border-color: rgba(0,0,0,.1);
  background: #fff;
}
.tour-filter button.is-active,
.tour-filter button:hover {
  border-color: rgba(201,162,39,.55);
  background: linear-gradient(135deg, rgba(201,162,39,.25), rgba(201,162,39,.08));
  color: #f0d78c;
}

/* COLLAGE */
.tour-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 12px;
}
.tour-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, z-index 0s .35s;
  z-index: 1;
  outline: none;
  background: #122;
}
.tour-tile-lg { grid-row: span 2; grid-auto-rows: auto; min-height: 332px; }
.tour-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
  filter: saturate(1.05) contrast(1.02);
}
.tour-tile-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 14px 14px;
  background: linear-gradient(to top, rgba(8,12,20,.92) 10%, rgba(8,12,20,.55) 55%, transparent);
  color: #f5f0e6;
  transform: translateY(28%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  pointer-events: none;
}
.tour-tile-cap .tour-reg {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e8c86a;
  font-weight: 700;
  margin-bottom: 4px;
}
.tour-tile-cap h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.tour-tile-cap p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(245,240,230,.88);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* hover / focus / active (mobile tap) */
.tour-tile:hover,
.tour-tile:focus-visible,
.tour-tile.is-open {
  transform: scale(1.06);
  z-index: 5;
  box-shadow: 0 22px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(201,162,39,.45);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.tour-tile:hover img,
.tour-tile:focus-visible img,
.tour-tile.is-open img {
  transform: scale(1.12);
  filter: saturate(1.12) contrast(1.05) brightness(1.05);
}
.tour-tile:hover .tour-tile-cap,
.tour-tile:focus-visible .tour-tile-cap,
.tour-tile.is-open .tour-tile-cap {
  transform: translateY(0);
  opacity: 1;
}
.tour-tile.is-hidden { display: none; }

/* detail panel */
.tour-detail {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(201,162,39,.28);
  background: rgba(12,18,30,.92);
  backdrop-filter: blur(12px);
  overflow: hidden;
  animation: tourDetailIn .3s ease;
}
[data-theme="light"] .tour-detail { background: rgba(255,255,255,.95); }
@keyframes tourDetailIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.tour-detail-inner {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 16px;
  padding: 14px;
  align-items: center;
}
.tour-detail-inner img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}
.tour-detail-inner h3 { margin: 4px 0 6px; font-size: 18px; }
.tour-detail-inner p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tour-detail-close {
  align-self: start;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/* MAP */
.tour-map-section {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.12), transparent);
  padding-bottom: 12px;
}
.tour-map-layout {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 18px;
  align-items: stretch;
}
.tour-map-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
}
.tour-map-visual svg { display: block; width: 100%; height: auto; }
.tour-pin { cursor: pointer; }
.tour-pin:hover circle:last-of-type,
.tour-pin:focus-visible circle:last-of-type {
  filter: url(#tourGlow);
  transform-box: fill-box;
}
.tour-route { animation: tourDash 18s linear infinite; }
.tour-route.r2 { animation-duration: 24s; animation-direction: reverse; }
@keyframes tourDash {
  to { stroke-dashoffset: -120; }
}
.tour-map-note {
  margin: 0;
  padding: 10px 14px 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.tour-routes {
  display: grid;
  gap: 12px;
}
.tour-route-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 8px;
}
[data-theme="light"] .tour-route-card {
  background: #fff;
  border-color: rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.tour-route-card .tr-num {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 12px;
  color: #c9a227;
  letter-spacing: .08em;
}
.tour-route-card h3 { margin: 0; font-size: 16px; }
.tour-route-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tour-route-card .btn { justify-self: start; margin-top: 4px; }

/* partners */
.tour-partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.tour-partner-slot {
  aspect-ratio: 1.4 / 1;
  border-radius: 14px;
  border: 1px dashed rgba(201,162,39,.35);
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.03), rgba(255,255,255,.03) 8px, transparent 8px, transparent 16px);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.tour-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px !important;
}
.tour-cta h3 { margin: 0 0 6px; font-size: 18px; }
.tour-cta p { margin: 0; color: var(--muted); font-size: 14px; }

/* MOBILE */
@media (max-width: 1024px) {
  .tour-hero { grid-template-columns: 1fr; }
  .tour-hero-aside {
    grid-template-columns: repeat(3, 1fr);
  }
  .tour-collage {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 140px;
  }
  .tour-tile-lg { min-height: 292px; }
  .tour-map-layout { grid-template-columns: 1fr; }
  .tour-partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .tour-hero-aside { grid-template-columns: 1fr; }
  .tour-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
  }
  .tour-tile-lg {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 180px;
  }
  /* on touch: always show a bit of caption strip */
  .tour-tile-cap {
    transform: translateY(55%);
    opacity: 1;
    padding-top: 36px;
  }
  .tour-tile.is-open .tour-tile-cap,
  .tour-tile:focus-visible .tour-tile-cap {
    transform: translateY(0);
  }
  .tour-tile:hover { transform: none; } /* avoid sticky hover on touch */
  .tour-tile.is-open {
    transform: scale(1.03);
  }
  .tour-detail-inner {
    grid-template-columns: 1fr;
  }
  .tour-detail-inner img {
    width: 100%;
    height: 160px;
  }
  .tour-detail-close {
    position: absolute;
    right: 10px;
    top: 10px;
  }
  .tour-detail-inner { position: relative; }
  .tour-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-filter { width: 100%; }
  .tour-filter button { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 420px) {
  .tour-collage {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .tour-tile-lg {
    grid-column: span 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-tile, .tour-tile img, .tour-tile-cap, .tour-route { transition: none !important; animation: none !important; }
}


/* ===== HUB PAGES (culture, education, heritage, sport, …) ===== */
.hub-page {
  padding-bottom: 40px;
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(201,162,39,.07), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(61,139,184,.06), transparent 45%),
    var(--bg, #0b1220);
}
[data-theme="light"] .hub-page {
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(201,162,39,.1), transparent 50%),
    #f4f1ea;
}
.hub-ribbon {
  height: 22px;
  background-image: url('../img/ural_pattern.svg');
  background-repeat: repeat-x;
  background-size: auto 22px;
  opacity: .5;
  border-block: 1px solid rgba(201,162,39,.2);
}
.hub-hero { padding: 28px 0 8px; max-width: 820px; }
.hub-title {
  font-family: var(--serif, Marcellus, Georgia, serif);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 6px 0 12px;
}
.hub-h2 {
  font-family: var(--serif, Marcellus, Georgia, serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  margin: 4px 0 8px;
}
.hub-lead {
  color: var(--muted, #9aa6b8);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 8px;
  max-width: 62ch;
}
.hand-quote {
  font-family: var(--hand, Caveat, cursive);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--gold2, #e8c86a);
  line-height: 1.3;
}
.hub-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 0;
}
.hub-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hub-card {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  transition: border-color .2s, transform .2s;
}
[data-theme="light"] .hub-card {
  background: #fff;
  border-color: rgba(0,0,0,.06);
  box-shadow: 0 8px 28px rgba(0,0,0,.04);
}
.hub-card:hover {
  border-color: rgba(201,162,39,.4);
  transform: translateY(-2px);
}
.hub-card h3 { margin: 0 0 8px; font-size: 16px; }
.hub-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.hub-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 10px;
  background: linear-gradient(145deg, rgba(201,162,39,.2), rgba(61,139,184,.12));
}
.hub-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}
.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0 28px;
}
.hub-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  padding: 12px 0 24px;
  align-items: start;
}
.hub-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.hub-photo img { width: 100%; height: 320px; object-fit: cover; display: block; }
.hub-photo figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(0,0,0,.25);
}
.hub-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 160px 160px;
  gap: 12px;
  padding: 12px 0;
}
.hub-mosaic-item {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.hub-mosaic-lg { grid-row: span 2; }
.hub-mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-mosaic-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #f5f0e6;
  font-size: 12.5px;
}
.hub-mosaic-item figcaption b { color: #e8c86a; }

/* Culture hub specific */
.cult-hub { padding-bottom: 32px; }
.cult-hub-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
  padding: 28px 0 12px;
}
.cult-hub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cult-hub-stage {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 12px 0 8px;
  align-items: start;
}
.cult-hub-orbs {
  display: grid;
  gap: 10px;
}
.cult-hub-orb {
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: inherit;
  border-radius: 16px;
  padding: 14px 14px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-areas: "ico t" "ico d";
  gap: 2px 12px;
  transition: .2s ease;
  font: inherit;
}
.cult-hub-orb .cho-ico { grid-area: ico; font-size: 22px; align-self: center; }
.cult-hub-orb .cho-t { grid-area: t; font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.cult-hub-orb .cho-d { grid-area: d; font-size: 12px; color: var(--muted); line-height: 1.35; }
.cult-hub-orb:hover,
.cult-hub-orb.is-active {
  border-color: rgba(201,162,39,.5);
  background: linear-gradient(135deg, rgba(201,162,39,.18), rgba(255,255,255,.03));
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.cult-hub-center {
  display: grid;
  gap: 14px;
}
.cult-hub-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(201,162,39,.25);
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
.cult-hub-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.cult-hub-media-veil {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,12,20,.75) 0%, rgba(8,12,20,.2) 55%, transparent 100%);
  pointer-events: none;
}
.cult-hub-media-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 22px 20px;
  color: #f5f0e6;
  max-width: 520px;
}
.cult-hub-media-cap h2 {
  font-family: var(--serif, Marcellus, serif);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 28px);
  margin: 4px 0 8px;
}
.cult-hub-media-cap p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245,240,230,.9);
}
.cult-hub-panels {
  position: relative;
  min-height: 140px;
}
.cult-hub-panel {
  display: none;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  animation: tourDetailIn .25s ease;
}
.cult-hub-panel.is-active { display: block; }
.cult-hub-panel h3 { margin: 0 0 8px; font-size: 17px; }
.cult-hub-panel p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.cult-hub-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.cult-passports {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cult-pass {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  align-items: center;
}
[data-theme="light"] .cult-pass {
  background: #fff;
  border-color: rgba(0,0,0,.06);
}
.cult-pass img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}
.cult-pass h3 { margin: 4px 0 6px; font-size: 16px; }
.cult-pass p { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.cult-pass-soon { opacity: .92; }

/* events list */
.events-list { display: grid; gap: 12px; padding: 16px 0 8px; }
.event-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
[data-theme="light"] .event-row {
  background: #fff;
  border-color: rgba(0,0,0,.06);
}
.event-date {
  text-align: center;
  line-height: 1.1;
}
.event-date b {
  display: block;
  font-size: 22px;
  font-family: var(--serif, Marcellus, serif);
  color: #e8c86a;
}
.event-date span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.event-row h3 { margin: 0 0 4px; font-size: 15px; }
.event-row p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.event-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c9a227;
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.partners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.partners-table th,
.partners-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.partners-table th {
  color: #e8c86a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 960px) {
  .hub-grid-3 { grid-template-columns: 1fr 1fr; }
  .cult-hub-stage { grid-template-columns: 1fr; }
  .cult-hub-orbs {
    grid-template-columns: 1fr 1fr;
  }
  .cult-passports { grid-template-columns: 1fr; }
  .hub-split { grid-template-columns: 1fr; }
  .hub-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 140px 140px;
  }
  .hub-mosaic-lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .hub-grid-3, .hub-grid-2 { grid-template-columns: 1fr; }
  .cult-hub-orbs { grid-template-columns: 1fr; }
  .hub-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .hub-mosaic-lg { grid-column: span 1; min-height: 180px; }
  .hub-mosaic-item { min-height: 150px; }
  .event-row {
    grid-template-columns: 56px 1fr;
  }
  .event-tag { grid-column: 2; justify-self: start; }
  .cult-pass { grid-template-columns: 88px 1fr; }
  .cult-pass img { width: 88px; height: 88px; }
  .cult-hub-media img { height: 240px; }
}


/* ===== STELE FIX v2: visible mock under photo + light theme ===== */
[data-theme="light"] .stele-section {
  background: #ebe4d6 !important;
}
.stele-interactive {
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 960px) {
  .stele-interactive { grid-template-columns: 1fr !important; }
}
.stele-stage {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  padding: 16px 12px 12px;
  border-radius: 20px;
  min-height: 420px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.06));
  border: 1px solid var(--line);
}
[data-theme="light"] .stele-stage {
  background: linear-gradient(180deg, #f7f1e6, #e8dfce);
  border: 1px solid rgba(0,0,0,.06);
}
.stele-monument {
  width: min(100%, 360px);
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}
.stele-panel {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}
.stele-panel-inner {
  flex: 0 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px;
  box-shadow: var(--shadow);
}
.stela-photo.stele-ref {
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  background: #1a1208 !important;
  min-height: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.stela-photo.stele-ref img {
  max-height: 190px !important;
  width: 100% !important;
  object-fit: contain !important;
  display: block !important;
  background: #1a1208;
}
.stela-photo.stele-ref::after { display: none !important; }

.stele-mini-mock {
  border-radius: 16px;
  border: 1px solid rgba(201,162,39,.35);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,39,.12), transparent 55%),
    var(--card);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-soft);
}
.stele-mini-mock h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold2);
  text-align: center;
}
.stele-mini-svg {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  height: auto;
}
.stele-mini-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  justify-content: center;
}
.stele-mini-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
  background: #c9a227;
}
.stele-mini-legend span:nth-child(2)::before { background: #0039a6; }
.stele-mini-legend span:nth-child(3)::before { background: #d52b1e; }


/* ===== PARTNERS PAGE (sketch levels, no pyramid word) ===== */
.part-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 8px auto 0;
}
.part-benefit {
  aspect-ratio: 1;
  max-width: 150px;
  width: 100%;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  gap: 4px;
  box-shadow: var(--shadow-soft);
}
.part-benefit span { font-size: 22px; line-height: 1; }
.part-benefit b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  max-width: 12ch;
}
.part-benefit small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}
.part-levels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.part-level {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(201,162,39,.35);
  background: linear-gradient(135deg, rgba(201,162,39,.12), rgba(255,255,255,.03));
  padding: 14px 16px;
  position: relative;
}
[data-theme="light"] .part-level {
  background: linear-gradient(135deg, rgba(201,162,39,.1), #fff);
  border-color: rgba(201,162,39,.3);
}
.part-level-1 { width: 62%; }
.part-level-2 { width: 80%; }
.part-level-3 { width: 100%; }
.pl-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  color: #1a1208;
  background: linear-gradient(145deg, #f3d78a, #c9a227);
  box-shadow: 0 4px 12px rgba(201,162,39,.35);
}
.pl-body h3 { margin: 0 0 4px; font-size: 15px; }
.pl-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}
.pl-body ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 700px) {
  .part-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 320px;
    gap: 12px;
  }
  .part-benefit { max-width: 140px; }
  .part-level-1, .part-level-2, .part-level-3 { width: 100%; }
}


/* ===== Russian stele icon + double-headed eagle ===== */
.ico-stele {
  display: inline-grid;
  place-items: center;
  line-height: 0;
}
.ico-stele svg { display: block; }
.tg-ico-stele, .hub-ico-stele {
  background: linear-gradient(145deg, rgba(201,162,39,.22), rgba(61,139,184,.1)) !important;
}
.tg-ico-stele .ico-stele svg { width: 22px; height: 22px; }
.hub-ico-stele .ico-stele svg { width: 24px; height: 24px; }
.sm-eagle {
  font-size: 0 !important;
  width: 56px;
  height: 42px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)) drop-shadow(0 0 10px rgba(212,168,75,.45));
}
.sm-eagle-svg {
  display: block;
  width: 56px;
  height: 42px;
}

/* ===== STELE PHOTO FILL (20260922c) ===== */

.stela-photo.stele-ref {
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  background: #1a1208 !important;
  min-height: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
}
.stela-photo.stele-ref img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  background: #1a1208;
}
.stela-photo.stele-ref::after { display: none !important; }
.stela-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
/* mini mock removed by request */
.stele-mini-mock { display: none !important; }

/* ===== STELE PHOTO FILL FINAL ===== */
.stela-photo.stele-ref {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #1a1208 !important;
  border: 1px solid var(--line);
}
.stela-photo.stele-ref img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 40% !important;
  display: block !important;
}
.stela-photo.stele-ref::after { display: none !important; }
.stele-mini-mock { display: none !important; height: 0 !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.stela-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 3 !important;
}

/* ===== Brand stele + map labels 2026-10-15 ===== */
.brand-mark-stele {
  display: inline-grid !important;
  place-items: center;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 50% !important;
  background: #1a1208 !important;
  border: 1px solid rgba(201,162,39,.45);
  box-shadow: 0 0 0 2px rgba(201,162,39,.15);
}
.brand-mark-stele img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.map-float-label {
  position: absolute !important;
  z-index: 6;
  max-width: min(92%, 280px);
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.2;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 600;
  pointer-events: none;
  box-sizing: border-box;
  text-align: center;
  transform: none !important;
}
.map-frame {
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) {
  .map-float-label {
    max-width: min(94%, 220px);
    font-size: 11px !important;
    padding: 5px 8px !important;
  }
}

/* ===== 3D stele canvas ===== */
.stele-canvas-wrap {
  position: relative;
  width: 100%;
  height: min(72vh, 640px);
  min-height: 460px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(201,162,39,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
  border: 1px solid var(--line);
}
[data-theme="light"] .stele-canvas-wrap {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(201,162,39,.18), transparent 55%),
    linear-gradient(180deg, #f7f1e6, #e4d9c6);
}
#steleCanvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  cursor: grab;
}
#steleCanvas:active { cursor: grabbing; }
.stele-load-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,.55);
  color: #f3d78a;
  font-size: 13px;
  text-align: center;
  max-width: 90%;
  pointer-events: none;
}
.stele-load-status.is-error {
  color: #ffd0a8;
  background: rgba(80,30,10,.65);
}
.stele-fallback {
  margin: 0 auto;
}
@media (max-width: 600px) {
  .stele-canvas-wrap {
    height: min(55vh, 420px);
    min-height: 320px;
  }
}

/* ===== Brand stele SILHOUETTE ===== */
.brand-mark-stele {
  display: inline-grid !important;
  place-items: center;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #f3d78a, #c9a227 55%, #8b6914) !important;
  color: #1a1208 !important;
  border: 1px solid rgba(255,246,208,.5);
  box-shadow: 0 2px 10px rgba(201,162,39,.35);
  overflow: hidden;
}
.brand-mark-stele .brand-stele-svg,
.brand-mark-stele svg {
  width: 26px;
  height: 26px;
  display: block;
  color: #1a1208;
}
[data-theme="light"] .brand-mark-stele {
  background: linear-gradient(145deg, #fff6d0, #e8c15a 50%, #b8860b) !important;
}
.brand a:hover .brand-mark-stele {
  transform: scale(1.05);
}

/* ===== Dense region pages (no clouds, no empty voids) 2026-10-29 ===== */
.region-page-dense .clouds-stage,
.sve-body-dense .clouds-stage,
.sve-body-dense .sve-clouds {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.sve-body-dense {
  padding-top: 12px !important;
  padding-bottom: 40px !important;
}
.sve-body-dense .sve-gallery {
  margin-top: -36px !important;
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
}
.sve-body-dense .sve-intro {
  margin-top: 8px !important;
  margin-bottom: 14px !important;
}
.sve-body-dense .sve-nav.panel-nav,
.sve-body-dense .panel-nav {
  margin-top: 8px !important;
  margin-bottom: 12px !important;
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgba(15, 21, 34, 0.92);
  backdrop-filter: blur(10px);
  padding: 8px 4px;
  border-radius: 12px;
}
[data-theme="light"] .sve-body-dense .sve-nav.panel-nav,
[data-theme="light"] .sve-body-dense .panel-nav {
  background: rgba(244, 239, 230, 0.94);
}
.sve-body-dense .panel.sve-panel {
  margin-top: 0 !important;
}
.region-page-dense .clouds-stage {
  display: none !important;
}
.region-page-dense .info-box {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}
.region-page-dense .panel-nav {
  margin-top: 8px !important;
  margin-bottom: 12px !important;
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgba(12, 16, 28, 0.9);
  backdrop-filter: blur(10px);
  padding: 8px 4px;
  border-radius: 12px;
}
[data-theme="light"] .region-page-dense .panel-nav {
  background: rgba(247, 241, 230, 0.95);
}
.region-page-dense .region-hero {
  margin-bottom: 12px !important;
}
/* gallery cards slightly tighter */
.sve-gallery-track {
  gap: 10px !important;
}
.sve-gallery-card {
  min-height: 0 !important;
}
@media (max-width: 700px) {
  .sve-body-dense {
    padding-top: 8px !important;
    padding-bottom: 28px !important;
  }
  .sve-body-dense .sve-gallery {
    margin-top: -20px !important;
  }
  .sve-body-dense .sve-nav.panel-nav,
  .region-page-dense .panel-nav {
    top: 56px;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .sve-intro-grid {
    gap: 12px !important;
  }
  .sve-body-dense .glass-block {
    padding: 16px !important;
  }
  /* kill old cloud min-heights on mobile */
  .clouds-stage {
    min-height: 0 !important;
    display: none !important;
  }
}

/* Real flag image in stele card */
.stele-panel-flag, #stelePanelFlag {
  overflow: hidden;
  min-height: 56px;
  background-size: cover !important;
}
#stelePanelFlag img, .stele-panel-flag img {
  width: 100%;
  height: 100%;
  min-height: 56px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}


/* Real flag broadcast rectangle in stele panel */
.stele-panel-flag,
#stelePanelFlag {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto !important;
  min-height: 120px !important;
  max-height: 180px;
  border-radius: 12px;
  border: 1px solid rgba(201,162,39,.45);
  overflow: hidden;
  background: linear-gradient(135deg, #1a2030, #2a3344) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.15);
  margin-bottom: 14px;
}
#stelePanelFlag img,
.stele-panel-flag img {
  width: 100% !important;
  height: 100% !important;
  min-height: 120px !important;
  object-fit: contain !important; /* full flag, not crop */
  object-position: center;
  display: block;
  border-radius: 10px;
  background: #0f1420;
}
.stele-panel-flag-label {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.45);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}
.stele-interactive {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .stele-interactive {
    grid-template-columns: 1fr;
  }
  .stele-canvas-wrap {
    height: min(58vh, 480px) !important;
    min-height: 360px !important;
  }
}
