:root {
  --paper: #ffffff;
  --page: #f4f6fa;
  --ink: #070d1f;
  --text: #172033;
  --muted: #5b667c;
  --line: #dfe6f2;
  --soft-line: #edf2f8;
  --blue: #0c63ff;
  --blue-dark: #0742c3;
  --blue-soft: #edf4ff;
  --green: #169347;
  --orange: #ff7b35;
  --amber: #f4a019;
  --violet: #7147e8;
  --shadow: 0 22px 50px rgba(19, 36, 70, 0.08);
  --shadow-soft: 0 14px 35px rgba(24, 46, 84, 0.07);
  --radius: 22px;
  --container: min(1440px, calc(100% - 80px));
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  background: var(--page);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  border: 0;
}

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

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

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
}

.nav-shell {
  min-height: 108px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
}

.logo {
  display: inline-grid;
  color: var(--ink);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.logo span {
  color: var(--blue);
  font-size: clamp(23px, 1.8vw, 34px);
}

.logo strong {
  font-size: clamp(21px, 1.65vw, 31px);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 52px);
  color: var(--ink);
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 700;
}

.nav-links a,
.nav-subject-trigger,
.footer-grid a,
.footer-grid button,
.footer-grid span {
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a,
.nav-subject-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-subject-trigger:hover,
.footer-grid a:hover,
.footer-grid button:hover,
.footer-bottom button:hover {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-subject-trigger {
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.nav-dropdown.is-open .chevron,
.nav-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.nav-links .chevron {
  width: 0.9em;
  height: 0.9em;
  stroke-width: 2.4;
  transition: transform 0.2s ease;
}

.subject-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: min(430px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(16, 35, 70, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(14px);
}

@media (min-width: 1061px) {
  .nav-dropdown {
    display: inline-flex;
    align-items: center;
  }

  .nav-dropdown > .subject-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(430px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  .nav-dropdown.is-open > .subject-menu,
  .nav-dropdown:hover > .subject-menu,
  .nav-dropdown:focus-within > .subject-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.nav-dropdown.is-open .subject-menu,
.nav-dropdown:hover .subject-menu,
.nav-dropdown:focus-within .subject-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.subject-menu button {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text);
  background: #f7faff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.subject-menu button:hover {
  color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-2px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--ink);
  background: #f5f8fd;
  cursor: pointer;
}

.btn {
  position: relative;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(2px) scale(1.06);
}

.btn-primary::after,
.btn-white::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.28) 46%, transparent 58%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.btn-primary:hover::after,
.btn-white:hover::after {
  transform: translateX(130%);
}

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

.btn-primary {
  color: #fff;
  border-color: var(--blue);
  background: linear-gradient(180deg, #146cff 0%, #0054ee 100%);
  box-shadow: 0 14px 28px rgba(12, 99, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #2979ff 0%, #0756ea 100%);
}

.btn-light {
  color: var(--blue);
  border-color: #d9e2ef;
  background: #fff;
}

.btn-link {
  min-height: 56px;
  color: var(--blue);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.btn-link:hover {
  box-shadow: none;
  background: var(--blue-soft);
}

.btn-xl {
  min-height: 66px;
  padding: 0 34px;
  font-size: 18px;
}

.btn-white {
  color: var(--blue);
  border-color: #fff;
  background: #fff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  background: var(--paper);
  padding: 40px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(580px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  padding-top: 10px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  color: var(--text);
  background: #f3f6fb;
  font-size: 18px;
  font-weight: 700;
}

.eyebrow svg {
  color: var(--blue);
}

.hero h1 {
  margin: 70px 0 28px;
  color: var(--ink);
  font-size: clamp(56px, 6vw, 104px);
  line-height: 1.12;
  font-weight: 900;
}

.hero h1 span {
  color: var(--blue);
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--text);
  font-size: clamp(21px, 1.75vw, 29px);
  line-height: 1.65;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #dce7f6;
  border-radius: 999px;
  color: #40506a;
  background: #f8fbff;
  font-size: 14px;
  font-weight: 800;
}

.hero-media {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 260px;
  gap: 22px;
  align-items: center;
}

.video-card {
  position: relative;
  min-height: clamp(440px, 41vw, 660px);
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 24%, rgba(12, 99, 255, 0.11), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.video-card::after {
  content: "";
  position: absolute;
  inset: auto 10% 0;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(21, 52, 98, 0.14), transparent 62%);
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 1;
  pointer-events: none;
}

.hero-stats {
  display: grid;
  gap: 28px;
}

.stat-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(12, 99, 255, 0.32);
  box-shadow: 0 24px 48px rgba(20, 48, 92, 0.12);
}

.stat-card .stat-icon {
  display: none;
}

.stat-card strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
}

.stat-card small {
  color: var(--muted);
  font-size: 16px;
}

.stat-card b {
  color: var(--blue);
  font-size: 42px;
  line-height: 1.05;
}

.stat-card b.dark {
  color: var(--ink);
}

.feature-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
  padding: 54px 44px;
  border-radius: var(--radius);
  background: #f7faff;
  box-shadow: inset 0 0 0 1px rgba(222, 232, 245, 0.7);
}

.feature-strip article {
  min-height: 168px;
  padding: 0 42px;
  border-left: 1px solid #d8e2ef;
  transition: transform 0.24s ease, background 0.24s ease;
}

.feature-strip article:first-child {
  border-left: 0;
}

.feature-strip article:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.42);
}

.feature-strip span,
.process span,
.modal-header span {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(12, 99, 255, 0.35);
  border-radius: 18px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.6);
}

