/* ============================================================
   Agile Kidz · сопровождение поступления
   Визуальная система экосистемы Kids Start:
   тёплая бумага, янтарный акцент, Inter + JetBrains Mono.
   Mobile first. Много воздуха. Метафора маршрута.
   ============================================================ */

:root {
  --paper: #FAFAF7;
  --paper-2: #F2F1EC;
  --white: #FFFFFF;
  --ink: #16181D;
  --ink-2: #22252B;
  --text: #1D1F24;
  --muted: #6B6F78;
  --dim: #9A9EA6;
  --line: rgba(22, 24, 29, 0.1);
  --line-strong: rgba(22, 24, 29, 0.2);
  --line-inv: rgba(250, 250, 247, 0.14);
  --amber: #E8960C;
  --amber-deep: #C97F05;
  --amber-soft: rgba(232, 150, 12, 0.1);
  --error: #D6452E;
  --error-soft: rgba(214, 69, 46, 0.12);

  --font-ui: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-h1: clamp(2rem, 7vw, 4.5rem);
  --fs-h2: clamp(1.625rem, 3.6vw, 2.625rem);
  --fs-h3: 1.125rem;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --space-9: 112px;

  --shadow-card: 0 12px 32px rgba(22, 24, 29, 0.06);
  --shadow-lift: 0 16px 40px rgba(22, 24, 29, 0.1);
  --shadow-form: 0 24px 64px rgba(0, 0, 0, 0.35);

  --container: 1120px;
  --header-h: 64px;
  --tr: 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: hidden;
}

body {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--container);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.mono--amber {
  color: var(--amber);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  transition: opacity var(--tr), background var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
  text-align: center;
  white-space: normal;
  max-width: 100%;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

.btn--amber {
  background: var(--paper);
  color: var(--ink);
}

.btn--amber:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 16px 34px;
  font-size: 16px;
}

.btn--sm {
  padding: 9px 20px;
  font-size: 14px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 247, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr);
}

.header--scrolled {
  border-color: var(--line);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  flex: none;
}

.logo__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 10px -6px 0 0 var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--tr);
}

.nav__link:hover {
  color: var(--text);
}

.header__cta {
  margin-left: 8px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.burger span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--tr), opacity var(--tr);
}

.burger--active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger--active span:nth-child(2) {
  opacity: 0;
}

.burger--active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 56px;
  overflow: hidden;
}

.hero__map {
  position: absolute;
  top: 0;
  right: 0;
  width: min(70%, 420px);
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  overflow: hidden;
  mask-image: radial-gradient(90% 80% at 70% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(90% 80% at 70% 40%, #000 0%, transparent 72%);
}

.hero__svg {
  width: 100%;
  height: 100%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-size: clamp(1.85rem, 6.2vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: min(18ch, 100%);
  margin-bottom: 22px;
  overflow-wrap: break-word;
}

.hero__title strong {
  font-weight: 600;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: 18px;
}

.hero__note {
  font-size: 15px;
  color: var(--text);
  max-width: 48ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero__hint {
  font-size: 14px;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
  border-top: none;
}

.section--soft {
  background: var(--paper-2);
}

.section__head {
  margin-bottom: 40px;
  max-width: 720px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__label {
  display: block;
  margin-bottom: 16px;
}

.section__title {
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.section__desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}

.section--ink .section__desc,
.section--ink .section__title {
  color: var(--paper);
}

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  gap: 14px;
}

.cards-grid,
.compare,
.routes-map,
.mentor-scheme,
.signup-grid,
.expert {
  min-width: 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-width: 0;
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card--lg {
  padding: 32px 28px;
  min-height: 100%;
}

.card__num {
  display: block;
  margin-bottom: 28px;
  color: var(--amber);
}

.card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.risk-quote {
  margin-top: 36px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(232, 150, 12, 0.28);
}

.risk-quote p {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 28px 0 48px;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.cta-band__text {
  font-size: 17px;
  max-width: 48ch;
  line-height: 1.5;
}

/* ---------- Solution / timing ---------- */
.solution__inner,
.timing__inner {
  max-width: 760px;
}

.solution__text,
.timing__text,
.mentor-copy {
  display: grid;
  gap: 16px;
  font-size: 17px;
  line-height: 1.75;
}

.section--ink .solution__text,
.section--ink .timing__text {
  color: rgba(250, 250, 247, 0.72);
}

.section--ink strong {
  color: var(--paper);
  font-weight: 600;
}

/* ---------- Routes map ---------- */
.routes-map {
  display: grid;
  gap: 28px;
}

.routes-map__trunk {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 28px;
}

.routes-map__trunk::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--amber), var(--line-strong));
}

.routes-node {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.routes-node::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--amber);
  box-shadow: inset 0 0 0 3px var(--amber);
}

.routes-map__branches {
  display: grid;
  gap: 12px;
}

.routes-branch {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: border-color var(--tr), box-shadow var(--tr);
}

.routes-map.in-view .routes-branch {
  animation: fadeUp 0.55s ease forwards;
}

.routes-map.in-view .routes-branch:nth-child(1) { animation-delay: 0.05s; }
.routes-map.in-view .routes-branch:nth-child(2) { animation-delay: 0.15s; }
.routes-map.in-view .routes-branch:nth-child(3) { animation-delay: 0.25s; }
.routes-map.in-view .routes-branch:nth-child(4) { animation-delay: 0.35s; }

.routes-branch:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-card);
}

