

:root {
  --width: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --step: 22px;
  --font: 400 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --smooth: .22s ease;
}


html[data-theme="night"] {
  --bg:        #0c1723;
  --bg-2:      #122334;
  --bg-3:      #172e44;
  --text:      #e9f2f9;
  --text-2:    #9db6cc;
  --text-3:    #6d8ba5;
  --accent:     #86cbeb;
  --accent-bg: rgba(134, 203, 235, .12);
  --gold:     #e8c37a;
  --middle:   #e8c37a;
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .06);
  --shadow:        0 1px 2px rgba(0,0,0,.35), 0 8px 28px rgba(0,0,0,.28);

  --sky-1: #0b1a2c;
  --sky-2: #17385a;
  --sky-3: #2f6690;
  --sky-4: #6ea3c6;
  
  --mountain-far2: #2b4a6b;
  --mountain-far:  #35577a;
  --mountain-mid: #223d58;
  --mountain-near:#122436;
  --mountain-firs: #0b1a28;
  --snow:      #eaf4fb;
  --stars-shown: 1;
}


html[data-theme="day"] {
  --bg:        #f4f8fb;
  --bg-2:      #ffffff;
  --bg-3:      #dfe8f1;
  --text:      #0f2233;
  --text-2:    #4a6478;
  --text-3:    #526d84;
  --accent:     #1c6c9e;
  --accent-bg: rgba(28, 108, 158, .09);
  --gold:     #8a6318;
  --middle:   #e0b155;
  --line:      rgba(15, 34, 51, .12);
  --line-2:    rgba(15, 34, 51, .07);
  --shadow:        0 1px 2px rgba(20,45,70,.06), 0 10px 30px rgba(20,45,70,.08);

  --sky-1: #67a6d4;
  --sky-2: #94c4e4;
  --sky-3: #c3ddef;
  --sky-4: #eaf4fb;
  --mountain-far2: #adc8dd;
  --mountain-far:  #93b4cd;
  --mountain-mid: #6d94b4;
  --mountain-near:#4a7397;
  --mountain-firs: #3d6383;
  --snow:      #ffffff;
  --stars-shown: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  scroll-padding-top: 78px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--smooth);
}

.hidden { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 24px;
}



h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5.6vw, 56px);
  font-weight: 650;
  letter-spacing: -.022em;
  line-height: 1.08;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 620;
  letter-spacing: -.018em;
  line-height: 1.15;
}
h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.subtitle {
  margin: 0 0 15px;
  max-width: 62ch;
  color: var(--text-2);
  font-size: 17px;
}
.subtitle-h3 {
  margin: 20px 0 12px;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -.01em;
}
.note { margin: 18px 0 0; color: var(--text-2); font-size: 15px; }

a { color: var(--accent); }



.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--smooth), background-color var(--smooth);
}
.header--scrolled { border-bottom-color: var(--line); }

.header .wrap, .footer .wrap { max-width: var(--width-canvas); }
.header__row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}

.logo__emblem {
  height: 46px;
  width: auto;
  flex: none;
  display: block;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-size: 15px; font-weight: 640; letter-spacing: -.01em; }
.logo__text i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.menu {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
}
.menu a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--smooth), background-color var(--smooth);
}
.menu a:hover { color: var(--text); background: var(--bg-3); }
.menu a.current { color: var(--accent); background: var(--accent-bg); }

.header__buttons { display: flex; gap: 6px; align-items: center; flex: none; }

.icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--smooth), background-color var(--smooth), border-color var(--smooth);
}
.icon:hover { color: var(--text); background: var(--bg-3); border-color: var(--line); }
.icon svg { width: 18px; height: 18px; }
.icon--burger { display: none; }



.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 120px;
  overflow: hidden;
  color: #f2f8fc;
}
html[data-theme="day"] .hero { color: #0f2233; }

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 74%, var(--sky-4) 100%);
  transition: background var(--smooth);
}
.ridge {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(300px, 52vh, 520px);
  
  z-index: 2;
}

.ridge__far2  { fill: var(--mountain-far2); }
.ridge__far   { fill: var(--mountain-far); }
.ridge__mid  { fill: var(--mountain-mid); }
.ridge__near { fill: var(--mountain-near); }
.snow          { fill: var(--snow); }