.feature-strip span svg,
.process span svg,
.modal-header span svg {
  width: 40px;
  height: 40px;
}

.feature-strip h3 {
  margin: 32px 0 14px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section {
  background: var(--paper);
  padding: 72px 0;
}

.section-muted {
  border-top: 14px solid var(--page);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}

.section-head h2,
.process h2,
.cta-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.15;
  font-weight: 900;
}

.section-head.compact {
  margin-bottom: 32px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover {
  color: var(--blue-dark);
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.subject-card {
  min-height: 260px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 20px;
  padding: 38px 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.subject-card:hover {
  transform: translateY(-6px);
  border-color: rgba(12, 99, 255, 0.38);
  box-shadow: var(--shadow-soft);
}

.subject-card:hover .subject-icon {
  transform: scale(1.08) rotate(-2deg);
}

.subject-icon {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  transition: transform 0.24s ease;
}

.subject-icon svg {
  width: 42px;
  height: 42px;
}

.subject-icon.blue {
  color: var(--blue);
  background: #edf4ff;
}

.subject-icon.orange {
  color: var(--orange);
  background: #fff1eb;
}

.subject-icon.amber {
  color: var(--amber);
  background: #fff6df;
}

.subject-icon.violet {
  color: var(--violet);
  background: #f3edff;
}

.subject-card strong {
  color: var(--ink);
  font-size: 25px;
}

.subject-card p {
  max-width: 245px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.results-panel {
  margin-top: 76px;
  padding: 52px 62px;
  border-radius: var(--radius);
  background: #f7faff;
  box-shadow: inset 0 0 0 1px rgba(222, 232, 245, 0.7);
}

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

.result-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
  align-items: center;
  min-height: 120px;
  padding: 0 48px;
  border-left: 1px solid #d8e2ef;
  transition: transform 0.24s ease;
}

.result-grid article:hover {
  transform: translateY(-4px);
}

.result-grid article:first-child {
  border-left: 0;
  padding-left: 0;
}

.result-grid svg {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  color: #20b45b;
  stroke-width: 2.4;
  transition: transform 0.24s ease;
}

.result-grid article:hover svg {
  transform: scale(1.08);
}

.result-grid strong {
  color: var(--green);
  font-size: clamp(44px, 4vw, 64px);
  line-height: 1;
}

.result-grid strong span {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.result-grid strong .counter {
  color: var(--green);
  font-size: inherit;
  font-weight: inherit;
}

.result-grid p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 19px;
}

.process {
  padding-top: 88px;
  text-align: center;
}

.process h2 {
  margin-bottom: 54px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.process-grid article {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.process-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(50% + 58px);
  width: calc(100% - 66px);
  border-top: 4px dashed #b8d3ff;
}

.process span {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #eef5ff;
}

.process b {
  margin-top: 10px;
  color: var(--ink);
  font-size: 23px;
}

.process strong {
  color: var(--ink);
  font-size: 19px;
}

.process p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.teachers-section {
  padding-top: 58px;
}

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

.teacher-card {
  min-height: 560px;
  padding: 48px 58px 42px;
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(226, 235, 248, 0.75);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.teacher-card:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(12, 99, 255, 0.18), 0 24px 48px rgba(20, 48, 92, 0.11);
}

.teacher-card img {
  width: 184px;
  height: 184px;
  margin-bottom: 54px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.teacher-card:hover img {
  transform: scale(1.035);
  box-shadow: 0 18px 32px rgba(25, 54, 99, 0.12);
}

.teacher-card h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(26px, 1.9vw, 34px);
  line-height: 1.15;
}

.teacher-card p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 20px;
}

.teacher-card p + p {
  color: var(--muted);
}

.teacher-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
}

.teacher-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0d55c8;
  background: #edf4ff;
  font-size: 14px;
  font-weight: 900;
}

.teacher-card .text-button {
  margin-top: 22px;
}

.cta-section {
  border-top: 14px solid var(--page);
  padding: 32px 0 74px;
}

.cta-panel {
  position: relative;
  min-height: 398px;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(360px, 1fr);
  align-items: center;
  overflow: hidden;
  padding: 56px 72px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 59% 17%, rgba(65, 139, 255, 0.45) 0 23px, transparent 24px),
    radial-gradient(circle at 93% 105%, rgba(65, 139, 255, 0.34) 0 250px, transparent 251px),
    linear-gradient(135deg, #0b48c6 0%, #0758e7 58%, #0646bc 100%);
}

.cta-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: min(52%, 690px);
  bottom: 0;
  width: 260px;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 86, 222, 1) 0%, rgba(8, 86, 222, 0.72) 34%, rgba(8, 86, 222, 0) 100%),
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.12), transparent 56%);
  pointer-events: none;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 77, 205, 0.36), transparent 48%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.13), transparent 20%);
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 3;
}

