:root {
  color-scheme: only light;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f3f0e9;
  --surface-green: #eef4f0;
  --ink: #282a27;
  --muted: #6f726c;
  --line: #dedfd9;
  --accent: #507363;
  --accent-dark: #355647;
  --accent-soft: #dfeae4;
  --wrap: 1320px;
  --radius: 16px;
  --font-display: "Lora", Georgia, serif;
  --font-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--paper);
}

body {
  min-width: 0;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

main, main > section { min-width: 0; }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.15rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }

a {
  color: var(--accent-dark);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration: underline; }

[hidden] { display: none !important; }

.wrap {
  width: min(calc(100% - 40px), var(--wrap));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 26px);
  min-width: 0;
}

.nav a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  color: var(--ink);
  text-decoration: none;
}

.nav a.active { font-weight: 600; }

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.header-cta,
.nav-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.header-cta { background: var(--accent-dark); color: #fff; }
.header-cta:hover { background: var(--accent); color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: transparent; color: var(--accent-dark); cursor: pointer; }

/* With Geometry in the menu, keep the contact button visible on small laptops too. */
@media (min-width: 901px) and (max-width: 1180px) {
  .site-header.has-compact-nav .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding-block: 12px;
  }
  .site-header.has-compact-nav .brand { grid-column: 1; grid-row: 1; }
  .site-header.has-compact-nav .header-actions { grid-column: 2; grid-row: 1; }
  .site-header.has-compact-nav .nav-toggle { display: inline-flex; }
  .site-header.has-compact-nav .nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .site-header.has-compact-nav .nav.is-open { display: flex; }
  .site-header.has-compact-nav .nav a { padding: 10px 12px; border-radius: 8px; }
  .site-header.has-compact-nav .nav a:hover,
  .site-header.has-compact-nav .nav a.active { background: var(--surface-green); }
}