.snow--distant  { fill-opacity: .6; }
.firs          { fill: var(--mountain-firs); }



.stars {
  position: absolute;
  inset: 0 0 40% 0;
  opacity: var(--stars-shown);
  transition: opacity .8s ease;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, .55);
}
@media (prefers-reduced-motion: no-preference) {
  .star { animation: flicker var(--twinkle, 4s) ease-in-out infinite; }
  @keyframes flicker {
    0%, 100% { opacity: var(--dim, .45); }
    50%      { opacity: 1; }
  }
}



.luminary {
  position: absolute;
  
  will-change: transform, opacity;
}


body.live .luminary {
  transition: transform 1.8s cubic-bezier(.42, 0, .22, 1),
              opacity   1.1s ease;
}

.month {
  left: clamp(20px, 9vw, 150px);
  top: clamp(56px, 13vh, 130px);
  width: clamp(66px, 8vw, 112px);
}
.month svg {
  width: 100%;
  height: auto;
  display: block;
  fill: #f6f9fc;
}

.sun {
  right: clamp(20px, 10vw, 170px);
  top: clamp(60px, 15vh, 150px);
  width: clamp(58px, 7vw, 96px);
}
.sun__disk {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff6d8 0%, #ffe9a8 46%, #ffd979 72%, #ffcf5e 100%);
}



.month::before,
.sun::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.month::before {
  background: radial-gradient(circle,
    rgba(226, 240, 255, .40) 0%,
    rgba(206, 230, 255, .17) 30%,
    rgba(180, 214, 255, .06) 48%,
    rgba(180, 214, 255, 0)   66%);
}
.sun::before {
  background: radial-gradient(circle,
    rgba(255, 214, 122, .48) 0%,
    rgba(255, 210, 116, .25) 26%,
    rgba(255, 206, 110, .10) 45%,
    rgba(255, 206, 110, 0)   65%);
}

html[data-theme="night"] .month { transform: translateY(0);      opacity: 1; }
html[data-theme="night"] .sun { transform: translateY(52vh);   opacity: 0; }


html[data-theme="day"]  .month { transform: translateY(52vh);   opacity: 0; }
html[data-theme="day"]  .sun { transform: translateY(0);      opacity: 1; }



.clouds {
  position: absolute;
  inset: 0 0 42% 0;
  overflow: hidden;
  pointer-events: none;
}
.cloud {
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  fill: #fff;
}
html[data-theme="day"] .cloud { opacity: var(--density, .85); }

html[data-theme="night"] .cloud { animation-play-state: paused; }

@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: drift var(--long, 90s) linear infinite; }
  @keyframes drift {
    from { transform: translateX(calc(-100% - 30vw)); }
    to   { transform: translateX(130vw); }
  }
}

.hero__body { position: relative; z-index: 2; }
.hero__emblem {
  display: block;
  width: clamp(120px, 16vw, 168px);
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 4px 22px rgba(6, 18, 32, .45));
}
html[data-theme="day"] .hero__emblem { filter: drop-shadow(0 3px 14px rgba(20, 45, 70, .18)); }

.hero h1 { text-shadow: 0 2px 22px rgba(8, 24, 40, .4); }
html[data-theme="day"] .hero h1 { text-shadow: none; }

