/* WMT Kids design system */

:root {
  /* Brand */
  --accent: #F25A30;
  --accent-pressed: #D9421A;
  --accent-bg: #FFF1EA;
  --accent-ink: #FFFFFF;

  /* Surfaces — warm neutrals */
  --canvas: #FBFAF7;
  --elevated: #FFFFFF;
  --sunken: #F2EEE8;
  --line: #E8E2D7;
  --line-strong: #D8D0C2;

  /* Ink */
  --ink: #1A1A1A;
  --ink-2: #4A4742;
  --ink-3: #7A7670;
  --ink-on-dark: #FBFAF7;
  --ink-on-dark-2: #B8B2A6;

  /* Pastel card backgrounds */
  --pastel-wheat:    #F5EAD3;
  --pastel-coral:    #FBDDD0;
  --pastel-mint:     #DCE9DD;
  --pastel-lavender: #E4DEEF;

  /* Radii */
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(28, 22, 14, 0.04), 0 1px 3px rgba(28, 22, 14, 0.06);
  --sh-2: 0 2px 4px rgba(28, 22, 14, 0.05), 0 6px 16px rgba(28, 22, 14, 0.07);
  --sh-3: 0 8px 24px rgba(28, 22, 14, 0.10), 0 16px 48px rgba(28, 22, 14, 0.10);

  --section-y: 96px;
  --container-max: 1200px;
  --container-pad: 32px;

  --card-radius: var(--r-md);

  /* Motion */
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: var(--accent-ink); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01" on, "cv11" on;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--sunken { background: var(--sunken); }
.section--dark {
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(242,90,48,0.18), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(242,90,48,0.06), transparent 55%),
    #1E1813;
  color: var(--ink-on-dark);
}
.section--dark .eyebrow { color: var(--ink-on-dark-2); }
.section--dark .section-title { color: #fff; }
.section--dark .lede { color: rgba(255,255,255,0.78); }
.section--dark .section-head .eyebrow { color: rgba(255,255,255,0.6); }
.section--dark .section-head .lede { color: rgba(255,255,255,0.75); }

/* Glass primitives */
.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.6);
}
.glass-dark {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.glass-dark:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); }
.glass-cta {
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 8px 30px rgba(242,90,48,0.35), 0 2px 6px rgba(28,22,14,0.10);
}

