/* ----------------------------- */
/* Шрифты */
/* ----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* ----------------------------- */
/* База */
/* ----------------------------- */
:root {
  --agent-glow: rgba(103, 126, 255, 0.18);
  --agent-core: rgba(145, 164, 255, 0.14);
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: white;
  overflow-x: hidden;
  background: #020617;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------------- */
/* Фон AXIS */
/* ----------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 50%, var(--agent-glow), transparent 40%),
    radial-gradient(circle at 20% 30%, #040828, transparent 45%),
    radial-gradient(circle at 60% 20%, #0b0d8199, transparent 45%),
    radial-gradient(circle at 80% 75%, #100648, transparent 50%),
    radial-gradient(circle at 40% 80%, #576072, transparent 50%);
  filter: blur(120px);
  transform: translate(var(--x, 0px), var(--y, 0px));
  transition:
    transform 0.25s ease-out,
    background 0.45s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.035) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  opacity: 0.12;
}

.axis-core {
  position: fixed;
  left: 50%;
  top: 48%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--agent-core) 0%, rgba(145, 164, 255, 0.05) 30%, transparent 68%);
  filter: blur(40px);
  opacity: 0.7;
  transition: background 0.45s ease, opacity 0.35s ease;
}

/* ----------------------------- */
/* Header */
/* ----------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(2, 6, 23, 0.72);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 0;
}

.nav a {
  color: #aaa;
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: white;
}

/* ----------------------------- */
/* Hero */
/* ----------------------------- */
#hero.hero {
  min-height: 100svh;
  padding: 90px 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero .hero-content {
  text-align: center;
  margin-top: -40px;
}

.hero h1 {
  font-family: "Didot", "Playfair Display", serif;
  font-size: clamp(64px, 8vw, 106px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  overflow: visible;
  display: inline-block;
  text-shadow:
    0 0 20px rgba(255,255,255,0.1),
    0 0 40px rgba(255,255,255,0.05);
  background: linear-gradient(180deg, #ffffff, #bbbbbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  font-size: 16px;
  color: rgba(255,255,255,0.68);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
}

.quote {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.42);
  font-style: italic;
}

.hero-actions {
  max-width: 380px;
  margin: 30px auto 0;
  display: grid;
  gap: 12px;
}

.hero-action-link {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.hero-action-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.16),
    0 0 40px rgba(255, 255, 255, 0.08);
}

/* ----------------------------- */
/* Кнопка */
/* ----------------------------- */
button {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255,255,255,0.15);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.2),
    0 0 40px rgba(255, 255, 255, 0.1);
}

button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.16),
    transparent
  );
  opacity: 0;
  transition: 0.3s;
  transform: translate(var(--x, 0px), var(--y, 0px));
}

button:hover::before {
  opacity: 1;
}

/* ----------------------------- */
/* Секция героев */
/* ----------------------------- */
#heroes-section.heroes-section,
.agents-section {
  padding: clamp(56px, 8vh, 90px) 0 clamp(72px, 10vh, 100px);
  min-height: calc(100svh + 24px);
  display: flex;
  align-items: center;
  text-align: center;
}

#heroes-section {
  margin-top: clamp(-40px, -4vh, -16px);
}

.agents-section > .container {
  width: 100%;
}

.agents-kicker,
.heroes-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}

.agents-title,
.heroes-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, min(4.8vw, 7vh), 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #f4f1eb;
  max-width: 760px;
  margin: 0 auto 14px;
}

.agents-subtitle,
.heroes-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(24px, 4vh, 44px);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.68);
}

/* ----------------------------- */
/* Сетка героев */
/* ----------------------------- */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: clamp(220px, 26vw, 280px);
  gap: clamp(14px, 1.8vw, 22px);
  max-width: min(980px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.agent-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: clamp(220px, 26vw, 280px);
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.agent-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.agent-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.agent-card:hover .agent-art {
  transform: scale(1.03);
  filter: blur(2px) brightness(0.82);
}

.agent-card.vanta .agent-art {
  object-position: 58% 38%;
}

.agent-card.vanta .agent-content {
  padding-bottom: clamp(2px, 1vw, 12px);
  transform: translateY(18px);
}

.agent-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.42) 34%,
    rgba(0,0,0,0.14) 60%,
    rgba(0,0,0,0.04) 100%
  );
  transition: background 0.35s ease;
}

