@font-face { font-family: 'Inter'; src: url('fonts/Inter-Regular.otf'); font-weight: 400; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Medium.otf'); font-weight: 500; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-SemiBold.otf'); font-weight: 600; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Bold.otf'); font-weight: 700; }
@font-face { font-family: 'Geometria Display'; src: url('fonts/Geometria-ExtraBold.ttf'); font-weight: 800; }
@font-face { font-family: 'Geometria Display'; src: url('fonts/Geometria-Heavy.ttf'); font-weight: 900; }

:root {
  --bg: #0a0b0d;
  --text: #f5f6f7;
  --text-dim: #a3a7ad;
  --accent: #6e8bff;
  --accent-warm: #ff9f5a;
  --card-bg: rgba(16, 17, 20, 0.72);
  --card-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

.deck {
  height: 100vh; height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.section {
  position: relative;
  height: 100vh; height: 100dvh;
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.section .bg {
  position: absolute; inset: -6% -3%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translateY(0);
}

.section .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,11,13,0.35) 0%,
    rgba(10,11,13,0.55) 45%,
    rgba(10,11,13,0.94) 82%,
    rgba(10,11,13,0.98) 100%);
}

.section.overlay-top .overlay {
  background: linear-gradient(180deg,
    rgba(10,11,13,0.92) 0%,
    rgba(10,11,13,0.55) 35%,
    rgba(10,11,13,0.4) 65%,
    rgba(10,11,13,0.9) 100%);
}

.content {
  position: relative; z-index: 2;
  padding: 8vh 7vw 9vh;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.9rem;
}

h1, h2, h3 {
  font-family: 'Geometria Display', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.9rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.15rem; }

p { color: var(--text-dim); line-height: 1.55; margin: 0 0 0.9rem; font-size: 1.02rem; }

.accent { color: var(--accent); }
.accent-warm { color: var(--accent-warm); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.15rem 1.3rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stack { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

/* Классический баг flexbox: дети flex-контейнера по умолчанию не сжимаются уже своего
   контента (min-width:auto) — длинный текст расталкивает соседние карточки за экран.
   min-width:0 на любом flex-элементе, где внутри текст, обязателен. */
.stat-row .card, .supp-card, .supp-card .txt, .cycle-item, .cycle-item p,
.sched-row .when, .sched-row .what { min-width: 0; }

.label {
  font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.25rem;
}
.value { font-family: 'Geometria Display', sans-serif; font-size: 1.5rem; font-weight: 800; }

.icon { width: 22px; height: 22px; stroke: var(--accent); flex-shrink: 0; }
.icon.warm { stroke: var(--accent-warm); }

/* появление по скроллу */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* подсказка "свайпай вверх" на первом экране */
.swipe-hint {
  position: absolute; bottom: 3.2vh; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-dim); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  z-index: 3; opacity: 0.85;
  animation: hintFade 3.5s ease-in-out infinite;
}
.swipe-hint svg { width: 18px; height: 18px; stroke: var(--text-dim); animation: hintBounce 1.8s ease-in-out infinite; }
@keyframes hintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes hintFade { 0%,100% { opacity: 0.85; } 50% { opacity: 0.35; } }

/* точки-пагинация справа */
.dots {
  position: fixed; right: 4.5vw; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 9px; z-index: 5;
}
.dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.25); transition: background 0.3s, transform 0.3s; }
.dots .dot.active { background: var(--accent); transform: scale(1.5); }

@media (min-width: 720px) {
  .content { padding: 8vh 14vw 9vh; max-width: 640px; }
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.3rem; }
}
