/* ================= Pripyat — the city that froze ================= */
* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0d0a;
  --bg2: #10130e;
  --panel: #14180f;
  --line: rgba(160, 200, 90, 0.16);
  --text: #d9dccf;
  --muted: #8d937f;
  --acid: #b6ff3c;
  --acid-dim: #7ea82c;
  --amber: #ffb347;
  --danger: #ff5f45;
  --mono: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: var(--acid);
  color: #0b0d0a;
}

/* film grain */
.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 3%); }
}

/* Geiger counter */
.dose {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(10, 14, 6, 0.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--acid);
  backdrop-filter: blur(6px);
}
.dose__label { color: var(--muted); font-size: 11px; }
.dose__value { min-width: 44px; font-weight: 600; }
.dose__bars {
  display: flex;
  gap: 2px;
  height: 14px;
  align-items: flex-end;
}
.dose__bars i {
  width: 3px;
  background: var(--acid);
  opacity: 0.75;
  border-radius: 1px;
  transition: height 0.12s;
}

/* ================= Topbar ================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(rgba(11, 13, 10, 0.92), rgba(11, 13, 10, 0.55));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.topbar--scrolled {
  border-color: var(--line);
  background: rgba(11, 13, 10, 0.96);
}
.topbar__logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
}
.topbar__logo span {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 400;
  color: var(--acid);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}
.topbar__nav {
  display: flex;
  gap: 26px;
}
.topbar__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.topbar__nav a:hover,
.topbar__nav a.active {
  color: var(--acid);
}
@media (max-width: 820px) {
  .topbar__nav { display: none; }
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--acid);
  color: #0b0d0a;
  box-shadow: 0 0 0 rgba(182, 255, 60, 0);
}
.btn--primary:hover {
  box-shadow: 0 0 26px rgba(182, 255, 60, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.btn__icon { font-size: 16px; }

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(16px, 5vw, 64px) 140px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(126, 168, 44, 0.12), transparent 55%),
    linear-gradient(180deg, #0e120b 0%, var(--bg) 70%);
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(182, 255, 60, 0.1), transparent 65%);
  filter: blur(30px);
  animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}
.hero__letters {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(90px, 22vw, 340px);
  letter-spacing: 0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(182, 255, 60, 0.09);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.hero__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(140px, 24vh, 300px);
  color: #070906;
  opacity: 0.9;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 18px;
}
.hero__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero__title span {
  color: var(--acid);
  text-shadow: 0 0 40px rgba(182, 255, 60, 0.45);
}
.hero__lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 0 0 34px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__meta {
  position: absolute;
  left: clamp(16px, 5vw, 64px);
  right: clamp(16px, 5vw, 64px);
  bottom: 54px;
  z-index: 2;
  display: flex;
  gap: clamp(20px, 5vw, 64px);
  flex-wrap: wrap;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
}
.hero__meta-item b {
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 34px);
  color: var(--acid);
  line-height: 1.1;
}
.hero__meta-item span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll {
  position: absolute;
  right: clamp(16px, 5vw, 64px);
  bottom: 54px;
  z-index: 3;
  color: var(--acid);
  font-size: 22px;
  text-decoration: none;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ================= Sections ================= */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
}
.section--dark {
  max-width: none;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.section__head {
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--acid-dim);
}
.section__head h2 {
  font-family: var(--mono);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 8px 0 14px;
  line-height: 1.08;
}
.section__head p {
  max-width: 640px;
  color: var(--muted);
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ================= Cards ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: linear-gradient(160deg, var(--panel), #101309);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(182, 255, 60, 0.07), transparent);
  transition: left 0.5s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(182, 255, 60, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.card:hover::after { left: 120%; }
.card__icon { font-size: 30px; margin-bottom: 12px; }
.card h3 {
  font-family: var(--mono);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.card b { color: var(--text); }

/* ================= Timeline ================= */
.timeline {
  position: relative;
  padding-left: 34px;
  border-left: 2px solid var(--line);
}
.timeline__item {
  position: relative;
  padding: 0 0 40px 26px;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.6s, transform 0.6s;
}
.timeline__item.visible {
  opacity: 1;
  transform: none;
}
.timeline__item::before {
  content: '☢';
  position: absolute;
  left: -47px;
  top: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--acid);
  transition: box-shadow 0.4s, border-color 0.4s;
}
.timeline__item.hot::before {
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 16px rgba(255, 95, 69, 0.6);
}
.timeline__time {
  font-family: var(--mono);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--acid);
  line-height: 1;
}
.timeline__item.hot .timeline__time { color: var(--danger); }
.timeline__body h3 {
  font-family: var(--mono);
  font-size: 18px;
  text-transform: uppercase;
  margin: 8px 0 6px;
  letter-spacing: 0.05em;
}
.timeline__body p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
  font-size: 15px;
}

/* ================= Evacuation ================= */
.evac__annoy {
  position: relative;
  background: linear-gradient(135deg, #171a10, #12150c);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 26px;
  cursor: pointer;
  overflow: hidden;
}
.loudspeaker {
  display: flex;
  align-items: center;
  gap: 20px;
}
.loudspeaker__horn {
  color: var(--amber);
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(255, 179, 71, 0.35));
  transition: transform 0.3s;
}
.evac__annoy.playing .loudspeaker__horn {
  animation: shake 0.28s ease-in-out infinite;
}
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}
.loudspeaker__quote {
  font-family: var(--mono);
  font-size: clamp(17px, 2.4vw, 26px);
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--text);
}
.loudspeaker__hint {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acid);
}
.waves {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
}
.waves i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--amber);
  height: 12px;
}
.evac__annoy.playing .waves i { animation: wave 0.5s ease-in-out infinite; }
.evac__annoy.playing .waves i:nth-child(2) { animation-delay: 0.15s; }
.evac__annoy.playing .waves i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wave {
  0%, 100% { height: 10px; opacity: 0.5; }
  50% { height: 34px; opacity: 1; }
}
@media (max-width: 640px) { .waves { display: none; } }