.motto {
  margin: 0 0 6px;
  font-size: clamp(16px, 2.2vw, 20px);
  font-style: italic;
  opacity: .92;
}
.hero__line {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 16px;
  opacity: .8;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 30px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  background: rgba(255,255,255,.10);
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color var(--smooth), border-color var(--smooth), transform var(--smooth);
}
.button:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.button svg { width: 17px; height: 17px; opacity: .85; }
.button--main {
  background: rgba(255,255,255,.92);
  color: #0d2135;
  border-color: transparent;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  letter-spacing: .01em;
}
.button--main:hover { background: #fff; }
html[data-theme="day"] .button {
  border-color: rgba(15,34,51,.18);
  background: rgba(255,255,255,.6);
}
html[data-theme="day"] .button:hover { background: #fff; }
html[data-theme="day"] .button--main { background: #0f2233; color: #fff; }
html[data-theme="day"] .button--main:hover { background: #1c3a53; }


.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(9, 24, 40, .3);
  font-size: 14px;
  backdrop-filter: blur(6px);
}
html[data-theme="day"] .status {
  background: rgba(255,255,255,.65);
  border-color: rgba(15,34,51,.14);
}
.status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
.status[data-state="online"]  .status__dot { background: #35d07f; box-shadow: 0 0 0 4px rgba(53,208,127,.18); }
.status[data-state="offline"] .status__dot { background: #ff5f56; box-shadow: 0 0 0 4px rgba(255,95,86,.18); }
@media (prefers-reduced-motion: no-preference) {
  .status[data-state="waiting"] .status__dot { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
}
.status__text b { font-weight: 640; }





.stats-bar {
  background: linear-gradient(180deg,
    var(--bg-2) 0,
    var(--bg-2) 55%,
    var(--bg)   100%);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat {
  
  padding: 26px 20px;
  text-align: center;
  border-left: 1px solid var(--line-2);
}
.stat:first-child { border-left: 0; }
.stat__value {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat__caption {
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}



main { flex: 1 0 auto; }


.section { padding: clamp(12px, 1.5vw, 19px) 0; }


.section--bg {
  background: linear-gradient(180deg,
    var(--bg)   0,
    var(--bg-2) 110px,
    var(--bg-2) calc(100% - 110px),
    var(--bg)   100%);
}

.text-col { max-width: 64ch; margin-bottom: 16px; }
.text-col p { margin: 0 0 16px; font-size: 17.5px; color: var(--text-2); }
.text-col p:first-child { font-size: 19px; color: var(--text); }

.grid { display: grid; gap: 16px; }

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.map-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--smooth), transform var(--smooth), box-shadow var(--smooth);
}
.section--bg .map-block { background: var(--bg); }
.section:not(.section--bg) .map-block { background: var(--bg-2); }
.map-block p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.principle { position: relative; padding-left: 22px; }
.principle::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
}



.government { display: grid; gap: 10px; }
.government__line {
  display: grid;
  grid-template-columns: 220px 78px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.government__line { background: var(--bg-2); }
.government__position { font-weight: 620; font-size: 16px; }
.government__slots {
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 9px;
  border-radius: 999px;
  justify-self: start;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.government__duties { color: var(--text-2); font-size: 15.5px; }

.government__line--no-slots { grid-template-columns: 220px 1fr; }



.callout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--smooth), transform var(--smooth);
}
.section--bg .callout { background: var(--bg); }
.callout:hover { border-color: var(--accent); transform: translateY(-1px); }
.callout__mark {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-bg);
  color: var(--accent);
}
.callout__mark svg { width: 21px; height: 21px; }
.callout__body { display: flex; flex-direction: column; gap: 3px; }
.callout__body b { font-size: 16px; font-weight: 620; }
.callout__body span { font-size: 14.5px; color: var(--text-2); }
.callout__arrow {
  margin-left: auto;
  flex: none;
  color: var(--text-3);
  transform: rotate(-90deg);
}
.callout__arrow svg { width: 20px; height: 20px; display: block; }



.doc { padding-top: 44px; }
.doc .wrap { max-width: 780px; }

.doc__heading {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 640;
  letter-spacing: -.02em;
  line-height: 1.16;
}
.doc__date {
  margin: 0 0 30px;
  font-size: 13.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-3);
}


.e404 { max-width: 620px; }
.e404__text { margin: 0 0 12px; }
.e404__joke {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-3);
}
.e404__back { margin: 0; }
.doc__preamble {
  margin: 0 0 12px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-2);
  font-size: 17.5px;
  line-height: 1.6;
}
.doc__footnote { margin: -8px 0 0; font-size: 14.5px; color: var(--text-3); }
.doc__government { margin-top: 4px; }
.doc__below { margin-top: 40px; }

.chapter {
  margin: 44px 0 16px;
  font-size: 21px;
  font-weight: 640;
  letter-spacing: -.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.articles { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.articles > li {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.articles > li b { color: var(--text); font-weight: 620; margin-right: 4px; }
.articles ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.articles ul li { font-size: 16px; }



.titles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  
  grid-auto-rows: 1fr;
}
.title {
  
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.title { background: var(--bg-2); }
.title__name {
  margin-bottom: 3px;
  font-weight: 620;
  font-size: 15px;
  color: var(--gold);
}
.title__for { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }



.bar-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
  margin-bottom: 8px;
}
.bar-progress__filled {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(.2,.7,.3,1);
}
.bar-progress__caption {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 14px;
}

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stage {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.stage { background: var(--bg-2); }
.stage__mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line);
  color: transparent;
}
.stage__mark svg { width: 12px; height: 12px; }
.stage--done .stage__mark { border-color: #35d07f; color: #35d07f; }

.cta__war {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--middle);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--middle) 12%, transparent);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  max-width: 46ch;
}

