:root {
  color-scheme: light;
  --bg: #f7f3fc;
  --bg-warm: #faf6ef;
  --surface: #ffffff;
  --surface-soft: #fdfbff;
  --border: #e4dcf0;
  --border-gold: rgba(212, 175, 55, 0.45);
  --text: #1e1430;
  --text-soft: #3d3450;
  --muted: #6a6280;
  --purple: #5a2d8a;
  --purple-deep: #3d2560;
  --purple-soft: rgba(90, 45, 138, 0.1);
  --gold: #c9a227;
  --gold-bright: #e8c547;
  --btc-orange: #f7931a;
  --btc-soft: rgba(247, 147, 26, 0.14);
  --eth-violet: #7b5ea7;
  --eth-soft: rgba(123, 94, 167, 0.12);
  --danger: #8b2e2e;
  --danger-soft: #fff0f0;
  --shadow-sm: 0 2px 8px rgba(61, 37, 96, 0.07);
  --shadow-md: 0 10px 32px rgba(61, 37, 96, 0.1);
  --shadow-lg: 0 20px 48px rgba(61, 37, 96, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --icon-btc: url("icons/bitcoin.svg");
  --icon-eth: url("icons/ethereum.svg");
  --icon-wallet: url("icons/wallet.svg");
  --icon-chart: url("icons/chart.svg");
  --icon-bars: url("icons/bars.svg");
  --bars-steel: #4a5568;
  --bars-shadow: rgba(30, 35, 50, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-soft);
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='0.06'%3E%3Ccircle cx='40' cy='42' r='20' fill='none' stroke='%23f7931a' stroke-width='1.5'/%3E%3Ctext x='40' y='50' text-anchor='middle' font-size='20' font-weight='700' fill='%23f7931a'%3E%E2%82%BF%3C/text%3E%3Cpath d='M120 30 L132 50 L120 44 L108 50 Z' fill='%237b5ea7'/%3E%3Cpath d='M120 44 L132 50 L120 70 L108 50 Z' fill='%237b5ea7' opacity='0.5'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 50% at 0% 0%, var(--btc-soft), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 10%, var(--eth-soft), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, var(--purple-soft), transparent 45%);
  background-size: 180px 180px, auto, auto, auto;
  background-attachment: fixed;
  overflow-x: hidden;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--btc-orange), var(--purple), var(--gold-bright));
  box-shadow: 0 0 14px rgba(247, 147, 26, 0.35);
  transition: width 0.08s linear;
}

.cell-gates {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.cell-gate {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(72px, 14vw, 140px);
  background: url("prison-gate-panel.svg") repeat-y center top;
  background-size: 100% auto;
  filter: drop-shadow(6px 0 16px rgba(0, 0, 0, 0.45));
}

.cell-gate--left {
  left: 0;
}

.cell-gate--right {
  right: 0;
  transform: scaleX(-1);
  filter: drop-shadow(-6px 0 16px rgba(0, 0, 0, 0.45));
}

.cell-gate-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.28) 0%,
    transparent clamp(72px, 14vw, 140px),
    transparent calc(100% - clamp(72px, 14vw, 140px)),
    rgba(0, 0, 0, 0.28) 100%
  );
}

.page-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-icon {
  position: absolute;
  display: block;
  opacity: 0.13;
}

.float-icon--btc {
  background: linear-gradient(145deg, var(--btc-orange), var(--gold-bright));
  mask: var(--icon-btc) center / contain no-repeat;
  -webkit-mask: var(--icon-btc) center / contain no-repeat;
}

