:root {
  --bg: #14161a;
  --bg-alt: #1e2127;
  --copper: #b87333;
  --copper-light: #e0a060;
  --patina: #4fa39a;
  --text: #f2ede6;
  --muted: #9a9ea6;
  --up: #4fbf7a;
  --down: #e05a4f;
  --ink: #14161a;
  --radius: 16px;
  --space: clamp(1rem, 4vw, 1.5rem);
  --max: 1120px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sticky-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper-light);
}

a:hover {
  color: var(--patina);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(1.65rem, 6.2vw, 2.75rem);
}

h2 {
  font-size: clamp(1.35rem, 4.5vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding-left: 1.1em;
}

li + li {
  margin-top: 0.4em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--copper);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
  text-align: center;
}

.section .container > :is(h2, .section__note) {
  margin-inline: auto;
}

.section .card,
.section .timeline,
.section .faq,
.section .cal-scroll,
.section .night-timeline,
.section .author,
.section .card--featured,
.section .card--price {
  text-align: left;
}

.section--alt {
  background: var(--bg-alt);
}

.section--accent {
  background:
    radial-gradient(ellipse at top, rgba(184, 115, 51, 0.18), transparent 55%),
    #12141a;
  border-block: 1px solid rgba(184, 115, 51, 0.35);
}

.section--final {
  text-align: center;
}

.section__note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42rem;
  margin-top: 1.25rem;
}

.section__note--light {
  color: #c8c4bc;
}

.eyebrow {
  color: var(--patina);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--copper), var(--copper-light));
  box-shadow: 0 8px 24px rgba(184, 115, 51, 0.28);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn--primary:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--block {
  width: 100%;
}

.btn--small {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  background: var(--copper);
  color: var(--ink);
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 0.5rem 0 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 0.35rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.hero__visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero__emblem {
  position: relative;
  width: min(94vw, 400px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: fade-up 0.7s ease both;
}

.hero__emblem picture {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Мягкий золотой блок-ореол, как на референсе */
.hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 58%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  background: linear-gradient(155deg, #e8b878 0%, #c8893f 45%, #9a5f28 100%);
  filter: blur(28px);
  opacity: 0.78;
  z-index: 0;
  animation: glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.hero__glow::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 220, 160, 0.55), transparent 70%);
  filter: blur(8px);
}

.hero__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.hero__ring-text {
  fill: #e8c087;
  font-family: var(--display), sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  paint-order: stroke fill;
  stroke: rgba(20, 22, 26, 0.8);
  stroke-width: 4px;
}

.hero__ring-text--bottom {
  fill: #8de0d4;
}

.hero__bust {
  position: relative;
  z-index: 1;
  width: 76%;
  max-width: 76%;
  height: auto;
  max-height: 80%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  filter:
    brightness(1.08)
    contrast(1.05)
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

.hero__content {
  width: 100%;
  max-width: 36rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__content h1 {
  margin-bottom: 0.65em;
}

.hero__lead {
  color: #d5d0c8;
  font-size: 1.02rem;
  max-width: 36rem;
  margin-inline: auto;
}

.hero__note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
  text-align: center;
}

/* Timer */
.timer {
  margin: 1.1rem auto 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(30, 33, 39, 0.9);
  border: 1px solid rgba(184, 115, 51, 0.35);
  border-radius: 14px;
  max-width: 22rem;
  width: 100%;
}

.timer--inline {
  max-width: none;
  margin: 0 0 1.25rem;
}

.timer__label {
  margin: 0 0 0.55rem;
  color: var(--copper-light);
  font-size: 0.8rem;
  font-weight: 600;
}

.timer__digits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.timer__cell {
  text-align: center;
  background: var(--bg);
  border-radius: 10px;
  padding: 0.45rem 0.2rem;
}

.timer__cell span {
  display: block;
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.timer__cell small {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

/* Ticker — верх страницы */
.ticker {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(79, 163, 154, 0.28);
  background: rgba(24, 27, 33, 0.96);
  backdrop-filter: blur(8px);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--patina);
  padding: 0.55rem 0;
}

.ticker__track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}

.ticker__track span {
  padding-right: 2rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
}

.section--alt .card {
  background: #181b21;
}

.card__value {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--copper-light);
  margin-bottom: 0.45rem;
}

.card__value.patina {
  color: var(--patina);
}

.card__value.copper {
  color: var(--up);
}

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

.card--featured {
  border: 1px solid var(--copper);
  box-shadow: 0 0 0 1px rgba(184, 115, 51, 0.2), 0 16px 40px rgba(0, 0, 0, 0.25);
  background:
    linear-gradient(160deg, rgba(184, 115, 51, 0.12), transparent 45%),
    var(--bg-alt);
}

.card--mini {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
}

.card__body {
  min-width: 0;
  flex: 1;
}

.card--mini h4 {
  color: var(--copper-light);
  margin: 0 0 0.25em;
}

.card--mini p {
  margin: 0;
}

.card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  border-radius: 12px;
  color: var(--copper-light);
  background: linear-gradient(145deg, rgba(184, 115, 51, 0.18), rgba(79, 163, 154, 0.08));
  border: 1px solid rgba(184, 115, 51, 0.35);
}