.stage--in_progress .stage__mark {
  border-color: var(--gold);
  background: linear-gradient(180deg, transparent 50%, var(--gold) 50%);
  overflow: hidden;
  position: relative;
}

.stage--in_progress .stage__mark--volna { background: none; }

.stage__mark .stage__wave {
  position: absolute;
  left: 0; top: 0;
  width: 200%; height: 100%;
  fill: var(--gold);
}
.stage__what { font-weight: 550; }
.stage--done .stage__what { color: var(--text-2); }
.stage__note { display: block; font-weight: 400; font-size: 14px; color: var(--text-3); margin-top: 2px; }
.stage__term {
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}



.feed { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.feed::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line));
  border-radius: 2px;
}
.feed li { position: relative; padding: 0 0 26px; }
.feed li:last-child { padding-bottom: 0; }
.feed li::before {
  content: "";
  position: absolute;
  left: -26px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.section--bg .feed li::before { background: var(--bg-2); }
.feed__date {
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.feed__heading { font-weight: 620; font-size: 17px; margin: 2px 0 3px; }
.feed__text { color: var(--text-2); font-size: 15.5px; margin: 0; }



.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { padding: 13px 18px; text-align: left; }
.table th {
  font-size: 12.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  background: var(--bg-3);
  white-space: nowrap;
}
.table tbody tr + tr td { border-top: 1px solid var(--line-2); }
.table td.coords { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 14px; }



.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge--alliance        { background: rgba(53,208,127,.16);  color: #35d07f; }
.badge--peace          { background: var(--accent-bg);     color: var(--accent); }
.badge--neutrality  { background: rgba(150,170,190,.16); color: var(--text-2); }
.badge--tension { background: rgba(232,195,122,.18); color: var(--gold); }
.badge--war        { background: rgba(255,95,86,.16);   color: #ff7a72; }



.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.photo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__none {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--text-3);
  font-size: 13px;
}
.photo__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 11px;
  font-size: 13.5px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6,18,30,.8));
}





.person {
  flex: none;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.person img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
.person--none { color: var(--text-3); opacity: .55; }
.person--none svg { width: 58%; height: 58%; }

.person--head { width: 62px; height: 62px; padding: 7px; }


.sovet {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sovetnik {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.section--bg .sovetnik { background: var(--bg); }
.sovetnik__body { min-width: 0; }
.sovetnik__position {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.sovetnik__nick {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -.01em;
}
.sovetnik__quote {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-style: italic;
  color: var(--text-2);
  opacity: .85;
}
.sovetnik__quote::before { content: '«'; }
.sovetnik__quote::after { content: '»'; }


.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.member {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.member__caption { min-width: 0; flex: 1; }
.member__name { margin: 0; font-size: 16px; font-weight: 640; }


.merits {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.merits--titles + .merits { margin-top: 6px; }
.merits li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 550;
}

@media (max-width: 520px) {
  .sovetnik { flex-direction: column; align-items: flex-start; }
}



.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 14px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 160% at 100% 0%, var(--accent-bg) 0%, transparent 62%),
    var(--bg);
}
.cta__body { flex: 1 1 340px; }
.cta__heading { margin: 0 0 10px; }
.cta__text {
  margin: 0;
  max-width: 46ch;
  font-size: 17.5px;
  color: var(--text-2);
}
.cta__buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex: 0 0 auto;
}


.button-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: #5865F2;              
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(88, 101, 242, .32);
  transition: transform var(--smooth), box-shadow var(--smooth), background-color var(--smooth);
}
.button-cta:hover {
  background: #4752e0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, .42);
}
.button-cta svg { width: 22px; height: 22px; }


.cta__others {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 14.5px;
}
.cta__others a { color: var(--text-2); text-decoration: none; }
.cta__others a:hover { color: var(--accent); }

.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.list-checks, .list-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.list-checks li, .list-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  color: var(--text-2);
  font-size: 15.5px;
  align-items: start;
}