.float-icon--eth {
  background: linear-gradient(145deg, var(--eth-violet), #9b7fd4);
  mask: var(--icon-eth) center / contain no-repeat;
  -webkit-mask: var(--icon-eth) center / contain no-repeat;
}

.float-icon--wallet {
  background: linear-gradient(145deg, var(--purple), var(--eth-violet));
  mask: var(--icon-wallet) center / contain no-repeat;
  -webkit-mask: var(--icon-wallet) center / contain no-repeat;
}

.float-icon--chart {
  background: linear-gradient(145deg, var(--gold), var(--btc-orange));
  mask: var(--icon-chart) center / contain no-repeat;
  -webkit-mask: var(--icon-chart) center / contain no-repeat;
}

.float-icon--1 { width: 64px; height: 64px; top: 6%; left: 3%; animation: float-drift 19s var(--ease) infinite; }
.float-icon--2 { width: 44px; height: 44px; top: 20%; right: 5%; animation: float-drift 22s var(--ease) -3s infinite reverse; }
.float-icon--3 { width: 52px; height: 52px; bottom: 22%; left: 6%; animation: float-drift 21s var(--ease) -7s infinite; }
.float-icon--4 { width: 40px; height: 40px; top: 42%; right: 8%; animation: float-drift 18s var(--ease) -2s infinite; }
.float-icon--5 { width: 48px; height: 48px; bottom: 12%; right: 4%; animation: float-drift 23s var(--ease) -9s infinite reverse; }
.float-icon--6 { width: 36px; height: 36px; top: 58%; left: 2%; animation: float-drift 17s var(--ease) -5s infinite reverse; }
.float-icon--7 { width: 56px; height: 56px; bottom: 38%; right: 12%; animation: float-drift 20s var(--ease) -11s infinite; opacity: 0.1; }
.float-icon--8 { width: 32px; height: 32px; top: 78%; right: 20%; animation: float-drift 24s var(--ease) -6s infinite; opacity: 0.11; }

@keyframes float-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -14px) rotate(5deg); }
  66% { transform: translate(-8px, 8px) rotate(-4deg); }
}

