/* ============================================================
   Agile Kidz Репетиторы
   Визуальная система на базе Kids Start v2 (hybrid XL):
   светлая бумага + технический mono-слой + янтарный акцент.
   ============================================================ */

: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);
  --live: #27b36a;
  --error: #d6452e;

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

  --r: 18px;
  --header-h: 64px;
  --tr: 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
  --sticky-h: 76px;
}

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

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

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

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

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

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

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

.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);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  transition:
    opacity var(--tr),
    background var(--tr),
    border-color var(--tr),
    transform var(--tr),
    box-shadow var(--tr);
  white-space: nowrap;
}

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

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

.btn--amber {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 6px 20px rgba(232, 150, 12, 0.3);
}

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

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

.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;
}

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

/* ---------- 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),
    box-shadow var(--tr);
}

.header--scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 24px rgba(22, 24, 29, 0.06);
}

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

.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
  flex: none;
}

.logo__name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.logo__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

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

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

.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 {
  padding: calc(var(--header-h) + 88px) 0 0;
  position: relative;
}

.hero__topo {
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  mask-image: radial-gradient(90% 90% at 70% 35%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(90% 90% at 70% 35%, #000 0%, transparent 72%);
}

.hero__topo g {
  transform-box: fill-box;
  transform-origin: 60% 42%;
  animation: topoBreathe 26s ease-in-out infinite alternate;
}

@keyframes topoBreathe {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(3deg) scale(1.04);
  }
}

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

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  animation: liveDot 1.9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes liveDot {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 179, 106, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(39, 179, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 179, 106, 0);
  }
}

.hero__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 18ch;
  margin-bottom: 28px;
}

.hero__title strong {
  font-weight: 650;
}

.hero__title .accent {
  color: var(--amber);
}

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

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  max-width: 58ch;
}

.hero__chips li {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero__reassure {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
}

.hero__visual {
  position: relative;
  min-height: 380px;
}

.hero__visual img {
  width: 100%;
  height: auto;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding-bottom: 112px;
}

.hero__stat {
  padding: 26px 24px 0 0;
}

.hero__stat + .hero__stat {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero__stat strong {
  display: block;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 5px;
}

.hero__stat span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Секции ---------- */
.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section--ink {
  background-color: var(--ink);
  color: var(--paper);
  border-top: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='560' viewBox='0 0 640 560'%3E%3Cg fill='none' stroke='%23FAFAF7' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M320 30C450 18 560 80 610 170c45 80 20 190-75 235-100 46-215 17-268-63-53-82-49-208 53-312Z'/%3E%3Cpath d='M336 86C440 74 530 128 570 200c36 62 16 145-60 180-80 37-172 12-215-56-42-68-38-160 41-238Z'/%3E%3Cpath d='M352 142c78-9 148 32 178 85 27 47 12 103-45 130-60 29-129 9-162-42-32-51-29-116 29-173Z'/%3E%3C/g%3E%3C/svg%3E");
  background-position: right -140px top -90px;
  background-size: 720px auto;
  background-repeat: no-repeat;
}

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

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

.section__head--center .section__desc {
  margin-inline: auto;
}

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

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

.creds-title {
  margin-bottom: 8px;
  font-weight: 600;
}

.section__title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

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

.section--ink .section__desc {
  color: rgba(250, 250, 247, 0.6);
}

.section__note {
  margin-top: 36px;
  font-size: 17px;
  line-height: 1.7;
  max-width: 62ch;
}

.section__cta {
  margin-top: 40px;
}

.section__cta--center {
  text-align: center;
}

/* ---------- Карточки-сетки (method / format из v2) ---------- */
.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.method__item {
  background: var(--white);
  padding: 40px 36px;
  transition:
    background var(--tr),
    transform var(--tr);
}

.method__item:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

.method__item .mono {
  display: block;
  margin-bottom: 32px;
}

.method__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  color: var(--amber);
}

.method__item h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

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

.format {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.format__item {
  background: var(--white);
  padding: 34px 30px;
  transition:
    background var(--tr),
    transform var(--tr);
}

.format__item:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

.format__item .mono {
  display: block;
  margin-bottom: 28px;
}

.format__item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}