.list-checks svg,
.list-steps li::before {
  transform: translateY(var(--icon-shift));
}
:root { --icon-shift: 0.4px; }
.list-checks svg {
  width: 24px;
  height: 24px;
  padding: 6px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
}
.list-steps { counter-reset: step; }
.list-steps li::before {
  counter-increment: step;
  content: counter(step);
  
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-bg);
}

.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  transition: border-color var(--smooth), background-color var(--smooth), transform var(--smooth);
}
.contact:hover { border-color: var(--accent); transform: translateY(-1px); }
.contacts__none { color: var(--text-3); font-size: 15px; }



.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer__left { display: flex; align-items: center; gap: 12px; }
.footer__emblem {
  height: 52px;
  width: auto;
  display: block;
}
.footer__left b { display: block; font-size: 15px; font-weight: 620; }
.footer__fine { font-size: 13px; color: var(--text-3); }
.footer__right { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__right a { font-size: 14.5px; color: var(--text-2); text-decoration: none; }
.footer__right a:hover { color: var(--accent); }



.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  z-index: 90;
  padding: 11px 20px;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 550;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--smooth), transform var(--smooth);
}
.toast--shown { opacity: 1; transform: translate(-50%, 0); }



@media (prefers-reduced-motion: no-preference) {
  .appear { opacity: 0; transform: translateY(14px); }
  .appear--shown {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
  }
}



@media (max-width: 860px) {
  .government__line { grid-template-columns: 1fr; gap: 6px; }
  .government__slots { justify-self: start; }
}


@media (max-width: 1300px) {
  .icon--burger { display: grid; }

  .menu {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    overscroll-behavior: contain;

    
    transform: translateY(-22px);
    opacity: 0;
    visibility: hidden;
    transition: transform .24s ease, opacity .2s ease, visibility 0s .24s;
  }
  .menu--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform .26s cubic-bezier(.2, .7, .3, 1), opacity .2s ease, visibility 0s;
  }

  @media (prefers-reduced-motion: reduce) {
    .menu, .menu--open { transition: none; }
  }
  .menu a { padding: 12px 14px; font-size: 16px; }

}

@media (max-width: 720px) {
  .hero { min-height: auto; padding: 64px 0 96px; }
  .stage { grid-template-columns: 22px 1fr; }
  .stage__term { grid-column: 2; }
}


.menu--always {
  display: flex;
  position: static;
  inset: auto;
  flex-direction: row;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}



:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.button-cta:focus-visible { outline-color: #fff; outline-offset: 4px; }



.news {
  display: grid;
  gap: 14px;
  max-width: 720px;      
}

.post {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.post__header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}
.post__date {
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.post__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.post__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  overflow-wrap: anywhere;   
}

.post__images { margin-top: 14px; }



:root { --width-canvas: 1400px; }

.canvas {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--width-canvas);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}


.canvas .wrap { max-width: none; padding: 0; }
.canvas > main { min-width: 0; }


@media (min-width: 1300px) {
  .canvas {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .feed-side {
    position: sticky;
    
    top: 74px;
    max-height: calc(100vh - 96px);
  }

  .feed-side__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }

  
  .canvas .section { padding-block: clamp(9px, 0.95vw, 14px); }


}


.canvas .section--bg { background: none; }



.feed-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  margin: 26px 0;
}

.feed-side__header { flex: none; }
.feed-side__header h2 {
  margin: 2px 0 0;
  font-size: 21px;
  letter-spacing: -.015em;
}


.feed-side__body {
  display: grid;
  gap: 12px;
  min-height: 0;
}
.feed-side__body::-webkit-scrollbar { width: 8px; }
.feed-side__body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 8px;
}

.feed-side__all {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--smooth), border-color var(--smooth);
}
.feed-side__all:hover { border-color: var(--accent); }
.feed-side__all svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  
  transform: rotate(-90deg);
}


.post--narrow { padding: 14px 16px; }
.post--narrow .post__text { font-size: 14.5px; line-height: 1.55; }
.post--narrow .post__date { font-size: 11.5px; }

@media (hover: none) {
  .post--narrow { position: relative; }
  .post--narrow .post__heading a::after,
  .post--narrow .post__more::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  .post--narrow:active { background: var(--bg-3); }
}


