:root {
  --page: #f6f8fb;
  --white: #ffffff;
  --ink: #17212b;
  --muted: #5f6b78;
  --line: #d9e1ea;
  --line-strong: #b8c5d3;
  --teal: #087f7a;
  --teal-dark: #055d59;
  --mint: #dff8ef;
  --blue: #2d6cdf;
  --coral: #ff6b57;
  --yellow: #f4c542;
  --green: #2e9d63;
  --shadow: 0 18px 48px rgba(34, 45, 57, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, a, span, strong, li, label { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { max-width: 980px; font-size: 58px; letter-spacing: 0; }
h2 { font-size: 38px; letter-spacing: 0; }
h3 { font-size: 22px; letter-spacing: 0; }
p { margin: 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 82px 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand strong { display: block; font-size: 17px; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
  font-weight: 900;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 15px; }
.nav a, .footer-links a { color: var(--muted); text-decoration: none; }
.nav a:hover, .footer-links a:hover { color: var(--teal); }
.header-cta, .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.header-cta, .btn-primary { color: var(--white); background: var(--teal); border-color: var(--teal); }
.header-cta:hover, .btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-secondary { color: var(--ink); background: var(--white); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); }

.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: end;
  color: var(--ink);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(246,248,251,.97) 0%, rgba(246,248,251,.9) 47%, rgba(246,248,251,.34) 100%),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1800&q=84");
  background-position: center;
  background-size: cover;
}
.hero-content { padding: 92px 0 58px; }
.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--teal-dark); }
.hero-text { max-width: 760px; margin-top: 22px; color: var(--muted); font-size: 20px; }
.hero-actions, .hero-facts, .filters, .page-actions, .footer-links, .teacher-points, .question-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions { margin-top: 30px; }
.hero .btn-secondary { color: var(--ink); background: rgba(255,255,255,.82); border-color: var(--line-strong); }
.hero-facts { margin-top: 34px; }
.hero-facts span {
  padding: 9px 12px;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -40px;
}
.trust-strip article, .program-card, .price-grid article, .timeline article, .review-grid article,
.limit-list article, .step-list article, .catalog-item, .note-panel, .requisites, .form,
.status-box, .access-steps article, .payment-side, .legal-note, .module-card, .classroom-side,
.quiz-panel, .certificate {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.trust-strip article { min-height: 138px; padding: 20px; border-top: 5px solid var(--teal); }
.trust-strip article:nth-child(2) { border-top-color: var(--blue); }
.trust-strip article:nth-child(3) { border-top-color: var(--coral); }
.trust-strip article:nth-child(4) { border-top-color: var(--green); }
.trust-strip strong { display: block; margin-bottom: 8px; font-size: 21px; }
.trust-strip span, .program-card p, .program-card li, .timeline p, .review-grid p, .limit-list span,
.step-list p, .catalog-item p, .catalog-item li, .catalog-item aside span, .section-note, .small-note,
.legal-page p, .legal-page li, .note-panel p, .module-card li, .module-control, .classroom-side p {
  color: var(--muted);
}

.intro { background: var(--white); }
.split, .teacher-grid, .lead-grid, .limits-grid, .payment-grid, .access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  gap: 46px;
  align-items: start;
}
.split p, .teacher-grid p, .lead-grid p, .limits-grid p, .page-hero p, .access-layout p, .payment-grid p {
  color: var(--muted);
  font-size: 18px;
}
.step-list { display: grid; gap: 14px; }
.step-list article { padding: 20px; }
.step-list span, .timeline span, .module-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}
.step-list article:nth-child(2) span, .timeline article:nth-child(2) span { background: var(--blue); }
.step-list article:nth-child(3) span, .timeline article:nth-child(3) span { background: var(--coral); }
.step-list strong, .timeline strong { display: block; margin-bottom: 6px; font-size: 20px; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-note { max-width: 470px; font-size: 17px; }
.filters { justify-content: flex-end; }
.filter {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
.filter.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); font-weight: 900; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.program-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-top: 5px solid var(--teal);
}
.program-card:nth-child(2n) { border-top-color: var(--blue); }
.program-card:nth-child(3n) { border-top-color: var(--coral); }
.program-card.is-hidden { display: none; }
.tag {
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 5px 10px;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}
.program-type { margin: 10px 0 10px; font-size: 14px; font-weight: 900; color: var(--teal-dark) !important; }
.program-card ul { margin: 16px 0 20px; padding-left: 18px; }
.card-bottom { margin-top: auto; display: grid; gap: 14px; }
.card-bottom strong, .catalog-item aside strong, .price-grid strong { color: var(--teal-dark); font-size: 24px; }
.more-programs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
  background: var(--mint);
  border: 1px solid #bfe8d8;
  border-radius: 8px;
}
.more-programs p { color: var(--teal-dark); font-weight: 900; }