/* ──────────────── Typography ──────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

h1, h2, h3, h4 {
  font-family: inherit;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.display {
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  max-width: 22ch;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 32px;
  line-height: 1.55;
}

.cursive {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.15em;
  color: var(--accent);
  letter-spacing: 0;
  display: inline-block;
  white-space: nowrap;
  transform: translateY(0.04em) rotate(-1deg);
  padding: 0 0.08em;
}

/* ──────────────── Buttons ──────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .arr {
  display: inline-block;
  width: 16px; height: 16px;
  transition: transform var(--t-base) var(--ease);
}
.btn:hover .arr { transform: translateX(3px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-pressed); }

.btn--dark {
  background: var(--ink);
  color: var(--ink-on-dark);
}
.btn--dark:hover { background: #2c2925; }

.btn--ghost {
  background: var(--sunken);
  color: var(--ink);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--line); border-color: transparent; }

.btn--lg { padding: 20px 32px; font-size: 17px; }
.btn--sm { padding: 12px 20px; font-size: 14px; }

/* ──────────────── Header ──────────────── */
.site-header {
  position: absolute;
  top: 24px; left: 0; right: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img { height: 28px; width: auto; max-width: 160px; display: block; object-fit: contain; }
.brand--header img { width: 170px; height: auto; max-width: none; }
.kids-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.kids-badge--dark { background: var(--accent); color: #fff; }
.footer-logo { height: 30px; width: auto; max-width: 180px; object-fit: contain; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.nav-pill a {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-pill a:hover { background: var(--ink); color: var(--ink-on-dark); }

.header-cta { display: inline-flex; gap: 12px; align-items: center; }

.burger,
.floating-burger {
  display: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.burger {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--elevated);
  position: relative;
  transition: background var(--t-fast) var(--ease);
  outline: none;
}
.burger:focus-visible { box-shadow: 0 0 0 3px rgba(242,90,48,0.35); }
.burger:hover,
.burger[aria-expanded="true"],
.floating-burger[aria-expanded="true"] {
  background: var(--ink);
}
.burger:hover span,
.burger[aria-expanded="true"] span,
.floating-burger[aria-expanded="true"] span {
  background: var(--ink-on-dark);
}
.burger span,
.floating-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1),
.floating-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2),
.floating-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3),
.floating-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 12px;
  right: 12px;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 16px 48px rgba(28,22,14,0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
  z-index: 60;
}
.mobile-menu[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu > a {
  text-decoration: none;
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.mobile-menu > a:hover,
.mobile-menu > a:active {
  background: var(--sunken);
  color: var(--ink);
}
/* ──────────────── HERO ──────────────── */
.hero {
  padding: 140px 0 var(--section-y);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: stretch;
}
.hero-copy {
  max-width: 620px;
}
@media (min-width: 1025px) {
  .hero-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 520px;
  }
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--elevated);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
a.meta-pill:hover { border-color: var(--accent); color: var(--ink); }
.meta-pill .pill-icn {
  width: 13px; height: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.hero h1 { margin: 0 0 28px; }
.hl-cursive { color: var(--accent); }

.hero-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  margin-top: 40px;
  background: transparent;
  border: 1px solid #E8DCCB;
  border-radius: var(--r-xl);
  padding: 16px 0;
  box-shadow: none;
}
.hero-stats > div {
  flex: 1;
  text-align: center;
  padding: 0 14px;
}
.hero-stats > div + div {
  border-left: 1px solid #E8DCCB;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
}

.hero-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--sunken);
  box-shadow: var(--sh-3);
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-sticker {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  box-shadow: var(--sh-2);
}
.sticker-avatars {
  display: flex;
}
.sticker-avatars span {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: var(--pastel-wheat);
  background-size: cover;
  background-position: center;
}
.sticker-avatars span:first-child { margin-left: 0; }
.sticker-avatars span:nth-child(1) { background: var(--pastel-coral); }
.sticker-avatars span:nth-child(2) { background: var(--pastel-mint); }
.sticker-avatars span:nth-child(3) { background: var(--pastel-lavender); }
.sticker-avatars span:nth-child(4) { background: var(--accent); color: white; font-size: 10px; display: grid; place-items: center; font-weight: 600; }

.sticker-text strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.sticker-text span, .sticker-text a { color: var(--ink-3); text-decoration: none; transition: color .15s ease; }
.sticker-text a:hover { color: var(--accent); }

/* ──────────────── Section header (shared) ──────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}

/* ──────────────── Recognition (S2) ──────────────── */
.recog-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  align-items: start;
}

.pill-tabs {
  display: inline-flex;
  padding: 6px;
  gap: 4px;
  background: #fff;
  border: 1px solid #E8E2D7;
  border-radius: var(--r-pill);
  margin-bottom: 32px;
  box-shadow: none;
}
.pill-tabs button {
  padding: 10px 18px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #7A7670;
  cursor: pointer;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.pill-tabs button.active {
  background: #1A1A1A;
  color: #FBFAF7;
}

.recog-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.recog-cards[hidden] { display: none; }
.recog-card {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.recog-card .recog-illust {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.recog-card .recog-illust svg,
.recog-card .recog-illust canvas { width: 100%; height: 100%; display: block; }
.recog-card h3 { font-size: 18px; line-height: 1.3; }
.recog-card p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }

.quick-contact-card {
  position: sticky;
  top: 24px;
  padding: 40px;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--ink-on-dark);
  box-shadow: var(--sh-2);
}
.quick-contact-card .eyebrow { color: rgba(255,255,255,.58); margin-bottom: 18px; }
.quick-contact-card .eyebrow::before { background: var(--accent); }
.quick-contact-card h3 { color: #fff; font-size: 30px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -.025em; }
.quick-contact-card p:not(.eyebrow) { color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.6; margin: 0 0 28px; }
.quick-contact-card .btn { width: 100%; justify-content: space-between; }

/* Form card */
.form-card {
  background: var(--elevated);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  position: sticky;
  top: 24px;
  box-shadow: var(--sh-2);
}
.form-card h3 { font-size: 22px; margin: 0 0 8px; color: var(--ink); }
.form-card .form-sub { font-size: 14px; color: var(--ink-3); margin: 0 0 24px; }
.form-field { margin-bottom: 14px; }
.form-field--compact { margin-bottom: 8px; }
.form-field--compact label { margin-bottom: 8px; }
.form-field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--elevated);
}
.form-field input::placeholder { color: var(--ink-3); opacity: 0.6; }

