:root {
  --bg: #06081d;
  --paper: rgba(10, 16, 45, 0.78);
  --paper-strong: rgba(16, 24, 60, 0.88);
  --text: #f4f7ff;
  --muted: #a9b6e4;
  --accent: #1fc8ff;
  --accent-2: #9c4dff;
  --accent-soft: rgba(31, 200, 255, 0.14);
  --line: rgba(118, 146, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 200, 255, 0.26), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(156, 77, 255, 0.24), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(31, 200, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #050715 0%, #0a0f2e 52%, #060818 100%);
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(31, 200, 255, 0.18), transparent 32%),
    radial-gradient(circle at right center, rgba(156, 77, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(9, 14, 40, 0.96), rgba(8, 10, 28, 0.98));
  box-shadow: var(--shadow);
  border: 1px solid rgba(86, 120, 255, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 77, 255, 0.26), transparent 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.hero__logo-wrap {
  display: flex;
  justify-content: center;
}

.hero__logo {
  width: min(100%, 320px);
  border-radius: 32px;
  box-shadow:
    0 0 0 1px rgba(125, 153, 255, 0.18),
    0 28px 50px rgba(0, 0, 0, 0.36);
}

.hero__badge,
.scenario__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 200, 255, 0.2), rgba(156, 77, 255, 0.2));
  color: #dceaff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(113, 148, 255, 0.18);
}

h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero__lead,
.intro p,
.scenario p,
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.card {
  padding: 32px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.scenario-switcher {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scenario-switcher__button,
.scenario-nav__button {
  appearance: none;
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  color: #dce8ff;
  background: linear-gradient(135deg, rgba(18, 29, 75, 0.9), rgba(15, 20, 52, 0.9));
  border: 1px solid rgba(98, 131, 255, 0.2);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.scenario-switcher__button.is-active,
.scenario-nav__button {
  background: linear-gradient(90deg, rgba(19, 185, 255, 0.95), rgba(143, 74, 255, 0.95));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(31, 99, 255, 0.28);
}

.scenario-nav__button--secondary {
  background: linear-gradient(135deg, rgba(18, 29, 75, 0.9), rgba(15, 20, 52, 0.9));
  color: #dce8ff;
  box-shadow: none;
}

.scenario-panel {
  display: none;
}

.scenario-panel.is-active {
  display: block;
}

h2 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.scenario__status {
  margin-bottom: 24px;
}

.scenario__draft {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-radius: 20px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.step__number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #17c7ff 0%, #7d46ff 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(38, 108, 255, 0.28);
}

h3 {
  margin: 4px 0 10px;
  font-size: 22px;
}

.step__figure {
  margin: 18px 0 0;
}

.step__figure img {
  display: block;
  width: min(100%, 420px);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.step__figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.step__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.note {
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(17, 26, 67, 0.96), rgba(50, 18, 93, 0.92));
  color: #fff8f0;
  font-size: 17px;
  line-height: 1.7;
  border: 1px solid rgba(110, 140, 255, 0.22);
}

.note strong {
  color: #8fe7ff;
}

.scenario__done {
  margin: 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(18, 157, 222, 0.18), rgba(137, 76, 255, 0.18));
  border: 1px solid rgba(108, 142, 255, 0.24);
  color: #ebf4ff;
  font-size: 17px;
  line-height: 1.7;
}

.scenario-nav {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.subscenario-header {
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(17, 31, 79, 0.85), rgba(35, 14, 78, 0.78));
  border: 1px solid rgba(103, 136, 255, 0.2);
}

.subscenario-header__label {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(31, 200, 255, 0.12);
  color: #cdeaff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subscenario-header h3 {
  margin: 14px 0 10px;
}

.subscenario-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1080px);
    padding: 20px 0 40px;
  }

  .hero,
  .card {
    padding: 24px;
    border-radius: 24px;
  }

  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__logo {
    width: min(100%, 240px);
  }

  .scenario-switcher {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step__gallery {
    grid-template-columns: 1fr;
  }

  .scenario-switcher__button,
  .scenario-nav__button {
    width: 100%;
  }

  .scenario-nav {
    flex-direction: column;
  }
}
