@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Russo+One&display=swap");

:root {
  --blood: #9b0d0d;
  --gold: #e6c35c;
  --cream: #f6e7c1;
  --ink: #140404;
  --stone: #1a0c0c;
}

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

html, body { min-height: 100%; }

body {
  font-family: "Manrope", sans-serif;
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  text-transform: none;
}

a { color: var(--gold); text-decoration: none; }
button, input { font: inherit; color: inherit; }

.ash {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.torches {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(ellipse 28% 70% at 0% 50%, rgba(255, 90, 20, 0.18), transparent 70%),
    radial-gradient(ellipse 28% 70% at 100% 50%, rgba(255, 90, 20, 0.18), transparent 70%);
  animation: flicker 2.4s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.7; }
  40% { opacity: 1; }
  70% { opacity: 0.55; }
}

.banner-strip {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    #9b0d0d 0 28px,
    #f2d36b 28px 32px,
    #9b0d0d 32px 60px,
    #1f3d16 60px 64px
  );
}

.top {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(230, 195, 92, 0.25);
  background: rgba(10, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.back {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.clock {
  font-family: "Russo One", sans-serif;
  color: #ffd98a;
  font-size: 13px;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background-color: #070000;
  background-image: radial-gradient(circle at 50% 40%, #6c1010, #070000 72%);
  text-align: center;
  padding: 24px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.gate.away {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-star {
  font-size: clamp(96px, 22vw, 200px);
  line-height: 1;
  background: linear-gradient(180deg, #ffe08a, #ff3a3a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 50, 50, 0.7));
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.gate h1 {
  font-family: "Russo One", sans-serif;
  font-size: clamp(28px, 6vw, 52px);
  margin: 8px 0 10px;
  letter-spacing: 0.04em;
}

.gate p { color: #f0c9c9; max-width: 520px; margin: 0 auto 24px; line-height: 1.6; }

.enter-btn {
  background: linear-gradient(180deg, #d42222, #7a0b0b);
  border: 2px solid var(--gold);
  color: var(--cream);
  padding: 14px 36px;
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 40, 40, 0.45);
}

.enter-btn:hover { filter: brightness(1.12); }

.page { position: relative; z-index: 5; }

.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(180, 0, 0, 0.45), transparent 55%);
}

.emblem {
  font-size: clamp(110px, 24vw, 210px);
  line-height: 0.9;
  background: linear-gradient(180deg, #ffe08a, #ff2f2f 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgba(255, 30, 30, 0.55));
  animation: pulse 3.4s ease-in-out infinite;
}

.hero h1 {
  font-family: "Russo One", sans-serif;
  font-size: clamp(32px, 7vw, 64px);
  margin-top: 8px;
}

.hero .subtitle {
  color: #f3c27a;
  font-size: clamp(16px, 3vw, 22px);
  margin-top: 8px;
}

.hero .lede {
  max-width: 640px;
  margin: 18px auto 0;
  line-height: 1.75;
  color: #ead8b8;
}

.section {
  padding: 48px clamp(16px, 4vw, 56px) 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.section h2 {
  font-family: "Russo One", sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--gold);
  margin-bottom: 8px;
}

.kicker {
  color: #d9a3a3;
  margin-bottom: 24px;
  line-height: 1.6;
}

.manifesto {
  background: linear-gradient(180deg, rgba(90, 10, 10, 0.8), rgba(20, 0, 0, 0.9));
  border: 1px solid rgba(230, 195, 92, 0.35);
  padding: 28px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.manifesto p + p { margin-top: 14px; }
.manifesto .big {
  font-family: "Russo One", sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  color: #ffe08a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.leader {
  appearance: none;
  background: #2a0d0d;
  border: 2px solid #c9a227;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 0 #5a1a00, 0 16px 30px rgba(0, 0, 0, 0.45);
}

.leader:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 0 #5a1a00, 0 24px 40px rgba(180, 0, 0, 0.35);
}

.leader img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  filter: sepia(0.25) contrast(1.05);
  display: block;
}

.leader .plate {
  display: block;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, #7a1010, #3d0707);
}

.leader strong {
  display: block;
  font-family: "Russo One", sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.leader span {
  display: block;
  font-size: 12px;
  color: #f0d59a;
  margin-top: 4px;
}

.chamber {
  margin-top: 12px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 0.9fr;
  background: #4a0a0a;
  border: 2px solid var(--gold);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.chamber::before {
  content: "СССР";
  position: absolute;
  right: -10px;
  bottom: -18px;
  font-family: "Russo One", sans-serif;
  font-size: 120px;
  color: rgba(255, 215, 0, 0.07);
  pointer-events: none;
}

.flag {
  height: 180px;
  background: linear-gradient(180deg, #cc0000 0 70%, #cc0000 70%);
  border: 1px solid #ffd36b;
  display: grid;
  place-items: center;
  font-size: 84px;
  color: #ffd36b;
  text-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.lyrics { white-space: pre-line; line-height: 1.7; color: #f6e7c1; }

.party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.party form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.party label { font-size: 13px; color: #f0c9c9; }
.party input {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(230, 195, 92, 0.4);
  padding: 10px 12px;
  outline: none;
}

.stamp-btn {
  background: #9b0d0d;
  border: 2px solid var(--gold);
  padding: 12px;
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.card {
  min-height: 220px;
  border: 3px double var(--gold);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #7c1010, #2b0505);
  padding: 20px;
  position: relative;
}

.card .star {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 42px;
  color: var(--gold);
  opacity: 0.85;
}

.card h3 { font-family: "Russo One", sans-serif; color: var(--gold); margin-bottom: 10px; }
.card p { line-height: 1.55; font-size: 14px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal.hidden { display: none; }

.modal-card {
  max-width: 520px;
  width: 100%;
  background: #2a0b0b;
  border: 2px solid var(--gold);
  padding: 24px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}

.modal-card img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.modal-card h3 { font-family: "Russo One", sans-serif; font-size: 22px; }
.quote {
  margin-top: 12px;
  font-size: 18px;
  color: #ffe08a;
  line-height: 1.4;
}

.close {
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 12px;
  cursor: pointer;
}

.foot {
  text-align: center;
  padding: 40px 16px 56px;
  color: #d9a3a3;
  position: relative;
  z-index: 5;
}

@media (max-width: 800px) {
  .chamber, .party, .modal-card { grid-template-columns: 1fr; }
  .leader img { height: 210px; }
}