.routes-branch h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.routes-caption {
  margin-top: 28px;
  max-width: 58ch;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Grade tabs ---------- */
.tabs__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.tabs__btn {
  padding: 12px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}

.tabs__btn:hover,
.tabs__btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.tabs__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.tabs__panel[hidden] {
  display: none;
}

.tabs__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.focus-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.focus-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 1.5px;
  background: var(--amber);
}

.tabs__insight {
  padding: 18px 20px;
  border-left: 2px solid var(--amber);
  background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* ---------- Process strand ---------- */
.strand {
  position: relative;
  max-width: 760px;
}

.strand::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--amber), var(--line-strong) 70%, transparent);
}

.strand__node {
  position: relative;
  padding: 0 0 40px 48px;
}

.strand__node:last-child {
  padding-bottom: 0;
}

.strand__dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--amber);
}

.strand__dot::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.strand__node h3 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* ---------- Mentor scheme ---------- */
.mentor-grid {
  display: grid;
  gap: 36px;
}

.mentor-scheme {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.mentor-scheme__node {
  text-align: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
}

.mentor-scheme__node--accent {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.mentor-scheme__link {
  text-align: center;
  color: var(--amber);
  font-size: 20px;
  line-height: 1;
}

.mentor-caption {
  margin-top: 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 48ch;
}

/* ---------- Compare ---------- */
.compare {
  display: grid;
  gap: 14px;
}

.compare__col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.compare__col--accent {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.compare__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 22px;
}

.compare__col ul {
  display: grid;
  gap: 14px;
}

.compare__col li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.compare__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 1.5px;
  background: var(--dim);
}

.compare__col--accent li {
  color: rgba(250, 250, 247, 0.85);
}

.compare__col--accent li::before {
  background: var(--amber);
}

/* ---------- Cases / expert ---------- */
.cases-grid {
  display: grid;
  gap: 14px;
}

.case-card {
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.case-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.case-card h3 {
  font-size: 18px;
  margin-bottom: 18px;
}

.case-card dl {
  display: grid;
  gap: 14px;
}

.case-card dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.case-card dd {
  font-size: 15px;
  color: var(--muted);
}

.expert {
  display: grid;
  gap: 32px;
  align-items: start;
}

.expert__photo {
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 16px 16px 0 var(--amber-soft);
  position: relative;
}

.expert__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert__photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background:
    linear-gradient(var(--amber), var(--amber)) top left / 22px 1.5px,
    linear-gradient(var(--amber), var(--amber)) top left / 1.5px 22px,
    linear-gradient(var(--amber), var(--amber)) bottom right / 22px 1.5px,
    linear-gradient(var(--amber), var(--amber)) bottom right / 1.5px 22px;
  background-repeat: no-repeat;
}

.expert__name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.expert__role {
  color: var(--muted);
  margin-bottom: 22px;
}

.expert__creds {
  display: grid;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.expert__creds li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.expert__creds b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--amber);
  flex: none;
  width: 92px;
}

