:root {
  --bg: #0f0d0c;
  --bg-2: #141110;
  --surface: #1a1614;
  --surface-2: #221c18;
  --line: rgba(233, 216, 196, 0.12);
  --line-2: rgba(233, 216, 196, 0.24);
  --text: #f3ebe3;
  --muted: #a99c90;
  --cream: #e9d8c4;
  --cream-2: #f5eadf;
  --mocha: #5b3a2e;
  --mocha-2: #7a5343;
  --ink: #120f0d;
  --paper: #f3ebe3;
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 11vw, 144px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

/* Плавная прокрутка Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Лёгкое плёночное зерно поверх всей страницы */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Акцентные слова: курсив с засечками */
.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1em;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 0 rgba(233, 216, 196, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

.hand-note {
  font-family: var(--hand);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.05;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, translate 0.4s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
  color: var(--ink);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  translate: -110% 0;
  transition: translate 0.9s var(--ease-out);
}

.btn-primary:hover {
  background: var(--cream-2);
}

.btn-primary:hover::after {
  translate: 110% 0;
}

.btn-primary .i-arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover .i-arrow {
  transform: translateX(3px);
}

.btn-lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 15px;
}

.btn-outline {
  border-color: var(--line-2);
  color: var(--cream);
}

.btn-outline:hover {
  border-color: var(--cream);
  background: rgba(233, 216, 196, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-inline: 12px;
}

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

.i-arrow {
  width: 18px;
  height: 18px;
  flex: none;
}

.text-link {
  color: var(--cream);
  border-bottom: 1px solid var(--line-2);
  font-weight: 600;
}

.text-link:hover {
  border-color: var(--cream);
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(15, 13, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.logo-text small {
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
}

.nav a:not(.btn) {
  position: relative;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.nav a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.25s, opacity 0.25s;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  padding-block: clamp(24px, 4vw, 56px) clamp(72px, 8vw, 112px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -30%;
  right: -15%;
  width: min(1100px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(122, 83, 67, 0.38), rgba(91, 58, 46, 0.12) 55%, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 6.1vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 .accent {
  display: block;
  margin-top: 0.06em;
}

.lead {
  max-width: 480px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 40px;
}

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.play-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--cream);
  transition: border-color 0.2s, background-color 0.2s;
}

.play-circle::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  opacity: 0;
  animation: ripple 2.8s ease-out infinite;
}

.play-circle svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.play-link:hover .play-circle {
  border-color: var(--cream);
  background: rgba(233, 216, 196, 0.08);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 480px;
}

.avatars {
  display: flex;
  flex: none;
}

.avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  transition: transform 0.4s var(--ease-out);
}

.avatars img + img {
  margin-left: -12px;
}

.hero-proof:hover .avatars img {
  transform: translateX(calc(var(--k, 0) * 1px));
}

.avatars img:nth-child(2) { --k: 4; }
.avatars img:nth-child(3) { --k: 8; }
.avatars img:nth-child(4) { --k: 12; }

.hero-proof p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-proof b {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 480px);
  aspect-ratio: 3 / 4;
}

.hero-disc {
  position: absolute;
  inset: 10% -6% 4% 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--mocha-2), var(--mocha) 60%, #3f271f);
}

.hero-img,
.hero-video {
  position: absolute;
  inset: 0 6% 0 6%;
  width: 88%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px 999px 28px 28px;
}

.hero-img {
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85);
}