.format__item p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Сравнение ---------- */
.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
}

.fit__col {
  padding: 44px;
}

.fit__col + .fit__col {
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.fit__col h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 26px;
}

.fit__sign {
  width: 26px;
  height: 26px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 13px;
}

.fit__col--yes .fit__sign {
  background: var(--amber);
  color: #fff;
}

.fit__col--no .fit__sign {
  border: 1px solid var(--line-strong);
  color: var(--dim);
}

.fit__col ul {
  display: grid;
  gap: 15px;
}

.fit__col li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
}

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

.fit__col--no li {
  color: var(--muted);
}

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

.fit-note {
  margin-top: 28px;
  padding: 22px 28px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

/* ---------- Как мы работаем: нить ---------- */
.strand {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}

.strand::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--amber), var(--line-strong) 65%, transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
}

.strand.in-view::before {
  transform: scaleY(1);
}

.strand__node {
  position: relative;
  padding: 0 0 68px 64px;
}

.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);
  display: flex;
  align-items: center;
  justify-content: center;
  scale: 0.4;
  opacity: 0;
  transition:
    scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
  transition-delay: var(--d, 0ms);
}

.strand.in-view .strand__dot {
  scale: 1;
  opacity: 1;
}

.strand__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.strand__node:nth-child(n + 2) .strand__dot {
  border-color: var(--line-strong);
}

.strand__node:nth-child(n + 2) .strand__dot::after {
  background: var(--dim);
}

.strand__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

.strand__node h3 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.strand__goal {
  font-size: 15px;
  color: var(--muted);
  max-width: 60ch;
}

.strand-cta {
  text-align: center;
  margin-top: 56px;
}

/* ---------- Диагностика ---------- */
.diag-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.creds {
  display: grid;
  border-top: 1px solid var(--line);
}

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

.creds b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--amber);
  flex: none;
  width: 28px;
}

.highlight {
  margin-top: 28px;
  padding-left: 24px;
  border-left: 2px solid var(--amber);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.diag-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 40px 36px;
}

.diag-panel p {
  color: var(--muted);
  margin: 12px 0 28px;
}

.diag-panel__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 16px;
}

/* ---------- Placeholder-слоты ---------- */
.slot {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  min-height: 180px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  transition: border-color var(--tr);
}

.slot:hover {
  border-color: var(--amber);
}

.slot p {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.slot span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  max-width: 46ch;
}

.teacher-cards,
.review-cards {
  margin-top: 28px;
}

/* ---------- Результат: тёмная лента ---------- */
.result {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px 96px;
  align-items: center;
  border-radius: var(--r);
  padding: 48px 56px;
  color: var(--paper);
  background-color: var(--ink);
  border: 1px solid rgba(232, 150, 12, 0.28);
}

.result::before,
.result::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.result::before {
  left: -140px;
  top: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 150, 12, 0.17), transparent 70%);
}

.result::after {
  right: -150px;
  bottom: -170px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(232, 150, 12, 0.14), transparent 70%);
}

.result > * {
  position: relative;
  z-index: 1;
}

.result h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 16ch;
  line-height: 1.3;
}

.result h3 .mono {
  display: block;
  margin-bottom: 14px;
}

.result p {
  font-size: 16px;
  color: rgba(250, 250, 247, 0.75);
  line-height: 1.7;
  max-width: 46ch;
}

/* ---------- Стоимость ---------- */
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 48px 44px;
  background: var(--white);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}

.price-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.price-card p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

.price-card small {
  display: block;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--dim);
}

.price-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
}

/* ---------- Микро-CTA ---------- */
.micro-cta {
  margin-top: 28px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
}

.micro-cta a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
}

.micro-cta a:hover {
  color: var(--amber-deep);
}

/* ---------- 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: 24px 48px 24px 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 48px 26px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item[open] p {
  animation: faqIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Форма ---------- */
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.signup__benefits {
  display: grid;
  margin: 34px 0;
  border-top: 1px solid var(--line-inv);
}