.expert__message {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.6;
  padding-left: 20px;
  border-left: 2px solid var(--amber);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  transition: color var(--tr);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--amber-deep);
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font-weight: 300;
  font-size: 22px;
  color: var(--dim);
  transition: transform var(--tr), color var(--tr);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--amber);
}

.faq-item p {
  padding: 0 44px 24px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Final CTA + form ---------- */
.signup-grid {
  display: grid;
  gap: 48px;
}

.signup__lead {
  font-size: 17px;
  color: rgba(250, 250, 247, 0.72);
  line-height: 1.7;
  margin: 8px 0 28px;
  max-width: 46ch;
}

.signup__hint {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(250, 250, 247, 0.55);
}

.form {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-form);
}

.form__title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.form__desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}

.form-group select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--dim) 50%),
    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.form-group input.is-error,
.form-group select.is-error,
.checkbox-label.is-error input {
  border-color: var(--error);
}

.form-group textarea {
  resize: vertical;
  min-height: 96px;
}

.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 20px;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--amber);
  flex: none;
}

.checkbox-label a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkbox-label.is-error {
  color: var(--error);
}

.form-message {
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
  min-height: 1.4em;
}

.form-message--success {
  color: var(--amber-deep);
}

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

.form.is-success {
  display: flex;
  align-items: center;
  min-height: 320px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(250, 250, 247, 0.7);
  padding: 0 0 32px;
}

.footer__inner {
  display: grid;
  gap: 36px;
  padding: 48px 0;
  border-top: 1px solid var(--line-inv);
}

.footer .logo {
  color: var(--paper);
  margin-bottom: 14px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 36ch;
}

.footer h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.4);
  margin-bottom: 18px;
}

.footer__links,
.footer__contact {
  display: grid;
  gap: 12px;
}

.footer__links a,
.footer__contact a {
  font-size: 14.5px;
  width: fit-content;
  transition: color var(--tr);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--amber);
}

.footer__bottom {
  border-top: 1px solid var(--line-inv);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(250, 250, 247, 0.4);
}

/* ---------- Privacy page ---------- */
.page-main {
  padding: calc(var(--header-h) + 56px) 0 80px;
}

.page-content {
  max-width: 720px;
}

.page-content h1 {
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.page-content p,
.page-content li {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-content ul {
  list-style: disc;
  padding-left: 20px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

body.no-motion .reveal,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- 430+ ---------- */
@media (min-width: 430px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }
}

/* ---------- Tablet 768 ---------- */
@media (min-width: 768px) {
  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .hero {
    padding: calc(var(--header-h) + 56px) 0 72px;
  }

  .hero__map {
    width: 52%;
    opacity: 0.55;
    right: 0;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .section {
    padding: var(--space-9) 0;
  }

  .section__head {
    margin-bottom: 56px;
  }

  .cards-grid--2,
  .cards-grid--3,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .mentor-scheme {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mentor-scheme__node {
    flex: 1;
  }

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

  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
  }

  .form {
    padding: 40px 36px;
  }

  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    padding: 56px 0;
  }
}

/* ---------- Desktop 1024 ---------- */
@media (min-width: 1024px) {
  .hero__title {
    max-width: 16ch;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid--3 .card:last-child:nth-child(7) {
    grid-column: 2;
  }

  .routes-map {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
  }

  .mentor-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
  }

  .expert {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 72px;
    align-items: center;
  }

  .signup-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .strand__node {
    padding-left: 64px;
    padding-bottom: 56px;
  }
}

/* ---------- Wide 1440 / 1920 ---------- */
@media (min-width: 1440px) {
  .hero {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 64px;
  }

  .hero__title {
    max-width: 20ch;
    font-size: clamp(2.6rem, 3.6vw, 3.5rem);
  }

  .hero__map {
    width: 46%;
  }
}

/* Header nav: burger below 1024 to keep CTA readable */
@media (max-width: 1023px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 20px;
    color: var(--text);
    font-weight: 600;
  }

  .header__cta {
    margin-left: 0;
  }

  .burger {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .hero__actions .btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .hero__map {
    opacity: 0.16;
    width: 58%;
  }

  .card,
  .card--lg,
  .compare__col,
  .form,
  .tabs__panel {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .routes-branch {
    opacity: 1 !important;
    transform: none !important;
  }
}