.hero-video {
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.hero-video.is-ready {
  opacity: 1;
}

.doodle-crown {
  position: absolute;
  top: 1%;
  left: -3%;
  width: 56px;
  color: var(--cream);
  transform: rotate(-14deg);
}

.hero-note {
  position: absolute;
  top: 7%;
  right: -12%;
  font-size: clamp(24px, 2.4vw, 32px);
  transform: rotate(-8deg);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* Стеклянные карточки вокруг фото */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(233, 216, 196, 0.2);
  border-radius: 18px;
  background: rgba(24, 19, 17, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
  translate: calc(var(--hx, 0) * 16px) calc(var(--hy, 0) * 12px);
  transition: translate 0.8s var(--ease-out);
}

.fc-grammar {
  top: 30%;
  left: -16%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.fc-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.fc-grammar b {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  color: var(--cream);
}

.fc-example {
  font-size: 12px;
  color: var(--text);
}

.fc-diag {
  right: -10%;
  bottom: 14%;
}

.fc-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
}

.fc-check svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fc-diag b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.fc-diag small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.spin-badge {
  position: absolute;
  z-index: 2;
  left: -4%;
  bottom: 3%;
  width: 118px;
  height: 118px;
  fill: var(--cream);
  animation: spin 24s linear infinite;
}

.spin-badge text {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
  font-family: var(--font);
}

/* ---------- Преимущества ---------- */

.benefits {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

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

.benefit {
  display: flex;
  gap: 16px;
  padding: 34px 24px;
  transition: background-color 0.4s;
}

.benefit:hover {
  background: rgba(233, 216, 196, 0.03);
}

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

.benefit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--cream);
  transition: background-color 0.3s, color 0.3s;
}

.benefit:hover .benefit-icon {
  background: var(--cream);
  color: var(--ink);
}

.benefit-icon svg,
.socials svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.benefit p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Бегущая строка ---------- */

.marquee {
  overflow: hidden;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee span,
.marquee i {
  margin-right: 40px;
  white-space: nowrap;
}

.marquee span {
  font-size: clamp(32px, 4.6vw, 60px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 216, 196, 0.4);
}

.marquee span:nth-of-type(odd) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  -webkit-text-stroke: 0;
}

.marquee i {
  font-style: normal;
  font-size: 22px;
  color: var(--mocha-2);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* ---------- Секции ---------- */

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

.section-head h2 {
  margin-top: 22px;
  font-size: clamp(36px, 5.2vw, 68px);
}

.section-head.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 32px;
}

.head-aside {
  display: grid;
  justify-items: start;
  gap: 24px;
  color: var(--muted);
  max-width: 440px;
  justify-self: end;
}

.section-lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 560px;
}

.section-lead b {
  color: var(--text);
  font-weight: 600;
}

/* Кремовые панели: свой набор цветов внутри */
.section--light {
  --text: #1e1512;
  --muted: #6b5a4f;
  --cream: #7a5343;
  --line: rgba(59, 33, 28, 0.13);
  --line-2: rgba(59, 33, 28, 0.26);
  --surface: #fbf6f1;
  background: var(--paper);
  color: var(--text);
  border-radius: clamp(28px, 4vw, 52px);
  margin-inline: clamp(8px, 1.2vw, 16px);
}

/* ---------- Курсы ---------- */

.tabs {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.tab-code {
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.8;
}

.tab[aria-selected="true"] {
  background: var(--cream);
  color: var(--ink);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}

.course-card:hover {
  border-color: var(--line-2);
  transform: translateY(-6px);
}

.course-card img,
.course-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.9s var(--ease-out), opacity 1s ease;
}

.course-video {
  opacity: 0;
  pointer-events: none;
}

.course-video.is-ready {
  opacity: 1;
}

.course-card:hover img,
.course-card:hover .course-video {
  transform: scale(1.05);
}

.course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 13, 12, 0.35) 0%, rgba(15, 13, 12, 0) 22%, rgba(15, 13, 12, 0) 38%, rgba(15, 13, 12, 0.82) 64%, rgba(15, 13, 12, 0.97) 100%);
}

.course-num {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--cream);
}

.course-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding: 24px;
}

.course-body h3 {
  font-size: 22px;
  font-weight: 500;
}

.course-body p {
  color: #cbbfb3;
  font-size: 13px;
  line-height: 1.5;
}

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.chip {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cream);
  background: rgba(15, 13, 12, 0.4);
}

.round-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  transition: transform 0.4s var(--ease-out), background-color 0.2s, translate 0.4s var(--ease-out);
}

.round-btn:hover {
  background: var(--cream-2);
  transform: rotate(-45deg);
}

/* ---------- Большая цитата ---------- */

.statement {
  padding-block: clamp(40px, 6vw, 88px) clamp(88px, 11vw, 150px);
}