main > section { margin-block: clamp(64px, 9vw, 110px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.7fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
}

.hero-copy { min-width: 0; }

.eyebrow, .section-kicker, .label {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow { margin-bottom: 14px; }
.section-kicker { margin-bottom: 8px; }

.lead {
  max-width: 700px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.portrait-placeholder {
  display: flex;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 4px;
  border: 1px dashed #bfc9c2;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(145deg, var(--surface), var(--surface-green));
  color: var(--accent-dark);
  text-align: center;
}

.portrait-placeholder::before {
  content: "";
  width: 74px;
  height: 74px;
  margin-bottom: 82px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 82px 0 28px var(--accent-soft);
}

.portrait-placeholder span { font-weight: 600; }
.portrait-placeholder small { color: var(--muted); }

.portrait {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
  max-width: 360px;
  justify-self: end;
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface-soft);
  object-fit: cover;
  object-position: center;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
}

.cta-stack,
.price-card-actions,
.final-cta-actions {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.availability-link {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.btn:hover {
  background: var(--surface-green);
  text-decoration: none;
}

.btn-primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: white;
}

.btn-primary:hover {
  background: #29483a;
  color: white;
}

.is-disabled {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-block: clamp(48px, 7vw, 84px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  gap: 1px;
}

.stats > div {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
}

.stats b {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

.stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.text-section { max-width: 720px; }
.text-section h2 { margin-bottom: 18px; }
.text-section > p:last-child { color: var(--muted); font-size: 1.05rem; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.carousel-controls { display: flex; gap: 8px; }

.carousel-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.carousel-button:hover:not(:disabled) { border-color: var(--accent); }
.carousel-button:disabled { opacity: 0.35; cursor: default; }

.review-track {
  display: grid;
  grid-auto-columns: minmax(260px, 28%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent-soft) transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.review-shot {
  display: flex;
  min-width: 0;
  height: 342px;
  margin: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.review-hint {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-image-link {
  display: flex;
  width: 100%;
  height: 190px;
  flex: 0 0 190px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  overflow: hidden;
}

.review-image-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -5px;
}

.review-shot img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center top;
  transition: transform 180ms ease;
}

.review-image-link:hover img { transform: scale(1.012); }

.review-caption {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  line-height: 1.3;
}

.review-author,
.review-result {
  font-size: 0.9rem;
  font-weight: 600;
}

.review-goal {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-result {
  margin-top: auto;
  color: var(--accent-dark);
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h2, .card h3 { margin-top: 8px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.94rem; }

.card-link {
  display: block;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-link:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.home-links { margin-top: 0; }

.page-intro {
  max-width: 760px;
  margin-bottom: clamp(54px, 8vw, 86px);
}

.page-intro .lead { margin-top: 16px; }

.youtube-intro {
  margin-bottom: clamp(34px, 5vw, 54px);
}

.youtube-intro + #youtube { margin-top: 0; }

.page-title-link {
  color: var(--ink);
}

.page-title-link:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.bots-intro {
  margin-bottom: clamp(34px, 5vw, 54px);
}

.bot-gallery { margin-top: 0; }

.bot-card {
  display: block;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.bot-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.bot-cover {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.lesson-system {
  max-width: none;
}

.system-intro {
  max-width: 820px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.lesson-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.lesson-visual {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.lesson-visual:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.lesson-visual-featured { grid-column: 1 / -1; }

.lesson-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 30px 0 0;
  padding: 1px;
  border-radius: var(--radius);
  background: var(--line);
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
}

.step-number {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.method-steps h3 { margin-bottom: 8px; }
.method-steps p { color: var(--muted); font-size: 0.93rem; }

.system-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid #cddbd3;
  border-radius: var(--radius);
  background: var(--surface-green);
}

.system-result p { color: var(--muted); }

.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-green);
}

.channel-card h2, .channel-card h3 { margin-top: 6px; }
.channel-card p { margin-top: 8px; color: var(--muted); }
.channel-card .btn { flex: 0 0 auto; }

.media-placeholder, .game-placeholder {
  display: grid;
  aspect-ratio: 16 / 9;
  margin: -10px -10px 18px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.85rem;
}

.video-cover {
  aspect-ratio: 4 / 3;
  width: calc(100% + 20px);
  height: auto;
  max-width: none;
  margin: -10px -10px 18px;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
}

.media-card, .game-card { overflow: hidden; }

.game-cover {
  display: block;
  aspect-ratio: 16 / 9;
  width: calc(100% + 20px);
  height: auto;
  max-width: none;
  margin: -10px -10px 18px;
  border-radius: 12px;
  background: var(--surface-soft);
  object-fit: contain;
}

.resource-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0 clamp(18px, 4vw, 48px);
}

.resource-item {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}

.resource-item + .resource-item { border-top: 0; }
.resource-item h3 { font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; }
.resource-item p { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.muted { flex: 0 0 auto; color: var(--muted); font-size: 0.86rem; }

.resource-link {
  color: #276ca8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.resource-link:hover {
  color: #174c78;
}

.materials-section .resource-link span { display: none; }
.materials-section .resource-item strong { font-weight: 400; }

.materials-section {
  max-width: 860px;
  margin-top: clamp(64px, 9vw, 110px);
}
.materials-section > h2 { margin-bottom: 10px; }
.section-note { color: var(--muted); }

.materials-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 14px;
  margin-top: 30px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}

.filter-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.filter-field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 36px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.filter-reset {
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: #276ca8;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.filter-status {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.filter-empty {
  margin-top: 34px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

[hidden] { display: none !important; }

.material-group { margin-top: clamp(42px, 6vw, 64px); }
.material-group > h3 {
  margin-bottom: 22px;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0;
}
.material-group + .material-group {
  margin-top: clamp(58px, 8vw, 88px);
  padding-top: 0;
  border-top: 0;
}

.topic-group { margin-top: 32px; }
.topic-group > h4 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
}

.colleague-channel {
  max-width: 860px;
  margin-top: clamp(40px, 6vw, 64px);
  color: var(--muted);
}

.colleague-channel a {
  color: #276ca8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.colleagues-page .page-intro {
  margin-block: clamp(42px, 6vw, 72px) 18px;
}

.colleagues-page .page-intro .lead {
  max-width: 820px;
  margin-top: 12px;
}

.colleagues-page .colleague-channel {
  display: flex;
  max-width: none;
  margin-top: 0;
  align-items: center;
  gap: 10px 24px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-green);
  color: var(--muted);
  font-size: 0.9rem;
}

.colleagues-page .colleague-channel strong { color: var(--ink); }
.colleagues-page .colleague-channel a { margin-left: auto; font-weight: 600; }

.colleagues-page .materials-section {
  max-width: none;
  margin-block: 30px clamp(58px, 7vw, 82px);
}

.colleagues-page .materials-section > h2 { margin-bottom: 4px; }
.colleagues-page .materials-filters { margin-top: 18px; padding-block: 14px; }
.colleagues-page .filter-status { margin-top: 10px; }

.materials-catalog {
  columns: 3 280px;
  column-gap: 14px;
  margin-top: 16px;
}

.materials-catalog .material-group,
.materials-catalog .material-group + .material-group {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  padding: 16px;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.materials-catalog .material-group > h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  font-weight: 600;
}

.materials-catalog .topic-group { margin-top: 15px; }
.materials-catalog .topic-group:first-of-type { margin-top: 0; }

.materials-catalog .topic-group > h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.materials-catalog .resource-list {
  gap: 4px;
  margin: 5px 0 0 12px;
}

.materials-catalog .resource-item {
  font-size: 0.9rem;
  line-height: 1.38;
}

.channel-bridge {
  width: min(100%, 430px);
  margin: clamp(48px, 7vw, 78px) 32px 10px auto;
  color: var(--accent-dark);
  text-align: center;
}

.channel-bridge p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
}

.channel-bridge span {
  display: block;
  width: fit-content;
  margin: 3px 52px -4px auto;
  font-size: 3rem;
  line-height: 1;
  transform: rotate(6deg);
}

.teacher-channel { margin-top: 0; }
.paid-channel { background: var(--surface); }

.contact-page {
  display: grid;
  min-height: clamp(420px, 65vh, 680px);
  place-items: center;
}

.contact-card {
  display: block;
  overflow: hidden;
  width: min(100%, 1100px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.contact-cover {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero-subtitle {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
}

.hero-trust {
  max-width: 760px;
  margin-top: 20px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-price {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-diagnostic {
  max-width: 720px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #cddbd3;
  border-radius: 14px;
  background: var(--surface-green);
}

.hero-diagnostic strong {
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-diagnostic p { margin-top: 7px; color: var(--muted); font-size: 0.94rem; }

.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.direction-cards { margin-top: 24px; }
.direction-cards .card-link { margin-top: 0; }

.home-system {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1.15fr);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
}

.home-system-copy > p:not(.section-kicker) {
  margin-top: 18px;
  color: var(--muted);
}

.check-list,
.price-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.price-card li {
  position: relative;
  padding-left: 24px;
}

.check-list li + li,
.price-card li + li { margin-top: 8px; }

.check-list li::before,
.price-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 600;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
}

.system-inline-image {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 26px;
  padding: 1px;
  border-radius: var(--radius);
  background: var(--line);
}

.process-flow-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.process-flow > div {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--surface);
}

.process-flow span {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
}

.process-flow h3 { margin-top: 18px; }
.process-flow p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
}

.video-section .section-note { margin-top: 16px; }

.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
}

.video-frame iframe { width: 100%; height: 100%; border: 0; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
}

.about-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: calc(var(--radius) + 6px);
  object-fit: cover;
}

.about-grid > div > p:not(.section-kicker) {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
}

.about-grid.about-grid-wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.about-grid-wide > div > p:not(.section-kicker) { max-width: 860px; }
.about-grid-wide .about-facts { max-width: none; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  max-width: 720px;
  margin-top: 26px;
  padding: 1px;
  border-radius: var(--radius);
  background: var(--line);
}

.about-facts > div { padding: 20px; background: var(--surface); }
.about-facts strong, .about-facts span, .about-facts time { display: block; }
.about-facts span { margin-top: 4px; color: var(--muted); font-size: 0.86rem; }
.about-facts time { margin-top: 10px; color: var(--accent-dark); font-size: 0.78rem; font-weight: 600; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.pricing-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-card-diagnostic { background: var(--surface-green); }

.price-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  padding: clamp(22px, 3vw, 30px);
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.price {
  margin-top: 16px;
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
}

.price span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
}

.price-card ul { margin-bottom: 26px; color: var(--muted); font-size: 0.9rem; }
.price-card .btn { width: 100%; margin-top: auto; }
.price-card-actions { width: 100%; margin-top: auto; }
.price-card .price-card-actions .btn { margin-top: 0; }

.parent-assurance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 34px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #cddbd3;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-green);
}

.parent-assurance-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 1.5rem;
  font-weight: 600;
}

.parent-assurance h2 { max-width: 860px; }
.parent-assurance p:last-child { max-width: 860px; margin-top: 12px; color: var(--muted); }

.faq-list {
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary { padding: 20px 24px; cursor: pointer; font-weight: 600; }
.faq-list details[open] summary { color: var(--accent-dark); }
.faq-list details p { max-width: 760px; padding: 0 24px 22px; color: var(--muted); }

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid #cddbd3;
  border-radius: var(--radius);
  background: var(--surface-green);
}

.final-cta > div > p:last-child { max-width: 720px; margin-top: 12px; color: var(--muted); }
.final-cta .btn { flex: 0 0 auto; }
.final-cta-actions { flex: 0 0 auto; }

.subject-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
}

.subject-visual {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}

.subject-directions { margin-top: 24px; }
.subject-directions .card { scroll-margin-top: 24px; }

.landing-proof {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #cddbd3;
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface-green);
}

.landing-proof-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(24px, 4vw, 54px);
}

.proof-scoreline {
  margin-top: 12px;
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
}

.proof-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.proof-facts span {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(80, 115, 99, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.proof-facts strong,
.proof-facts small { display: block; }
.proof-facts strong { color: var(--accent-dark); font-size: 1.05rem; }
.proof-facts small { margin-top: 2px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

.proof-reviews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.proof-review {
  display: flex;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.proof-review > a {
  display: block;
  height: 154px;
  overflow: hidden;
  background: var(--surface-soft);
}

.proof-review img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.proof-review figcaption {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
  line-height: 1.35;
}

.proof-review figcaption strong { font-size: 0.92rem; }
.proof-review figcaption span { margin-top: 4px; color: var(--muted); font-size: 0.8rem; }
.proof-review figcaption b { margin-top: auto; padding-top: 14px; color: var(--accent-dark); font-size: 0.86rem; }

.subject-formula {
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  border: 1px solid #cddbd3;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(145deg, var(--surface), var(--surface-green));
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 600;
}

.learning-map,
.learning-board,
.progress-panel,
.lesson-dashboard > section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}

.learning-map,
.learning-board,
.progress-panel { overflow: hidden; }

.learning-map-head,
.learning-board-title,
.progress-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.learning-map-head span,
.learning-board-title span,
.progress-panel-head span {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.learning-map-row {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.learning-map-row > span:not(.topic-badge) { color: var(--muted); }

.topic-badge,
.map-status {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.topic-badge { background: var(--accent-soft); color: var(--accent-dark); }
.map-status { background: var(--surface-soft); color: var(--muted); font-style: normal; }
.map-status.is-done { background: #d3eadb; color: #28543a; }
.map-status.is-progress { background: #eee6cf; color: #6d5a26; }

.learning-map-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.learning-map-summary > div { min-width: 0; padding: 16px 18px; background: var(--surface-green); }
.learning-map-summary b, .learning-map-summary span { display: block; }
.learning-map-summary span { margin-top: 3px; color: var(--muted); font-size: 0.76rem; }

.learning-board ol { margin: 0; padding: 0; list-style: none; }

.learning-board li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.learning-board li:last-child { border-bottom: 0; }
.learning-board li > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.learning-board li strong, .learning-board li small { display: block; }
.learning-board li small { margin-top: 2px; color: var(--muted); }

.progress-panel { padding-bottom: 20px; }

.progress-line {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(120px, 1.4fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 0;
  font-size: 0.82rem;
}

.progress-line > i { position: relative; overflow: hidden; height: 9px; border-radius: 999px; background: var(--surface-soft); }
.progress-line > i::after { position: absolute; inset: 0 auto 0 0; width: var(--progress); border-radius: inherit; background: var(--accent); content: ""; }
.progress-line > b { color: var(--accent-dark); font-size: 0.75rem; }

.progress-note { margin: 20px 20px 0; padding: 16px 18px; border-radius: 12px; background: var(--surface-green); }
.progress-note p { margin-top: 4px; color: var(--muted); font-size: 0.84rem; }

.lesson-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.lesson-dashboard > section { overflow: hidden; padding: 22px; }
.progress-dashboard-panel { grid-column: 1 / -1; }

.dashboard-title {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.dashboard-title > span { color: var(--accent); font-family: var(--font-display); font-weight: 600; }
.dashboard-title strong, .dashboard-title small { display: block; }
.dashboard-title small { margin-top: 2px; color: var(--muted); }

.route-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  margin: 30px 10px 12px;
  background: linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat;
}

.route-track i { justify-self: center; width: 18px; height: 18px; border: 3px solid var(--surface); border-radius: 50%; background: #cfd2cc; box-shadow: 0 0 0 1px var(--line); }
.route-track i.is-complete { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.route-track i.is-current { width: 24px; height: 24px; background: var(--surface); box-shadow: 0 0 0 3px var(--accent); }
.route-labels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; color: var(--muted); font-size: 0.7rem; text-align: center; }

.record-list { margin-top: 22px; }
.record-list > div { display: grid; grid-template-columns: minmax(100px, 0.7fr) minmax(130px, 1.2fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.8rem; }
.record-list span { color: var(--muted); }
.record-list i { color: var(--accent-dark); font-style: normal; white-space: nowrap; }

.progress-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.progress-cards > div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.progress-cards span, .progress-cards strong { display: block; }
.progress-cards span { color: var(--muted); font-size: 0.76rem; }
.progress-cards strong { margin-top: 5px; }
.dashboard-recommendation { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--surface-green); }
.dashboard-recommendation span { color: var(--muted); font-size: 0.84rem; }

.lesson-practical-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: start;
  gap: 24px;
  margin-top: 28px;
}

.student-map-example {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}

.student-map-example-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-green);
}

.student-map-example-head span { color: var(--accent); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.student-map-example-head h3 { margin-top: 4px; }
.student-map-example-head b { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.student-map-example dl { margin: 0; }
.student-map-example dl > div { display: grid; grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr); gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.student-map-example dl > div:last-child { border-bottom: 0; }
.student-map-example dt { color: var(--muted); font-size: 0.82rem; }
.student-map-example dd { margin: 0; font-weight: 600; }

.interactive-list { display: grid; gap: 20px; }

.interactive-item {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 60px);
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.interactive-item:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.interactive-item img { aspect-ratio: 16 / 9; width: 100%; height: auto; border-radius: 12px; background: var(--surface-soft); object-fit: contain; }
.interactive-item > div { min-width: 0; padding: 18px clamp(12px, 3vw, 30px) 18px 0; }
.interactive-item h2 { margin-top: 8px; }
.interactive-item p { margin-top: 10px; color: var(--muted); }
.interactive-item strong { display: inline-block; margin-top: 20px; color: var(--accent-dark); }

.interactive-cover {
  display: grid;
  aspect-ratio: 16 / 9;
  width: 100%;
  place-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface-green), var(--accent-soft));
  color: var(--accent-dark);
  text-align: center;
}

.interactive-cover b { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 3rem); }
.interactive-cover small { color: var(--muted); font-size: 0.86rem; }
.interactive-cover-graph { background: linear-gradient(145deg, #edf4fb, #d9e8f6); }
.interactive-cover-parabola { background: linear-gradient(145deg, #f1eef9, #e3e9f7); }

.contact-content {
  display: block;
  min-height: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.message-example {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-green);
}

.message-example p { margin-top: 8px; color: var(--muted); }
.contact-layout .contact-card { width: 100%; }

.bot-card-copy { padding: 18px 12px 12px; color: var(--ink); }
.bot-card-copy p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.footer-contact { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.footer-contact span { color: var(--ink); }
.footer-contact small { color: var(--muted); font-size: 0.76rem; }

.slots-header-inner { justify-content: flex-start; }

.slots-intro { margin-bottom: clamp(42px, 6vw, 72px); }

.slots-instruction {
  margin-top: 12px;
  color: var(--muted);
}

.schedule-section { margin-top: 0; }

.timezone-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.6fr) minmax(280px, 1fr);
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #cddbd3;
  border-radius: var(--radius);
  background: var(--surface-green);
}

.timezone-panel label {
  color: var(--ink);
  font-weight: 600;
}

.timezone-panel select {
  width: 100%;
  min-height: 46px;
  padding: 9px 42px 9px 13px;
  border: 1px solid #afc2b8;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.timezone-panel select:focus-visible {
  border-color: var(--accent);
}

.timezone-panel p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.88rem;
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.schedule-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.status-swatch.is-free {
  border-color: #9fc7ac;
  background: #d3eadb;
}

.status-swatch.is-busy {
  border-color: #74312c;
  background: #8d403a;
}

.status-swatch.is-off {
  display: grid;
  border-color: #d2d2cd;
  background: #f1f0ec;
  color: #777770;
  place-items: center;
  font-size: 0.82rem;
}

.schedule-scroll-hint {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.schedule-table-wrap {
  max-height: min(72vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scrollbar-color: var(--accent-soft) transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.schedule-table {
  width: 100%;
  min-width: 830px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: clamp(0.76rem, 1.1vw, 0.9rem);
}

.schedule-table th,
.schedule-table td {
  height: 52px;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.schedule-table tr > :last-child { border-right: 0; }
.schedule-table tbody tr:last-child > * { border-bottom: 0; }

.schedule-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 600;
}

.schedule-table thead th:first-child span,
.schedule-table thead th:first-child small { display: block; }
.schedule-table thead th:first-child small { margin-top: 3px; color: var(--muted); font-size: 0.72rem; }

.schedule-table tr > :first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  width: 78px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 600;
}

.schedule-table thead tr > :first-child { z-index: 3; }

.slot-cell.is-free {
  background: #d3eadb;
  color: #28543a;
  font-weight: 600;
}

.slot-cell.is-busy {
  background: #8d403a;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #74312c;
}

.slot-cell.is-off {
  background: #f1f0ec;
  color: #777770;
  font-size: 1.08rem;
  font-weight: 600;
}

.day-short { display: none; }

.schedule-error {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.slots-cta { margin-top: clamp(42px, 7vw, 78px); }

.site-footer {
  margin-top: clamp(70px, 10vw, 120px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a { color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(80, 115, 99, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .home-system,
  .video-section,
  .subject-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .video-frame { width: min(100%, 900px); }
  .pricing-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 14px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar { display: none; }

  .site-header.has-compact-nav .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px 14px;
  }

  .site-header.has-compact-nav .brand { grid-column: 1; grid-row: 1; }
  .site-header.has-compact-nav .header-actions { grid-column: 2; grid-row: 1; }
  .site-header.has-compact-nav .nav-toggle { display: inline-flex; }

  .site-header.has-compact-nav .nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }

  .site-header.has-compact-nav .nav.is-open { display: flex; }
  .site-header.has-compact-nav .nav a { padding: 10px 12px; border-radius: 8px; }
  .site-header.has-compact-nav .nav a:hover,
  .site-header.has-compact-nav .nav a.active { background: var(--surface-green); }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-flow > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .landing-proof-head { grid-template-columns: 1fr; }
  .proof-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .channel-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 700px) {
  body { font-size: 16px; }

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

  .home-system,
  .video-section,
  .about-grid,
  .subject-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .video-section { align-items: start; }
  .parent-assurance { grid-template-columns: 1fr; }
  .subject-formula { min-height: 220px; }
  .proof-review > a { height: 170px; }
  .process-flow, .process-flow-four { grid-template-columns: 1fr; }
  .process-flow > div:last-child:nth-child(odd) { grid-column: auto; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .final-cta .btn { width: 100%; }
  .final-cta-actions { width: 100%; }
  .about-facts { grid-template-columns: 1fr; }

  .portrait-placeholder {
    width: min(82vw, 320px);
    justify-self: start;
  }

  .portrait {
    width: min(82vw, 320px);
    justify-self: start;
  }

  .stats { grid-template-columns: 1fr; }
  .cards.two, .cards.three { grid-template-columns: 1fr; }
  .cards.three > :last-child:nth-child(odd) { grid-column: auto; }
  .lesson-visuals { grid-template-columns: 1fr; }
  .lesson-visual-featured { grid-column: auto; }
  .lesson-dashboard { grid-template-columns: 1fr; }
  .lesson-practical-grid { grid-template-columns: 1fr; }
  .progress-dashboard-panel { grid-column: auto; }
  .progress-cards { grid-template-columns: 1fr; }
  .record-list > div { grid-template-columns: 1fr; gap: 3px; }
  .dashboard-recommendation { align-items: flex-start; flex-direction: column; gap: 4px; }
  .interactive-item { grid-template-columns: 1fr; gap: 8px; }
  .interactive-item > div { padding: 14px 12px 20px; }
  .materials-filters { grid-template-columns: 1fr; }
  .colleagues-page .colleague-channel { align-items: flex-start; flex-direction: column; }
  .colleagues-page .colleague-channel a { margin-left: 0; }
  .materials-catalog { columns: 1; }
  .filter-reset { justify-self: start; min-height: auto; }
  .method-steps { grid-template-columns: 1fr; }
  .review-track { grid-auto-columns: minmax(240px, 82%); }
  .review-shot { height: 330px; }
  .review-image-link { height: 176px; flex-basis: 176px; }

  .schedule-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .timezone-panel { grid-template-columns: 1fr; padding: 16px; }
  .timezone-panel p { grid-column: auto; }

  .schedule-scroll-hint { text-align: left; }
  .schedule-table { min-width: 680px; font-size: 0.78rem; }
  .schedule-table th, .schedule-table td { height: 48px; padding-inline: 6px; }
  .schedule-table tr > :first-child { width: 66px; }
  .day-full { display: none; }
  .day-short { display: inline; }

  .channel-card, .resource-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .system-result { grid-template-columns: 1fr; gap: 6px; }

  .channel-card .btn { width: 100%; }
  .channel-bridge {
    margin-right: auto;
  }
  .channel-bridge span {
    margin-right: auto;
    margin-left: auto;
  }
  .muted { flex: 0 1 auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
  .footer-contact { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .wrap { width: min(calc(100% - 24px), var(--wrap)); }
  .nav { gap: 16px; }
  .nav a { font-size: 0.84rem; }
  .site-header.has-compact-nav .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header.has-compact-nav .brand { font-size: 1rem; }
  .header-actions { gap: 6px; }
  .header-cta, .nav-toggle { min-height: 38px; padding: 7px 11px; font-size: 0.78rem; }
  main > section { margin-block: 52px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .carousel-controls { align-self: flex-end; }
  .review-track { grid-auto-columns: 92%; }
  .card { padding: 20px; }
  .proof-facts, .proof-reviews { grid-template-columns: 1fr; }
  .proof-review > a { height: 190px; }
  .learning-map-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding-inline: 12px; }
  .learning-map-row > :nth-child(3), .learning-map-row > :nth-child(4) { display: none; }
  .learning-map-head, .learning-board-title, .progress-panel-head { align-items: flex-start; flex-direction: column; gap: 4px; padding-inline: 16px; }
  .learning-map-head span, .learning-board-title span, .progress-panel-head span { text-align: left; }
  .learning-map-summary > div { padding: 12px 10px; }
  .progress-line { grid-template-columns: 1fr; gap: 7px; padding-inline: 16px; }
  .progress-line > b { justify-self: start; }
  .lesson-dashboard > section { padding: 18px 14px; }
  .route-labels { font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .review-track { scroll-behavior: auto; }
  .review-shot img { transition: none; }
  .card-link { transition: none; }
}