.agent-card:hover .agent-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.50) 34%,
    rgba(0,0,0,0.18) 60%,
    rgba(0,0,0,0.06) 100%
  );
}

.agent-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: clamp(86px, 11vw, 108px);
  padding: clamp(16px, 1.8vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.agent-card:hover .agent-content {
  transform: translateY(0);
}

.agent-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 2.3vw, 26px);
  line-height: 1;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 0 0 6px;
}

.agent-role {
  font-size: clamp(13px, 1.2vw, 14px);
  line-height: 1.35;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

.agent-description {
  font-size: clamp(12px, 1.1vw, 13px);
  line-height: 1.45;
  color: rgba(255,255,255,0.74);
  margin: 4px 0 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.agent-card:hover .agent-description {
  opacity: 1;
  transform: translateY(0);
}

.agent-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.agent-card:hover .agent-cta {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255,255,255,0.20);
}

@media (hover: none) {
  .agent-description,
  .agent-cta {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------- */
/* Цветовые hover-акценты */
/* ----------------------------- */
.agent-card.vanta:hover {
  box-shadow:
    0 18px 45px rgba(67, 93, 255, 0.16),
    0 0 28px rgba(67, 93, 255, 0.08);
}

.agent-card.lumen:hover {
  box-shadow:
    0 18px 45px rgba(255, 227, 173, 0.14),
    0 0 28px rgba(255, 227, 173, 0.07);
}

.agent-card.nero:hover {
  box-shadow:
    0 18px 45px rgba(86, 214, 163, 0.14),
    0 0 28px rgba(86, 214, 163, 0.07);
}

.agent-card.aeris:hover {
  box-shadow:
    0 18px 45px rgba(176, 164, 255, 0.14),
    0 0 28px rgba(176, 164, 255, 0.07);
}

/* ----------------------------- */
/* Текстовые секции */
/* ----------------------------- */
.about,
.story {
  padding: 110px 0;
}

.about .container,
.story .container {
  max-width: 1100px;
}

.about h2,
.story h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 26px;
  color: #ffffff;
  text-align: left;
}

.about p,
.story p {
  max-width: 1100px;
  margin: 0 0 14px 0;
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.95;
  text-align: left;
}

.about p:last-child,
.story p:last-child {
  margin-bottom: 0;
}

.project-section {
  padding-top: 120px;
  padding-bottom: 130px;
}

.project-section .container {
  max-width: 980px;
}

.project-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 30px;
}

.project-agents a,
.project-agents span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.84);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.project-agents a:hover {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  box-shadow:
    0 0 18px rgba(255,255,255,0.08),
    inset 0 0 18px rgba(255,255,255,0.03);
}

.project-closing {
  margin-top: 22px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: #f6f5ef;
}

.payments-info-section {
  padding: 90px 0 20px;
  scroll-margin-top: 120px;
}

.payments-info-lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  line-height: 1.8;
}

.payments-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.payments-info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  box-shadow: 0 18px 52px rgba(0,0,0,0.16);
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.payments-info-card,
.payments-info-card:visited,
.payments-info-card:link,
.payments-info-card:hover,
.payments-info-card:active {
  color: inherit;
  text-decoration: none;
}

.payments-info-card * {
  text-decoration: none;
}

.payments-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}

.payments-info-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}

.payments-info-card h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.08;
  color: #f6f5ef;
  text-wrap: balance;
  max-width: 12ch;
}

.payments-info-card p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: normal;
}

.payments-info-card-payment:hover {
  box-shadow:
    0 18px 52px rgba(0,0,0,0.16),
    0 0 26px rgba(108, 126, 255, 0.10);
}

.payments-info-card-donate:hover {
  box-shadow:
    0 18px 52px rgba(0,0,0,0.16),
    0 0 26px rgba(235, 192, 111, 0.10);
}

.payments-info-card-offer:hover {
  box-shadow:
    0 18px 52px rgba(0,0,0,0.16),
    0 0 26px rgba(176, 164, 255, 0.10);
}

.payments-info-card-requisites:hover {
  box-shadow:
    0 18px 52px rgba(0,0,0,0.16),
    0 0 26px rgba(86, 214, 163, 0.10);
}