.cta-copy h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(34px, 3.3vw, 54px);
}

.cta-copy p {
  max-width: 670px;
  margin: 34px 0 48px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(19px, 1.55vw, 27px);
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(52%, 690px);
  height: auto;
  border-radius: 0 0 18px 0;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 8%, #000 25%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 8%, #000 25%);
}

.site-footer {
  background: var(--paper);
  padding: 56px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.95fr 1.25fr 1fr;
  gap: 62px;
  padding-bottom: 56px;
}

.footer-brand p,
.footer-grid p {
  margin: 34px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.footer-brand .logo {
  width: fit-content;
  min-width: 140px;
  align-items: start;
}

.footer-brand .logo span {
  font-size: 28px;
}

.footer-brand .logo strong {
  font-size: 26px;
}

.footer-grid h3 {
  margin: 0 0 34px;
  color: var(--ink);
  font-size: 20px;
}

.footer-grid a,
.footer-grid button,
.footer-grid span {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 25px;
  color: var(--text);
  background: transparent;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
}

.footer-grid svg {
  color: var(--blue);
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.socials,
.messengers {
  display: flex;
  gap: 22px;
}

.socials a,
.messengers a {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 15px;
  background: #f1f5fb;
  color: #071126;
  font-weight: 900;
  text-transform: uppercase;
}

.messengers .whatsapp {
  color: #fff;
  background: #25d366;
}

.messengers .telegram {
  color: #1677d2;
  background: #dff1ff;
}

.messengers .vk {
  color: #fff;
  background: #2c7be5;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 72px;
  align-items: center;
  padding-top: 34px;
  border-top: 1px solid #d9e2ef;
  color: #46536c;
  font-size: 17px;
}

.footer-bottom button {
  color: #46536c;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
}

.mobile-sticky-cta {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 28, 0.58);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100vw - 40px));
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  padding: 42px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(7, 13, 31, 0.28);
}

.small-modal {
  width: min(620px, calc(100vw - 40px));
}

.gallery-modal {
  width: min(1120px, calc(100vw - 40px));
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -12px -12px 0 0;
  border-radius: 50%;
  color: var(--ink);
  background: #f4f7fb;
  cursor: pointer;
}

.modal-card h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.15;
}

.modal-card > p,
.modal-header p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.modal-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

.modal-header[hidden] {
  display: none;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.lead-form[hidden] {
  display: none;
}

.lead-form.single {
  grid-template-columns: 1fr;
}

.lead-form label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: #f8fbff;
}

.lead-form textarea {
  padding-top: 14px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(12, 99, 255, 0.12);
}

.lead-form .wide {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
}