.wrap {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.hero-header__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.lang-switch__btn {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s ease;
}

.lang-switch__btn:hover {
  color: var(--purple-deep);
  background: var(--purple-soft);
  text-decoration: none;
}

.lang-switch__btn--active {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(90, 45, 138, 0.3);
}

.lang-switch__sep {
  color: var(--border);
  font-size: 0.75rem;
  user-select: none;
}

.badge {
  display: inline-block;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff8e8, #f5e6b8);
  color: var(--purple-deep);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.status {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(139, 46, 46, 0.2);
}

.status--prison {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #f0f2f5 0%, #e2e6eb 100%);
  color: #374151;
  border: 1px solid rgba(75, 85, 99, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.status__bars {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--bars-steel);
  mask: var(--icon-bars) center / contain no-repeat;
  -webkit-mask: var(--icon-bars) center / contain no-repeat;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-soft) 55%, #f8f4ff 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: hero-enter 0.65s var(--ease) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 15%, var(--btc-soft), transparent 45%),
    radial-gradient(circle at 10% 85%, var(--eth-soft), transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--btc-orange), var(--purple), var(--gold-bright));
}

.hero-main {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-photo {
  width: 220px;
  flex-shrink: 0;
  border-radius: var(--radius);
  border: 4px solid #2a3140;
  background: #1a1e26;
  overflow: hidden;
  box-shadow:
    var(--shadow-lg),
    0 0 0 2px rgba(212, 175, 55, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-photo__inner {
  position: relative;
  overflow: hidden;
  background: #111;
}

.hero-photo__inner img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.05) saturate(0.88) brightness(0.92);
}

.hero-photo__bars {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: url("prison-bars-photo.svg") center / cover no-repeat;
  pointer-events: none;
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.55);
}

.hero-photo figcaption {
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0.4rem 0.5rem;
  background: var(--surface-soft);
  text-align: center;
}

.hero-text {
  flex: 1;
  min-width: 220px;
}

.hero-text h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sub strong {
  color: var(--purple-deep);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-stat {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.hero-stat--gold {
  background: linear-gradient(135deg, #fff9e8, #fff3cc);
  border-color: var(--border-gold);
  color: #6b4f0a;
}

.hero-visual {
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-coin {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(247, 147, 26, 0.3);
  animation: coin-pulse 10s var(--ease) infinite;
}

.hero-coin--btc {
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, #ffb84d, var(--btc-orange));
  mask: var(--icon-btc) center / 68% no-repeat;
  -webkit-mask: var(--icon-btc) center / 68% no-repeat;
  right: 18%;
  top: 10%;
}

.hero-coin--eth {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #b89ae8, var(--eth-violet));
  mask: var(--icon-eth) center / 70% no-repeat;
  -webkit-mask: var(--icon-eth) center / 70% no-repeat;
  left: 20%;
  bottom: 5%;
  animation-delay: -3s;
}

.hero-chart {
  position: absolute;
  width: 48px;
  height: 48px;
  left: 45%;
  top: 20%;
  background: linear-gradient(145deg, var(--gold), var(--gold-bright));
  mask: var(--icon-chart) center / contain no-repeat;
  -webkit-mask: var(--icon-chart) center / contain no-repeat;
  opacity: 0.85;
  animation: float-drift 8s var(--ease) infinite;
}

@keyframes coin-pulse {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.06) rotate(4deg); }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--surface);
  padding: 1.25rem 1.4rem;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  opacity: 0.75;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s ease;
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--purple-deep);
}

.card p,
.card li {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.card p {
  margin: 0 0 0.75rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--prison {
  position: relative;
  overflow: hidden;
  border: 2px solid #3d4450;
  background: linear-gradient(165deg, #eceef2 0%, var(--surface) 35%);
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.card--prison::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("prison-bars-photo.svg") center / 120% auto no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.card--prison h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card--prison h2::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background: var(--bars-steel);
  mask: var(--icon-bars) center / contain no-repeat;
  -webkit-mask: var(--icon-bars) center / contain no-repeat;
  opacity: 0.75;
}

#scheme.card {
  border-left: 3px solid var(--btc-orange);
  background: linear-gradient(90deg, var(--btc-soft) 0%, var(--surface) 24%);
}

#scheme h2::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.3em;
  vertical-align: -0.12em;
  background: var(--btc-orange);
  mask: var(--icon-btc) center / contain no-repeat;
  -webkit-mask: var(--icon-btc) center / contain no-repeat;
}

.person {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #faf8ff 0%, #fff 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.person img {
  width: 120px;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.person h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--purple-deep);
}

.person p {
  margin: 0.35rem 0;
}

.timeline {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 0.75rem 0;
}

.timeline p {
  margin: 0.45rem 0;
}

.note {
  background: linear-gradient(90deg, var(--purple-soft) 0%, #faf8ff 100%);
  border-left: 4px solid var(--purple);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

.card--alert {
  border-color: rgba(139, 46, 46, 0.25);
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.card--alert h2 {
  color: var(--danger);
}

.card--legal {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, #fff 0%, #fdfbf5 100%);
}

.card--legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--purple-deep);
  font-family: var(--font-display);
}

.card--mother {
  border-color: rgba(91, 44, 130, 0.28);
  background: linear-gradient(180deg, #fff 0%, #f9f6fc 100%);
}

.card--mother h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--purple-deep);
  font-family: var(--font-display);
}

.card--appeal-org {
  border-color: rgba(139, 46, 46, 0.3);
  background: linear-gradient(180deg, #fff 0%, #fff9f6 100%);
}

.card--appeal-org h2 {
  color: var(--danger);
}

.appeal-intro {
  margin-bottom: 1rem;
}

.appeal-letter {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--danger);
  background: #fff;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

.appeal-letter h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1rem;
  color: var(--purple-deep);
  font-family: var(--font-display);
}

.appeal-letter ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

.appeal-letter li {
  margin: 0.35rem 0;
}

.appeal-close {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
}

.legal-table--person th {
  width: 38%;
}

.fact-list {
  margin: 0.75rem 0 0.5rem;
  padding-left: 1.25rem;
}

.fact-list li {
  margin: 0.45rem 0;
}

.fact-list--outcome li {
  font-weight: 500;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-weight: 600;
}

.legal-table tr:nth-child(even) td {
  background: #faf8ff;
}

.person--inline {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border-gold);
  background: var(--surface);
}

