:root {
  --red:    #C0272D;
  --darkred:#8B1A1A;
  --gold:   #D4A843;
  --cream:  #F5EDD8;
  --dark:   #1A0A0A;
  --text:   #2B1A0F;
  --blue:   #0039A6;
}

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

body {
  background-color: var(--dark);
  color: var(--cream);
  font-family: 'Lora', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(192,39,45,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(212,168,67,0.08) 0%, transparent 50%),
    #1A0A0A;
}
.stars::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(212,168,67,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(212,168,67,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 10%, rgba(212,168,67,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(212,168,67,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 25%, rgba(212,168,67,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(212,168,67,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 85%, rgba(212,168,67,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  90%, rgba(212,168,67,0.4) 0%, transparent 100%);
}

.wrapper {
  position: relative; z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.tricolor {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right,
    #FFFFFF 0% 33.3%,
    #0039A6 33.3% 66.6%,
    #C0272D 66.6% 100%);
  border-radius: 3px;
  margin-bottom: 40px;
  animation: glowbar 3s ease-in-out infinite alternate;
}
@keyframes glowbar {
  from { box-shadow: 0 0 12px rgba(192,39,45,0.4); }
  to   { box-shadow: 0 0 28px rgba(192,39,45,0.8), 0 0 8px rgba(212,168,67,0.4); }
}

.emblem {
  text-align: center;
  margin-bottom: 8px;
  animation: fadeDown 0.8s ease both;
}
.emblem-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(212,168,67,0.6), 0 2px 8px rgba(0,0,0,0.8);
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeUp 1s ease 0.2s both;
}
header .subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(192,39,45,0.5);
}
header h1 span { color: var(--red); }
header .divider {
  width: 80px; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 20px auto 0;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.soldier-card {
  background: rgba(0, 57, 166, 0.10);
  border: 1px solid rgba(0, 57, 166, 0.35);
  border-radius: 4px;
  padding: 28px 36px;
  margin-bottom: 32px;
  animation: fadeUp 1s ease 0.3s both;
  position: relative;
}
.soldier-card::before {
  content: '★';
  position: absolute;
  top: 14px; left: 18px;
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.6;
}
.soldier-card-title {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.soldier-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.info-item { display: flex; flex-direction: column; gap: 3px; }
.info-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212,168,67,0.6);
}
.info-value {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
}
.info-item.full { grid-column: 1 / -1; }

.card {
  background: rgba(245,237,216,0.04);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 4px;
  padding: 44px 48px;
  position: relative;
  animation: fadeUp 1s ease 0.4s both;
}
.card::before, .card::after {
  content: '✦';
  position: absolute;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.5;
}
.card::before { top: 14px; left: 18px; }
.card::after  { bottom: 14px; right: 18px; }

.petition-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.petition-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(212,168,67,0.4), transparent);
}

.petition-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(245,237,216,0.9);
}
.petition-text p { margin-bottom: 20px; }
.petition-text p:last-child { margin-bottom: 0; }
.petition-text strong { color: var(--gold); font-weight: 600; }
.petition-text em { color: rgba(245,237,216,0.7); font-style: italic; }

.highlight-block {
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  margin: 28px 0;
  background: rgba(192,39,45,0.08);
  border-radius: 0 4px 4px 0;
}
.highlight-block p { margin: 0; color: var(--cream); font-size: 1rem; }

.counter-bar {
  margin: 40px 0 0;
  animation: fadeUp 1s ease 0.6s both;
}
.counter-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.counter-label { font-size: 0.8rem; letter-spacing: 0.15em; color: rgba(245,237,216,0.5); text-transform: uppercase; }
.counter-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--gold);
}
.counter-num span { font-size: 0.85rem; color: rgba(245,237,216,0.4); }
.progress-track {
  width: 100%; height: 6px;
  background: rgba(245,237,216,0.08);
  border-radius: 3px; overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--darkred), var(--red), var(--gold));
  border-radius: 3px;
  width: 0;
  transition: width 1.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-wrap {
  text-align: center;
  margin-top: 44px;
  animation: fadeUp 1s ease 0.8s both;
}
.sign-btn {
  display: inline-block;
  position: relative;
  padding: 20px 56px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
  background: linear-gradient(135deg, var(--darkred) 0%, var(--red) 60%, #E03A3A 100%);
  border-radius: 2px;
  box-shadow:
    0 4px 24px rgba(192,39,45,0.5),
    0 0 0 1px rgba(212,168,67,0.3) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.sign-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: 2px;
}
.sign-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 10px 36px rgba(192,39,45,0.65),
    0 0 0 1px rgba(212,168,67,0.5) inset;
}
.sign-btn:active { transform: translateY(0) scale(0.99); }
.sign-btn .btn-icon { margin-right: 10px; font-size: 1.1rem; }

.cta-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(245,237,216,0.35);
  letter-spacing: 0.05em;
}

.tricolor-bottom {
  margin-top: 56px;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right,
    #FFFFFF 0% 33.3%,
    #0039A6 33.3% 66.6%,
    #C0272D 66.6% 100%);
  border-radius: 2px;
  opacity: 0.5;
}

footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.75rem;
  color: rgba(245,237,216,0.2);
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .card { padding: 28px 22px; }
  .soldier-card { padding: 22px 20px; }
  .soldier-info { grid-template-columns: 1fr; }
  .sign-btn { padding: 18px 36px; font-size: 1rem; }
}