.privacy-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.form-success {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px 12px 4px;
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.success-icon {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #20bf67 0%, #139247 100%);
  box-shadow: 0 20px 42px rgba(28, 174, 88, 0.28);
}

.success-icon svg {
  width: 48px;
  height: 48px;
}

.form-success h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 2.5vw, 42px);
  line-height: 1.1;
}

.form-success p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.success-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 10px;
}

.success-points span {
  padding: 10px 14px;
  border-radius: 999px;
  color: #126536;
  background: #eaf8f0;
  font-size: 14px;
  font-weight: 800;
}

.diagnostic-list,
.mini-grid,
.result-story-grid,
.teacher-modal-grid {
  display: grid;
  gap: 18px;
}

.diagnostic-list {
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 32px;
}

.diagnostic-list article,
.mini-grid article,
.result-story-grid article,
.teacher-modal-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.diagnostic-list b,
.mini-grid b,
.teacher-modal-grid b {
  display: block;
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 8px;
}

.diagnostic-list span,
.mini-grid span,
.teacher-modal-grid span {
  color: var(--muted);
}

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

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

.result-story-grid strong {
  display: block;
  color: var(--green);
  font-size: 52px;
  line-height: 1;
}

.result-story-grid span {
  display: block;
  margin: 10px 0;
  color: var(--ink);
  font-weight: 800;
}

.result-story-grid p {
  margin: 0;
  color: var(--muted);
}

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

.teacher-modal-grid img {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.faq-list h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.about-modal {
  width: min(820px, calc(100vw - 40px));
}

.about-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 8px 0 28px;
}

.about-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.about-list h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.about-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 1280px) {
  :root {
    --container: min(1180px, calc(100% - 56px));
  }

  .nav-shell {
    gap: 24px;
  }

  .nav-links {
    gap: 20px;
    font-size: 15px;
  }

  .hero-grid {
    grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.14fr);
  }

  .hero-media {
    grid-template-columns: minmax(260px, 1fr) 220px;
  }

  .stat-card {
    padding: 22px;
  }

  .feature-strip article {
    padding: 0 26px;
  }

  .subject-card {
    padding: 34px;
  }

  .teacher-card {
    padding: 40px 36px;
  }
}