.site-footer {
  padding: 24px 0 42px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer-brand {
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.site-footer-copy p {
  max-width: 420px;
  color: rgba(255,255,255,0.56);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 18px;
}

.site-footer-links a {
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 14px;
}

.site-footer-links a:hover {
  color: #fff;
}

.ending-easter {
  padding: 180px 0 120px;
}

.ending-easter .container {
  display: flex;
  justify-content: center;
}

.ending-easter-text {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  color: rgba(246, 245, 239, 0.92);
  letter-spacing: -0.03em;
  text-shadow:
    0 0 24px rgba(255,255,255,0.06),
    0 0 48px rgba(126, 150, 255, 0.06);
}

.story {
  position: relative;
  padding: 120px 0 140px;
}

.story-shell {
  max-width: 1180px;
}

.story-head {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.story-head h2 {
  text-align: center;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 62px);
}

.story-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.44);
  margin-bottom: 12px;
}

.story-lead {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
}

.story-timeline {
  display: grid;
  gap: 24px;
}

.story-beat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  box-shadow: 0 18px 52px rgba(0,0,0,0.16);
  opacity: 0.88;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.5s ease,
    transform 0.55s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    background 0.45s ease;
}

.story-beat:nth-child(even) .story-figure,
.story-beat:nth-child(even) .story-choice-card {
  order: -1;
}

.story-beat.is-visible {
  opacity: 0.94;
  transform: translateY(0) scale(1);
}

.story-beat.is-active {
  opacity: 1;
  border-color: rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  box-shadow:
    0 22px 64px rgba(0,0,0,0.2),
    0 0 34px rgba(255,255,255,0.03);
}

.story-beat-nero.is-active {
  border-color: rgba(108, 255, 190, 0.26);
  background:
    linear-gradient(180deg, rgba(110, 255, 192, 0.08), rgba(255,255,255,0.03)),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  box-shadow:
    0 24px 68px rgba(0,0,0,0.22),
    0 0 40px rgba(86, 214, 163, 0.10);
}

.story-beat-nero.is-active .story-figure {
  border-color: rgba(108, 255, 190, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 34px rgba(86, 214, 163, 0.12),
    0 18px 46px rgba(0,0,0,0.22);
}

.story-beat-nero.is-active .story-copy h3 {
  color: #ddfff0;
}

.story-copy {
  max-width: 700px;
}

.story-step {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 14px;
}

.story-copy h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  color: #f6f5ef;
  margin-bottom: 18px;
}

.story-copy p {
  margin: 0 0 14px 0;
  color: rgba(255,255,255,0.74);
  font-size: 17px;
  line-height: 1.85;
  text-align: left;
}

.story-ending {
  font-size: 20px;
  color: #f4f1eb;
}

.story-figure,
.story-choice-card,
.story-core-card {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 18px 46px rgba(0,0,0,0.2);
}

.story-figure {
  display: flex;
  align-items: flex-end;
}

.story-character-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  filter: saturate(0.92) brightness(0.82);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.story-beat.is-active .story-character-art {
  transform: scale(1);
  filter: saturate(1) brightness(1);
}

.story-core-card {
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.story-core-art {
  transform: scale(1.02);
  filter: saturate(0.98) brightness(0.9);
  object-position: center;
}

.story-core-sphere {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(143, 161, 255, 0.74) 0%, rgba(86, 102, 201, 0.22) 45%, transparent 74%);
  box-shadow:
    0 0 70px rgba(126, 150, 255, 0.22),
    0 0 130px rgba(126, 150, 255, 0.08);
}

.story-core-orbit {
  position: absolute;
  width: 290px;
  height: 150px;
  border: 1px solid rgba(182, 194, 255, 0.22);
  border-radius: 50%;
  transform: rotate(12deg);
}

.story-core-orbit-two {
  width: 270px;
  height: 210px;
  transform: rotate(-28deg);
}

.story-choice-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.story-choice-pill {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease;
}

.story-choice-pill:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.story-choice-vanta:hover {
  background: rgba(108, 126, 255, 0.14);
  border-color: rgba(108, 126, 255, 0.30);
  box-shadow:
    0 0 24px rgba(108, 126, 255, 0.16),
    inset 0 0 24px rgba(108, 126, 255, 0.05);
}

.story-choice-lumen:hover {
  background: rgba(235, 192, 111, 0.14);
  border-color: rgba(235, 192, 111, 0.30);
  box-shadow:
    0 0 24px rgba(235, 192, 111, 0.16),
    inset 0 0 24px rgba(235, 192, 111, 0.05);
}

