/* ==========================================================================
   Первая космическая — landing styles
   Порядок: tokens → reset/base → layout → components → sections → motion → media
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont.woff2") format("woff2"),
       url("../fonts/Inter-VariableFont.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #F5F7FC;
  --surface: #FFFFFF;
  --surface-soft: #F7F9FD;
  --ink: #111A32;
  --ink-2: #303C56;
  --muted: #52617B;
  --accent: #3159D2;
  --accent-strong: #234CCA;
  --accent-deep: #1C337C;
  --line: #DDE4F0;
  --tint: #E8EEFF;
  --tint-2: #B9C9EF;
  --success: #167A4A;
  --error: #B42318;
  --focus: #3159D2;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 72px;
  --section-y: clamp(4.5rem, 8vw, 8rem);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --pill: 999px;

  --shadow-card: 0 1px 2px rgba(17, 26, 50, .04), 0 24px 60px -44px rgba(28, 51, 124, .28);
  --shadow-float: 0 28px 70px -32px rgba(28, 51, 124, .38);
  --shadow-button: 0 10px 24px -14px rgba(49, 89, 210, .7);

  --fs-h1: clamp(2.5rem, 4vw, 3.75rem);
  --fs-h2: clamp(2rem, 3.4vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.4vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.5vw, 1.25rem);
  --fs-small: .875rem;
  --fs-caption: .8125rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

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

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1.125rem;
  border-radius: .5rem;
  background: var(--ink);
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--tint);
}

.section {
  padding-block: var(--section-y);
}

.section h2 {
  max-width: 1180px;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.section-lead {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.button--primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

.button--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 252, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(245, 247, 252, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -24px rgba(17, 26, 50, .45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: var(--ink);
}

.brand__link:hover {
  color: var(--accent);
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}

.brand__name {
  font-size: .9375rem;
  font-weight: 650;
  white-space: nowrap;
}

.brand__divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  flex: none;
}

.brand__program {
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.brand__program:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.625rem;
}

.site-nav__list a {
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s var(--ease);
}

.site-nav__list a:hover {
  color: var(--accent);
}

.site-nav__cta {
  flex: none;
  min-height: 44px;
  padding-inline: 1.25rem;
  font-size: .9375rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 .875rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
}

.nav-toggle__icon {
  position: relative;
  width: 16px;
  height: 10px;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease);
}

.nav-toggle__icon::before { top: 1px; }
.nav-toggle__icon::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 16%, rgba(49, 89, 210, .11), transparent 30%),
    radial-gradient(circle at 8% 6%, rgba(185, 201, 239, .38), transparent 28%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 24ch;
  margin-top: 1.25rem;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.hero h1 span {
  color: var(--accent);
}

.hero__lead {
  margin-top: 1.75rem;
  color: var(--ink);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.45;
}

.hero__body {
  max-width: 58ch;
  margin-top: .625rem;
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.75rem;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 500;
}

.chips li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .875rem;
  margin-top: 2.25rem;
}

.hero__note {
  color: var(--muted);
  font-size: .8125rem;
}

.hero__visual {
  position: relative;
  padding-bottom: 2rem;
}

.hero__visual::before {
  content: "";
  position: absolute;
  top: -14%;
  right: -26%;
  z-index: -1;
  width: 110%;
  aspect-ratio: 1;
  border: 1px solid var(--tint-2);
  border-radius: 50%;
  opacity: .55;
}

.hero__media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  background: #0B1020;
  box-shadow: 0 34px 90px -48px rgba(17, 26, 50, .7);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  pointer-events: none;
}

.hero__media img {
  width: 100%;
}

/* Proof card */
.proof-card {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  margin: -2.5rem 1.25rem 0 auto;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.proof-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.proof-card__mark {
  position: relative;
  flex: none;
}

.proof-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.proof-card__avatar {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 36px;
  height: 36px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.proof-card__id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.proof-card__kicker {
  color: var(--accent);
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.proof-card__name {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.proof-card__name a {
  color: var(--ink);
}

.proof-card__name a:hover {
  color: var(--accent);
}

.proof-card__tagline {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.45;
}

.proof-card__label {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .75rem;
}

.proof-card__metric {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-top: .125rem;
  color: var(--ink-2);
  font-size: 1.875rem;
  font-weight: 650;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.proof-card__metric strong {
  color: var(--accent);
  font-size: 2.125rem;
  font-weight: 750;
}

.proof-card__arrow {
  color: var(--muted);
  font-size: 1.375rem;
  font-weight: 400;
}

.proof-card__quote {
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.5;
}

.proof-card__source {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .6875rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Problems
   -------------------------------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.problem-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.problem-card:hover {
  transform: translateY(-3px);
  border-color: var(--tint-2);
  box-shadow: var(--shadow-card);
}

.problem-card__media {
  overflow: hidden;
  aspect-ratio: 3 / 1;
  border-radius: var(--radius-sm);
  background: var(--tint);
}

.problem-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-card__img--top { object-position: center top; }
.problem-card__img--middle { object-position: center center; }
.problem-card__img--bottom { object-position: center bottom; }

.problem-card h3 {
  margin: 1.5rem .5rem 0;
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.problem-card p {
  margin: .625rem .5rem .5rem;
  color: var(--ink-2);
  font-size: .96875rem;
  line-height: 1.6;
}

.help-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-md);
  background: var(--tint);
}

.help-panel__text h3 {
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -.015em;
}

.help-panel__text p {
  max-width: 60ch;
  margin-top: .5rem;
  color: var(--ink-2);
  font-size: .96875rem;
  line-height: 1.6;
}

.help-panel .button {
  flex: none;
}

/* --------------------------------------------------------------------------
   Program / HADI
   -------------------------------------------------------------------------- */
.intro-panel {
  max-width: 900px;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.intro-panel p {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.intro-panel p + p {
  margin-top: .375rem;
}

.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(0, 1fr);
  grid-template-areas:
    "s1 hadi s2"
    "s4 hadi s3";
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

.hadi {
  grid-area: hadi;
  width: 100%;
  max-width: 320px;
  margin: 0;
  justify-self: center;
}

.hadi svg {
  width: 100%;
  height: auto;
}

.steps {
  display: contents;
}

.step {
  padding: 1.375rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.steps > :nth-child(1) { grid-area: s1; }
.steps > :nth-child(2) { grid-area: s2; }
.steps > :nth-child(3) { grid-area: s3; }
.steps > :nth-child(4) { grid-area: s4; }

.step__num {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 750;
}

.step__num::after {
  content: ".";
}

.step h3 {
  display: inline;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -.015em;
}

.step__meta {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}

.step p:not(.step__meta) {
  margin-top: .5rem;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.6;
}

.program-notes {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.program-notes p {
  position: relative;
  max-width: 40ch;
  padding-left: 1rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.program-notes p::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline-table {
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--surface);
  font-size: .9375rem;
}

.timeline-table th,
.timeline-table td {
  padding: 1.125rem 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.timeline-table thead th {
  padding-block: .875rem;
  border-top: 0;
  background: var(--tint);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .005em;
}

.timeline-table tbody tr:nth-child(even) {
  background: #F8FAFE;
}

.timeline-table tbody th {
  width: 20%;
  color: var(--ink);
  font-size: .96875rem;
  font-weight: 650;
  line-height: 1.35;
}

.timeline-table tbody td {
  color: var(--ink-2);
  line-height: 1.5;
}

.timeline-table td.timeline-table__num {
  width: 4.5rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.timeline-table tr.is-highlight,
.timeline-table tr.is-highlight:nth-child(even) {
  background: var(--ink);
}

.timeline-table tr.is-highlight th,
.timeline-table tr.is-highlight td {
  border-top-color: rgba(255, 255, 255, .1);
  color: #fff;
}

.timeline-table tr.is-highlight td.timeline-table__num {
  color: var(--tint-2);
}

.timeline-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Results
   -------------------------------------------------------------------------- */
.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.outcomes {
  display: grid;
  gap: 2rem;
}

.outcome h3 {
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.outcome p {
  max-width: 56ch;
  margin-top: .5rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.case-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.case-card__kicker {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.case-card__head {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.case-card__mark {
  position: relative;
  flex: none;
}

.case-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.case-card__avatar {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 36px;
  height: 36px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.case-card__id h3 {
  font-size: 1.75rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.case-card__id h3 a {
  color: var(--ink);
}

.case-card__id h3 a:hover {
  color: var(--accent);
}

.case-card__id > p {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.45;
}

.case-card__id .case-card__founder {
  margin-top: .125rem;
  color: var(--muted);
  font-size: .8125rem;
}

.case-stats {
  display: flex;
  gap: 2.5rem;
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.case-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: .125rem;
}

.case-stats dt {
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.35;
}

.case-stats dd {
  margin: 0;
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.case-stats__note {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .6875rem;
}

.case-card__quote {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Stories / participants
   -------------------------------------------------------------------------- */
.cohorts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.cohort__title {
  margin-bottom: 1rem;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.cohort__grid {
  display: grid;
  gap: 1rem;
  grid-auto-rows: 1fr;
}

.cohort--first .cohort__grid {
  grid-template-columns: 1fr;
}

.cohort--second .cohort__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.participant-card {
  display: flex;
  flex-direction: column;
  padding: 1.375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.participant-card:hover {
  transform: translateY(-3px);
  border-color: var(--tint-2);
  box-shadow: var(--shadow-card);
}

.participant-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.participant-card__id {
  min-width: 0;
}

.participant-card__id h4 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.participant-card__id h4 a {
  color: var(--ink);
}

.participant-card__id h4 a:hover {
  color: var(--accent);
}

.participant-card__tagline {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.4;
}

.participant-card__mark {
  position: relative;
  flex: none;
  align-self: flex-start;
}

.participant-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.participant-card__logo--photo {
  object-fit: cover;
}

.participant-card__founder {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.participant-card__metric {
  margin-top: 1.25rem;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.participant-card__text {
  margin-top: .5rem;
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.55;
}

.stories-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.stories-links a {
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--tint-2);
  text-underline-offset: .22em;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}

.stories-links a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

/* --------------------------------------------------------------------------
   Apply
   -------------------------------------------------------------------------- */
.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.apply__content h2 {
  max-width: none;
}

.facts {
  display: grid;
  gap: 1.125rem;
  max-width: 520px;
  margin: 2.5rem 0 0;
}

.fact {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.fact dt {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 550;
  letter-spacing: .01em;
}

.fact dd {
  margin: .25rem 0 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 550;
  line-height: 1.4;
}

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

#apply-form {
  display: grid;
  gap: 1.125rem;
  margin-top: 1.5rem;
}

.form-fieldset {
  display: contents;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-fieldset[disabled] .form-submit {
  opacity: .6;
  cursor: not-allowed;
}

.field {
  display: grid;
  gap: .375rem;
}

.field label {
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: .8125rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--tint-2);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(49, 89, 210, .16);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.field__error {
  color: var(--error);
  font-size: .78125rem;
  line-height: 1.4;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  margin-top: .25rem;
}

.form-submit[disabled],
.form-submit[aria-disabled="true"] {
  cursor: progress;
  opacity: .78;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 1.5em;
  margin-top: .25rem;
  font-size: .875rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.form-status.is-info {
  color: var(--muted);
}

.form-note {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.form-note--small {
  font-size: .75rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
}

.brand--footer {
  color: #fff;
}

.brand--footer:hover {
  color: #fff;
}

.brand--footer .brand__name {
  color: #fff;
  font-size: 1.0625rem;
}

.site-footer__brand p {
  max-width: 34ch;
  margin-top: .875rem;
  color: rgba(255, 255, 255, .58);
  font-size: .875rem;
  line-height: 1.6;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding-top: .375rem;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, .72);
  font-size: .875rem;
  transition: color .15s var(--ease);
}

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

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .625rem;
  padding-top: .375rem;
}

.site-footer__links a {
  color: var(--tint-2);
  font-size: .875rem;
  transition: color .15s var(--ease);
}

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

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__bottom p,
.site-footer__bottom a {
  color: rgba(255, 255, 255, .55);
  font-size: .78125rem;
}

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

.site-footer .brand__logo {
  width: 36px;
  height: 36px;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    animation: rise .62s var(--ease) both;
  }

  .hero__content > :nth-child(1) { animation-delay: .02s; }
  .hero__content > :nth-child(2) { animation-delay: .08s; }
  .hero__content > :nth-child(3) { animation-delay: .14s; }
  .hero__content > :nth-child(4) { animation-delay: .2s; }
  .hero__content > :nth-child(5) { animation-delay: .26s; }
  .hero__content > :nth-child(6) { animation-delay: .32s; }

  .hero__visual {
    animation: rise .7s var(--ease) .18s both;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  .site-nav {
    gap: 1.25rem;
  }

  .site-nav__list {
    gap: 1rem;
  }

  .site-nav__cta {
    padding-inline: 1rem;
  }
}

@media (max-width: 1100px) {
  .program-grid {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px) minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
  }

  .cohorts {
    gap: 1.5rem;
  }
}

@media (max-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__content {
    max-width: 760px;
  }

  .hero__visual {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .case-card {
    max-width: 560px;
  }

  .apply-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-card {
    max-width: 620px;
  }

  .cohorts {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cohort--first .cohort__grid,
  .cohort--second .cohort__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.25rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 24px 40px -32px rgba(17, 26, 50, .4);
  }

  html.js .site-nav {
    display: none;
  }

  html.js .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav__list a {
    display: block;
    padding: .875rem 0;
    font-size: 1rem;
  }

  .site-nav__cta {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    padding-block: .75rem;
  }

  html:not(.js) .site-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  html:not(.js) .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
  }

  html:not(.js) .site-nav__list li + li {
    border-top: 0;
  }

  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-card:last-child {
    grid-column: 1 / -1;
  }

  .problem-card:last-child .problem-card__media {
    aspect-ratio: 6 / 1;
  }

  .help-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .program-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hadi {
    order: -1;
    max-width: 240px;
    margin: 0 auto 1rem;
  }

  .steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .program-notes {
    flex-direction: column;
    gap: .75rem;
  }

  .program-notes p {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .timeline-table {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    font-size: .9375rem;
  }

  .timeline-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .timeline-table tbody,
  .timeline-table tr,
  .timeline-table th,
  .timeline-table td {
    display: block;
  }

  .timeline-table tbody tr,
  .timeline-table tbody tr:nth-child(even) {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: .5rem .875rem;
    margin-bottom: .75rem;
    padding: 1.125rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
  }

  .timeline-table tbody tr.is-highlight,
  .timeline-table tbody tr.is-highlight:nth-child(even) {
    background: var(--ink);
    border-color: var(--ink);
  }

  .timeline-table tbody th,
  .timeline-table tbody td {
    width: auto;
    padding: 0;
    border: 0;
    font-size: .9375rem;
  }

  .timeline-table tbody td.timeline-table__num {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tint);
    font-size: .875rem;
    text-align: center;
  }

  .timeline-table tbody th[scope="row"] {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 1rem;
    line-height: 1.25;
    text-align: left;
  }

  .timeline-table tbody td[data-label]:not(.timeline-table__num) {
    grid-column: 1 / -1;
  }

  .timeline-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .25rem;
    color: var(--muted);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .02em;
  }

  .timeline-table tbody td.timeline-table__num::before {
    content: none;
  }

  .timeline-table tbody td[data-label="Результат"] {
    margin-top: .125rem;
    padding: .75rem .875rem;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
  }

  .timeline-table tbody tr.is-highlight th,
  .timeline-table tbody tr.is-highlight td {
    color: #fff;
  }

  .timeline-table tbody tr.is-highlight td.timeline-table__num {
    background: rgba(255, 255, 255, .14);
    color: #fff;
  }

  .timeline-table tbody tr.is-highlight td[data-label]::before {
    color: var(--tint-2);
  }

  .timeline-table tbody tr.is-highlight td[data-label="Результат"] {
    background: rgba(255, 255, 255, .08);
  }
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-card:last-child {
    grid-column: auto;
  }

  .problem-card:last-child .problem-card__media {
    aspect-ratio: 3 / 1;
  }

  .cohort--first .cohort__grid,
  .cohort--second .cohort__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
  }

  .hero h1 {
    font-size: clamp(2.125rem, 9vw, 2.5rem);
  }

  .brand {
    gap: .5rem;
  }

  .brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand__name,
  .brand__program {
    font-size: .8125rem;
  }

  .brand__divider {
    height: 16px;
  }

  .nav-toggle__label {
    display: none;
  }

  .hero__actions {
    align-items: stretch;
  }

  .hero__actions .button {
    width: 100%;
  }

  .proof-card {
    margin: -2rem .5rem 0;
    width: calc(100% - 1rem);
    padding: 1.25rem;
  }

  .proof-card__metric {
    font-size: 1.625rem;
  }

  .proof-card__metric strong {
    font-size: 1.875rem;
  }

  .case-stats {
    gap: 1.75rem;
  }

  .case-stats dd {
    font-size: 2.125rem;
  }

  .form-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .form-status {
    font-size: .8125rem;
  }
}

@media (max-width: 380px) {
  .brand__name {
    display: none;
  }

  .brand__divider {
    display: none;
  }
}