.card__icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.card--price {
  border: 1px solid var(--copper);
  max-width: 520px;
  margin-inline: auto;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 0.6rem;
}

.badge--patina {
  color: var(--bg);
  background: var(--patina);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin: 0.5rem 0 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.price-now {
  font-family: var(--mono);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.price-was {
  margin: 0;
  color: var(--muted);
  text-decoration: line-through;
  font-family: var(--mono);
}

/* Program timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-left: 2px solid rgba(184, 115, 51, 0.45);
}

.timeline__item {
  position: relative;
  padding: 0 0 1.75rem 1.35rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__num {
  position: absolute;
  left: -0.85rem;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper), var(--copper-light));
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.timeline__sub {
  color: var(--copper-light);
  margin-top: -0.4rem;
  font-weight: 600;
}

/* Election night */
.night-timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.night-timeline li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  background: rgba(30, 33, 39, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(184, 115, 51, 0.25);
}

.night-timeline__time {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--copper-light);
  font-size: 1.05rem;
}

/* Calendar */
.cal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 280px;
  font-size: 0.95rem;
}

.cal-table th,
.cal-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-table th {
  background: #181b21;
  color: var(--copper-light);
  font-weight: 700;
}

.cal-table td:first-child {
  font-family: var(--mono);
  white-space: nowrap;
  color: var(--patina);
}

.cal-table tr:last-child td {
  border-bottom: 0;
}

/* Author */
.author {
  display: grid;
  gap: 1.25rem;
}

.author__photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--copper), #6a4420);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  border: 2px solid var(--copper-light);
}

.author__stats {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.author__stats li {
  background: #181b21;
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.author__stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--copper-light);
}

.author__stats span {
  font-size: 0.72rem;
  color: var(--muted);
}

.author blockquote {
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--patina);
  color: #e7e2da;
  font-style: italic;
  background: rgba(79, 163, 154, 0.08);
  border-radius: 0 12px 12px 0;
}

/* FAQ */
.faq details {
  background: #181b21;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.2rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--copper-light);
  font-family: var(--mono);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  color: var(--muted);
  padding-bottom: 0.9rem;
  margin: 0;
}

/* Final */
.final__bust {
  width: 120px;
  margin: 0 auto 1rem;
  opacity: 0.92;
  filter: drop-shadow(0 10px 24px rgba(184, 115, 51, 0.3));
}

/* Footer */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__disclaimer {
  margin-bottom: 1rem;
  max-width: 52rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
}

.footer__meta {
  margin: 0;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.65rem var(--space) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(20, 22, 26, 0.96) 28%);
}

.sticky-cta[hidden] {
  display: none !important;
}

.cookie {
  position: fixed;
  left: var(--space);
  right: var(--space);
  bottom: calc(var(--sticky-h) + 1rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.cookie[hidden] {
  display: none !important;
}

.cookie p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.waitlist {
  display: grid;
  gap: 0.75rem;
}

.waitlist[hidden] {
  display: none !important;
}

.waitlist__title {
  margin: 0;
  font-weight: 600;
}

.waitlist input[type="text"] {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg);
  color: var(--text);
  padding: 0.75rem 1rem;
  font: inherit;
}

.consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
}

.reveal {
  animation: fade-up 0.6s ease both;
}

/* Выезжание текста при скролле */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translate(0, 0);
}

[data-reveal].is-in:nth-child(2) {
  transition-delay: 0.08s;
}

[data-reveal].is-in:nth-child(3) {
  transition-delay: 0.14s;
}

[data-reveal].is-in:nth-child(4) {
  transition-delay: 0.2s;
}

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

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.96);
    filter: blur(26px) brightness(0.95);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.05);
    filter: blur(32px) brightness(1.12);
  }
}

@media (min-width: 640px) {
  .cards--facts,
  .cards--4,
  .cards--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .author {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .section {
    text-align: left;
  }

  .section .container > :is(h2, .section__note) {
    margin-inline: 0;
  }

  .section--final {
    text-align: center;
  }

  .hero {
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    padding-top: 2rem;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    justify-items: stretch;
    text-align: left;
    gap: 2rem;
  }

  .hero__visual {
    order: 2;
    justify-content: flex-end;
  }

  .hero__emblem {
    width: min(100%, 480px);
  }

  .hero__bust {
    width: 84%;
    max-height: 88%;
  }

  .hero__content {
    order: 1;
    align-items: flex-start;
    padding-bottom: 2rem;
    text-align: left;
  }

  .hero__lead {
    margin-inline: 0;
  }

  .timer {
    margin-left: 0;
  }

  .hero__note {
    text-align: left;
  }

  .cards--facts,
  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .sticky-cta {
    display: none !important;
  }

  .cookie {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    max-width: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker__track,
  .hero__bust,
  .hero__glow,
  .reveal,
  .btn--primary::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}