/* iOS-style segmented control */
.segmented {
  display: flex;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  margin: 16px 0;
  position: relative;
}
.segmented input { display: none; }
.segmented label {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-2);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
  user-select: none;
}
.segmented input:checked + label { background: var(--ink); color: var(--ink-on-dark); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-3);
  margin: 16px 0 20px;
  line-height: 1.5;
  cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.microcopy { font-size: 12px; color: var(--ink-3); margin-top: 14px; text-align: center; }

.lead-form-status { font-size: 13px; margin: 12px 0 0; text-align: center; line-height: 1.4; }
.lead-form-status[data-kind="ok"]  { color: #1a7f4a; }
.lead-form-status[data-kind="err"] { color: #b3261e; }
.lead-form-submit { width: 100%; }
.lead-form-submit:disabled { opacity: .7; cursor: default; }

/* ──────────────── Outcomes (S3) ──────────────── */
.outcomes-tabs {
  display: inline-flex;
  padding: 6px;
  gap: 4px;
  background: #fff;
  border: 1px solid #E8E2D7;
  border-radius: var(--r-pill);
  margin-bottom: 36px;
  position: relative;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.oc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #7A7670;
  cursor: pointer;
  position: relative;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  white-space: nowrap;
}
.oc-tab:hover { color: var(--ink-2); }
.oc-tab::after { display: none; }
.oc-tab.active {
  background: #1A1A1A;
  color: #FBFAF7;
  box-shadow: var(--sh-1);
}
/* ── Outcomes bento grid ── */
.outcomes-cards {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "photo c1 c2"
    "photo c3 c4";
  gap: 16px;
  min-height: 600px;
}
.outcomes-cards[hidden] { display: none; }
.outcomes-cards > *:nth-child(1) { grid-area: photo; }
.outcomes-cards > *:nth-child(2) { grid-area: c1; }
.outcomes-cards > *:nth-child(3) { grid-area: c2; }
.outcomes-cards > *:nth-child(4) { grid-area: c3; }
.outcomes-cards > *:nth-child(5) { grid-area: c4; }

/* Hero photo card */
.oc-photo {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #111 no-repeat center / cover;
}
.oc-photo .oc-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.oc-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
}
.oc-photo-cap {
  position: absolute;
  left: 28px; right: 28px; bottom: 28px;
  z-index: 2;
}
.oc-photo-cap .eyebrow { color: rgba(255,255,255,0.65); margin: 0 0 10px; }
.oc-photo-cap .eyebrow::before { background: rgba(255,255,255,0.45); }
.oc-photo-cap h4 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; color: #fff; }
.oc-photo-cap p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5; }