.statement-text {
  max-width: 1080px;
  font-size: clamp(30px, 4.6vw, 66px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.statement-text em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08em;
  color: var(--cream);
}

.sw {
  opacity: 0.16;
  transition: opacity 0.5s ease;
}

.sw.on {
  opacity: 1;
}

/* ---------- Секрет ---------- */

.secret {
  background:
    radial-gradient(60% 60% at 15% 30%, rgba(91, 58, 46, 0.35), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.secret-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.secret-video {
  position: sticky;
  top: 110px;
}

.video-frame {
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line-2);
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secret-video .hand-note {
  margin-top: 18px;
  text-align: center;
  font-size: 24px;
  transform: rotate(-3deg);
}

.secret-body h2 {
  margin-top: 22px;
  font-size: clamp(32px, 4.2vw, 56px);
}

.tense-wrap {
  margin-top: 36px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tense-table {
  display: grid;
  grid-template-columns: 110px repeat(4, minmax(118px, 1fr));
  gap: 6px;
  min-width: 600px;
}

.t-head,
.t-row-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.t-head b,
.t-row-head b {
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
}

.t-corner {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--cream);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.t-cell {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.t-cell:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.t-cell[aria-pressed="true"] {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
  box-shadow: 0 12px 30px -14px rgba(233, 216, 196, 0.55);
}

.tense-detail {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 32px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(233, 216, 196, 0.04);
}

.td-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.td-title h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--cream);
}

.td-title span {
  color: var(--muted);
  font-size: 13px;
}

.td-formula {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.td-example {
  font-size: 16px;
}

.td-example b {
  color: var(--cream);
}

.td-ua {
  color: var(--muted);
  font-size: 14px;
}

.tense-detail.swap > * {
  animation: fadeUp 0.55s var(--ease-out) both;
}

.tense-detail.swap > :nth-child(2) { animation-delay: 0.05s; }
.tense-detail.swap > :nth-child(3) { animation-delay: 0.1s; }
.tense-detail.swap > :nth-child(4) { animation-delay: 0.15s; }

/* ---------- Как учимся ---------- */

.approach-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.approach-side {
  position: sticky;
  top: 120px;
}

.approach-side h2 {
  margin-top: 22px;
  font-size: clamp(36px, 5vw, 64px);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
}

.fact b {
  display: block;
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.fact span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-card {
  position: sticky;
  top: calc(112px + var(--n) * 22px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 30px;
  align-items: start;
  min-height: 250px;
  padding: clamp(28px, 3.6vw, 46px);
  border-radius: 30px;
  background: #1a1614;
  color: #f3ebe3;
  box-shadow: 0 -18px 50px -26px rgba(30, 21, 18, 0.55);
  overflow: hidden;
}

.stack-card:nth-child(even) {
  background: #251d19;
}

.stack-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 6.4vw, 92px);
  line-height: 0.85;
  color: #e9d8c4;
}

.stack-card h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
}

.stack-card p {
  margin-top: 12px;
  max-width: 420px;
  color: #b8aa9d;
  font-size: 15px;
  line-height: 1.6;
}

.stack-card--photo {
  background:
    linear-gradient(90deg, rgba(26, 22, 20, 0.96) 38%, rgba(26, 22, 20, 0.35)),
    url("assets/img/notebook.jpg") center / cover;
}

.stack-card--photo .hand-note {
  grid-column: 2;
  margin-top: 8px;
  font-size: 30px;
  color: #e9d8c4;
  transform: rotate(-5deg);
  transform-origin: left;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: clamp(64px, 8vw, 110px) 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}

.principles li:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -28px rgba(59, 33, 28, 0.45);
}

.principle-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--cream);
}

.principles h3 {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.principles p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Преподаватели ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.chip-btn:hover {
  color: var(--text);
  border-color: var(--cream);
}

.chip-btn.is-active {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.teacher-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}

.teacher-card:hover {
  border-color: var(--line-2);
  transform: translateY(-6px);
}

.teacher-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.teacher-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(26, 22, 20, 0.65));
  pointer-events: none;
}

.teacher-card:hover .teacher-photo img {
  transform: scale(1.06);
}

.teacher-lang {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 13, 12, 0.72);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.teacher-name {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  color: #f5eadf;
}

.teacher-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px;
}

.teacher-role {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.teacher-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(233, 216, 196, 0.09);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
}

.teacher-text {
  color: #c3b7ab;
  font-size: 13px;
  line-height: 1.55;
}

.teacher-cta {
  margin-top: auto;
  padding-top: 6px;
}

.teacher-cta .btn {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
}

/* ---------- Отзывы ---------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.review {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.review figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.review figcaption b {
  color: var(--text);
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-grid .text-link {
  display: inline-block;
  margin-top: 18px;
}

.faq-list {
  border-top: 1px solid var(--line-2);
}

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

.faq-list summary {
  position: relative;
  padding: 26px 56px 26px 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-list summary:hover {
  color: var(--cream);
}

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

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list details p {
  padding: 0 48px 26px 0;
  color: var(--muted);
  font-size: 15.5px;
}

.faq-list details[open] p {
  animation: fadeUp 0.5s var(--ease-out) both;
}

/* ---------- Заявка ---------- */

.signup-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 68px);
  border-radius: 36px;
  background:
    radial-gradient(80% 90% at 0% 0%, rgba(122, 83, 67, 0.55), transparent 60%),
    linear-gradient(135deg, #3a241c, #241814 55%, #1a1411);
  border: 1px solid var(--line-2);
  overflow: hidden;
}