.evac__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.evac__stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.25s, transform 0.25s;
}
.evac__stat:hover {
  border-color: var(--acid-dim);
  transform: translateY(-4px);
}
.evac__stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--acid);
  line-height: 1.1;
}
.evac__stat.big {
  grid-column: span 2;
  background: linear-gradient(135deg, #1c2410, #141808);
}
.evac__stat.big b { font-size: clamp(46px, 7vw, 76px); }
.evac__stat span {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.evac__story {
  background: rgba(20, 24, 15, 0.6);
  border-left: 3px solid var(--acid);
  padding: 8px 0 8px 22px;
  max-width: 780px;
}
.evac__story p { margin: 0 0 14px; color: var(--muted); }
.evac__story b { color: var(--acid); }
.evac__mark {
  display: inline-block;
  margin-top: 6px;
  color: var(--danger);
  font-weight: 600;
}

/* ================= Landmarks ================= */
.landmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.lm {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 40px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.22s;
}
.lm:hover { border-color: var(--acid-dim); color: var(--text); }
.lm--active {
  background: var(--acid);
  color: #0b0d0a;
  border-color: var(--acid);
  box-shadow: 0 0 22px rgba(182, 255, 60, 0.3);
}
.landmark {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
}
@media (max-width: 780px) {
  .landmark { grid-template-columns: 1fr; }
}
.landmark__art {
  position: relative;
  min-height: 260px;
  background: linear-gradient(160deg, #1a2110, #0d1008);
  overflow: hidden;
}
.landmark__art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.landmark__info {
  padding: 30px 30px 30px 4px;
}
@media (max-width: 780px) {
  .landmark__info { padding: 0 24px 28px; }
}
.landmark__info h3 {
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 32px);
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--acid);
}
.landmark__info p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15.5px;
}
.landmark__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.landmark__tags span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px dashed rgba(182, 255, 60, 0.35);
  border-radius: 4px;
  color: var(--acid);
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.fact {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 24, 15, 0.5);
}
.fact b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--amber);
}
.fact span { font-size: 13.5px; color: var(--muted); }

/* ================= Quiz ================= */
.quiz {
  background: linear-gradient(160deg, var(--panel), #0f120a);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 40px);
  max-width: 760px;
}
.quiz__progress {
  height: 5px;
  background: rgba(182, 255, 60, 0.12);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 26px;
}
.quiz__progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--acid);
  transition: width 0.45s ease;
}
.quiz__q {
  font-family: var(--mono);
  font-size: clamp(19px, 2.6vw, 26px);
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 22px;
}
.quiz__answers {
  display: grid;
  gap: 12px;
}
.quiz__answers button {
  text-align: left;
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 15px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.quiz__answers button:hover:not(:disabled) {
  border-color: var(--acid);
  background: rgba(182, 255, 60, 0.07);
  transform: translateX(5px);
}
.quiz__answers button.correct {
  border-color: var(--acid);
  background: rgba(182, 255, 60, 0.16);
}
.quiz__answers button.wrong {
  border-color: var(--danger);
  background: rgba(255, 95, 69, 0.13);
}
.quiz__answers button:disabled { cursor: default; opacity: 0.85; }
.quiz__result {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--acid);
  min-height: 28px;
}
.quiz__result .btn { margin-top: 14px; }

/* ================= Footer ================= */
.footer {
  background: #070906;
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) clamp(16px, 5vw, 64px) 30px;
}
.footer__head {
  max-width: 1240px;
  margin: 0 auto 36px;
}
.footer__logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.14em;
}
.footer__logo span {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--acid);
}
.footer__head p {
  color: var(--muted);
  max-width: 520px;
  font-size: 14px;
}
.footer__cols {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer__cols h4 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 14px;
}
.footer__cols a,
.footer__cols span {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer__cols a:hover { color: var(--acid); }
.footer__bottom {
  max-width: 1240px;
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.footer__dot {
  color: var(--acid);
  animation: pulse 3s infinite;
}