/* Content cards */
.oc-card {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.oc-card-thumb {
  flex: 1;
  min-height: 140px;
  background-color: var(--canvas);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.oc-card-thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.oc-card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-card-thumb--typing { background-image: url(photo/07_hands_typing.jpg); }
.oc-card-thumb--mentor { background-image: url(photo/03_mentor_moment.jpg); }
.oc-card-thumb--screen { background-image: url(photo/05_screen_silhouettes.jpg); }
.oc-card-thumb--group { background-image: url(photo/04_group_laugh.jpg); }
.oc-photo--screen { background-image: url(photo/05_screen_silhouettes.jpg); }
.oc-card-body {
  padding: 16px 8px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.oc-card-body h4 { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.oc-card-body p  { font-size: 13px; margin: 0; line-height: 1.55; color: var(--ink-2); }

/* ──────────────── Program (S4) ──────────────── */
.format-card {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.format-card .fc-clock {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.format-card h3 { font-size: 22px; margin-bottom: 6px; }
.format-card p { color: var(--ink-2); margin: 0; font-size: 15px; max-width: 60ch; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stage {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease);
}
.stage[open] { box-shadow: var(--sh-2); }
.stage summary {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  padding: 28px 32px;
  cursor: pointer;
  list-style: none;
  align-items: center;
}
.stage summary::-webkit-details-marker { display: none; }
.stage-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.stage-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.stage-title strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stage-title span {
  font-size: 13px;
  color: var(--ink-3);
}
.stage-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sunken);
  display: grid; place-items: center;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.stage[open] .stage-toggle { background: var(--accent); color: white; transform: rotate(45deg); }
.stage-body {
  padding: 0 32px 32px 136px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  font-size: 15px;
  color: var(--ink-2);
}
.stage-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.stage-body li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.55;
}
.stage-body li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}

/* ──────────────── Educational platform ──────────────── */
.platform-section { background: var(--canvas); }
.platform-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  padding: 64px;
  border-radius: var(--r-xl);
  background: var(--elevated);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.platform-copy .section-title { margin: 0 0 20px; }
.platform-intro,
.platform-note { color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 62ch; }
.platform-intro { margin: 0 0 28px; }
.platform-note { margin: 28px 0 0; }
.platform-cta { margin-top: 24px; }
.platform-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.platform-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--sunken);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}
.platform-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}
.platform-list li:last-child { grid-column: 1 / -1; }
.platform-visual {
  margin: 0;
  min-width: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 26px;
  background: var(--sunken);
  box-shadow: 0 30px 70px rgba(23,20,16,.18), 0 8px 24px rgba(23,20,16,.08);
  transform: rotate(1.4deg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.platform-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.platform-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.platform-card:hover .platform-visual { transform: rotate(.35deg) translateY(-5px); box-shadow: 0 38px 84px rgba(23,20,16,.22), 0 10px 28px rgba(23,20,16,.1); }

/* ──────────────── Cases (S5) ──────────────── */
.cases-track-wrap {
  position: relative;
  margin: 0 calc(-1 * var(--container-pad));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--container-pad), #000 calc(100% - var(--container-pad)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--container-pad), #000 calc(100% - var(--container-pad)), transparent 100%);
}
.cases-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 12px var(--container-pad) 36px;
  scroll-padding-inline: var(--container-pad);
}
.cases-track::-webkit-scrollbar { display: none; }

.case-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: rgba(255,250,242,0.04);
  border: 1px solid rgba(255,250,242,0.10);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.case-card video {
  width: 100%;
  aspect-ratio: 9/12;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}
.case-meta {
  padding: 20px 22px 22px;
  color: var(--ink-on-dark);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-meta .case-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255,250,242,0.10);
  border: 1px solid rgba(255,250,242,0.14);
  font-size: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,250,242,0.85);
}
.case-meta h4 { color: #fff; font-size: 19px; margin: 0 0 8px; line-height: 1.3; letter-spacing: -0.01em; }
.case-meta p { font-size: 14px; color: rgba(255,250,242,0.7); margin: 0; line-height: 1.55; }

.cases-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
}
.cases-arrows { display: flex; gap: 8px; }
.cases-arrows button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--elevated);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.cases-arrows button:hover { background: var(--ink); color: var(--ink-on-dark); border-color: var(--ink); }
.cases-arrows button.glass-dark {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.cases-arrows button.glass-dark:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}
.cases-arrows button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* ──────────────── Team (S6) ──────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.founder-callout + .team-grid { margin-top: 56px; }
.teacher-card {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
}
.teacher-card .photo {
  background: var(--sunken);
  background-size: cover;
  background-position: center;
  min-height: 280px;
}
.teacher-card .photo--vladimir { background-image: url(photo/team/vladimir.jpg); }
.teacher-card .photo--denis { background-image: url(photo/team/denis.jpg); }
.teacher-card .meta { padding: 32px; display: flex; flex-direction: column; }
.teacher-card .role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.teacher-card h3 { font-size: 24px; margin: 0 0 12px; letter-spacing: -0.02em; }
.teacher-card p { color: var(--ink-2); margin: 0 0 16px; font-size: 15px; line-height: 1.55; flex: 1; }
.teacher-card .creds {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px;
}
.teacher-card .cred {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--sunken);
  font-size: 12px;
  color: var(--ink-2);
}