.doc-figure {
  margin: 1.25rem 0 0.5rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.doc-figure img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.doc-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.site-nav__tab {
  flex: 1 1 auto;
  min-width: 9rem;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.site-nav__tab:hover {
  background: var(--purple-soft);
  color: var(--purple-deep);
  text-decoration: none;
}

.site-nav__tab--active {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(90, 45, 138, 0.35);
}

.doc-page-header {
  margin-bottom: 1.25rem;
}

.doc-page-header h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--purple-deep);
}

.doc-page-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.doc-page-card {
  margin-bottom: 1rem;
}

.doc-figure--full {
  max-width: 640px;
  margin: 1.25rem auto 1.5rem;
}

.doc-figure--full img {
  max-width: 100%;
}

.doc-download {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.35rem 0.75rem;
  background: var(--purple-soft);
  border-radius: 6px;
  font-weight: 600;
}

.doc-page-sign {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.passport-verdict {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 46, 46, 0.35);
  background: rgba(139, 46, 46, 0.06);
}

.passport-verdict h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--danger, #8b2e2e);
}

.passport-verdict p:last-child {
  margin-bottom: 0;
}

.vsu-text-note {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(139, 46, 46, 0.08);
  border-left: 3px solid var(--danger);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.vsu-text-block {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.vsu-text-block p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.vsu-text-block p:last-child {
  margin-bottom: 0;
}

.doc-teaser {
  margin: 1rem 0 0.5rem;
}

.doc-teaser__btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: linear-gradient(135deg, var(--danger) 0%, #6b1a1a 100%);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(139, 46, 46, 0.3);
}

.doc-teaser__btn:hover {
  filter: brightness(1.08);
}

.doc-teaser-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.doc-teaser-row .doc-teaser__thumb {
  margin: 0;
}

.doc-teaser__thumb {
  display: block;
  max-width: 280px;
  margin: 0.75rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-md);
}

.doc-teaser__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.card--doom {
  border: 1px solid rgba(60, 20, 20, 0.35);
  background: linear-gradient(165deg, #1a0f1f 0%, #2d1838 45%, #1e1228 100%);
  color: #e8e0f0;
  box-shadow: 0 16px 40px rgba(20, 8, 30, 0.45);
}

.card--doom h2 {
  color: #f5d76e;
  font-family: var(--font-display);
  margin-top: 0;
}

.card--doom h3 {
  color: #f0b4b4;
  font-size: 1.02rem;
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-display);
}

.card--doom p,
.card--doom li {
  color: #d8cfe8;
}

.doom-lead {
  font-size: 0.95rem;
  opacity: 0.95;
}

.doom-list {
  margin: 0.6rem 0;
  padding-left: 1.2rem;
}

.doom-list li {
  margin: 0.55rem 0;
}

.doom-list--final li {
  color: #f5c4c4;
}

.scenario {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scenario--bad {
  background: rgba(90, 45, 138, 0.25);
}

.scenario--worse {
  background: rgba(120, 40, 40, 0.35);
  border-color: rgba(240, 120, 120, 0.25);
}

.scenario--worst {
  background: rgba(40, 10, 10, 0.55);
  border-color: rgba(255, 80, 80, 0.35);
}

.scenario-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #ffd966;
  font-size: 0.95rem;
}

.scenario ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
}

.scenario li {
  margin: 0.4rem 0;
}

.doom-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
  color: #f0a8a8;
  font-weight: 500;
}

a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple-deep);
  text-decoration: underline;
}