.signup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 75%) var(--my, 20%), rgba(233, 216, 196, 0.13), transparent 60%);
}

.signup-card > * {
  position: relative;
}

.signup-copy h2 {
  margin-top: 22px;
  font-size: clamp(34px, 4.4vw, 56px);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.signup-note {
  margin-top: 28px;
  font-size: 36px;
  transform: rotate(-6deg);
  display: inline-block;
}

.lead-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px;
  background: rgba(15, 13, 12, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  min-height: 440px;
}

.form-top {
  display: grid;
  gap: 10px;
}

.form-step-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-progress {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.form-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--cream);
  transition: width 0.5s var(--ease-out);
}

.step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.js .step:not([hidden]) {
  animation: stepIn 0.5s var(--ease-out) both;
}

.step legend {
  padding: 0;
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.choices {
  display: grid;
  gap: 10px;
}

.choices-row {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, padding 0.3s var(--ease-out);
}

.choices:not(.choices-row) .choice:hover span {
  padding-left: 24px;
}

.choices-row .choice span {
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  font-size: 13.5px;
  text-align: center;
}

.choice:hover span {
  border-color: var(--cream);
}

.choice input:checked + span {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
  font-weight: 600;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.field em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.8;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(233, 216, 196, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s, background-color 0.2s;
}

.field input::placeholder {
  color: #7d7167;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cream);
  background: rgba(233, 216, 196, 0.07);
}

.field input[aria-invalid="true"] {
  border-color: #e0917a;
}

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

.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(224, 145, 122, 0.12);
  color: #f0b4a3;
  font-size: 14px;
}

.form-error a {
  text-decoration: underline;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.form-nav #nextBtn {
  margin-left: auto;
}

.form-nav .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-note {
  color: #7d7167;
  font-size: 11.5px;
  line-height: 1.5;
}

.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  border-radius: inherit;
  background: #17120f;
}

.form-success:not([hidden]) {
  animation: fadeUp 0.6s var(--ease-out) both;
}

.form-success h3 {
  font-size: 28px;
}

.form-success p {
  max-width: 340px;
  color: var(--muted);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
}

.success-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Подвал ---------- */

.site-footer {
  padding-top: 72px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-tag {
  margin-top: 18px;
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 40px;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-contacts {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--cream);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.socials a:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.footer-phone {
  font-size: 17px;
  font-weight: 600;
}

.footer-small {
  color: var(--muted);
  font-size: 12.5px;
}

.footer-giant {
  margin: 56px 0 -0.12em;
  font-size: clamp(64px, 17vw, 260px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.85;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(233, 216, 196, 0.26), rgba(233, 216, 196, 0.02) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

.footer-giant em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.footer-bottom {
  position: relative;
  background: var(--bg-2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: #7d7167;
  font-size: 12.5px;
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- Проверка сертификата ---------- */

.verify {
  padding-top: 0;
}

.verify-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line-2);
  border-radius: 36px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(122, 83, 67, 0.32), transparent 60%),
    var(--surface);
}

.verify-card h2 {
  margin-top: 22px;
  font-size: clamp(34px, 4.4vw, 56px);
}

.verify-form {
  display: grid;
  gap: 12px;
}

.verify-form input {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verify-form input::placeholder {
  text-transform: none;
}

.verify-form .btn {
  justify-self: start;
}

.vr {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  animation: fadeUp 0.5s var(--ease-out) both;
}

.vr-ok {
  border-color: rgba(156, 199, 154, 0.4);
  background: rgba(156, 199, 154, 0.07);
}

.vr-bad {
  border-color: rgba(224, 145, 122, 0.4);
  background: rgba(224, 145, 122, 0.07);
}

.vr-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #9cc79a;
  color: var(--ink);
  font-weight: 700;
}

.vr-bad .vr-icon {
  background: #e0917a;
}

.vr b {
  display: block;
  font-size: 16px;
}

.vr p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.vr-loading {
  color: var(--muted);
  font-size: 14px;
}

/* Заглушка, если у преподавательницы ещё нет фото */
.teacher-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 110px;
  color: var(--cream);
  background: radial-gradient(circle at 30% 30%, var(--mocha-2), var(--mocha));
}

@media (max-width: 960px) {
  .verify-card {
    grid-template-columns: 1fr;
  }
}

/* Колонки сетки не должны растягиваться под широкое содержимое (таблица времён, длинные слова). */
.hero-grid > *,
.secret-grid > *,
.approach-layout > *,
.faq-grid > *,
.signup-card > *,
.section-head.split > * {
  min-width: 0;
}

/* ---------- Анимации ---------- */

@keyframes wordUp {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes archIn {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px); transform: scale(1.12); }
  to { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); transform: none; }
}