.signup__benefits li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-inv);
  font-size: 15px;
  color: rgba(250, 250, 247, 0.75);
}

.signup__benefits b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--amber);
  flex: none;
  width: 28px;
}

.signup__start {
  font-size: 14px;
  color: rgba(250, 250, 247, 0.6);
}

.signup__start strong {
  color: var(--amber);
  font-weight: 600;
}

.form {
  background: var(--white);
  color: var(--text);
  border-radius: var(--r);
  padding: 44px 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

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

.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: 9px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 16px;
  transition:
    border-color var(--tr),
    box-shadow var(--tr),
    background var(--tr);
}

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

.form-group .optional {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dim);
  margin-left: 6px;
}

.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.error,
.form-group select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(214, 69, 46, 0.12);
}

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

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

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

.form-message {
  margin-top: 18px;
  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-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* ---------- Финальный CTA ---------- */
.final-cta {
  background: var(--amber);
  color: #fff;
  text-align: center;
  padding: 88px 0;
  border-top: none;
}

.final-cta .section__title {
  max-width: 18ch;
  margin-inline: auto;
}

.final-cta .section__desc {
  color: rgba(255, 255, 255, 0.86);
  margin-inline: auto 0;
  margin: 0 auto 32px;
}

.final-cta .btn--primary:hover {
  background: #000;
}

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

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line-inv);
  margin-bottom: 8px;
}

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

.footer .logo__sub {
  color: rgba(250, 250, 247, 0.5);
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer h4 {
  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: 20px;
}

.footer__links,
.footer__contact {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer__links a,
.footer__contact a {
  font-size: 14.5px;
  transition: color var(--tr);
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

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

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

.footer__legal a:hover {
  color: var(--amber);
}

.outcome-grid {
  margin-top: 28px;
}

/* ---------- Плавающая и sticky CTA ---------- */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  box-shadow: 0 12px 32px rgba(22, 24, 29, 0.18);
  transition:
    opacity var(--tr),
    transform var(--tr);
}

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transition:
    opacity var(--tr),
    transform var(--tr);
}

body.menu-open .sticky-cta,
body.menu-open .float-cta,
.float-cta.is-hidden,
.sticky-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 99;
  }

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

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

  .nav .btn {
    font-size: 16px;
    padding: 14px 28px;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 1000px) {
  .hero__topo {
    width: 100%;
    opacity: 0.35;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__visual {
    max-width: 480px;
    min-height: 0;
  }

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

  .method,
  .format {
    grid-template-columns: 1fr 1fr;
  }

  .signup-grid,
  .diag-grid,
  .price-card,
  .result {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

@media (max-width: 768px) {
  .container {
    width: min(1120px, 100% - 32px);
  }

  body {
    padding-bottom: var(--sticky-h);
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 36px);
    max-width: none;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn,
  .section__cta .btn,
  .strand-cta .btn {
    width: 100%;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    padding-bottom: 72px;
    margin-top: 56px;
  }

  .hero__stat {
    padding: 24px 0 0;
  }

  .hero__stat + .hero__stat {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    margin-top: 16px;
    padding-top: 20px;
  }

  .method,
  .format,
  .fit {
    grid-template-columns: 1fr;
  }

  .fit__col + .fit__col {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .fit__col,
  .method__item,
  .form,
  .price-card,
  .diag-panel {
    padding: 28px 22px;
  }

  .price-card__actions {
    min-width: 0;
    width: 100%;
  }

  .price-card__actions .btn {
    width: 100%;
  }

  .strand__node {
    padding-left: 48px;
    padding-bottom: 52px;
  }

  .result {
    padding: 32px 24px;
  }

  .form {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  }

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

  .float-cta {
    display: none;
  }

  .sticky-cta {
    display: block;
  }

  .sticky-cta .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 28px;
  }

  .section__title {
    font-size: 26px;
  }

  .final-cta {
    padding: 64px 0;
  }
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .strand::before {
    transform: scaleY(1) !important;
  }

  .strand__dot {
    scale: 1 !important;
    opacity: 1 !important;
  }
}