@media (max-width: 1060px) {
  :root {
    --container: min(920px, calc(100% - 44px));
  }

  .nav-shell {
    min-height: auto;
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 22px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links,
  .header-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
  }

  .nav-shell.menu-open .nav-links,
  .nav-shell.menu-open .header-actions {
    display: flex;
  }

  .nav-links {
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding: 18px 0 0;
  }

  .nav-links a {
    padding: 14px 0;
  }

  .nav-subject-trigger {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 0;
    font-size: inherit;
  }

  .subject-menu {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .nav-dropdown.is-open .subject-menu {
    display: grid;
    transform: none;
  }

  .header-actions {
    gap: 14px;
    padding-top: 10px;
  }

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

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

  .hero-media {
    grid-template-columns: minmax(280px, 1fr) 230px;
  }

  .feature-strip,
  .subject-grid,
  .result-grid,
  .teacher-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-strip article:nth-child(odd),
  .result-grid article:nth-child(odd) {
    border-left: 0;
  }

  .feature-strip article {
    padding: 24px;
  }

  .results-panel {
    padding: 40px;
  }

  .result-grid article {
    padding: 24px;
  }

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

  .process-grid article::after {
    display: none;
  }

  .teacher-card {
    min-height: auto;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 48px;
  }

  .cta-copy {
    max-width: 620px;
  }

  .cta-image {
    right: -40px;
    width: min(52%, 520px);
    opacity: 0.82;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mini-grid,
  .result-story-grid,
  .teacher-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 28px, 640px);
  }

  body {
    padding-bottom: 88px;
  }

  body.modal-open .mobile-sticky-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(196, 211, 233, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(11, 28, 61, 0.18);
    backdrop-filter: blur(14px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .mobile-sticky-cta.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-sticky-cta span {
    min-width: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
  }

  .mobile-sticky-cta .btn {
    width: auto;
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
    white-space: nowrap;
  }

  .btn,
  .btn-xl {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    font-size: 15px;
  }

  .header-actions {
    flex-direction: column;
  }

  .hero {
    padding-top: 20px;
  }

  .eyebrow {
    padding: 11px 16px;
    font-size: 14px;
  }

  .hero h1 {
    margin: 34px 0 20px;
    font-size: clamp(44px, 13vw, 58px);
  }

  .hero-copy p {
    font-size: 18px;
    line-height: 1.55;
  }

  .hero-actions,
  .cta-actions {
    gap: 12px;
    margin-top: 30px;
  }

  .hero-trust {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-trust span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

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

  .video-card {
    min-height: min(110vw, 510px);
    border-radius: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-card {
    min-height: 112px;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 16px;
  }

  .stat-card .stat-icon {
    grid-row: span 3;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--blue);
    background: var(--blue-soft);
  }

  .stat-card b {
    font-size: 34px;
  }

  .feature-strip,
  .subject-grid,
  .result-grid,
  .process-grid,
  .teacher-grid,
  .footer-grid,
  .lead-form,
  .diagnostic-list,
  .mini-grid,
  .result-story-grid,
  .teacher-modal-grid,
  .about-list {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    padding: 20px;
  }

  .feature-strip article,
  .result-grid article {
    border-left: 0;
    border-top: 1px solid #d8e2ef;
    padding: 24px 0;
  }

  .feature-strip article:first-child,
  .result-grid article:first-child {
    border-top: 0;
  }

  .feature-strip h3 {
    margin-top: 20px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .subject-card {
    min-height: 210px;
    padding: 28px;
  }

  .results-panel {
    margin-top: 42px;
    padding: 28px;
  }

  .result-grid article {
    grid-template-columns: auto 1fr;
  }

  .process {
    padding-top: 50px;
  }

  .process h2 {
    margin-bottom: 32px;
  }

  .teacher-card {
    padding: 30px;
  }

  .teacher-card img {
    width: 142px;
    height: 142px;
    margin-bottom: 32px;
  }

  .teacher-card h3 {
    font-size: 26px;
  }

  .teacher-card p {
    font-size: 17px;
  }

  .teacher-badges {
    margin: 18px 0 14px;
  }

  .teacher-badges span {
    min-height: 30px;
    font-size: 12px;
  }

  .cta-panel {
    min-height: auto;
    padding: 34px 24px 240px;
  }

  .cta-copy p {
    margin: 22px 0 28px;
    font-size: 17px;
  }

  .cta-image {
    right: -42px;
    bottom: 0;
    width: 96%;
    height: auto;
    max-width: 430px;
    top: auto;
  }

  .cta-panel::after {
    top: auto;
    right: 0;
    bottom: 190px;
    width: 100%;
    height: 92px;
    background: linear-gradient(180deg, rgba(8, 86, 222, 1), rgba(8, 86, 222, 0));
  }

  .cta-panel::before {
    background: linear-gradient(180deg, rgba(7, 77, 205, 0.28), transparent 56%);
  }

  .site-footer {
    padding-top: 36px;
  }

  .footer-grid {
    gap: 18px;
    padding-bottom: 34px;
  }

  .footer-grid h3 {
    margin-bottom: 20px;
  }

  .footer-grid a,
  .footer-grid button,
  .footer-grid span {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .modal {
    padding: 14px;
  }

  .modal-card {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 24px 26px;
    border-radius: 18px;
  }

  .form-modal {
    padding-bottom: 20px;
  }

  .modal-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .modal-header span {
    width: 70px;
    height: 70px;
  }

  .modal-card h2 {
    font-size: 28px;
  }

  .modal-header p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .lead-form {
    gap: 14px;
  }

  .lead-form label {
    gap: 7px;
  }

  .lead-form input,
  .lead-form select,
  .lead-form textarea {
    min-height: 52px;
  }

  .lead-form textarea {
    min-height: 92px;
  }

  .lead-form button[type="submit"] {
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 18px 34px rgba(12, 99, 255, 0.24);
  }

  .privacy-note {
    font-size: 12px;
  }

  .modal-close {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 520px) {
  .subject-menu {
    grid-template-columns: 1fr;
  }

  .subject-menu button {
    min-height: 50px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 40px;
  }

  .mobile-sticky-cta {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .mobile-sticky-cta span {
    font-size: 13px;
  }

  .mobile-sticky-cta .btn {
    padding: 0 14px;
    font-size: 13px;
  }

  .section-head h2,
  .process h2,
  .cta-copy h2 {
    font-size: 29px;
  }

  .subject-card strong {
    font-size: 22px;
  }

  .result-grid strong {
    font-size: 40px;
  }

  .socials a,
  .messengers a {
    width: 50px;
    height: 50px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