.post__more2 {
  position: absolute;
  right: 7px; bottom: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.post__more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.post__more:hover { border-bottom-color: currentColor; }



.archive__heading { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 8px; }
.archive {
  display: grid;
  gap: 34px;
  margin-top: 30px;
}

.archive .post {
  padding: 0 0 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
}
.archive .post:last-child { border-bottom: 0; padding-bottom: 0; }


.archive .post { scroll-margin-top: 84px; }

.empty {
  margin: 30px 0;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-3);
  text-align: center;
}

.addendum {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--text-3);
}



.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}
.pager__nums { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.pager__step,
.pager__num {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--smooth), background var(--smooth);
}
.pager__step:hover,
.pager__num:hover { border-color: var(--accent); color: var(--accent); }


.pager__step--none { opacity: .38; cursor: default; }
.pager__step--none:hover { border-color: var(--line); color: var(--text); }

.pager__num--current {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}
.pager__ellipsis { color: var(--text-3); padding: 0 2px; }





.faq-bar {
  width: 100%;
  max-width: var(--width-canvas);
  margin: 0 auto;
  padding: 0 24px clamp(36px, 4.5vw, 56px);
}
.faq { display: grid; gap: 8px; }

@media (min-width: 1300px) {
  .faq-bar {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 44px;
  }
  .faq { grid-column: 2; }
}
.faq__heading { margin: 0 0 8px; font-size: 22px; letter-spacing: -.015em; }

.question {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  overflow: hidden;
}
.question summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
}
.question summary::-webkit-details-marker { display: none; }

.question summary::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform var(--smooth);
}
.question[open] summary::before { transform: rotate(45deg); }


.question__body {
  display: block;
  content-visibility: visible;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  
  transition: max-height .34s ease, opacity .26s ease .08s;
}
.question[open] .question__body { max-height: 600px; opacity: 1; }


.question[open].question--closing .question__body {
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .18s ease;
}

@media (prefers-reduced-motion: reduce) {
  .question__body { transition: none; }
}

.question p {
  margin: 0;
  padding: 0 18px 16px 43px;
  color: var(--text-2);
  font-size: 15.5px;
}



.sovet { gap: 16px; }
.sovetnik { padding: 18px; gap: 16px; }
.person--body { width: 116px; height: 208px; padding: 12px 0; }
.sovet .person--body { width: 96px; height: 172px; padding: 8px 0; }

.sovetnik { align-items: flex-start; }
.sovetnik::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--rain, #86cbeb);
  -webkit-mask-image: var(--pattern);
  mask-image: var(--pattern);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: right center;
  mask-position: right center;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  opacity: .26;
  pointer-events: none;
}
html[data-theme="day"] .sovetnik::before {
  background-color: var(--rain-day, #2a6f92);
  opacity: .32;
}
.sovetnik > * { position: relative; }
@media (max-width: 620px) { .sovetnik::before { display: none; } }
.sovetnik__nick { font-size: 19px; }
.sovetnik__quote { margin-top: 3px; }




.people { grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 14px; }
.member {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
}
.member__caption { min-width: 0; flex: 1; }
.person--head { width: 66px; height: 66px; padding: 7px; }
.member__name { font-size: 17.5px; }
.member__count {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}



.merits .badge--title {
  background: color-mix(in srgb, var(--gold) 15%, transparent);
  color: var(--gold);
}

@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .merits .badge--title { background: rgba(232, 195, 122, .15); }
}

@media (max-width: 520px) {
  .sovet { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .feed-side { padding: 18px 16px; }
}



.post__heading {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.post__heading a { color: inherit; text-decoration: none; }
.post__heading a:hover { color: var(--accent); }

.post--narrow .post__heading { font-size: 16.5px; margin-bottom: 7px; }


.post__text--full > :first-child { margin-top: 0; }
.post__text--full > :last-child { margin-bottom: 0; }
.post__text--full p { margin: 0 0 14px; }

.post__text--full h4 {
  margin: 22px 0 10px;
  font-size: 17px;
  font-weight: 640;
  color: var(--text);
}

.post__text--full blockquote {
  margin: 14px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
  font-style: italic;
}

.post__text--full ul,
.post__text--full ol { margin: 12px 0; padding-left: 22px; }
.post__text--full li { margin: 4px 0; }

.post__text--full a { color: var(--accent); }

.post__text--full code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-3);
  font-size: .92em;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}