.sources {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 1.2rem;
}

.contact-email-line {
  margin: 0.7rem 0;
  padding: 0.65rem 0.9rem;
  background: var(--purple-soft);
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.cta-official {
  margin: 1.25rem 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
  opacity: 0.75;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.cta-official.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-official-head {
  background: linear-gradient(135deg, var(--purple-deep) 0%, #4a3078 50%, #2d1b4e 100%);
  padding: 1.35rem 1.5rem;
  color: #fff;
}

.cta-official-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-bright);
  font-weight: 700;
}

.cta-official-head p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.cta-official-body {
  background: linear-gradient(180deg, #faf8ff 0%, var(--surface) 100%);
  padding: 1.35rem 1.5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.cta-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.cta-item-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-soft), #fff8e8);
  color: var(--purple-deep);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cta-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--purple-deep);
  margin-bottom: 0.2rem;
}

.cta-item span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.cta-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.cta-orgs span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: #eef0f8;
  color: #3d4a6a;
  border: 1px solid #d8dce8;
}

.cta-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--text);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
  text-decoration: none;
  color: var(--text);
}

.cta-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.visit-counter {
  margin-top: 0.65rem;
  padding: 0.55rem 0.85rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.visit-counter b {
  color: var(--purple);
  font-weight: 700;
}

@media (max-width: 640px) {
  .cell-gates {
    display: none;
  }

  .page-deco {
    display: none;
  }

  body {
    background-attachment: scroll;
    background-size: 130px 130px, auto, auto, auto;
    font-size: 0.98rem;
  }

  .wrap {
    max-width: 100%;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .hero {
    padding: 1rem;
  }

  .hero-photo__bars {
    opacity: 0.45;
  }

  .hero-photo {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    min-width: 0;
    width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .site-nav {
    gap: 0.35rem;
    padding: 0.3rem;
  }

  .site-nav__tab {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: 0;
    padding: 0.5rem 0.55rem;
    font-size: 0.78rem;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .legal-table {
    font-size: 0.82rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal-table thead,
  .legal-table tbody {
    display: table;
    width: 100%;
    min-width: 520px;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.45rem 0.4rem;
  }

  .person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .visit-counter {
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  .wrap {
    max-width: 720px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .site-nav__tab {
    min-width: 7.5rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-icon, .hero-coin, .hero-chart, .hero { animation: none; }
  .card, .cta-official { transition: none; opacity: 1; transform: none; }
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .hero-visual {
    min-width: 140px;
    min-height: 120px;
  }

  .hero-coin--btc {
    width: 88px;
    height: 88px;
  }
}

@media (min-width: 900px) {
  .wrap { padding-top: 2rem; }
  .float-icon { opacity: 0.16; }
}

/* ——— RU theme: crypto background (default) ——— */
body.theme-ru {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='0.06'%3E%3Ccircle cx='40' cy='42' r='20' fill='none' stroke='%23f7931a' stroke-width='1.5'/%3E%3Ctext x='40' y='50' text-anchor='middle' font-size='20' font-weight='700' fill='%23f7931a'%3E%E2%82%BF%3C/text%3E%3Cpath d='M120 30 L132 50 L120 44 L108 50 Z' fill='%237b5ea7'/%3E%3Cpath d='M120 44 L132 50 L120 70 L108 50 Z' fill='%237b5ea7' opacity='0.5'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 50% at 0% 0%, var(--btc-soft), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 10%, var(--eth-soft), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, var(--purple-soft), transparent 45%);
  background-size: 180px 180px, auto, auto, auto;
}

body.theme-ru .page-deco--uk {
  display: none;
}

body.theme-ru .read-progress {
  background: linear-gradient(90deg, var(--btc-orange), var(--purple), var(--gold-bright));
}

/* ——— UK theme: flag + slogan ——— */
body.theme-uk {
  --bg: #f3f7fc;
  --surface-soft: #fafcff;
  --border: #c8d9ef;
  --purple: #0057b7;
  --purple-deep: #003d82;
  --purple-soft: rgba(0, 87, 183, 0.1);
  --gold: #ffd700;
  --gold-bright: #ffe566;
  --text: #0f1a2e;
  --text-soft: #243652;
  --muted: #5a6d88;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(0, 87, 183, 0.035) 0%, rgba(0, 87, 183, 0.035) 50%, rgba(255, 215, 0, 0.045) 50%, rgba(255, 215, 0, 0.045) 100%),
    radial-gradient(ellipse 85% 55% at 0% 0%, rgba(0, 87, 183, 0.09), transparent 58%),
    radial-gradient(ellipse 75% 50% at 100% 100%, rgba(255, 215, 0, 0.11), transparent 52%);
  background-size: 100% 56px, auto, auto;
}

body.theme-uk .read-progress {
  background: linear-gradient(90deg, #0057b7, #ffd700);
  box-shadow: 0 0 14px rgba(0, 87, 183, 0.35);
}

body.theme-uk .float-icon {
  display: none;
}

body.theme-uk .hero-coin,
body.theme-uk .hero-chart,
body.theme-uk .hero-visual {
  display: none !important;
}

body.theme-uk .hero::after {
  background: linear-gradient(90deg, #0057b7, #ffd700);
}

body.theme-uk .site-nav__tab--active {
  background: linear-gradient(135deg, #0057b7 0%, #003d82 100%);
  box-shadow: 0 2px 10px rgba(0, 87, 183, 0.35);
}

body.theme-uk .lang-switch__btn--active {
  background: linear-gradient(135deg, #0057b7 0%, #003d82 100%);
  box-shadow: 0 2px 8px rgba(0, 87, 183, 0.35);
}

body.theme-uk .visit-counter b {
  color: #0057b7;
}

body.theme-uk .badge {
  background: linear-gradient(135deg, #e8f2ff, #fff8d6);
  border-color: rgba(0, 87, 183, 0.25);
  color: #003d82;
}

.page-deco--uk {
  display: none;
}

body.theme-uk .page-deco--uk {
  display: block;
}

.uk-flag-float {
  position: absolute;
  width: clamp(56px, 10vw, 88px);
  height: clamp(38px, 6.8vw, 58px);
  border-radius: 6px;
  background: linear-gradient(180deg, #0057b7 50%, #ffd700 50%);
  box-shadow:
    0 10px 28px rgba(0, 87, 183, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  opacity: 0.14;
  animation: float-drift 22s var(--ease) infinite;
}

.uk-flag-float--1 { top: 8%; left: 4%; animation-delay: 0s; }
.uk-flag-float--2 { top: 28%; right: 6%; animation-delay: -4s; transform: rotate(8deg); }
.uk-flag-float--3 { bottom: 18%; left: 8%; animation-delay: -9s; transform: rotate(-6deg); }
.uk-flag-float--4 { bottom: 36%; right: 10%; width: clamp(44px, 8vw, 64px); height: clamp(30px, 5.5vw, 42px); animation-delay: -14s; }

.uk-slogan {
  position: absolute;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.8vw, 2.35rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.uk-slogan--slava {
  color: rgba(0, 87, 183, 0.1);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.uk-slogan--heroi {
  color: rgba(255, 193, 0, 0.16);
  text-shadow: 0 1px 0 rgba(0, 87, 183, 0.06);
}

.uk-slogan--a { top: 14%; right: 8%; transform: rotate(-14deg); }
.uk-slogan--b { top: 46%; left: 3%; transform: rotate(10deg); font-size: clamp(1rem, 3.2vw, 2rem); }
.uk-slogan--c { bottom: 24%; right: 4%; transform: rotate(-8deg); }
.uk-slogan--d { bottom: 8%; left: 12%; transform: rotate(12deg); font-size: clamp(1rem, 3.2vw, 2rem); }

.uk-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 87, 183, 0.2);
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.08) 0%, rgba(255, 215, 0, 0.12) 100%);
  box-shadow: var(--shadow-sm);
}

.uk-banner__flag {
  flex-shrink: 0;
  width: 36px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0057b7 50%, #ffd700 50%);
  box-shadow: 0 2px 8px rgba(0, 87, 183, 0.25);
}

.uk-banner__text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #003d82;
  line-height: 1.35;
}

.uk-banner__text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5a6d88;
  text-transform: none;
  letter-spacing: 0.02em;
}

.uk-army-tribute {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.2rem 1.15rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 87, 183, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 87, 183, 0.07) 0%, rgba(255, 215, 0, 0.09) 100%),
    var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.uk-army-tribute::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0057b7 50%, #ffd700 50%);
}

.uk-army-tribute__emblem {
  grid-row: span 2;
  align-self: start;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #0057b7 50%, #ffd700 50%);
  box-shadow:
    0 6px 18px rgba(0, 87, 183, 0.22),
    inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.uk-army-tribute__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 700;
  color: #003d82;
  line-height: 1.2;
}

.uk-army-tribute__lead {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.uk-army-tribute__list {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.uk-army-tribute__list li {
  margin: 0.35rem 0;
}

.uk-army-tribute__list strong {
  color: #003d82;
}

.uk-army-tribute__foot {
  grid-column: 1 / -1;
  margin: 0.65rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 87, 183, 0.15);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0057b7;
}

.uk-army-tribute__foot span {
  color: #9a7b00;
}

.uk-army-tribute--compact {
  display: block;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 87, 183, 0.22);
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.06) 0%, rgba(255, 215, 0, 0.1) 100%);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}

.uk-army-tribute--compact strong {
  color: #003d82;
}

.uk-army-tribute--compact .uk-army-tribute__foot-inline {
  display: block;
  margin-top: 0.45rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0057b7;
}

.card--voice {
  border-left: 4px solid var(--purple-deep);
  background: linear-gradient(145deg, #fff 0%, #f8f4ff 100%);
}

.card--voice .voice-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.card--voice .voice-letter p {
  margin: 0 0 0.85rem;
}

.card--uk-narrative {
  border: 1px solid rgba(0, 87, 183, 0.35);
  background: linear-gradient(160deg, rgba(0, 87, 183, 0.05) 0%, rgba(255, 215, 0, 0.08) 55%, #fff 100%);
  box-shadow: var(--shadow-md);
}

.card--uk-narrative h2 {
  color: #003d82;
  font-family: var(--font-display);
}

.card--uk-narrative .uk-narrative-lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.card--uk-victory {
  border: 1px solid rgba(255, 193, 0, 0.45);
  background: linear-gradient(160deg, #fffef8 0%, rgba(0, 87, 183, 0.06) 100%);
}

.card--uk-victory h2 {
  color: #003d82;
}

.uk-victory-foot {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 87, 183, 0.12), rgba(255, 215, 0, 0.15));
  font-weight: 700;
  text-align: center;
  color: #003d82;
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  body.theme-ru .page-deco {
    display: none;
  }

  body.theme-uk {
    background-size: 100% 40px, auto, auto;
  }

  body.theme-uk .page-deco--uk {
    display: block;
    opacity: 0.85;
  }

  body.theme-uk .uk-flag-float {
    opacity: 0.1;
  }

  body.theme-uk .uk-slogan {
    font-size: 0.95rem;
    opacity: 0.75;
  }

  .uk-banner {
    flex-direction: column;
    text-align: center;
    padding: 0.65rem 0.75rem;
  }

  .uk-army-tribute {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1rem 0.85rem;
  }

  .uk-army-tribute__emblem {
    grid-row: auto;
    margin: 0 auto;
  }

  .uk-army-tribute__list {
    text-align: left;
  }
}