.founder-callout {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(242,90,48,0.22), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(242,90,48,0.08), transparent 55%),
    #1E1813;
  color: var(--ink-on-dark);
  border-radius: var(--r-xl);
  padding: 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,250,242,0.08);
}
.founder-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 30% 100%, rgba(242,90,48,0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.founder-photo {
  background: var(--sunken);
  background-size: cover;
  background-position: center top;
  min-height: 480px;
  position: relative;
  z-index: 1;
}
.founder-photo--igor { background-image: url(photo/team/igor.jpg); }
.founder-body {
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.founder-callout .lab {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-2);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.founder-callout .lab-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.founder-callout h3 {
  font-size: 32px;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.founder-callout .founder-role {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-on-dark-2);
  letter-spacing: 0;
}
.founder-quote {
  margin: 0 0 28px;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--accent);
}
.founder-quote p {
  color: rgba(255,250,242,0.92);
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
  max-width: 56ch;
}
.founder-quote p:last-child { margin-bottom: 0; color: rgba(255,250,242,0.62); font-size: 15px; }
.founder-meta {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,250,242,0.10);
}
.founder-stat { display: flex; flex-direction: column; gap: 4px; }
.founder-stat strong {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.founder-stat span {
  font-size: 12px;
  color: rgba(255,250,242,0.55);
  letter-spacing: 0.02em;
}
.founder-callout .tg-link {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: fit-content;
}

/* ──────────────── Why free (S7) — бежевый баннер ──────────────── */
.section--whyfree {
  position: relative;
  background: var(--sunken);
  overflow: hidden;
}
.section--whyfree .eyebrow { color: var(--ink-2); }
.section--whyfree .eyebrow::before { background: var(--ink-2); }
.section--whyfree .section-title { color: var(--ink); }
.section--whyfree .lede { color: var(--ink-2); }
.section--whyfree .whyfree-bg-shapes { display: none; }

.whyfree-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}
.whyfree-row {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 32px 30px;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto;
  column-gap: 18px;
  row-gap: 0;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease);
  box-shadow: none;
}
.whyfree-row::before { content: none; }
.whyfree-icon {
  grid-row: 1;
  width: 56px;
  height: 56px;
  color: var(--accent);
  display: grid;
  place-items: center;
  align-self: start;
}
.whyfree-icon svg { width: 100%; height: 100%; display: block; }
.whyfree-row-body {
  grid-column: 2;
  padding: 0;
  align-self: start;
}
.whyfree-row-body h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}
.whyfree-row-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

/* ──────────────── Contacts + FAQ ──────────────── */
.contact-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 72px;
}
.contact-action {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--elevated);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.contact-action:hover { transform: translateY(-4px); border-color: rgba(242,90,48,.45); box-shadow: var(--sh-2); }
.contact-action--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-action--primary:hover { border-color: var(--accent); }
.contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sunken);
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}
.contact-action--primary .contact-icon { background: rgba(255,255,255,.2); color: #fff; }
.contact-action-copy { display: flex; flex-direction: column; gap: 8px; }
.contact-action-copy strong { font-size: 20px; line-height: 1.2; }
.contact-action-copy small { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.contact-action--primary .contact-action-copy small { color: rgba(255,255,255,.78); }

.cta-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
  align-items: start;
}
.benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefit-card {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  align-items: center;
}
.benefit-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--canvas);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.benefit-photo--call { background-image: url(photo/cta/step-01-call.jpg); }
.benefit-photo--class { background-image: url(photo/cta/step-02-class.jpg); }
.benefit-photo--choice { background-image: url(photo/cta/step-03-choice.jpg); }
.benefit-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.benefit-body .eyebrow {
  font-size: 11px;
  margin: 0 0 4px;
}
.benefit-body .eyebrow::before { display: none; }
.benefit-card h4 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.benefit-card p { font-size: 14px; margin: 0; line-height: 1.5; color: var(--ink-2); }