.story-choice-nero:hover {
  background: rgba(86, 214, 163, 0.14);
  border-color: rgba(86, 214, 163, 0.30);
  box-shadow:
    0 0 24px rgba(86, 214, 163, 0.16),
    inset 0 0 24px rgba(86, 214, 163, 0.05);
}

.story-choice-aeris:hover {
  background: rgba(183, 154, 255, 0.14);
  border-color: rgba(183, 154, 255, 0.30);
  box-shadow:
    0 0 24px rgba(183, 154, 255, 0.16),
    inset 0 0 24px rgba(183, 154, 255, 0.05);
}

/* ----------------------------- */
/* Блюр при скролле */
/* ----------------------------- */
#page {
  transition: filter 0.3s ease;
}

body.scrolling #page {
  filter: blur(4px);
}

/* ----------------------------- */
/* Адаптив */
/* ----------------------------- */
@media (max-width: 900px) {
  #hero.hero {
    min-height: 100svh;
    padding: 80px 0 110px;
  }

  #hero .hero-content {
    margin-top: 0;
    transform: none;
  }

  .hero h1 {
    font-size: 62px;
    line-height: 1.1;
  }

  .description {
    font-size: 15px;
    margin-top: 18px;
  }

  .agents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 240px;
    max-width: 520px;
  }

  .agent-card {
    min-height: 240px;
  }

  .agents-title,
  .heroes-title {
    font-size: 44px;
  }

  .agents-subtitle,
  .heroes-subtitle {
    font-size: 16px;
  }

  .about,
  .story {
    padding: 72px 0;
  }

  .project-section {
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .payments-info-section {
    padding-top: 72px;
  }

  .payments-info-lead {
    font-size: 16px;
  }

  .site-footer-inner {
    flex-direction: column;
  }

  .ending-easter {
    padding: 120px 0 90px;
  }

  .about h2,
  .story h2 {
    font-size: 32px;
  }

  .about p,
  .story p {
    font-size: 16px;
    line-height: 1.8;
  }

  .story-head {
    margin-bottom: 30px;
  }

  .story-beat {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .story-beat:nth-child(even) .story-figure,
  .story-beat:nth-child(even) .story-choice-card {
    order: 0;
  }

  .story-figure,
  .story-choice-card,
  .story-core-card {
    min-height: 280px;
  }
}

@media (max-height: 820px) {
  #heroes-section.heroes-section,
  .agents-section {
    padding-top: 48px;
    padding-bottom: 64px;
    min-height: 100svh;
  }

  #heroes-section {
    margin-top: -12px;
  }

  .agents-title,
  .heroes-title {
    max-width: 700px;
    font-size: clamp(32px, min(4.4vw, 6.2vh), 56px);
  }

  .agents-subtitle,
  .heroes-subtitle {
    margin-bottom: 22px;
  }

  .agents-grid {
    grid-auto-rows: 210px;
    gap: 14px;
  }

  .agent-card {
    min-height: 210px;
  }

  .story {
    padding-top: 86px;
    padding-bottom: 100px;
  }
}

@media (max-width: 900px) {
  .header-content {
    padding: 14px 0 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .logo {
    font-size: 22px;
    letter-spacing: 1.4px;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    margin: 0 18px 0 0;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    border: none;
    flex: 0 0 auto;
  }

  .nav a:hover {
    color: #ffffff;
  }

  .container {
    padding: 0 18px;
  }
}

@media (max-width: 560px) {
  .logo {
    font-size: 20px;
    letter-spacing: 1.2px;
  }

  .nav a {
    margin-right: 16px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .agents-title,
  .heroes-title {
    font-size: 36px;
  }

  .agents-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    max-width: 360px;
  }

  .agent-card {
    min-height: 260px;
  }

  .agent-name {
    font-size: 24px;
  }

  .agent-content {
    padding: 18px;
  }

  .story-copy h3 {
    font-size: 34px;
  }

  .story-lead,
  .story-copy p {
    font-size: 15px;
  }

  .ending-easter {
    padding: 100px 0 80px;
  }

  .ending-easter-text {
    font-size: 36px;
  }

  .project-agents {
    gap: 10px;
  }

  .project-agents a,
  .project-agents span {
    width: 100%;
    text-align: center;
  }

  .story-beat {
    padding: 18px;
  }

  .story-choice-card {
    padding: 18px;
  }
}