@keyframes discIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes noteIn {
  from { opacity: 0; transform: translateY(10px) rotate(-14deg); }
  to { opacity: 1; transform: rotate(-8deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-8px) rotate(-6deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 216, 196, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(233, 216, 196, 0); }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Первый экран: заголовок по словам, арка раскрывается, корона дорисовывается */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.js .w > span {
  display: inline-block;
  transform: translateY(105%);
  animation: wordUp 1.15s var(--ease-out) forwards;
  animation-delay: calc(0.2s + var(--i) * 0.08s);
}

.js [data-in] {
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

.js .hero-disc {
  animation: discIn 1.6s var(--ease-out) 0.25s both, breathe 9s ease-in-out 2s infinite;
}

.js .hero-img {
  animation: archIn 1.4s var(--ease-out) 0.35s both;
}

.js .doodle-crown path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s ease 1.3s forwards;
}

.js .hero-note {
  animation: noteIn 1s var(--ease-out) 1.2s both, float 7s ease-in-out 2.4s infinite;
}

.js .float-card {
  animation: fadeUp 1s var(--ease-out) var(--d) both, bob 6.5s ease-in-out calc(var(--d) + 1s) infinite;
}

.js .fc-diag {
  animation-duration: 1s, 7.5s;
}

.js .spin-badge {
  animation: fadeIn 1s ease 1.7s both, spin 24s linear 1.7s infinite;
}

/* Лёгкий параллакс: --py выставляет app.js при прокрутке */
.hero-img,
.hero-video { translate: 0 calc(var(--py, 0) * 0.05px); }
.hero-disc { translate: 0 calc(var(--py, 0) * -0.12px); }
.hero-note { translate: 0 calc(var(--py, 0) * -0.2px); }
.hero-glow { translate: 0 calc(var(--py, 0) * 0.25px); }

/* Появление блоков при прокрутке (data-reveal ставит app.js) */
.js [data-reveal] {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 1s var(--ease-out), translate 1.1s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .nav {
    gap: 20px;
  }

  .course-grid,
  .teacher-grid,
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .fc-grammar {
    left: -6%;
  }

  .fc-diag {
    right: -4%;
  }

  .hero-note {
    right: -4%;
  }
}

@media (max-width: 960px) {
  .header-cta {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    inset: 80px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(15, 13, 12, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    color: var(--text);
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 20px;
  }

  .nav-open .nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav-open .site-header {
    background: rgba(15, 13, 12, 0.97);
  }

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

  .hero-visual {
    width: min(100%, 420px);
    margin-top: 12px;
  }

  /* На узких экранах параллакс уводит подпись на текст над фото, поэтому отключаем его */
  .hero-img,
  .hero-video,
  .hero-disc,
  .hero-note,
  .hero-glow {
    translate: none;
  }

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

  .benefit:nth-child(3) {
    border-left: 0;
  }

  .benefit:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-head.split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .head-aside {
    justify-self: start;
  }

  .secret-grid,
  .approach-layout {
    grid-template-columns: 1fr;
  }

  .secret-video,
  .approach-side {
    position: static;
  }

  .secret-video {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .stack-card {
    top: calc(96px + var(--n) * 14px);
  }

  .faq-grid,
  .signup-card {
    grid-template-columns: 1fr;
  }

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

  .footer-contacts {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .logo-text small {
    display: none;
  }

  .hero h1 {
    margin-top: 20px;
  }

  .hero-actions .btn-lg {
    width: 100%;
  }

  .hero-note {
    right: 0;
    top: 3%;
    font-size: 22px;
  }

  .float-card {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .fc-grammar {
    left: -2%;
    top: 34%;
  }

  .fc-grammar b {
    font-size: 20px;
  }

  .fc-diag {
    right: -2%;
    bottom: 12%;
  }

  .fc-diag b {
    font-size: 12px;
  }

  .fc-check {
    width: 30px;
    height: 30px;
  }

  .spin-badge {
    width: 86px;
    height: 86px;
    left: 0;
  }

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

  .benefit {
    padding: 22px 0;
  }

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

  .course-grid,
  .teacher-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 420px;
  }

  .stack-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .stack-card--photo .hand-note {
    grid-column: 1;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    justify-content: center;
    padding: 0 12px;
  }

  .choices-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead-form {
    min-height: 480px;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }

  .marquee-track,
  .spin-badge,
  .pill-dot,
  .play-circle::before,
  .js .hero-disc,
  .js .hero-note,
  .js .float-card,
  .js .spin-badge {
    animation: none !important;
  }
}