.process { background: var(--white); }
.process-grid {
  display: grid;
  grid-template-columns: minmax(300px, 450px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.process-visual img, .teacher-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.timeline article { padding: 20px; }
.timeline article:nth-child(4) span { background: var(--green); }
.timeline article:nth-child(5) span { background: var(--yellow); color: var(--ink); }

.teacher { background: #eef5fb; }
.teacher-grid { align-items: center; }
.teacher-points { margin-top: 22px; }
.teacher-points span {
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-grid article { min-height: 310px; display: flex; flex-direction: column; padding: 22px; }
.price-grid span { color: var(--blue); font-weight: 900; }
.price-grid h3 { margin: 12px 0 10px; }
.price-grid p { color: var(--muted); }
.price-grid strong { margin-top: auto; }
.price-grid .btn { margin-top: 16px; }

.limits { background: var(--white); }
.limit-list { display: grid; gap: 14px; }
.limit-list article { padding: 18px; border-left: 5px solid var(--teal); box-shadow: none; }
.limit-list article:nth-child(2) { border-left-color: var(--blue); }
.limit-list article:nth-child(3) { border-left-color: var(--coral); }
.limit-list article:nth-child(4) { border-left-color: var(--green); }
.limit-list strong { display: block; margin-bottom: 6px; }

.reviews { background: var(--page); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-grid article { min-height: 180px; padding: 20px; }
.review-grid strong { display: block; margin-bottom: 10px; color: var(--teal-dark); }

.lead { background: #eef5fb; }
.requisites { display: grid; gap: 6px; margin-top: 24px; padding: 18px; box-shadow: none; }
.requisites span { color: var(--muted); }
.form {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.form label, .access-form label { display: grid; gap: 7px; font-weight: 900; }
.form input, .form select, .form textarea, .access-form input, .access-form select {
  min-height: 46px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}
.form textarea { resize: vertical; }
.check { grid-template-columns: 20px minmax(0, 1fr); align-items: start; font-weight: 400 !important; color: var(--muted); }
.check input { min-height: 20px; margin-top: 3px; }
.check a { color: var(--teal-dark); }

.footer { padding: 30px 0; background: var(--ink); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-inner span { display: block; color: rgba(255,255,255,.72); }
.footer-links a { color: rgba(255,255,255,.74); }
.footer-links a:hover { color: var(--white); }

.page { padding: 74px 0 86px; }
.page-hero { display: grid; gap: 16px; margin-bottom: 28px; }
.catalog-list { display: grid; gap: 18px; }
.catalog-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
  padding: 24px;
  border-left: 5px solid var(--teal);
}
.catalog-item:nth-child(2n) { border-left-color: var(--blue); }
.catalog-item:nth-child(3n) { border-left-color: var(--coral); }
.catalog-item ul { margin: 12px 0 0; padding-left: 18px; }
.catalog-item aside { display: grid; align-content: space-between; gap: 14px; }
.note-panel { display: grid; gap: 12px; margin-top: 28px; padding: 24px; box-shadow: none; }
.mini-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.mini-price-grid span { padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--teal-dark); background: var(--mint); font-weight: 900; }

.access-layout, .payment-grid { margin-top: 12px; }
.access-steps { display: grid; gap: 14px; margin-top: 24px; }
.access-steps article { padding: 18px; box-shadow: none; }
.access-steps span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; color: var(--white); background: var(--teal); border-radius: 8px; font-weight: 900; }
.status-box {
  max-width: 820px;
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px;
  color: var(--muted);
  box-shadow: none;
}
.status-box strong { color: var(--teal-dark); font-size: 20px; }
.status-box.is-loading { border-color: var(--blue); }
.status-box.is-error { color: #8d1e20; border-color: #ffc2c4; background: #fff0f0; }
.status-box.is-success { color: var(--teal-dark); border-color: #aee6d1; background: #effbf5; }
.payment-side { padding: 22px; box-shadow: none; }

.legal-page { max-width: 960px; }
.legal-page h1 { margin-bottom: 20px; }
.legal-page h2 { margin: 34px 0 12px; font-size: 27px; }
.legal-page ul { padding-left: 20px; }
.legal-date { color: var(--teal-dark) !important; font-weight: 900; }
.legal-note { margin: 42px 0; padding: 22px; box-shadow: none; }

.classroom-page { padding-top: 74px; }
.classroom-hero { display: grid; gap: 14px; margin-bottom: 34px; }
.classroom-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.classroom-meta span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--white); }
.classroom-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.module-grid { display: grid; gap: 14px; }
.module-card { padding: 20px; box-shadow: none; }
.module-card ul { margin: 12px 0; padding-left: 18px; }
.module-control { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 900; }
.classroom-side { position: sticky; top: 92px; display: grid; gap: 14px; padding: 20px; box-shadow: none; }
.quiz-panel { margin-top: 42px; padding: 22px; box-shadow: none; }
.quiz-panel form { display: grid; gap: 14px; margin-top: 20px; }
.quiz-item { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.quiz-item legend { padding: 0 8px; color: var(--ink); font-weight: 900; }
.quiz-item label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--muted); }
.certificate { margin-top: 28px; padding: 32px; text-align: center; box-shadow: none; }
.certificate .btn { margin: 20px auto 0; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 33, 43, .72);
  backdrop-filter: blur(12px);
}
.age-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.age-card p { color: var(--muted); }
.age-card label { display: grid; gap: 8px; font-weight: 900; }
.age-card input[type="date"] {
  min-height: 48px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}
.age-error { min-height: 22px; color: #a32020 !important; font-weight: 900; }
body.age-locked { overflow: hidden; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; padding: 14px 0; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  h1 { font-size: 42px; }
  h2 { font-size: 31px; }
  .trust-strip, .program-grid, .price-grid, .review-grid, .split, .teacher-grid, .lead-grid, .limits-grid, .payment-grid, .access-layout, .process-grid, .classroom-layout { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .section-head { display: grid; align-items: start; }
  .filters { justify-content: flex-start; }
  .classroom-side { position: static; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1180px); }
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  h3 { font-size: 20px; }
  .nav { display: none; }
  .hero { min-height: 650px; background-position: 58% center; }
  .hero-content { padding-top: 74px; padding-bottom: 42px; }
  .btn, .header-cta { width: 100%; }
  .section, .page { padding: 54px 0; }
  .catalog-item { grid-template-columns: 1fr; }
  .mini-price-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .more-programs { display: grid; }
}

@media print {
  .header, .footer, .classroom-hero, .classroom-layout, .quiz-panel, .age-gate, .certificate .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .certificate { display: block !important; border: 2px solid #000; color: #000; }
}