.multi-age-line {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.faq {
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background var(--t-base) var(--ease);
  padding: 0 16px;
  border-radius: 0;
  margin: 0 -16px;
  color: var(--ink);
}
.faq-item[open] {
  background: var(--surface-2);
}
.faq-item[open] summary { color: var(--ink); padding-bottom: 8px; }
.faq-item[open] .faq-a { color: var(--ink-2); }
.faq-item summary {
  list-style: none;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sunken);
  display: grid; place-items: center;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-toggle { background: var(--accent); color: white; transform: rotate(45deg); }
.faq-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.faq-a {
  padding: 0 0 24px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 70ch;
  line-height: 1.6;
}

/* ──────────────── Footer ──────────────── */
.site-footer {
  background: var(--sunken);
  color: var(--ink-2);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .brand img { height: 32px; max-width: 200px; }
.footer-brand .brand { color: var(--ink); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; max-width: 32ch; line-height: 1.5; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
  transition: color var(--t-fast) var(--ease);
}
.footer-col .footer-legal-address {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 8px;
}
.footer-col a:hover { color: var(--ink); }

.social-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 8px;
}
.social-pill {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.social-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: grid;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-on-dark-2);
  line-height: 1.6;
}
.footer-bottom .row { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-bottom a:hover { border-bottom-color: var(--ink-2); }

/* ──────────────── Application modal ──────────────── */
body.modal-open { overflow: hidden; }
.apply-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--elevated);
  box-shadow: 0 32px 100px rgba(23,20,16,.28);
  overflow: hidden;
}
.apply-modal::backdrop {
  background: rgba(23,20,16,.62);
  backdrop-filter: blur(6px);
}
.apply-modal:focus { outline: none; }
.apply-modal__panel {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.apply-modal__header {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.apply-modal__header h2 { margin: 0; font-size: clamp(38px, 6vw, 68px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.apply-modal__header p { margin: 18px auto 0; max-width: 620px; color: var(--ink-3); font-size: clamp(16px, 2.1vw, 21px); line-height: 1.45; }
.apply-modal__content { padding: 58px 44px 42px; }
.apply-modal__close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  font: 300 30px/1 Inter, sans-serif;
  cursor: pointer;
}
.apply-modal__close:hover { border-color: var(--accent); color: var(--accent); }
.apply-modal__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.apply-form { margin-top: 42px; }
.apply-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.apply-field { display: block; }
.apply-field--wide { grid-column: 1 / -1; }
.apply-field > span { display: block; margin: 0 0 8px 3px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.apply-field small { color: var(--ink-3); font: inherit; font-weight: 400; }
.apply-field input,
.apply-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.apply-field input { height: 58px; padding: 0 18px; }
.apply-field textarea { min-height: 100px; padding: 16px 18px; resize: vertical; }
.apply-field input::placeholder,
.apply-field textarea::placeholder { color: var(--ink-3); opacity: .75; }
.apply-field input:focus,
.apply-field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(242,90,48,.12); }
.apply-form__consent { display: flex; align-items: flex-start; gap: 11px; margin: 22px 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; cursor: pointer; }
.apply-form__consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; accent-color: var(--accent); }
.apply-form__consent a { color: var(--ink-2); text-underline-offset: 2px; }
.apply-form__submit { display: flex; width: min(380px, 100%); margin: 0 auto; justify-content: center; min-height: 58px; }
.apply-form__submit:disabled { opacity: .62; cursor: wait; }
.apply-form__status { min-height: 20px; margin: 12px 0 0; color: var(--ink-3); font-size: 13px; text-align: center; }
.apply-form__status[data-kind="error"] { color: #b3261e; }
.apply-modal__success { min-height: 560px; padding: 80px 40px; display: grid; place-items: center; align-content: center; text-align: center; }
.apply-modal__success[hidden] { display: none; }
.apply-modal__success-icon { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 36px; }
.apply-modal__success h2 { margin: 0; font-size: clamp(42px, 6vw, 64px); font-weight: 500; letter-spacing: -.04em; }
.apply-modal__success p { margin: 14px 0 30px; color: var(--ink-3); font-size: 19px; }

@media (max-width: 600px) {
  .apply-modal {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .apply-modal__panel { max-height: 100dvh; }
  .apply-modal__content { padding: 76px 18px 28px; }
  .apply-modal__header h2 { font-size: 42px; }
  .apply-modal__header p { margin-top: 12px; font-size: 16px; }
  .apply-modal__close { width: 38px; height: 38px; flex-basis: 38px; }
  .apply-form { margin-top: 30px; }
  .apply-form__grid { grid-template-columns: 1fr; gap: 14px; }
  .apply-field--wide { grid-column: auto; }
  .apply-field input { height: 54px; }
  .apply-form__consent { margin: 18px 0; }
  .apply-modal__success { min-height: 100dvh; padding: 76px 24px; }
}

/* ──────────────── Floating bar (CTA + mobile burger) ──────────────── */
.floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, calc(100% + 80px));
  z-index: 60;
  transition: transform var(--t-slow) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.floating-bar.visible {
  transform: translate(-50%, 0);
}
.floating-bar.visible .floating-burger,
.floating-bar.visible .floating-cta-btn { pointer-events: auto; }
.floating-cta-btn {
  box-shadow: var(--sh-3);
  pointer-events: none;
}
.floating-burger {
  width: 48px; height: 48px;
  border: none;
  background: var(--sunken);
  box-shadow: none;
  pointer-events: none;
}

/* ──────────────── Reveal animations ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .platform-visual, .platform-card:hover .platform-visual { transform: none; transition: none; }
}

/* ──────────────── Responsive ──────────────── */
@media (max-width: 1024px) {
  :root { --section-y: 72px; --container-pad: 24px; }
  .hero { padding: 110px 0 var(--section-y); }
  .nav-pill { display: none; }
  .burger { display: inline-flex; }
  .outcomes-cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "photo photo"
      "c1 c2"
      "c3 c4";
    min-height: 0;
  }
  .outcomes-cards > *:nth-child(1) { min-height: 320px; }
  .hero-grid, .recog-grid, .team-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/9; max-height: 480px; }
  .hero-stats { gap: 0; flex-wrap: nowrap; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .form-card, .quick-contact-card { position: static; }
  .platform-card { grid-template-columns: 1fr; padding: 48px; gap: 44px; }
  .platform-visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .contact-actions { grid-template-columns: 1fr 1fr; }
  .stage summary { grid-template-columns: 60px 1fr auto; padding: 24px; gap: 16px; }
  .stage-body { padding: 0 24px 24px 100px; }
  .stage-title strong { font-size: 18px; }
  .founder-callout { grid-template-columns: 1fr; }
  .founder-photo { min-height: 320px; }
  .founder-body { padding: 36px 28px; }
  .founder-callout h3 { font-size: 26px; }
  .case-card { flex: 0 0 320px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .teacher-card { grid-template-columns: 160px 1fr; }
  .teacher-card .meta { padding: 24px; }
}
@media (max-width: 720px) {
  :root { --section-y: 48px; --container-pad: 20px; }
  .nav-pill { display: none; }
  .header-cta .btn--ghost { display: none; }
  .header-apply { display: none; }
  .brand--header img { width: 148px; }
  .hero { padding: 96px 0 var(--section-y); }
  .hero-media { aspect-ratio: 4/3; max-height: 360px; }
  .hero-stats { gap: 0; flex-wrap: nowrap; padding: 12px 0; }
  .hero-stats > div { padding: 0 8px; }
  .stat-num { font-size: 18px; margin-bottom: 4px; }
  .stat-label { font-size: 11px; }
  .hero-sticker { bottom: 12px; left: 12px; right: 12px; padding: 10px 12px; gap: 10px; font-size: 11px; border-radius: 14px; }
  .hero-sticker .sticker-avatars span { width: 22px; height: 22px; }
  .sticker-text strong { font-size: 12px; }
  .display { font-size: 40px; }
  h2.section-title { font-size: 28px; }

  /* Section spacing — меньше воздуха между блоками */
  .section-head { margin-bottom: 32px; gap: 12px; }
  .lede { margin-bottom: 24px; }

  .recog-cards { grid-template-columns: 1fr; }
  .whyfree-banner { grid-template-columns: 1fr; gap: 12px; }
  .whyfree-row { padding: 24px 22px; column-gap: 14px; grid-template-columns: 44px 1fr; }
  .whyfree-icon { width: 44px; height: 44px; }
  .whyfree-row-body h3 { font-size: 19px; }
  .whyfree-row-body p { font-size: 14.5px; }
  .footer-top { grid-template-columns: 1fr; }
  .stage summary { grid-template-columns: 1fr auto; padding: 20px; gap: 12px; }
  .stage-num { display: none; }
  .stage-body { padding: 0 20px 20px; }
  .teacher-card { grid-template-columns: 1fr; }
  .teacher-card .photo { min-height: 220px; }
  .form-card { padding: 28px; }
  .quick-contact-card { padding: 28px; }
  .quick-contact-card h3 { font-size: 25px; }
  .platform-card { padding: 28px 20px; gap: 32px; }
  .platform-list { grid-template-columns: 1fr; }
  .platform-list li:last-child { grid-column: auto; }
  .platform-visual, .platform-card:hover .platform-visual { border-radius: 20px; transform: none; }
  .contact-actions { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 48px; }
  .contact-action { min-height: 168px; padding: 18px; }
  .contact-action-copy strong { font-size: 17px; }
  .contact-action-copy small { font-size: 12px; }
  .case-card { flex: 0 0 280px; }
  .pill-tabs button {
    padding: 10px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .recog-card .recog-illust {
    aspect-ratio: 4 / 3;
  }

  .outcomes-cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "photo" "c1" "c2" "c3" "c4";
    min-height: 0;
    gap: 14px;
  }
  .oc-photo { min-height: 420px; aspect-ratio: 4/5; }
  .oc-card { min-height: 0; padding: 14px 14px 0; overflow: visible; }
  .oc-card-thumb {
    aspect-ratio: 16/10;
    min-height: 0;
    flex: 0 0 auto;
    background-color: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }
  .oc-card-body { padding: 16px 8px 18px; }

  .oc-tab { padding: 8px 14px; font-size: 13px; }

  .oc-card-thumb canvas {
    object-fit: contain;
    object-position: center;
  }
  .oc-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
  }

  .format-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
    text-align: left;
  }
  .format-card .fc-clock {
    width: 64px; height: 64px;
    font-size: 18px;
    margin: 0;
  }
  .format-card h3 { font-size: 20px; }
  .format-card p { font-size: 14px; }

  .founder-callout { grid-template-columns: 1fr; }
  .founder-photo { min-height: 280px; }
  .founder-body { padding: 28px 24px; }
  .founder-callout h3 { font-size: 24px; }

  .cases-track-wrap {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }

  .benefit-card {
    padding: 14px 14px 0;
    grid-template-columns: 1fr;
  }
  .benefit-body { padding: 12px 6px 14px; }
  .benefit-card h4 { font-size: 16px; }
  .benefit-card p { font-size: 13.5px; }

  .site-header .burger { display: none; }
  .floating-burger { display: inline-flex; }

  .mobile-menu {
    position: fixed;
    bottom: 92px;
    top: auto;
    left: 16px;
    right: 16px;
    transform: translateY(20px);
  }
}

@media (max-width: 480px) {
  .contact-actions { grid-template-columns: 1fr; }
  .contact-action { min-height: 150px; }
}


/* ──────────────── Legal pages ──────────────── */
.legal-page {
  background: var(--paper, #FBFAF7);
  color: var(--ink, #1A1A1A);
  min-height: 100vh;
}
.legal-hero {
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--line, #E8E2D7);
}
.legal-hero .eyebrow { margin-bottom: 12px; }
.legal-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
  max-width: 18ch;
}
.legal-hero .legal-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-2, #7A7670);
  margin-top: 16px;
}
.legal-body {
  padding: 56px 0 96px;
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink, #1A1A1A);
}
.legal-body h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  font-weight: 600;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 16px;
  margin: 28px 0 10px;
  font-weight: 600;
}
.legal-body p { margin: 0 0 14px; color: var(--ink-2, #4A4742); }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2, #4A4742); }
.legal-body li { margin: 0 0 6px; }
.legal-body a { color: var(--accent, #F25A30); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-thickness: 2px; }
.legal-body strong { color: var(--ink, #1A1A1A); font-weight: 600; }
.legal-body .legal-callout {
  background: #FFF6F0;
  border: 1px solid #FFD9C5;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
}
.legal-body .legal-callout p:last-child { margin-bottom: 0; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2, #7A7670);
  margin-bottom: 20px;
  text-decoration: none;
}
.legal-back:hover { color: var(--accent, #F25A30); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(26,26,26,0.96);
  color: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  z-index: 200;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease, cubic-bezier(.2,.7,.2,1)), opacity 0.4s var(--ease, cubic-bezier(.2,.7,.2,1));
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { color: #FFB69A; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-btn {
  background: #FBFAF7;
  color: #1A1A1A;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.cookie-btn--primary:hover { background: #fff; }
.cookie-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.86);
  border-color: rgba(255,255,255,0.28);
}
.cookie-btn--ghost:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 14px 16px;
  }
  .cookie-actions {
    justify-content: flex-start;
    width: 100%;
  }
}
