@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif Display";
  src: url("/assets/fonts/noto-serif-display-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif Display";
  src: url("/assets/fonts/noto-serif-display-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --purple: #6845aa;
  --purple-deep: #3b235c;
  --ink-purple: #21132e;
  --green: #075b3d;
  --green-bright: #1d8b5a;
  --orange: #ff8514;
  --orange-light: #ffb248;
  --cream: #fff9f3;
  --paper: #f7f1ea;
  --ink: #261f2b;
  --muted: #6c6470;
  --line: #ddd1e3;
  --shell: min(1240px, calc(100vw - 64px));
  --shadow: 0 24px 58px rgba(24, 12, 37, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

button,
a { font: inherit; }

a { color: inherit; }

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

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 { text-wrap: balance; }

button,
a { -webkit-tap-highlight-color: transparent; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 71% 8%, rgba(255, 133, 20, 0.2), transparent 28%),
    radial-gradient(circle at 42% 76%, rgba(7, 91, 61, 0.45), transparent 30%),
    linear-gradient(106deg, #6a46ab 1%, #3b235c 54%, #20122f 93%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("/assets/noise.svg");
  mix-blend-mode: soft-light;
}

.nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
}

.brand {
  justify-self: start;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

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

.nav-links a,
.nav-contact {
  color: #eadff4;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: white; }

.nav-contact {
  justify-self: end;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.nav-contact:hover { background: rgba(255, 255, 255, 0.16); }

.menu-toggle { display: none; }

.hero-body {
  position: relative;
  z-index: 2;
  min-height: calc(max(760px, 100svh) - 96px);
  padding-top: 58px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(560px, 47%);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--orange);
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.kicker {
  margin-bottom: 14px;
  color: var(--orange);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 4.45vw, 66px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 500px;
  margin-bottom: 34px;
  color: #f2eaf8;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(255, 133, 20, 0.22);
}

.button-primary:hover {
  background: #ff9b2f;
  box-shadow: 0 15px 34px rgba(255, 133, 20, 0.3);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.lesson-strip > span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  backdrop-filter: blur(12px);
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 20px;
  width: min(760px, 62vw);
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: 9%;
  bottom: 1%;
  left: 16%;
  height: 14%;
  border-radius: 50%;
  background: rgba(11, 5, 24, 0.42);
  filter: blur(26px);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 32px 32px rgba(12, 5, 20, 0.28));
}

.orange-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 132, 20, 0.25);
  filter: blur(80px);
}

.quiz-card {
  position: absolute;
  z-index: 8;
  top: 190px;
  right: 0;
  width: 372px;
  min-height: 348px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 26px;
  color: var(--ink);
  background: rgba(255, 249, 243, 0.97);
  box-shadow: 0 24px 54px rgba(20, 8, 36, 0.32);
  backdrop-filter: blur(12px);
}

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.quiz-head p {
  margin: 0;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}

.quiz-count { color: var(--muted); font-size: 11px; }

.quiz-progress {
  height: 5px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 99px;
  background: #eadff4;
}

.quiz-progress span {
  display: block;
  width: 33.33%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 0.35s ease;
}

.quiz-question {
  min-height: 58px;
  margin-bottom: 4px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.27;
  letter-spacing: -0.025em;
}

.quiz-instruction {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-option {
  min-width: 0;
  min-height: 42px;
  padding: 8px 5px;
  border: 1px solid #d9cddf;
  border-radius: 12px;
  color: #3e3544;
  background: white;
  cursor: pointer;
  font-size: 12px;
  transition: border 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.quiz-option:hover { transform: translateY(-1px); border-color: var(--purple); }

.quiz-option.correct {
  border: 2px solid var(--green-bright);
  color: #126a3d;
  background: #e6f3ec;
  font-weight: 600;
}

.quiz-option.wrong {
  border: 2px solid #c7474c;
  color: #9f2530;
  background: #fae9e8;
}

.quiz-option:disabled { cursor: default; transform: none; }

.quiz-feedback {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  align-items: start;
  min-height: 66px;
  padding: 13px 14px;
  border-radius: 15px;
  color: #4f4554;
  background: #f0e9f3;
}

.feedback-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #8d7a9b;
  font-weight: 600;
}

.quiz-feedback p {
  margin: 1px 0 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.quiz-feedback.success { color: #185b3a; background: #e6f3ec; }
.quiz-feedback.success .feedback-icon { background: var(--green-bright); }
.quiz-feedback.error { color: #7d2c35; background: #fae9e8; }
.quiz-feedback.error .feedback-icon { background: #c7474c; }

.quiz-next {
  width: 100%;
  margin-top: 10px;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--purple);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.lesson-strip {
  position: absolute;
  right: 0;
  bottom: 32px;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 100px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(22, 13, 36, 0.5);
  backdrop-filter: blur(16px);
}

.lesson-strip > span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.lesson-strip strong {
  margin-left: auto;
  color: var(--orange-light);
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.mobile-cta { display: none; }

.section { padding-block: 116px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.42fr);
  column-gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading .kicker { grid-column: 1 / -1; }

.section-heading h2,
.materials h2,
.explain h2,
.mistakes h2,
.about h2,
.contacts h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.3vw, 62px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 17px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.audience-grid article {
  min-height: 290px;
  padding: 30px 34px 10px 0;
  border-right: 1px solid var(--line);
}

.audience-grid article + article { padding-left: 34px; }
.audience-grid article:last-child { border-right: 0; }

.age {
  margin-bottom: 38px;
  color: var(--purple);
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
}

.audience-grid h3,
.lesson-steps h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.2;
}

.audience-grid article > p:last-child { color: var(--muted); }

.lesson {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--green);
}

.lesson::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(255, 178, 72, 0.14);
  filter: blur(30px);
}

.lesson .shell { position: relative; z-index: 1; }
.section-heading-light > p:last-child { color: #cce2d6; }

.lesson-steps {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 0 72px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.lesson-steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  min-height: 186px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.lesson-steps li:last-child { grid-column: 1 / -1; max-width: 56%; }

.step-number {
  color: var(--orange-light);
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.lesson-steps p { margin-bottom: 0; color: #d8e8df; }

.language-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 760px);
  gap: 34px;
  align-items: start;
  margin-top: 26px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 4px 0 0 var(--orange-light);
}

.language-note .language-label {
  margin: 3px 0 0;
  color: var(--orange-light);
  font-size: 13px;
  font-weight: 600;
}

.language-note h3 {
  margin-bottom: 9px;
  font-size: 23px;
  line-height: 1.25;
}

.language-note div p {
  margin: 0;
  color: #d8e8df;
  line-height: 1.6;
}

.materials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.88fr);
  gap: 72px;
  align-items: center;
}

.material-copy > p:not(.kicker):not(.formula-result) {
  margin: 28px 0 26px;
  color: var(--muted);
  font-size: 17px;
}

.material-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.material-points span {
  position: relative;
  padding: 11px 12px 11px 34px;
  border: 1px solid #dfd3e4;
  border-radius: 14px;
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.material-points span::before {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.technology-note {
  padding: 20px 22px;
  border-left: 4px solid var(--green-bright);
  border-radius: 0 18px 18px 0;
  background: #e9f4ee;
}

.technology-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 14px;
  line-height: 1.4;
}

.technology-note p {
  margin: 0;
  color: #4e5d55;
  font-size: 13px;
  line-height: 1.55;
}

.formula {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.formula span {
  padding: 8px 13px;
  border: 1px solid #cbb8d9;
  border-radius: 999px;
  color: var(--purple-deep);
  background: white;
  font-size: 12px;
  font-weight: 600;
}

.formula i { color: var(--orange); font-style: normal; font-weight: 600; }

.formula-result {
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 600;
}

.material-demo {
  position: relative;
  padding: 28px;
  border: 1px solid #e2d8e5;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.material-demo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 38px -24px -24px 42px;
  border-radius: 28px;
  background: #e6f3ec;
  transform: rotate(2.5deg);
}

.demo-windowbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.demo-windowbar b {
  color: var(--purple-deep);
  font-size: 12px;
}

.demo-dots { display: flex; gap: 4px; }

.demo-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8c9df;
}

.demo-dots i:first-child { background: var(--orange); }
.demo-dots i:nth-child(2) { background: var(--green-bright); }

.demo-progressline {
  height: 5px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6f1;
}

.demo-progressline span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 13px;
  background: #f2ecf5;
}

.demo-tabs span {
  padding: 7px 5px;
  border-radius: 9px;
  color: #786c7e;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
}

.demo-tabs .is-active {
  color: var(--purple-deep);
  background: white;
  box-shadow: 0 4px 12px rgba(55, 33, 75, 0.08);
}

.demo-rule {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid #d7eadd;
  border-radius: 17px;
  background: #f0f8f4;
}

.demo-rule small {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
}

.demo-rule p {
  margin-bottom: 4px;
  color: #253d30;
  font-size: 14px;
  line-height: 1.45;
}

.demo-rule > span {
  color: #68766e;
  font-size: 10px;
}

.demo-sentence {
  margin-bottom: 20px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
}

.demo-answers {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.demo-answers span {
  flex: 1;
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
}

.demo-answers .is-correct {
  border: 2px solid var(--green-bright);
  color: var(--green);
  background: #e6f3ec;
  font-weight: 600;
}

.demo-result {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  color: #185b3a;
  background: #e6f3ec;
  font-size: 13px;
  font-weight: 600;
}

.demo-result b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-bright);
}

.demo-loop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.demo-loop b { color: var(--orange); }

.explain {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 0.92fr);
  gap: clamp(64px, 8vw, 112px);
  align-items: center;
  border-top: 1px solid #e6dce7;
}

.explain-visual {
  position: relative;
  isolation: isolate;
  width: min(100%, 380px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
}

.explain-visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 20px -20px -20px 20px;
  border-radius: 190px 190px 34px 34px;
  background: linear-gradient(145deg, #6f48ad 0%, #291836 78%);
  box-shadow: 0 28px 60px rgba(54, 31, 76, 0.28);
}

.explain-visual::after {
  position: absolute;
  z-index: -1;
  top: 58px;
  right: -30px;
  width: 60px;
  height: 124px;
  border-radius: 34px 18px 18px 34px;
  background: linear-gradient(180deg, #ffae2f 0%, var(--orange) 72%);
  content: "";
}

.explain-visual img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 190px 190px 34px 34px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(49, 33, 57, 0.2);
}

.explain-copy > p:not(.kicker) {
  margin: 28px 0;
  color: var(--muted);
  font-size: 17px;
}

blockquote {
  margin: 34px 0 0;
  padding: 22px 0 22px 28px;
  border-left: 4px solid var(--orange);
  color: var(--purple-deep);
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.mistakes {
  color: white;
  background: var(--ink-purple);
}

.mistakes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 0.78fr);
  gap: 96px;
  align-items: start;
}

.error-flow { border-top: 1px solid rgba(255, 255, 255, 0.18); }

.error-flow article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 27px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.error-flow span { color: var(--orange-light); font-weight: 600; }
.error-flow p { margin: 0; color: #dcd2e4; }

.parent-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.parent-list div {
  min-height: 180px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.parent-list div:last-child { border-right: 0; }

.parent-list b {
  display: block;
  margin-bottom: 44px;
  color: var(--orange);
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: 20px;
}

.parent-list span { font-size: 17px; font-weight: 600; line-height: 1.4; }

.about {
  background: #efe6f3;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(91, 57, 126, 0.14);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.44);
}

.about-lead {
  max-width: 780px;
  margin: 28px 0;
  color: #54495a;
  font-size: 18px;
}

.about-facts { display: flex; flex-wrap: wrap; gap: 10px; }

.about-facts span {
  padding: 9px 14px;
  border: 1px solid #cdbdd5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 600;
}

.contacts {
  position: relative;
  overflow: hidden;
  padding-block: 118px;
  color: white;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 133, 20, 0.22), transparent 32%),
    linear-gradient(110deg, #61409c 0%, #2a1839 70%);
}

.contacts-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
  gap: 90px;
  align-items: end;
}

.contacts h2 { max-width: 720px; }

.contacts-inner > div:first-child > p:last-child {
  max-width: 680px;
  margin: 28px 0 0;
  color: #e4d9ec;
  font-size: 17px;
}

.contact-actions { display: grid; gap: 10px; }

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 68px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-link:hover { background: rgba(255, 255, 255, 0.14); transform: translateX(3px); }
.contact-link span { color: #d8cbe3; font-size: 12px; }
.contact-link b { font-size: 15px; }

.contact-main {
  border-color: transparent;
  color: var(--ink);
  background: var(--orange);
}

.contact-main span { color: #61421f; }
.contact-main:hover { background: #ff9b2f; }

footer {
  padding: 24px 0;
  color: #d9cde2;
  background: #180d22;
}

.footer-inner { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.footer-inner a { text-decoration: none; }

.toast {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  color: white;
  background: var(--green);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 13px;
  font-weight: 600;
}

.toast.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1161px) and (max-width: 1699px) {
  .hero { min-height: max(1000px, 100svh); }

  .hero-body {
    min-height: calc(max(1000px, 100svh) - 96px);
  }

  .hero-visual {
    top: 8px;
    right: 0;
    width: min(700px, 58vw);
  }

  .quiz-card {
    top: 535px;
    right: 0;
  }

  .lesson-strip { display: none; }
}

@media (min-width: 1700px) {
  .hero .shell {
    width: min(1560px, calc(100vw - 96px));
  }

  .hero-body {
    min-height: auto;
    padding-bottom: 32px;
  }

  .hero-copy { width: 520px; }

  .hero-visual {
    top: 20px;
    right: auto;
    left: 520px;
    width: 670px;
  }

  .quiz-card {
    top: 190px;
    right: 0;
    width: 350px;
  }

  .lesson-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: clamp(56px, 7vh, 88px);
  }
}

@media (max-width: 1160px) {
  :root { --shell: min(1060px, calc(100vw - 48px)); }

  .hero-copy { width: 52%; }

  .materials,
  .mistakes-grid { gap: 60px; }

  .parent-list { grid-template-columns: repeat(2, 1fr); }
  .parent-list div:nth-child(2) { border-right: 0; }
  .parent-list div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1160px) {
  :root { --shell: min(760px, calc(100vw - 40px)); }

  .nav { grid-template-columns: 1fr auto; min-height: 78px; }
  .nav-contact { display: none; }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
  }

  .menu-toggle span { width: 17px; height: 2px; border-radius: 2px; background: white; }

  .nav-links {
    position: fixed;
    z-index: 50;
    inset: 76px 20px auto;
    display: none;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(32, 18, 47, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: grid; }
  .nav-links a { padding: 12px; }

  .hero { min-height: auto; }
  .hero-body { min-height: 0; padding-top: 24px; padding-bottom: 32px; }
  .hero-copy { width: 100%; }
  .hero h1 { max-width: 720px; }
  .hero-lead { max-width: 680px; }

  .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    width: min(720px, 100%);
    margin: -28px auto 20px;
  }

  .quiz-card {
    position: relative;
    top: auto;
    right: auto;
    width: min(520px, 100%);
    margin: 0 auto 32px;
  }

  .mobile-cta {
    display: none;
  }

  .lesson-strip { position: relative; bottom: auto; margin-top: 26px; }

  .section { padding-block: 88px; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid article,
  .audience-grid article + article { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }

  .lesson-steps { grid-template-columns: 1fr; }
  .lesson-steps li:last-child { grid-column: auto; max-width: none; }

  .language-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .materials,
  .explain,
  .mistakes-grid,
  .contacts-inner { grid-template-columns: 1fr; }

  .materials,
  .explain { gap: 60px; }
  .explain-visual { order: 2; }
  .explain-copy { order: 1; }
  .mistakes-grid,
  .contacts-inner { gap: 52px; }

  .about-inner { grid-template-columns: minmax(0, 760px); }
}

@media (max-width: 600px) {
  :root { --shell: calc(100vw - 36px); }

  body { font-size: 15px; }
  .brand { font-size: 16px; }
  .hero-body { padding-top: 8px; }
  .eyebrow { font-size: 19px; }
  .kicker { margin-bottom: 12px; font-size: 14px; }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(36px, 10.3vw, 46px);
    line-height: 1.06;
  }

  .hero-lead { font-size: 15px; line-height: 1.55; }
  .hero-actions { display: none; }
  .hero-tags { display: none; }

  .hero-visual {
    width: calc(100% + 30px);
    margin: -70px -15px 12px;
  }

  .quiz-card {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .mobile-cta {
    display: inline-flex;
    margin-bottom: 26px;
  }

  .quiz-question { min-height: 52px; font-size: 21px; }
  .quiz-option { min-height: 40px; font-size: 11px; }
  .quiz-feedback { min-height: 58px; }

  .lesson-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 18px;
  }

  .lesson-strip > span { text-align: center; }
  .lesson-strip > span:nth-child(5),
  .lesson-strip strong { grid-column: 1 / -1; text-align: center; }

  .section { padding-block: 72px; }
  .section-heading { margin-bottom: 38px; }

  .section-heading h2,
  .materials h2,
  .explain h2,
  .mistakes h2,
  .about h2,
  .contacts h2 { font-size: 38px; }

  .section-heading > p:last-child,
  .material-copy > p:not(.kicker):not(.formula-result),
  .explain-copy > p:not(.kicker),
  .about-lead,
  .contacts-inner > div:first-child > p:last-child { font-size: 15px; }

  .lesson-steps li { grid-template-columns: 42px 1fr; gap: 14px; min-height: 0; }

  .language-note { padding: 22px 20px; }
  .language-note h3 { font-size: 21px; }

  .material-demo { padding: 24px 20px; }
  .demo-sentence { font-size: 22px; }
  .demo-answers { gap: 7px; }

  .explain-visual { width: min(100%, 300px); }
  .explain-visual::before { inset: 14px -12px -14px 14px; }
  .explain-visual::after { right: -18px; width: 42px; height: 88px; }
  blockquote { font-size: 19px; }

  .error-flow article { grid-template-columns: 1fr; gap: 8px; }

  .parent-list { grid-template-columns: 1fr; }
  .parent-list div,
  .parent-list div:nth-child(2) { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .parent-list div:last-child { border-bottom: 0; }
  .parent-list b { margin-bottom: 18px; }

  .about-inner { grid-template-columns: 1fr; }

  .contacts { padding-block: 78px; }
  .contact-link { align-items: flex-start; flex-direction: column; gap: 2px; }
  .contact-link:hover { transform: none; }

  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