.spoiler {
  background: var(--text-3);
  color: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--smooth), background var(--smooth);
}
.spoiler:hover,
.spoiler:focus,
.spoiler:active {
  background: var(--accent-bg);
  color: var(--text-2);
}



.photo-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  background: var(--bg-3);
  cursor: zoom-in;
  transition: border-color var(--smooth);
}
.photo-link:hover { border-color: var(--accent); }
.photo-link img,
.photo-link picture { display: block; width: 100%; height: auto; }


.post__images--single .photo-link img {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
  object-position: center;
}


.post__images--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.post__images--grid .photo-link img {
  height: 220px;
  object-fit: cover;
}


.post__photo { position: relative; margin-top: 11px; }
.post__photo .photo-link img { height: 128px; object-fit: cover; }



.viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(6, 12, 20, .93);
  
  animation: viewer-appear .18s ease;
}
.viewer--shown { display: flex; }

@keyframes viewer-appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .viewer { animation: none; }
}

.viewer__body {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.viewer__photo {
  display: block;
  max-width: 100%;
  
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: #0c1723;
}

.viewer__caption {
  color: #cfe0ee;
  font-size: 14px;
  text-align: center;
  max-width: 70ch;
}
.viewer__caption[hidden] { display: none; }

.viewer__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background var(--smooth), border-color var(--smooth);
}
.viewer__close:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .4);
}

.viewer__close svg { width: 24px; height: 24px; }


.no-scroll, .no-scroll body { overflow: hidden; }

@media (max-width: 620px) {
  .viewer { padding: 56px 12px 24px; }
  .viewer__close { top: 10px; right: 10px; }
  .post__images--grid .photo-link img { height: 170px; }
}

.countries { display: grid; gap: 10px; }

.country {
  --color: var(--text-3);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--color);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}

.country--alliance        { --color: #35d07f; }
.country--peace          { --color: var(--accent); }
.country--neutrality  { --color: var(--text-3); }
.country--tension { --color: var(--gold); }
.country--war        { --color: #ff7a72; }
.country--destroyed  { --color: var(--text-3); }
.country--destroyed .country__name { text-decoration: line-through; opacity: .75; }

.country__body { min-width: 0; }
.country__name { margin: 0; font-size: 16.5px; font-weight: 640; }
.country__about { margin: 5px 0 0; font-size: 14.5px; color: var(--text-2); }
.country__since { margin: 5px 0 0; font-size: 13px; color: var(--text-3); }

.country__badge {
  justify-self: end;
  width: 100%;
  padding: 8px 0;
  border: 1px solid var(--color);
  border-radius: 8px;
  color: var(--color);
  background: color-mix(in srgb, var(--color) 12%, transparent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
}
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .country__badge { background: none; }
}

@media (max-width: 620px) {
  .country { grid-template-columns: 1fr; gap: 12px; }
  .country__badge { justify-self: start; width: 150px; }
}

.where-application { margin: 16px 0 0; padding-left: 35px; font-size: 14.5px; color: var(--text-3); }
.where-application a { color: var(--accent); }

.page-narrow .wrap { max-width: 880px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--smooth), color var(--smooth);
}
.back:hover { border-color: var(--accent); color: var(--accent); }
.back svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(90deg);
}

@media (max-width: 620px) {
  .canvas { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 9px 0; }
  .faq-bar { padding: 0 16px 26px; }
  .feed-side { margin: 18px 0; padding: 16px 14px; }
  .text-col { margin-bottom: 12px; }
  .text-col p { font-size: 16.5px; }
  .text-col p:first-child { font-size: 17.5px; }
  .stats { gap: 10px 0; }
  .stat { padding: 12px 6px; }
  .stat__value { font-size: 30px; }
  .map-block { padding: 16px; }
  .grid { gap: 10px; }
  .sovetnik { padding: 16px; gap: 14px; }
  .member { padding: 16px; }
  .country { padding: 14px; }
  .hero { padding: 40px 0 64px; }
  h2 { font-size: clamp(24px, 7vw, 30px); }
}

@media (prefers-reduced-motion: reduce) {
  .star, .cloud, .luminary { animation: none !important; }
}

@media (max-width: 620px) {
  
  .header { backdrop-filter: none; background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .button, .status { backdrop-filter: none; }
  .button { background: rgba(255, 255, 255, .17); }
  html[data-theme="day"] .button { background: rgba(255, 255, 255, .74); }
  .status { background: rgba(9, 24, 40, .46); }
  html[data-theme="day"] .status { background: rgba(255, 255, 255, .78); }
  
  .sky { transition: none; }
  .star { animation: none; box-shadow: none; }
  .cloud { will-change: transform; }
  .person { background: var(--bg-3); }
  
  .ridge { contain: paint; }
}
.emoji {
  height: 1.3em;
  width: auto;
  vertical-align: -0.25em;
  margin: 0 .04em;
  display: inline-block;
}

.feed__inner { overflow: hidden; }
.feed li.feed__more { transition: padding-bottom .3s ease; }
.feed li.feed__more .feed__inner { transition: height .3s ease, opacity .22s ease; }
.feed li.svernut { padding-bottom: 0; }
.feed li.svernut::before { opacity: 0; }
.feed li.svernut .feed__inner { height: 0; opacity: 0; }
.feed li[hidden] { display: none; }
.feed__switch button {
  font: inherit;
  font-size: 14.5px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.feed__switch button:hover,
.feed__switch button:focus-visible { border-color: var(--accent); background: rgba(255,255,255,.04); }
.feed__switch::before { opacity: .45; }

@media (max-width: 620px) {
  .person--body { width: 84px; height: 152px; padding: 8px 0; }
  .sovetnik { gap: 12px; padding: 13px; }
  .sovetnik__quote { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .feed li.feed__more,
  .feed li.feed__more .feed__inner { transition: none; }
}

.holiday-canvas {
  position: fixed;
  inset: 0;
  z-index: 200;
  
  pointer-events: none;
}
.holiday__sign {
  position: fixed;
  left: 50%;
  top: 84px;
  z-index: 201;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font-weight: 620;
  white-space: nowrap;
  pointer-events: none;
  animation: holiday-sign 5.4s ease both;
}
@keyframes holiday-sign {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  10%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  85%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-canvas { display: none; }
  .holiday__sign { animation: none; opacity: 1; }
}






.hat-ruler {
  position: fixed;
  left: 14px;
  top: 90px;
  z-index: 205;
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(10, 22, 36, .92);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hat-ruler div {
  position: relative;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-align: center;
  min-width: 1.2em;
}
.holiday-hat {
  position: absolute;
  transform: translateX(-50%) rotate(17deg);
  transform-origin: bottom center;
  pointer-events: none;
}

.hat-line {
  position: absolute;
  left: -6px;
  right: -6px;
  height: 1px;
  background: #ff4d4d;
  pointer-events: none;
}

.hat-tuner {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 206;
  width: 250px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 22, 36, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e6ecf2;
  font: 13px/1.4 -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.hat-tuner__head { font-weight: 650; margin-bottom: 10px; }
.hat-tuner label {
  display: grid;
  grid-template-columns: 60px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.hat-tuner input[type="range"] { width: 100%; accent-color: #86cbeb; }
.hat-tuner b { text-align: right; font-variant-numeric: tabular-nums; color: #86cbeb; }
.hat-tuner__out {
  margin: 10px 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  user-select: all;
}
.hat-tuner__copy {
  width: 100%;
  padding: 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: #86cbeb;
  font: inherit;
  cursor: pointer;
}
.hat-tuner__copy:hover { border-color: #86cbeb; }


.feed-side__note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-3);
}

.lang__flag { width: 21px; height: 14px; display: block; border-radius: 2px; }
.lang__btn { padding: 0; }
.lang__row { grid-template-columns: 24px 1fr 34px; }
.lang__flag--row { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.lang__self  { grid-column: 2; }
.lang__state { grid-column: 2; }
.lang__box   { grid-column: 3; }

.lang-switch {
  width: 100%;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  display: flex;
  gap: 14px;
  font-size: 13.5px;
}
.lang-switch a { color: var(--text-3); text-decoration: none; }
.lang-switch a:hover { color: var(--accent); }
.lang-switch__now { color: var(--text-2); font-weight: 600; }

.contact--quiet { opacity: .68; font-size: 14px; }
.contact--quiet:hover { opacity: 1; }
