@font-face {
  font-family: "PT Sans Narrow";
  src: url("font/PTSansNarrow-Regular.woff2") format("woff2"),
       url("font/PTSansNarrow-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans Narrow";
  src: url("font/PTSansNarrow-Bold.woff2") format("woff2"),
       url("font/PTSansNarrow-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("font/robotocondensedlight.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("font/robotocondensed.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("font/robotocondensedbold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --ink: #17342f;
  --ink-soft: #49645e;
  --forest: #176b4d;
  --forest-dark: #0f513b;
  --mint: #dff2e6;
  --mint-soft: #f0f8f2;
  --lime: #d9ef74;
  --lime-dark: #badb3e;
  --coral: #ef7246;
  --coral-dark: #d9582d;
  --yellow: #ffd65a;
  --cream: #fbfaf4;
  --paper: #ffffff;
  --line: #dde7e2;
  --muted: #71817d;
  --shadow-sm: 0 8px 24px rgba(23, 52, 47, 0.07);
  --shadow-md: 0 18px 45px rgba(23, 52, 47, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
}
.admin-preview-bar { position:relative; z-index:1100; display:flex; gap:16px; justify-content:space-between; align-items:center; padding:9px clamp(14px,3vw,34px); color:#2d2507; background:#ffe483; border-bottom:1px solid #d8ba4d; font-size:12px; }
.admin-preview-bar>span,.admin-preview-bar>div,.admin-preview-bar form { display:flex; gap:8px; align-items:center; margin:0; }
.admin-preview-bar a,.admin-preview-bar button { padding:5px 9px; color:#2d2507; background:rgba(255,255,255,.55); border:1px solid rgba(90,70,0,.22); border-radius:7px; font:inherit; font-weight:800; text-decoration:none; }
.admin-preview-bar button { cursor:pointer; }
@media (max-width: 620px) {
  .admin-preview-bar { align-items: stretch; flex-direction: column; }
  .admin-preview-bar > div { justify-content: space-between; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-family: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif !important;
}

button,
.btn,
[role="button"] {
  font-size: 16px !important;
  font-weight: 700 !important;
}

body h1,
body h2,
body h3 {
  font-family: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif !important;
  line-height: 1.15;
}
body h1 { font-size: 30px !important; }
body h2 { font-size: 22px !important; }
body h3 { font-size: 19px !important; }

.cookie-consent {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(780px, calc(100% - 40px));
  padding: 16px;
  opacity: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(12, 45, 37, .2);
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent.is-visible { opacity: 1; transform: translateY(0); }
.cookie-consent-icon { display: grid; width: 46px; height: 46px; place-items: center; color: var(--forest); background: var(--mint-soft); border-radius: 14px; font-size: 20px; }
.cookie-consent-copy strong { display: block; margin-bottom: 3px; font-size: 18px; }
.cookie-consent-copy p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.35; }
.cookie-consent-copy a { display: inline-block; margin-top: 4px; color: var(--forest); font-size: 13px; font-weight: 700; }
.cookie-consent-actions { display: flex; gap: 8px; align-items: center; }
.cookie-consent-actions button { padding: 10px 13px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; white-space: nowrap; }
.cookie-consent-actions .cookie-consent-primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.cookie-consent-actions button:hover { transform: translateY(-1px); }

@media (max-width: 760px) {
  .cookie-consent { right: 10px; bottom: 10px; grid-template-columns: 38px minmax(0, 1fr); width: calc(100% - 20px); padding: 13px; }
  .cookie-consent-icon { width: 38px; height: 38px; }
  .cookie-consent-actions { grid-column: 1 / -1; }
  .cookie-consent-actions button { flex: 1; white-space: normal; }
}

.privacy-page { background: linear-gradient(180deg, var(--mint-soft), var(--cream)); }
.privacy-card { max-width: 900px; margin: 0 auto; padding: clamp(24px, 5vw, 52px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.privacy-kicker { color: var(--forest); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.privacy-card h1 { margin: 7px 0 20px; color: var(--ink); }
.privacy-card h2 { margin: 28px 0 8px; color: var(--forest-dark); }
.privacy-card p { color: var(--ink-soft); line-height: 1.55; }
.privacy-card a { color: var(--forest); font-weight: 700; }
.privacy-card code { padding: 2px 5px; color: var(--forest-dark); background: var(--mint-soft); border-radius: 5px; }
.privacy-card ul, .privacy-card ol { color: var(--ink-soft); line-height: 1.58; }
.privacy-card li + li { margin-top: 6px; }
.legal-meta { padding: 14px 16px; color: var(--ink-soft); background: var(--mint-soft); border: 1px solid var(--line); border-radius: 14px; }
.legal-requisites { display: grid; gap: 6px; padding: 18px; background: #f7faf8; border-left: 4px solid var(--forest); border-radius: 0 14px 14px 0; }
.legal-requisites span, .legal-requisites a { overflow-wrap: anywhere; }
.legal-form-check { margin: 12px 0; padding: 10px 12px; background: rgba(229,240,235,.72); border: 1px solid #cbd9d4; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.legal-form-check a { font-weight: 700; }

.auth-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    radial-gradient(circle at 14% 20%, rgba(217, 239, 116, .24), transparent 26rem),
    linear-gradient(180deg, var(--mint-soft), var(--cream));
}

.auth-page .site-header,
.auth-page .edu-footer { flex: 0 0 auto; }

.auth-main {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  padding: 28px 0;
}

.auth-main .card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md) !important;
}

.auth-main .card-body { padding: clamp(26px, 4vw, 42px) !important; }
.auth-main .auth-entry-card {
  background: linear-gradient(145deg, #f7faf8 0%, #edf3f0 100%);
  border-color: #cbd9d4;
}
.auth-main .auth-form-surface {
  margin: 4px 0 22px;
  padding: clamp(17px, 3vw, 22px);
  background: #e3ebe8;
  border: 1px solid #c4d2cd;
  border-radius: 15px;
  box-shadow: inset 0 1px 3px rgba(23, 52, 47, .05);
}
.auth-main .auth-account-help {
  padding: 18px;
  background: #fff8dd;
  border: 1px solid #e8cf7c;
  border-radius: 15px;
  box-shadow: 0 5px 16px rgba(118, 86, 18, .07);
}
.auth-main .auth-account-help > strong { color: #6f4b08; font-size: 1.05rem; }
.auth-main .auth-account-help .btn { min-height: 46px; }
.auth-main h1 { color: var(--forest-dark); font-weight: 850; letter-spacing: -.025em; }
.auth-main .form-label { color: var(--ink-soft); font-size: 14px; font-weight: 750; }
.auth-main .form-control {
  min-height: 48px;
  border-color: #a9bbb5;
  border-radius: 11px;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(23, 52, 47, .05), 0 1px 2px rgba(23, 52, 47, .03);
}
.auth-main .form-control:hover { border-color: #819b92; }
.auth-main .form-control:focus {
  border-color: var(--forest);
  background: var(--paper);
  box-shadow: 0 0 0 .2rem rgba(23, 107, 77, .12);
}
.auth-main .form-check-input:checked { border-color: var(--forest); background-color: var(--forest); }
.auth-main .btn-primary {
  min-height: 50px;
  border-color: var(--forest);
  border-radius: 11px;
  background: var(--forest);
  font-weight: 800;
}
.auth-main .btn-primary:hover,
.auth-main .btn-primary:focus { border-color: var(--forest-dark); background: var(--forest-dark); }
.auth-social { margin: 4px 0 22px; }
.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #64746f;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auth-social-divider::before,
.auth-social-divider::after { content: ""; height: 1px; flex: 1; background: #c4d2cd; }
.auth-social-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #b8c8c2;
  border-radius: 11px;
  background: #fff;
  color: #1d2d28;
  font-weight: 800;
  text-decoration: none;
}
.auth-social-button:hover,
.auth-social-button:focus { border-color: #718b82; background: #f8fbfa; color: #10231d; }
.auth-social-mark {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 31px;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.auth-social-vk .auth-social-mark { background: #07f; }
.auth-social-yandex .auth-social-mark { background: #fc3f1d; }
.auth-social-disabled { cursor: not-allowed; opacity: .58; }
.auth-social-disabled:hover { border-color: #b8c8c2; background: #fff; color: #1d2d28; }
.auth-social-note { margin: 10px 0 0; color: #64746f; font-size: 12px; text-align: center; }
.auth-social-note code { color: #42534d; }
.auth-register-page .auth-main {
  align-items: flex-start;
  padding: 16px 0 24px;
}
.auth-register-container { padding-top: 0; padding-bottom: 0; }
.auth-register-page .card-body { padding: 22px 24px !important; }
.auth-register-page .auth-form-surface {
  margin: 0 0 12px;
  padding: 16px 18px;
}
.auth-register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.auth-register-form > .mb-3,
.auth-register-form > .form-check { margin-bottom: 0 !important; }
.auth-register-form > .auth-social,
.auth-register-form > .d-grid { grid-column: 1 / -1; }
.auth-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.auth-register-checks {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-register-checks .form-check { margin: 0; }
.auth-human-check {
  padding: 7px 11px 7px 34px;
  background: #f3f9d8;
  border: 2px solid #9caf4f;
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(81, 105, 25, .12);
}
.auth-human-check .form-check-input {
  margin-left: -23px;
  border-color: #71852a;
}
.auth-human-check .form-check-label { color: #294d20; font-weight: 900; }
.auth-register-page .form-label { margin-bottom: 4px; }
.auth-register-page .form-control { min-height: 42px; }
.auth-register-page .btn-primary { min-height: 44px; }
.auth-register-page .auth-social { margin: 0 0 12px; }
.auth-register-page .auth-social-divider { margin: 12px 0; }
.auth-register-page .auth-social-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-register-page .auth-social-button { min-height: 44px; padding: 6px 12px; }
.auth-register-page .auth-social-mark { width: 28px; height: 28px; flex-basis: 28px; }
.auth-register-page .auth-social-note { margin-top: 7px; }
.auth-register-separator { margin: 12px 0; }
.auth-register-links { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

@media (max-width: 575.98px) {
  .auth-register-page .auth-main { padding: 10px 0 18px; }
  .auth-register-page .card-body { padding: 18px 16px !important; }
  .auth-register-page .auth-form-surface { padding: 14px; }
  .auth-register-form,
  .auth-register-page .auth-social-actions { grid-template-columns: 1fr; }
  .auth-register-links { align-items: flex-start; flex-direction: column; gap: 5px; }
}
.auth-main a:not(.btn) { color: var(--forest); font-weight: 700; }
.auth-main .btn-outline-primary {
  border-color: var(--forest);
  color: var(--forest);
  border-radius: 11px;
  font-weight: 800;
}
.auth-main .btn-outline-primary:hover,
.auth-main .btn-outline-primary:focus { border-color: var(--forest); color: var(--paper); background: var(--forest); }

a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.header-note {
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.88);
  background: var(--forest-dark);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.header-note .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-note i { margin-right: 6px; color: var(--lime); }
.header-brand-note { display: inline-flex; gap: 9px; align-items: center; color: inherit; text-decoration: none; }
.header-brand-note:hover { color: inherit; }
.header-brand-note > i { margin-right: 0; font-size: 14px; transform: translateY(5px); }
.header-brand-note > span { display: flex; flex-direction: column; line-height: 1.05; }
.header-brand-note strong { color: #fff; font-size: 16px; font-weight: 850; letter-spacing: .01em; }
.header-brand-note small { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.header-note-description { color: rgba(255,255,255,.74); }

.site-header {
  position: relative;
  z-index: 1040;
}

.edu-header {
  min-height: 78px;
  padding: 9px 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 22px rgba(23, 52, 47, 0.06);
}

.edu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.edu-brand:hover { color: var(--ink); }

.edu-logo {
  position: absolute;
  z-index: 1300;
  top: 0;
  left: 0;
  object-fit: contain;
  flex: 0 0 auto;
}

.edu-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.edu-brand-copy strong {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.edu-brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edu-main-nav { gap: 3px; }

.edu-header .edu-main-nav .nav-link {
  position: relative;
  padding: 9px 10px;
  color: var(--ink-soft);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.edu-header .edu-main-nav .nav-link:hover,
.edu-header .edu-main-nav .nav-link.active {
  color: var(--forest);
  background: var(--mint-soft);
}

.edu-header .edu-main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
}

.edu-catalog-menu {
  min-width: 235px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.edu-catalog-menu .dropdown-header {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edu-dropdown-classes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px 8px;
}

.edu-dropdown-classes a {
  display: grid;
  height: 38px;
  place-items: center;
  color: var(--forest-dark);
  background: var(--mint);
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
}

.edu-dropdown-classes a:hover { background: var(--lime); }

.edu-catalog-menu .dropdown-item {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.edu-catalog-menu .dropdown-item:hover { color: var(--forest-dark); background: var(--mint-soft); }

.edu-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: clamp(220px, 24vw, 380px);
  min-width: 190px;
  height: 42px;
  margin-right: 16px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #b9cbc5;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(23, 52, 47, .07);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.edu-search-form:hover { border-color: #8eaaa1; }

.edu-search-form:focus-within {
  background: var(--paper);
  border-color: #5f9382;
  box-shadow: 0 0 0 4px rgba(23, 107, 77, .11), 0 3px 10px rgba(23, 52, 47, .08);
}

.edu-search-form > i { margin: 0 9px 0 13px; font-size: 13px; }

.edu-search-form input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.edu-search-form input::placeholder { color: #84928e; }

.edu-search-form > button {
  display: grid;
  width: 32px;
  height: 32px;
  margin-right: 5px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--paper);
  background: var(--forest);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.edu-search-form > button:hover { background: var(--forest-dark); }

.edu-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(520px, 86vw);
  max-height: 65vh;
  padding: 12px;
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.edu-search-results.is-open { display: block; }
.edu-search-loading { padding: 12px; color: var(--muted); font-size: 14px; }
.edu-search-results .search-item {
  display: flex;
  flex-direction: column;
  margin: 0 0 8px !important;
  padding: 12px !important;
  color: var(--ink);
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  font-size: 13px;
  text-decoration: none;
}
.edu-search-results .search-item:last-child { margin-bottom: 0 !important; }
.edu-search-results .search-item:hover { background: var(--mint-soft); border-color: #b9d5c8 !important; }
.search-item-subject { margin-bottom: 2px; color: var(--coral-dark); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.search-item-title { font-size: 14px; }
.search-item-snippet { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-item-action { margin-top: 6px; color: var(--forest); font-size: 10px; font-weight: 800; }
.edu-search-empty { padding: 13px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.edu-search-results mark { padding: 0 2px; background: #fff0a9; border-radius: 2px; }

.edu-account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.edu-free-lessons {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  color: var(--forest-dark);
  background: #f4f9dd;
  border: 1px solid #dce9a8;
  border-radius: 11px;
  line-height: 1.08;
  text-decoration: none;
  white-space: nowrap;
}
.edu-free-lessons:hover { color: var(--forest-dark); background: #edf6c7; }
.edu-free-lessons-icon { position: relative; display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; color: var(--coral); font-size: 18px; }
.edu-free-lessons-icon b { position: absolute; top: -8px; right: -9px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; color: #fff; background: var(--coral-dark); border: 2px solid #f4f9dd; border-radius: 99px; font-size: 10px; font-weight: 700; line-height: 1; }
.edu-free-lessons:hover .edu-free-lessons-icon b { border-color: #edf6c7; }
.edu-free-lessons > .edu-free-lessons-copy { display: flex; flex-direction: column; }
.edu-free-lessons small { color: #758064; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.edu-free-lessons strong { margin-top: 2px; font-size: 11px; }

.edu-favorites-link {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #c84f57;
  background: #fff3f3;
  border: 1px solid #f1d8d9;
  border-radius: 11px;
  font-size: 17px;
  text-decoration: none;
}
.edu-favorites-link:hover { color: #a8343d; background: #ffe8e8; }
.edu-favorites-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: #c84f57;
  border: 2px solid #fff;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 850;
  line-height: 14px;
  text-align: center;
}

.edu-login-link {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.edu-login-link i { margin-right: 5px; color: var(--forest); }
.edu-login-link:hover { color: var(--forest); }

.edu-register-btn {
  padding: 9px 14px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.edu-register-btn:hover { color: var(--paper); background: var(--forest-dark); }

.edu-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.edu-balance-link {
  display: flex;
  min-width: 82px;
  padding: 7px 10px;
  flex-direction: column;
  color: var(--forest-dark);
  background: var(--mint-soft);
  border: 1px solid #c6ddd2;
  border-radius: 10px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.edu-balance-link:hover { color: var(--forest); background: var(--mint); }
.edu-balance-link small { display: inline-flex; gap: 4px; align-items: center; justify-content: center; color: var(--muted); font-size: 9px; }
.edu-balance-link small i { color: var(--forest); }
.edu-balance-link strong { font-size: 13px; }

.edu-profile-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--forest-dark);
  background: var(--mint);
  border-radius: 10px;
}

.edu-profile-link > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.edu-profile-link small { color: var(--muted); font-size: 10px; }
.edu-profile-link strong { max-width: 100px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.edu-logout { color: var(--muted); }

.navbar-toggler {
  border: 0;
  border-radius: 10px;
  box-shadow: none !important;
}

.home-main { overflow: hidden; }

.edu-sidebar {
  position: relative;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.edu-sidebar-inner {
  position: static;
  min-height: 0;
  padding: 30px 18px;
}

.edu-sidebar-kicker,
.edu-section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.edu-sidebar-heading h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.edu-grade-menu {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.edu-grade-group { border-radius: 12px; }

.edu-grade-group summary {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  transition: background .18s, color .18s, transform .18s;
}

.edu-grade-group summary::-webkit-details-marker { display: none; }

.edu-grade-group summary:hover,
.edu-grade-group[open] summary {
  color: var(--forest-dark);
  background: var(--mint-soft);
  border-color: var(--mint);
}

.edu-grade-group summary:hover { transform: translateX(3px); }

.edu-grade-group summary span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--forest-dark);
  background: var(--mint);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 900;
}

.edu-grade-group:nth-child(2) summary span { background: #fff0bd; }
.edu-grade-group:nth-child(3) summary span { background: #fee2d7; }
.edu-grade-group:nth-child(4) summary span { background: #dfe8ff; }
.edu-grade-group summary strong { font-size: 15px; font-weight: 750; }
.edu-grade-group summary > i { color: #9aaba6; transition: transform .18s; }
.edu-grade-group[open] summary > i { transform: rotate(180deg); }

.edu-grade-submenu {
  display: grid;
  gap: 2px;
  margin: 5px 0 8px 17px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--mint);
}

.edu-grade-submenu a {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  align-items: center;
  padding: 6px 8px;
  color: var(--ink-soft);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.edu-grade-submenu a:hover,
.edu-grade-submenu a.is-active { color: var(--forest-dark); background: var(--mint); }
.edu-grade-submenu i { color: var(--forest); text-align: center; }

.edu-sidebar-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.edu-sidebar-section h3 {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.edu-sidebar-links { display: grid; gap: 2px; }

.edu-sidebar-links a {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 7px;
  align-items: center;
  padding: 7px 5px;
  color: var(--ink-soft);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.edu-sidebar-links a:hover { color: var(--forest); background: var(--mint-soft); }
.edu-sidebar-links i { color: var(--forest); text-align: center; }
.edu-material-links i { color: var(--coral); }

.edu-sidebar-help {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding: 14px;
  color: var(--paper);
  background: var(--forest-dark);
  border-radius: 16px;
}

.edu-help-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--forest-dark);
  background: var(--lime);
  border-radius: 9px;
}

.edu-sidebar-help strong { display: block; font-size: 14px; line-height: 1.3; }
.edu-sidebar-help p { margin: 7px 0 11px; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.4; }
.edu-sidebar-help a { color: var(--lime); font-size: 12px; font-weight: 750; text-decoration: none; }

.edu-content { min-width: 0; background: var(--cream); }

/* Страницы каталога используют этот общий контейнер рядом с меню. */
.content-area {
  min-width: 0;
  padding: 32px clamp(18px, 3vw, 44px);
  background: var(--cream);
}

.content-area h1 {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -.035em;
}

.content-area .card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.content-area .card-body { background: var(--paper); }
.content-area .table a { color: var(--forest); font-weight: 750; }

/* Каталог уроков */
.catalog-content {
  min-width: 0;
  padding: clamp(20px, 3vw, 44px);
  background: var(--cream);
}

.catalog-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: clamp(28px, 5vw, 70px);
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px);
  background: linear-gradient(125deg, #fff 0%, #f4f8eb 58%, #e1f1db 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.catalog-intro::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 330px;
  height: 330px;
  background: rgba(217, 239, 116, .32);
  border-radius: 50%;
}

.catalog-intro-copy,
.catalog-intro-aside { position: relative; z-index: 1; }

.catalog-breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.catalog-breadcrumbs a,
.catalog-breadcrumbs span { display: inline-flex; gap: 5px; align-items: center; }
.catalog-breadcrumbs a { color: var(--forest); text-decoration: none; }
.catalog-breadcrumbs a:hover { text-decoration: underline; }

.catalog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.catalog-tags span,
.catalog-tags a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 10px;
  color: var(--forest-dark);
  background: var(--mint);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
}
.catalog-tags span:last-child,
.catalog-tags a:last-child { color: #8d3d21; background: #fee8df; }
.catalog-tags a:hover { box-shadow: 0 0 0 2px rgba(31,112,92,.12); transform: translateY(-1px); }

.catalog-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.055em;
}
.catalog-intro h1 span { color: var(--forest); }
.catalog-intro-copy > p { max-width: 720px; margin: 22px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }

.catalog-summary {
  display: flex;
  gap: 0;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.catalog-summary > div { display: flex; min-width: 130px; flex-direction: column; padding: 0 22px; border-left: 1px solid var(--line); }
.catalog-summary > div:first-child { padding-left: 0; border-left: 0; }
.catalog-summary strong { color: var(--forest-dark); font-size: 22px; font-weight: 900; line-height: 1; }
.catalog-summary span { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.25; }

.catalog-intro-aside {
  align-self: center;
  padding: 28px;
  color: var(--paper);
  background: var(--forest-dark);
  border-radius: 20px;
  box-shadow: 9px 9px 0 var(--lime);
}
.catalog-aside-heading { display: flex; gap: 13px; margin-bottom: 18px; align-items: center; }
.catalog-aside-icon { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; color: var(--forest-dark); background: var(--lime); border-radius: 12px; font-size: 20px; }
.catalog-aside-heading > strong { color: var(--lime); font-size: 16px; font-weight: 850; line-height: 1.2; }
.catalog-intro-aside > p { margin: 12px 0 21px; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.5; }
.catalog-intro-aside #downloadBtn {
  width: 100%;
  padding: 11px 15px;
  color: var(--forest-dark);
  background: var(--lime);
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
}
.catalog-intro-aside #downloadBtn:hover { background: var(--paper); }

body.download-help-open { overflow: hidden; }
.download-help-modal { position: fixed; z-index: 5000; inset: 0; display: flex; padding: 20px; align-items: flex-start; justify-content: center; overflow-y: auto; overscroll-behavior: contain; background: rgba(8,31,27,.76); backdrop-filter: blur(4px); }
.download-help-modal[hidden] { display: none; }
.download-help-dialog { position: relative; flex: 0 0 auto; width: min(620px,100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto 0; padding: clamp(25px,4vw,40px); overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(5,28,23,.32); }
.download-help-close { position: absolute; top: 17px; right: 17px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; }
.download-help-close:hover { color: var(--forest); background: var(--mint-soft); }
.download-help-head { display: flex; gap: 14px; padding-right: 42px; align-items: center; }
.download-help-head > span { display: grid; flex: 0 0 50px; width: 50px; height: 50px; place-items: center; border-radius: 15px; color: var(--forest-dark); background: var(--lime); font-size: 20px; }
.download-help-head small { display: block; margin-bottom: 1px; color: var(--coral); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.download-help-head h2 { margin: 0; color: var(--forest-dark); font-size: 27px; font-weight: 900; }
.download-help-intro { margin: 18px 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.download-help-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.download-help-steps li { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 11px; padding: 12px; border: 1px solid #e1ebe6; border-radius: 13px; background: #f9fbfa; }
.download-help-steps li > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #fff; background: var(--forest); font-size: 14px; font-weight: 900; }
.download-help-steps li > div { min-width: 0; }
.download-help-steps strong { display: block; color: var(--forest-dark); font-size: 15px; }
.download-help-steps p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.download-help-note { display: flex; gap: 11px; margin-top: 14px; padding: 13px 15px; align-items: flex-start; border: 1px solid #dce8aa; border-radius: 13px; background: #f8fbe8; }
.download-help-note i { margin-top: 2px; color: var(--forest); font-size: 18px; }
.download-help-note p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.download-help-note strong { color: var(--forest-dark); }
.download-help-actions { display: flex; gap: 9px; margin-top: 18px; justify-content: flex-end; }
.download-help-actions button,.download-help-actions a { display: inline-flex; min-height: 42px; padding: 9px 17px; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 850; text-decoration: none; }
.download-help-actions button { border: 1px solid var(--forest); color: var(--forest); background: #fff; }
.download-help-actions a { border: 1px solid var(--forest); color: #fff; background: var(--forest); }
.download-help-actions button:hover { background: var(--mint-soft); }
.download-help-actions a:hover { color: #fff; background: var(--forest-dark); }
@media (max-width: 575.98px) {
  .download-help-modal { padding: 10px; align-items: start; }
  .download-help-dialog { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); margin: auto 0; padding: 25px 18px 20px; border-radius: 19px; }
  .download-help-head { gap: 11px; padding-right: 34px; align-items: flex-start; }
  .download-help-head > span { flex-basis: 43px; width: 43px; height: 43px; border-radius: 12px; }
  .download-help-head h2 { font-size: 23px; line-height: 1.1; }
  .download-help-actions { align-items: stretch; flex-direction: column; }
  .download-help-actions button,.download-help-actions a { width: 100%; }
}

.catalog-lessons { padding: clamp(44px, 5vw, 70px) 0 30px; }
.catalog-section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 25px; }
.catalog-section-heading span { color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.catalog-section-heading h2 { margin: 5px 0 0; color: var(--ink); font-size: clamp(29px, 3vw, 42px); font-weight: 900; letter-spacing: -.035em; }
.catalog-section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }

.lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lesson-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.lesson-card:hover { border-color: #bcd1c8; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lesson-card-top { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; padding: 20px; }
.lesson-number { display: grid; width: 48px; height: 48px; place-items: center; color: var(--forest-dark); background: var(--lime); border-radius: 13px; font-size: 19px; font-weight: 900; }
.lesson-kicker { display: block; margin-bottom: 2px; color: var(--coral); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.lesson-card h3 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.25; }
.lesson-title-link { color: inherit; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lesson-title-link:hover { color: var(--forest); text-decoration: underline; }
.lesson-title-link:focus-visible { color: var(--forest); outline: 2px solid var(--lime-dark); outline-offset: 3px; border-radius: 3px; }
.lesson-count { padding: 4px 8px; color: var(--muted); background: var(--mint-soft); border-radius: 99px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.lesson-materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lesson-file {
  display: grid;
  grid-template-columns: 29px 1fr auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 13px 11px;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  text-decoration: none;
}
.lesson-file:first-child { border-left: 0; }
.lesson-file > i:first-child { display: grid; width: 29px; height: 29px; place-items: center; background: var(--mint-soft); border-radius: 8px; }
.lesson-file > i:last-child { color: #a7b5b1; }
.lesson-file > span { display: flex; min-width: 0; flex-direction: column; }
.lesson-file strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.lesson-file small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.lesson-file:hover { color: var(--forest); background: var(--mint-soft); }
.file-presentation > i:first-child { color: var(--coral); background: #fff0e9; }
.file-teacher > i:first-child { color: var(--forest); }
.file-worksheet > i:first-child { color: #536eaf; background: #edf1ff; }

.lesson-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 16px;
}
.lesson-card-meta span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 8px;
  color: var(--ink-soft);
  background: #f5f8f6;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}
.lesson-card-meta i { color: var(--forest); }
.lesson-card-actions {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  padding: 14px 16px;
  background: #fbfcfb;
  border-top: 1px solid var(--line);
}
.lesson-gift-status { display: flex; gap: 8px; align-items: center; min-width: 0; color: var(--forest); }
.lesson-gift-status > i { font-size: 17px; }
.lesson-gift-status > span { display: flex; min-width: 0; flex-direction: column; line-height: 1.15; }
.lesson-gift-status small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.lesson-gift-status strong { overflow: hidden; color: var(--forest-dark); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lesson-favorite,
.lesson-open-button {
  display: inline-flex;
  gap: 6px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.lesson-favorite { color: #9d5257; background: #fff; border: 1px solid #ead8da; }
.lesson-favorite:hover, .lesson-favorite.is-active { color: #a9343e; background: #fff0f0; border-color: #e7bdc1; }
.lesson-favorite:disabled { opacity: .6; cursor: wait; }
.lesson-open-button { color: #fff; background: var(--forest); border: 1px solid var(--forest); }
.lesson-open-button:hover { color: #fff; background: var(--forest-dark); }

.favorite-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 17px;
  color: #fff;
  background: var(--forest-dark);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s, transform .18s;
}
.favorite-toast.is-visible { opacity: 1; transform: translateY(0); }
.favorite-toast.is-error { background: #9e3941; }

/* Страница комплекта урока */
.lesson-page { min-height: 70vh; padding: 28px 0 70px; background: var(--cream); }
.lesson-page-container { max-width: 1320px; }
.lesson-breadcrumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 20px; padding-left: 155px; color: var(--muted); font-size: 12px; font-weight: 700; }
.lesson-breadcrumbs a { display: inline-flex; gap: 6px; align-items: center; min-height: 31px; padding: 6px 9px; color: var(--forest); background: rgba(255,255,255,.65); border: 1px solid #dbe6e1; border-radius: 9px; text-decoration: none; }
.lesson-breadcrumbs a:hover { text-decoration: underline; }
.lesson-breadcrumbs .lesson-breadcrumb-chip { color: var(--forest-dark); background: var(--mint); border-color: #c7dfd4; text-decoration: none; }
.lesson-breadcrumbs .lesson-breadcrumb-chip.is-subject { color: #8d3d21; background: #fee8df; border-color: #f1d2c5; }
.lesson-breadcrumbs .lesson-breadcrumb-chip:hover { text-decoration: none; box-shadow: 0 0 0 2px rgba(31,112,92,.1); transform: translateY(-1px); }
.lesson-notice { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; }
.lesson-notice-info { color: #244f60; background: #edf8fc; border: 1px solid #c9e6f0; }
.lesson-notice > i { font-size: 22px; }
.lesson-notice > div { display: flex; flex: 1; flex-direction: column; }
.lesson-notice span { font-size: 12px; }
.lesson-notice a { color: inherit; font-weight: 850; }
.lesson-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: clamp(30px, 5vw, 72px);
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(125deg, #fff 0%, #f3f8ea 62%, #e4f2dd 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}
.lesson-hero::after { content: ""; position: absolute; right: -120px; bottom: -170px; width: 390px; height: 390px; background: rgba(217,239,116,.28); border-radius: 50%; }
.lesson-hero-copy, .lesson-access-card { position: relative; z-index: 1; }
.lesson-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.lesson-tags span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; color: var(--forest-dark); background: var(--mint); border-radius: 99px; font-size: 11px; font-weight: 800; }
.lesson-tags span:last-child { color: #8d3d21; background: #fee8df; }
.lesson-eyebrow { color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.lesson-hero h1 { max-width: 820px; margin: 10px 0 18px; color: var(--ink); font-size: clamp(38px, 5vw, 68px); font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.lesson-hero-copy > p { max-width: 740px; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.lesson-trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.lesson-trust-row i { margin-right: 5px; color: var(--forest); }
.lesson-access-card { align-self: center; padding: 28px; color: #fff; background: var(--forest-dark); border-radius: 22px; box-shadow: 9px 9px 0 var(--lime); }
.lesson-access-status-row { display: flex; gap: 13px; margin-bottom: 18px; align-items: center; }
.lesson-access-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; color: var(--forest-dark); background: var(--lime); border-radius: 13px; font-size: 20px; }
.lesson-access-kicker { display: block; color: var(--lime); font-size: 12px; font-weight: 850; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.lesson-access-card > strong { display: block; font-size: 22px; line-height: 1.22; }
.lesson-access-card > p { margin: 12px 0 20px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.5; }
.lesson-package-download { margin-bottom: 10px; }
.lesson-package-download form { margin: 0; }
.lesson-zip-button {
  display: flex;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  color: var(--forest-dark);
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
}
.lesson-zip-button:hover { background: #e4f38e; border-color: #e4f38e; }
.lesson-zip-button:disabled { opacity: .75; cursor: wait; }
.lesson-package-download > small { display: block; margin: 7px 3px 0; color: rgba(255,255,255,.62); font-size: 9px; line-height: 1.35; text-align: center; }
.lesson-favorite-wide { display: flex; gap: 8px; width: 100%; min-height: 44px; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 11px; font-size: 13px; font-weight: 800; }
.lesson-favorite-wide:hover, .lesson-favorite-wide.is-active { color: #53232a; background: #ffe8e8; border-color: #ffe8e8; }
.lesson-preview-section { padding-top: clamp(44px, 6vw, 75px); }
.lesson-preview-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: var(--shadow-sm);
}
.lesson-preview-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  color: var(--forest-dark);
  background: #f8fbf3;
  border-bottom: 1px solid #dfe9c3;
  font-size: 11px;
  font-weight: 800;
}
.lesson-preview-toolbar i { margin-right: 5px; color: var(--forest); }
.lesson-preview-toolbar small { color: var(--muted); font-size: 10px; font-weight: 650; }
.lesson-preview-frame {
  display: block;
  width: 100%;
  height: 720px;
  background: #eef4f0;
  border: 0;
  transition: height .2s ease;
}
.lesson-preview-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  background: #eef4f0;
}
.lesson-preview-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6e1dc;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(24,61,52,.09);
  isolation: isolate;
}
.lesson-preview-card iframe { display: block; width: 100%; height: 100%; background: #fff; border: 0; }
.lesson-preview-summary {
  grid-column: 1 / -1;
  margin: 0;
  color: #6f807b;
  font: 600 11px/1.35 Arial, sans-serif;
  text-align: center;
}
@media (max-width: 620px) {
  .lesson-preview-deck { grid-template-columns: 1fr; gap: 11px; padding: 10px; }
}
.lesson-material-section { padding-top: clamp(44px, 6vw, 75px); }
.lesson-section-heading { display: flex; gap: 30px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.lesson-section-heading span { color: var(--coral); font-size: 14px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.lesson-section-heading h2 { margin: 5px 0 0; color: var(--ink); font-size: clamp(29px, 3.5vw, 43px); font-weight: 900; letter-spacing: -.035em; }
.lesson-section-heading > p { max-width: 470px; margin: 0 0 5px; color: var(--muted); font-size: clamp(16px, 1.1vw, 18px); line-height: 1.45; text-align: right; }
.lesson-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lesson-material-card { position: relative; display: flex; min-height: 350px; padding: 30px; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.lesson-material-icon { display: grid; width: 48px; height: 48px; margin-bottom: 21px; place-items: center; color: var(--forest); background: var(--mint-soft); border-radius: 13px; font-size: 21px; }
.lesson-material-presentation .lesson-material-icon { color: var(--coral); background: #fff0e9; }
.lesson-material-worksheet .lesson-material-icon { color: #536eaf; background: #edf1ff; }
.lesson-material-format { position: absolute; top: 30px; right: 30px; padding: 5px 9px; color: var(--muted); background: #f3f6f4; border-radius: 99px; font-size: 11px; font-weight: 850; }
.lesson-material-card h3 { margin: 0 0 12px; color: var(--ink); font-size: clamp(24px, 2vw, 29px); font-weight: 850; line-height: 1.15; text-align: center; }
.lesson-material-card > p { margin: 0 0 30px; color: var(--muted); font-size: clamp(16px, 1.1vw, 18px); line-height: 1.5; }
.lesson-material-bullets { display: grid; gap: 7px; margin: 0 0 30px; padding: 0; color: var(--muted); font-size: clamp(16px, 1.1vw, 18px); line-height: 1.35; list-style: none; }
.lesson-material-bullets li { position: relative; padding-left: 18px; }
.lesson-material-bullets li::before { position: absolute; top: .58em; left: 0; width: 7px; height: 7px; content: ''; background: var(--forest); border-radius: 50%; }
.lesson-material-description-layout { display: block; margin: 0 0 30px; }
.lesson-material-description-layout .lesson-material-bullets { margin: 0 0 16px; }
.lesson-material-side-list { display: grid; gap: 6px; margin: 0 0 0 18px; padding: 0; color: var(--forest-dark); font-size: clamp(15px, 1vw, 17px); font-weight: 400; line-height: 1.25; list-style: none; text-align: left; }
.lesson-material-side-list li { padding: 2px 0 2px 12px; border-left: 3px solid var(--forest); }
.lesson-material-side-list li:nth-child(2n) { border-left-color: var(--coral); }
.lesson-material-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; margin-top: auto; }
.lesson-material-actions a, .lesson-material-actions button, .lesson-view-locked { display: flex; gap: 7px; min-height: 54px; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 10px; font-size: clamp(14px, 1vw, 16px); line-height: 1.2; font-weight: 850; text-decoration: none; }
.lesson-material-actions a { color: var(--forest); background: #fff; border: 1px solid #bcd4ca; }
.lesson-material-actions a:hover { background: var(--mint-soft); }
.lesson-view-locked { color: #87938f; background: #f5f7f6; border: 1px solid #dde4e1; cursor: default; }
.lesson-material-actions form { margin: 0; }
.lesson-material-actions button { width: 100%; color: #fff; background: var(--forest); border: 1px solid var(--forest); }
.lesson-material-actions button:hover { background: var(--forest-dark); }
.lesson-material-actions button.is-preparing,
.lesson-material-actions button.is-preparing:disabled { color: #22483e; background: #e8f4ef; border-color: #b9d8cc; box-shadow: inset 0 0 0 1px rgba(23,106,85,.05); cursor: wait; opacity: 1; }
.lesson-material-actions button.is-download-ready,
.lesson-material-actions button.is-download-ready:disabled { color: #fff; background: #2b9878; border-color: #2b9878; cursor: default; opacity: 1; }
.lesson-material-actions button.is-preparing i,
.lesson-material-actions button.is-download-ready i { flex: 0 0 auto; }
.lesson-free-explainer { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 18px 20px; color: var(--ink-soft); background: #f8fbf3; border: 1px solid #dfe9c3; border-radius: 16px; }
.lesson-free-explainer > i { color: var(--forest); font-size: 24px; }
.lesson-free-explainer > div { display: flex; flex-direction: column; }
.lesson-free-explainer strong { color: var(--forest-dark); font-size: 22px; }
.lesson-free-explainer span { margin-top: 2px; font-size: 17px; }
.lesson-bottom-download { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(26px, 4vw, 42px); }
.lesson-bottom-download-inner { grid-column: 2; min-width: 0; padding-left: 9px; }
.lesson-bottom-download-inner form { margin: 0; }
.lesson-bottom-download .lesson-zip-button { font-size: 22px !important; }
.lesson-bottom-download-inner > small { display: block; margin: 8px 4px 0; color: var(--muted); font-size: 17px; line-height: 1.4; text-align: center; }

.welcome-complete-modal .modal-content { position: relative; padding: clamp(28px, 5vw, 48px); border: 0; border-radius: 25px; box-shadow: 0 28px 90px rgba(8,31,27,.28); }
.welcome-modal-close { position: absolute; top: 18px; right: 18px; }
.welcome-modal-icon { display: grid; width: 56px; height: 56px; margin-bottom: 16px; place-items: center; color: #a9343e; background: #ffe9e9; border-radius: 17px; font-size: 24px; }
.welcome-modal-kicker { color: var(--forest); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.welcome-complete-modal h2 { margin: 7px 0 10px; color: var(--ink); font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.035em; }
.welcome-modal-lead { max-width: 680px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.welcome-modal-trust { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.welcome-modal-trust span { padding: 6px 9px; color: var(--forest-dark); background: var(--mint-soft); border-radius: 99px; font-size: 10px; font-weight: 800; }
.welcome-modal-trust i { margin-right: 4px; }
.welcome-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.welcome-plan { position: relative; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.welcome-plan.is-featured { background: #fbfdea; border-color: #ccd989; }
.welcome-plan-badge { display: inline-block; margin-bottom: 7px; color: #6a710d; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.welcome-plan h3 { margin: 0 0 8px; font-size: 14px; font-weight: 850; }
.welcome-plan > strong { display: block; color: var(--forest-dark); font-size: 21px; }
.welcome-plan p { margin: 7px 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.welcome-plan small { color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.welcome-modal-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.welcome-modal-actions a, .welcome-modal-actions button { padding: 11px 17px; border-radius: 10px; font-size: 12px; font-weight: 850; text-decoration: none; }
.welcome-modal-actions .welcome-primary { color: #fff; background: var(--forest); border: 1px solid var(--forest); }
.welcome-modal-actions .welcome-secondary { color: var(--forest-dark); background: var(--mint-soft); border: 1px solid #cde3d9; }
.welcome-modal-actions button { color: var(--ink-soft); background: #fff; border: 1px solid var(--line); }
.welcome-modal-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.registration-required-modal .modal-dialog { max-width: 600px; }
.registration-required-modal .welcome-modal-icon { color: #176a54; background: var(--mint-soft); }
.registration-required-modal .welcome-modal-actions { flex-wrap: wrap; }
.registration-required-modal .welcome-modal-actions a { display: inline-flex; gap: 7px; align-items: center; justify-content: center; }
.registration-required-modal .welcome-modal-actions button { flex-basis: 100%; }

.favorite-profile-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; min-height: 88px; align-items: center; padding: 15px; color: #284b43; background: #f8fbfa; border: 1px solid #dfe9e5; border-radius: 14px; text-decoration: none; }
.favorite-profile-card:hover { color: #174c42; background: #eef8f4; border-color: #bdd8cd; }
.favorite-profile-number { display: grid; width: 44px; height: 44px; place-items: center; color: var(--forest-dark); background: var(--lime); border-radius: 11px; font-weight: 850; }
.favorite-profile-copy { display: flex; min-width: 0; flex-direction: column; }
.favorite-profile-copy small { color: #8a9894; font-size: 9px; text-transform: uppercase; }
.favorite-profile-copy strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.catalog-empty {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: clamp(35px, 5vw, 65px) 0;
  padding: clamp(28px, 4vw, 45px);
  background: var(--paper);
  border: 1px dashed #b8ccc4;
  border-radius: 21px;
}
.catalog-empty > span { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; color: var(--forest-dark); background: var(--mint); border-radius: 16px; font-size: 23px; }
.catalog-empty h2 { margin: 0; color: var(--ink); font-size: 24px; font-weight: 850; }
.catalog-empty p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.catalog-directory { padding: clamp(44px, 5vw, 70px) 0 30px; }
.catalog-grade-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.catalog-grade-directory.is-single { grid-template-columns: 1fr; }
.catalog-grade-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow-sm); }
.catalog-grade-card-head {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 21px;
  background: linear-gradient(120deg, #f7fbe9, #edf6f1);
  border-bottom: 1px solid var(--line);
}
.catalog-grade-number { display: grid; width: 58px; height: 58px; place-items: center; color: var(--forest-dark); background: var(--lime); border-radius: 15px; font-size: 27px; font-weight: 900; }
.catalog-grade-card-head > div { min-width: 0; }
.catalog-grade-card-head small { color: var(--coral); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.catalog-grade-card-head h3 { margin: 2px 0 0; color: var(--ink); font-size: 23px; font-weight: 900; letter-spacing: -.025em; }
.catalog-grade-card-head p { margin: 1px 0 0; color: var(--muted); font-size: 11px; }
.catalog-grade-card-head > a { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--forest); border-radius: 11px; text-decoration: none; }
.catalog-grade-card-head > a:hover { background: var(--forest-dark); transform: translateX(2px); }
.catalog-subject-directory { display: grid; gap: 9px; padding: 13px; }
.catalog-grade-directory.is-single .catalog-subject-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-subject-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 14px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  color: var(--ink-soft);
  background: #fbfcfb;
  border: 1px solid #e4ebe8;
  border-radius: 13px;
  text-decoration: none;
  transition: border-color .16s, background .16s, transform .16s;
}
.catalog-subject-link:hover { color: var(--forest-dark); background: var(--mint-soft); border-color: #bad7ca; transform: translateY(-1px); }
.catalog-subject-link-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--forest); background: var(--mint); border-radius: 11px; font-size: 17px; }
.subject-link-2 .catalog-subject-link-icon { color: #8b6215; background: #fff2cb; }
.subject-link-3 .catalog-subject-link-icon { color: #9b4932; background: #ffebe4; }
.subject-link-4 .catalog-subject-link-icon { color: #536eaf; background: #edf1ff; }
.catalog-subject-link-copy { display: flex; min-width: 0; flex-direction: column; }
.catalog-subject-link-copy strong { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.catalog-subject-link-copy small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-subject-link-count { display: flex; min-width: 42px; flex-direction: column; color: var(--forest-dark); text-align: right; }
.catalog-subject-link-count strong { font-size: 15px; line-height: 1; }
.catalog-subject-link-count small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.catalog-subject-link > i { color: #9aaba5; }
.catalog-directory-all { display: flex; justify-content: center; margin-top: 22px; }
.catalog-directory-all a { display: inline-flex; gap: 8px; align-items: center; padding: 11px 16px; color: var(--forest); background: #fff; border: 1px solid #c3d8cf; border-radius: 11px; font-size: 12px; font-weight: 800; text-decoration: none; }
.catalog-directory-all a:hover { background: var(--mint-soft); }

.edu-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  min-height: 530px;
  overflow: hidden;
  background: linear-gradient(115deg, #f7f4e9 0%, #fbfaf4 54%, #e7f3dd 100%);
  border-bottom: 1px solid #e6e8dc;
}

.edu-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 42%;
  width: 300px;
  height: 300px;
  background: rgba(217, 239, 116, .22);
  border-radius: 50%;
  filter: blur(3px);
}

.edu-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 720px;
  padding: 68px clamp(28px, 5vw, 78px);
}

.edu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: var(--forest-dark);
  background: rgba(217, 239, 116, .55);
  border: 1px solid rgba(186, 219, 62, .5);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.edu-eyebrow i { color: var(--coral); }

.edu-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(45px, 4.2vw, 70px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.055em;
}

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

.edu-hero-lead {
  max-width: 590px;
  margin: 24px 0 27px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
}

.edu-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.edu-btn-primary,
.edu-btn-secondary,
.edu-btn-light {
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  transition: transform .18s, background .18s, box-shadow .18s;
}

.edu-btn-primary {
  padding: 13px 20px;
  color: var(--paper);
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(239, 114, 70, .2);
}

.edu-btn-primary i,
.edu-btn-light i { margin-left: 8px; }
.edu-btn-primary:hover { color: var(--paper); background: var(--coral-dark); transform: translateY(-2px); }

.edu-text-link {
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.edu-text-link i { margin-right: 6px; }
.edu-text-link:hover { color: var(--coral-dark); }

.edu-hero-points {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.edu-hero-points li { color: var(--muted); font-size: 11px; font-weight: 650; }
.edu-hero-points i { margin-right: 5px; color: var(--forest); }

.edu-hero-visual {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
}

.edu-hero-visual::before {
  content: "";
  position: absolute;
  width: min(34vw, 500px);
  height: min(34vw, 500px);
  background: rgba(255, 255, 255, .54);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(255,255,255,.55);
}

.edu-hero-visual img {
  position: relative;
  z-index: 1;
  width: min(43vw, 640px);
  max-width: 96%;
  filter: drop-shadow(0 22px 16px rgba(50, 81, 50, .16));
}

.edu-floating-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(23, 107, 77, .12);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 11px;
  font-weight: 800;
}

.edu-floating-label i { color: var(--coral); font-size: 15px; }
.edu-label-one { top: 25%; left: 4%; transform: rotate(-3deg); }
.edu-label-two { right: 6%; bottom: 18%; transform: rotate(3deg); }

.edu-hero-grade-stamp {
  position: absolute;
  z-index: 3;
  top: 13%;
  right: 10%;
  display: grid;
  width: 76px;
  height: 76px;
  place-content: center;
  color: var(--forest-dark);
  background: var(--lime);
  border: 4px solid rgba(255,255,255,.8);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transform: rotate(6deg);
}

.edu-hero-grade-stamp strong { font-size: 23px; font-weight: 900; line-height: .9; }
.edu-hero-grade-stamp span { font-size: 10px; font-weight: 800; }

/* Первый экран: акцент на пользе и примере материала, без крупного логотипа. */
.edu-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, .98fr);
  min-height: 650px;
  background: linear-gradient(116deg, #fffdf7 0%, #fbfaf4 55%, #e7f3dd 100%);
}

.edu-hero::before {
  top: -180px;
  left: 45%;
  width: 440px;
  height: 440px;
  background: rgba(217, 239, 116, .28);
}

.edu-hero-copy {
  max-width: 790px;
  padding: 82px clamp(40px, 5vw, 86px);
  transform: translateY(-48px);
}

.edu-eyebrow {
  margin-bottom: 24px;
  padding: 10px 16px;
  font-size: 13px;
}

.edu-hero h1 {
  font-size: clamp(52px, 4.3vw, 74px);
  line-height: 1.01;
}

.edu-hero-lead {
  max-width: 650px;
  margin: 28px 0 32px;
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.52;
}

.edu-btn-primary {
  padding: 16px 25px;
  border-radius: 15px;
  font-size: 17px;
  box-shadow: 0 14px 30px rgba(239, 114, 70, .26);
}

.edu-text-link { font-size: 16px; }

.edu-hero-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 670px;
  margin-top: 36px;
  padding-top: 27px;
  border-top: 1px solid #d9e2dc;
}

.edu-hero-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-right: 18px;
}

.edu-hero-summary > div + div {
  padding-left: 18px;
  border-left: 1px solid #d9e2dc;
}

.edu-hero-summary strong {
  color: var(--forest-dark);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.edu-hero-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.edu-hero-visual {
  min-height: 650px;
  padding: 70px 46px;
  overflow: visible;
}

.edu-hero-visual::before {
  width: min(35vw, 520px);
  height: min(35vw, 520px);
  background: rgba(255,255,255,.5);
  border: 2px solid rgba(255,255,255,.8);
}

.edu-lesson-preview {
  position: relative;
  z-index: 4;
  width: min(100%, 500px);
  min-height: 410px;
  overflow: hidden;
  background: var(--paper);
  border: 8px solid var(--paper);
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(23, 52, 47, .22);
  transform: rotate(-1.5deg);
}

.edu-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 19px;
  color: var(--paper);
  background: var(--forest-dark);
  font-size: 13px;
  font-weight: 800;
}

.edu-preview-top strong {
  padding: 5px 9px;
  color: var(--forest-dark);
  background: var(--lime);
  border-radius: 99px;
  font-size: 11px;
}

.edu-preview-content {
  position: relative;
  min-height: 314px;
  padding: 30px 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f5ef, #f8fbf1);
}

.edu-preview-label {
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.edu-preview-content h2 {
  position: relative;
  z-index: 2;
  max-width: 310px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 31px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.edu-preview-scene {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 190px;
  height: 170px;
}

.preview-cloud {
  position: absolute;
  right: 19px;
  bottom: 53px;
  color: #91b9d5;
  font-size: 91px;
  filter: drop-shadow(0 7px 0 rgba(255,255,255,.6));
}

.preview-sun { position: absolute; top: 0; right: 1px; color: var(--yellow); font-size: 56px; }
.preview-drops { position: absolute; right: 48px; bottom: 23px; color: #4d9dcc; font-size: 42px; letter-spacing: 5px; transform: rotate(64deg); }
.preview-wind { position: absolute; bottom: 4px; left: -8px; color: var(--forest); font-size: 20px; font-weight: 900; transform: rotate(-8deg); }

.edu-lesson-preview.is-russian .edu-preview-content { background: linear-gradient(145deg, #eef1ff, #fbfaf2); }
.edu-lesson-preview.is-math .edu-preview-content { background: linear-gradient(145deg, #fff4d8, #fbfaf1); }
.edu-lesson-preview.is-pets .edu-preview-content { background: linear-gradient(145deg, #fff0e8, #f9f8ee); }

.preview-text-scene { right: 24px; bottom: 20px; }
.preview-text-paper {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 125px;
  height: 112px;
  padding: 18px 15px;
  background: #fff;
  border: 2px solid #c8d0ec;
  border-radius: 17px;
  box-shadow: 0 9px 0 rgba(100,112,175,.12);
  transform: rotate(4deg);
}
.preview-text-paper i { position: absolute; top: -13px; left: -13px; display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: #6f78bd; border-radius: 12px; font-size: 17px; }
.preview-text-paper span { display: block; height: 7px; margin: 10px 0; background: #dce1f4; border-radius: 99px; }
.preview-text-paper span:nth-of-type(2) { width: 78%; }
.preview-letter-row { position: absolute; right: 68px; bottom: 8px; display: flex; gap: 5px; }
.preview-letter-row b { display: grid; width: 30px; height: 30px; place-items: center; color: #4b568f; background: #fff; border: 1px solid #c8d0ec; border-radius: 9px; box-shadow: 0 4px 9px rgba(64,76,133,.1); font-size: 14px; }

.preview-count-scene { right: 18px; bottom: 17px; display: grid; grid-template-columns: repeat(3, 48px); gap: 7px; align-content: end; justify-content: end; }
.preview-count-scene > span { display: grid; width: 48px; height: 48px; place-items: center; color: #c4663f; background: rgba(255,255,255,.88); border: 2px solid #f0d29c; border-radius: 15px; box-shadow: 0 5px 10px rgba(126,83,28,.1); font-size: 21px; }
.preview-count-scene > span:nth-child(2) { color: #6c9e88; }
.preview-count-scene > span:nth-child(3) { color: #7182bc; }
.preview-count-scene > span:nth-child(4) { color: #e2a52b; }
.preview-count-scene > span:nth-child(5) { color: #bb6780; }
.preview-count-scene > div { grid-column: 1 / -1; display: flex; justify-content: space-around; color: #8c5c1e; font-size: 12px; }

.preview-pets-scene { right: 16px; bottom: 14px; display: grid; grid-template-columns: 72px 34px 72px; align-items: center; }
.preview-pets-scene .preview-pet { display: grid; width: 72px; height: 72px; place-items: center; background: rgba(255,255,255,.9); border: 2px solid #f1cfc1; border-radius: 24px; box-shadow: 0 7px 13px rgba(125,66,55,.1); font-size: 43px; }
.preview-pets-scene > i { color: #ef6f62; font-size: 23px; text-align: center; animation: preview-heartbeat 1.8s ease-in-out infinite; }
.preview-pets-scene > b { grid-column: 1 / -1; margin-top: 10px; color: #c58d7d; font-size: 15px; text-align: center; transform: rotate(-6deg); }
.edu-lesson-preview.is-russian .edu-preview-question span { background: #6f78bd; }
.edu-lesson-preview.is-math .edu-preview-question span { background: #e1a02a; }
.edu-lesson-preview.is-pets .edu-preview-question span { background: #e96f62; }

@keyframes preview-heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.edu-preview-question {
  position: absolute;
  bottom: 24px;
  left: 26px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 13px;
  color: var(--forest-dark);
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
}

.edu-preview-question span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--paper);
  background: var(--coral);
  border-radius: 50%;
  font-weight: 900;
}

.edu-preview-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.edu-preview-footer i { margin-right: 5px; color: var(--coral); }

.edu-preview-carousel {
  position: relative;
  z-index: 4;
  width: min(100%, 500px);
}

.edu-preview-carousel-stage {
  display: grid;
  min-height: 420px;
  align-items: center;
}

.edu-preview-carousel-slide {
  grid-area: 1 / 1;
  width: 100%;
}

.edu-preview-carousel-slide[hidden] { display: none !important; }

.edu-preview-carousel-slide.is-active {
  animation: edu-preview-reveal 1.5s cubic-bezier(.22, .61, .36, 1) both;
}

.edu-preview-carousel-controls {
  position: relative;
  z-index: 8;
  display: flex;
  gap: 12px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 14px auto 0;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(23, 82, 68, .14);
  border-radius: 99px;
  box-shadow: 0 10px 26px rgba(23, 52, 47, .14);
}

.edu-preview-carousel-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--forest-dark);
  background: var(--mint-soft);
  border: 0;
  border-radius: 50%;
  font-size: 18px;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.edu-preview-carousel-arrow:hover,
.edu-preview-carousel-arrow:focus-visible {
  color: var(--paper);
  background: var(--forest);
  outline: none;
  transform: translateY(-1px);
}

.edu-preview-carousel-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.edu-preview-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: #c8d8d1;
  border: 0;
  border-radius: 99px;
  transition: width .2s ease, background-color .2s ease;
}

.edu-preview-carousel-dots button.is-active {
  width: 24px;
  background: var(--coral);
}

.edu-preview-carousel-dots button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

@keyframes edu-preview-reveal {
  from { opacity: 0; transform: translateY(5px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.edu-preview-back {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 9px;
  align-items: center;
  width: 220px;
  height: 300px;
  padding: 18px;
  border: 7px solid var(--paper);
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(23, 52, 47, .14);
  font-size: 14px;
  font-weight: 850;
}

.edu-preview-back i { font-size: 22px; }
.preview-guide { top: 72px; left: 1%; color: #8a6500; background: #fff0b5; transform: rotate(-10deg); }
.preview-sheet { right: 0; bottom: 62px; justify-content: flex-end; color: #4d62a5; background: #e4e9ff; transform: rotate(10deg); }

.edu-complete-badge {
  position: absolute;
  z-index: 6;
  right: 5%;
  bottom: 58px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
}

.edu-complete-badge > i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--forest-dark);
  background: var(--lime);
  border-radius: 9px;
}

.edu-complete-badge span { display: flex; flex-direction: column; color: var(--muted); font-size: 10px; line-height: 1.2; }
.edu-complete-badge strong { color: var(--ink); font-size: 13px; }

body.payment-result-page { background: #f5f9f6; }
.payment-result-main { min-height: 68vh; padding: clamp(38px,6vw,78px) 20px; background: radial-gradient(circle at 82% 8%,rgba(217,239,116,.28),transparent 31%),linear-gradient(180deg,#f5f9f6,#fff); }
.payment-result-card { width: min(100%,900px); margin: 0 auto; overflow: hidden; border: 1px solid #dbe8e2; border-radius: 28px; background: #fff; box-shadow: 0 24px 70px rgba(25,69,58,.13); }
.payment-result-body { padding: clamp(26px,5vw,50px); }
.payment-result-state { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 21px; align-items: center; }
.payment-result-state > span { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 22px; font-size: 29px; }
.payment-result-state.is-success > span { color: #fff; background: linear-gradient(145deg,#1e8067,#0f5d49); box-shadow: 0 12px 25px rgba(23,106,85,.24); }
.payment-result-state.is-pending > span { color: #825a0b; background: #fff0bd; }
.payment-result-state.is-cancelled > span { color: #805263; background: #ffe6ee; }
.payment-result-state small { color: #5ba68d; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.payment-result-state h1 { margin: 3px 0 6px; color: #143f36; font-size: 30px; line-height: 1.08; }
.payment-result-state p { max-width: 680px; margin: 0; color: #687c75; font-size: 16px; line-height: 1.45; }
.payment-purchase-summary { margin-top: 28px; padding: 25px; border: 1px solid #dce9e3; border-radius: 21px; background: linear-gradient(145deg,#f2faf6,#fbfdfc); }
.payment-purchase-main > small { color: #71867f; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.payment-purchase-main h2 { margin: 4px 0 6px; color: #164b3e; font-size: 22px; line-height: 1.15; }
.payment-purchase-main p { margin: 0; color: #6d7f79; font-size: 14px; }
.payment-purchase-summary dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #dce8e3; }
.payment-purchase-summary dl > div { display: flex; min-width: 0; padding: 0 16px; flex-direction: column; }
.payment-purchase-summary dl > div:first-child { padding-left: 0; }
.payment-purchase-summary dl > div + div { border-left: 1px solid #dce8e3; }
.payment-purchase-summary dt { color: #7b8d87; font-size: 12px; font-weight: 600; }
.payment-purchase-summary dd { margin: 4px 0 0; color: #174e40; font-size: 17px; font-weight: 800; line-height: 1.25; }
.payment-purchase-terms { margin: 18px 0 0; padding: 12px 14px; color: #715622; background: #fff8de; border-radius: 12px; font-size: 13px; }
.payment-purchase-terms i { margin-right: 6px; color: #c38d1a; }
.payment-next-steps { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 16px; margin-top: 20px; padding: 21px 23px; border: 1px solid #e7e7b8; border-radius: 19px; background: #fbfce9; }
.payment-next-icon { display: grid; width: 50px; height: 50px; place-items: center; color: #315c16; background: #d9ef74; border-radius: 15px; font-size: 21px; }
.payment-next-steps h2 { margin: 0 0 10px; color: #29493e; font-size: 22px; }
.payment-next-steps ol { display: grid; gap: 7px; margin: 0; padding-left: 21px; color: #61736d; font-size: 14px; line-height: 1.4; }
.payment-next-steps li::marker { color: #29785f; font-weight: 800; }
.payment-result-actions { display: flex; gap: 11px; margin-top: 24px; align-items: center; flex-wrap: wrap; }
.payment-result-actions .btn { display: inline-flex; min-height: 48px; gap: 8px; padding-right: 20px; padding-left: 20px; align-items: center; justify-content: center; }
.payment-safe-note { margin: 18px 0 0; color: #71827c; font-size: 13px; }
.payment-safe-note i { margin-right: 6px; color: #3e9378; }
.payment-order-details { margin-top: 20px; padding-top: 17px; border-top: 1px solid #e5ece9; color: #74847f; font-size: 13px; }
.payment-order-details summary { width: max-content; cursor: pointer; color: #58736a; font-weight: 700; }
.payment-order-details > div { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px 12px; margin-top: 12px; }
.payment-order-details code { overflow-wrap: anywhere; color: #48655c; }
.payment-order-details strong { color: #48655c; }

@media (max-width: 650px) {
  .payment-result-main { padding: 24px 12px; }
  .payment-result-card { border-radius: 21px; }
  .payment-result-state { grid-template-columns: 54px minmax(0,1fr); gap: 14px; align-items: start; }
  .payment-result-state > span { width: 54px; height: 54px; border-radius: 17px; font-size: 22px; }
  .payment-result-state h1 { font-size: 26px; }
  .payment-purchase-summary { padding: 20px; }
  .payment-purchase-summary dl { grid-template-columns: 1fr; gap: 12px; }
  .payment-purchase-summary dl > div { padding: 0; }
  .payment-purchase-summary dl > div + div { padding-top: 12px; border-top: 1px solid #dce8e3; border-left: 0; }
  .payment-next-steps { grid-template-columns: 1fr; padding: 19px; }
  .payment-result-actions { align-items: stretch; flex-direction: column; }
  .payment-result-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .edu-preview-carousel-slide.is-active { animation: none; }
  .preview-pets-scene > i { animation: none; }
}

.edu-section { padding: 92px clamp(32px, 5vw, 80px); }

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

.edu-section-heading h2,
.edu-kit-intro h2,
.edu-benefit-copy h2,
.edu-final-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 3.3vw, 54px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.edu-section-heading > p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.edu-section-link {
  color: var(--forest);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.edu-section-link:hover { color: var(--coral-dark); }
.edu-section-link i { margin-left: 5px; }

.edu-grade-section { background: var(--paper); }

.edu-grade-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.edu-grade-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 148px;
  padding: 24px;
  overflow: hidden;
  color: var(--ink);
  background: var(--mint-soft);
  border: 1px solid #d7eadd;
  border-radius: 18px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.edu-grade-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,.45);
  border-radius: 50%;
}

.edu-grade-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.grade-two { background: #fff9e6; border-color: #f2e5b7; }
.grade-three { background: #fff3ee; border-color: #f4d9cf; }
.grade-four { background: #f2f5ff; border-color: #dce3f7; }

.edu-grade-number {
  display: grid;
  width: 58px;
  height: 70px;
  place-items: center;
  color: var(--forest-dark);
  background: var(--paper);
  border-radius: 15px;
  box-shadow: 0 5px 12px rgba(23,52,47,.07);
  font-size: 38px;
  font-weight: 900;
}

.grade-two .edu-grade-number { color: #b87e05; }
.grade-three .edu-grade-number { color: var(--coral-dark); }
.grade-four .edu-grade-number { color: #5269ac; }
.edu-grade-info { display: flex; flex-direction: column; min-width: 0; }
.edu-grade-info strong { font-size: 23px; font-weight: 850; }
.edu-grade-info small { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.edu-grade-card > i { position: relative; z-index: 1; color: #93a39f; }

.edu-subjects-section { background: var(--cream); }

.edu-subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.edu-subject-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 168px;
  padding: 30px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(23,52,47,.04);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.edu-subject-card:hover { color: var(--ink); border-color: #a8cabb; transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.edu-subject-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: #ad4d2a;
  background: #fee5dc;
  border-radius: 18px;
  font-size: 26px;
}

.subject-reading .edu-subject-icon { color: #99700c; background: #fff0bd; }
.subject-world .edu-subject-icon { color: var(--forest); background: var(--mint); }
.subject-math .edu-subject-icon { color: #5269ac; background: #e5eaff; }
.edu-subject-copy { display: flex; flex-direction: column; }
.edu-subject-copy strong { font-size: 26px; font-weight: 850; letter-spacing: -.015em; }
.edu-subject-copy small { max-width: 520px; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.edu-card-arrow { display: grid; width: 35px; height: 35px; place-items: center; color: var(--forest); background: var(--mint-soft); border-radius: 50%; }

.edu-kit-section {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(600px, 1.6fr);
  gap: clamp(35px, 5vw, 80px);
  align-items: center;
  color: var(--paper);
  background: var(--forest-dark);
}

.edu-kit-section .edu-section-kicker { color: var(--lime); }
.edu-kit-intro h2 { color: var(--paper); }
.edu-kit-intro > p { margin: 24px 0 30px; color: rgba(255,255,255,.74); font-size: 17px; line-height: 1.65; }

.edu-btn-secondary { padding: 14px 21px; color: var(--forest-dark); background: var(--lime); font-size: 16px; }
.edu-btn-secondary:hover { color: var(--forest-dark); background: #e5f795; transform: translateY(-2px); }

.edu-kit-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.edu-kit-card {
  position: relative;
  min-height: 340px;
  padding: 28px 24px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-radius: 20px;
}

.edu-kit-index {
  position: absolute;
  top: 15px;
  right: 17px;
  color: #d6dfdc;
  font-size: 12px;
  font-weight: 850;
}

.edu-kit-icon { display: grid; width: 54px; height: 54px; margin-bottom: 28px; place-items: center; color: var(--coral-dark); background: #fee5dc; border-radius: 15px; font-size: 22px; }
.kit-guide { color: #96700c; background: #fff0bd; }
.kit-sheet { color: var(--forest); background: var(--mint); }
.edu-kit-card h3 { margin: 0 0 13px; font-size: 25px; font-weight: 850; }
.edu-kit-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.edu-kit-tag { position: absolute; bottom: 20px; left: 20px; padding: 6px 9px; color: var(--ink-soft); background: #f4f6f5; border-radius: 7px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.edu-benefit-section { background: var(--paper); }

.edu-benefit-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding: clamp(30px, 5vw, 66px);
  background: var(--mint-soft);
  border: 1px solid #dbece1;
  border-radius: var(--radius-lg);
}

.edu-benefit-copy > p { max-width: 680px; margin: 22px 0 29px; color: var(--muted); font-size: 17px; }
.edu-benefit-copy ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.edu-benefit-copy li { display: flex; gap: 11px; align-items: flex-start; }
.edu-benefit-copy li > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; color: var(--forest-dark); background: var(--lime); border-radius: 8px; font-size: 11px; }
.edu-benefit-copy li div { display: flex; flex-direction: column; }
.edu-benefit-copy li strong { font-size: 18px; font-weight: 850; }
.edu-benefit-copy li small { margin-top: 3px; color: var(--muted); font-size: 14px; }

.edu-benefit-quote {
  position: relative;
  padding: 35px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 24px;
  box-shadow: 12px 12px 0 var(--lime);
}

.edu-benefit-quote > i { color: var(--lime); font-size: 25px; opacity: .9; }
.edu-benefit-quote p { margin: 20px 0; font-size: clamp(20px, 2vw, 28px); font-weight: 750; line-height: 1.25; letter-spacing: -.02em; }
.edu-benefit-quote span { color: rgba(255,255,255,.72); font-size: 14px; }

.edu-steps-section { background: var(--cream); }
.edu-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.edu-steps li { position: relative; display: flex; gap: 14px; padding-right: 35px; }
.edu-steps li[id] { scroll-margin-top: 120px; }
.edu-steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: 15px; left: 58px; border-top: 1px dashed #b7c7c2; transform: translateX(100%); width: calc(100% - 75px); }
.edu-steps li > span { position: relative; z-index: 1; display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; color: var(--forest-dark); background: var(--lime); border-radius: 13px; font-size: 18px; font-weight: 900; }
.edu-steps div { padding-top: 2px; }
.edu-steps strong { font-size: 22px; font-weight: 850; }
.edu-steps p { margin: 7px 0 0; color: var(--muted); font-size: 15px; }

.edu-final-cta {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  margin: 0 clamp(24px, 4vw, 64px) 70px;
  padding: clamp(35px, 5vw, 60px);
  color: var(--paper);
  background: var(--coral);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(217, 88, 45, .18);
}

.edu-final-cta h2 { color: var(--paper); }
.edu-cta-badge { display: inline-block; margin-bottom: 11px; padding: 6px 10px; color: #843216; background: rgba(255,255,255,.55); border-radius: 99px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.edu-final-cta p { max-width: 680px; margin: 20px 0 0; color: rgba(255,255,255,.86); font-size: 17px; }
.edu-final-actions { display: flex; min-width: 240px; flex-direction: column; align-items: center; gap: 9px; }
.edu-btn-light { width: 100%; padding: 16px 22px; color: var(--forest-dark); background: var(--paper); font-size: 17px; }
.edu-btn-light:hover { color: var(--forest-dark); background: var(--lime); transform: translateY(-2px); }
.edu-final-actions span { color: rgba(255,255,255,.78); font-size: 10px; font-weight: 650; }
.edu-final-actions span i { margin-right: 4px; }

.edu-footer {
  color: var(--paper);
  background: #102a26;
}

.edu-footer-main {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(500px, 1.3fr);
  gap: 8vw;
  padding: 54px 0 42px;
}

.edu-footer .edu-brand { color: var(--paper); }
.edu-footer-brand .edu-brand > img { width: 160px; height: auto; object-fit: contain; flex: 0 0 auto; }
.edu-footer .edu-brand-copy small { color: rgba(255,255,255,.48); }
.edu-footer-brand > p { max-width: 420px; margin: 20px 0 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.55; }
.edu-footer-contacts { display: flex; flex-direction: column; gap: 5px; margin-top: 18px; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.45; }
.edu-footer-contacts strong { color: rgba(255,255,255,.78); font-size: 12px; }
.edu-footer-contacts a { width: fit-content; color: rgba(255,255,255,.72); text-decoration: none; }
.edu-footer-contacts a:hover { color: var(--paper); }
.edu-footer-nav { display: grid; grid-template-columns: repeat(4, minmax(105px, 1fr)); gap: 25px; }
.edu-footer-nav > div { display: flex; flex-direction: column; gap: 8px; }
.edu-footer-nav h2 { margin: 0 0 5px; color: var(--lime); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.edu-footer-nav a { color: rgba(255,255,255,.62); font-size: 12px; text-decoration: none; }
.edu-footer-nav a:hover { color: var(--paper); }
.edu-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 22px; color: rgba(255,255,255,.38); border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; }
.edu-footer-bottom div { display: flex; gap: 20px; }
.edu-footer-bottom a { color: inherit; text-decoration: none; }
.edu-footer-bottom a:hover { color: var(--paper); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #edf2ef; }
::-webkit-scrollbar-thumb { background: #9db8ae; border-radius: 20px; }

@media (min-width: 1600px) {
  .header-note { font-size: 15px; }
  .edu-brand-copy strong { font-size: 26px; }
  .edu-brand-copy small { font-size: 11px; }
  .edu-header .edu-main-nav .nav-link { padding: 10px 13px; font-size: 17px; }
  .edu-search-form { width: 310px; height: 46px; }
  .edu-search-form input, .edu-login-link, .edu-register-btn { font-size: 16px; }
  .edu-sidebar-inner { padding: 36px 24px; }
  .edu-sidebar-heading h2 { font-size: 28px; }
  .edu-grade-menu strong { font-size: 17px; }
  .edu-sidebar-links a { padding-top: 9px; padding-bottom: 9px; font-size: 16px; }
  .edu-sidebar-help strong { font-size: 16px; }
  .edu-sidebar-help p, .edu-sidebar-help a { font-size: 13px; }
  .edu-hero-summary span { font-size: 14px; }
  .edu-section-heading > p { max-width: 560px; font-size: 19px; }
  .edu-section-link { font-size: 18px; }
}

@media (max-width: 1399.98px) {
  .edu-brand-copy strong { font-size: 18px; }
  .edu-brand-copy small { display: none; }
  .edu-search-form { width: clamp(210px, 22vw, 320px); }
  .edu-header .edu-main-nav .nav-link { padding-right: 7px; padding-left: 7px; font-size: 13px; }
  .edu-account { padding-left: 10px; }
  .edu-register-btn { padding-right: 10px; padding-left: 10px; }
  .edu-free-lessons > .edu-free-lessons-copy { display: none; }
  .edu-free-lessons { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .edu-grade-card { grid-template-columns: 52px 1fr; }
  .edu-grade-card > i { display: none; }
  .edu-grade-number { width: 52px; height: 64px; }
}

@media (max-width: 1199.98px) {
  .edu-header { min-height: auto; }
  .edu-header .navbar-collapse { padding: 18px 0 8px; border-top: 1px solid var(--line); margin-top: 10px; }
  .edu-main-nav { margin-bottom: 12px; }
  .edu-header .edu-main-nav .nav-link { padding: 9px 12px; }
  .edu-header .edu-main-nav .nav-link.active::after { display: none; }
  .edu-search-form { width: 100%; min-width: 0; max-width: none; margin: 8px 0 12px; }
  .edu-account { padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .edu-free-lessons { width: auto; padding: 7px 10px; }
  .edu-free-lessons > .edu-free-lessons-copy { display: flex; }
  .edu-sidebar-inner { padding: 26px 14px; }
  .edu-grade-group summary { grid-template-columns: 33px 1fr; }
  .edu-grade-group summary > i { display: none; }
  .edu-sidebar-help { padding: 12px; }
  .edu-help-icon { display: none; }
  .edu-hero { grid-template-columns: 1.1fr .9fr; }
  .edu-hero-copy { padding-right: 30px; padding-left: 40px; }
  .edu-label-one { left: 0; }
  .edu-label-two { right: 2%; }
  .edu-grade-cards { grid-template-columns: repeat(2, 1fr); }
  .edu-grade-card { grid-template-columns: 60px 1fr auto; }
  .edu-grade-card > i { display: block; }
  .edu-kit-section { grid-template-columns: 1fr; }
  .edu-kit-intro { max-width: 650px; }
}

@media (max-width: 991.98px) {
  .edu-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .edu-sidebar-inner { min-height: auto; padding: 24px; }
  .edu-sidebar-heading { display: flex; gap: 10px; align-items: baseline; }
  .edu-sidebar-kicker { margin: 0; }
  .edu-sidebar-heading h2 { font-size: 16px; }
  .edu-grade-menu { grid-template-columns: repeat(4, 1fr); margin-top: 13px; }
  .edu-grade-group summary { grid-template-columns: 35px 1fr; }
  .edu-sidebar-section, .edu-sidebar-help { display: none; }
  .edu-hero { grid-template-columns: 1fr .78fr; min-height: 480px; }
  .edu-hero h1 { font-size: clamp(42px, 6.6vw, 60px); }
  .edu-hero-copy { padding: 50px 24px; transform: none; }
  .edu-hero-visual img { width: min(48vw, 500px); }
  .edu-floating-label { display: none; }
  .edu-hero-grade-stamp { top: 13%; right: 4%; width: 65px; height: 65px; }
  .edu-section { padding: 56px 24px; }
  .edu-subject-card { padding: 20px; }
  .edu-kit-cards { gap: 9px; }
  .edu-kit-card { min-height: 280px; }
  .edu-benefit-panel { grid-template-columns: 1fr; }
  .edu-benefit-quote { max-width: 620px; }
  .edu-final-cta { margin: 0 24px 56px; }
  .edu-footer-main { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 767.98px) {
  .header-note .container-fluid { justify-content: center; }
  .edu-brand-copy strong { font-size: 17px; }
  .edu-sidebar-inner { padding: 18px 16px; overflow-x: auto; }
  .edu-sidebar-heading { display: none; }
  .edu-grade-menu { width: max-content; grid-template-columns: repeat(4, 180px); margin: 0; }
  .edu-grade-group summary { background: var(--mint-soft); }
  .edu-hero { display: block; min-height: 0; }
  .edu-hero-copy { padding: 52px 22px 34px; text-align: center; }
  .edu-hero-lead { margin-right: auto; margin-left: auto; }
  .edu-hero-actions, .edu-hero-points { justify-content: center; }
  .edu-hero-points { display: grid; text-align: left; }
  .edu-hero-visual { min-height: 320px; }
  .edu-hero-visual::before { width: 300px; height: 300px; }
  .edu-hero-visual img { width: min(520px, 100%); }
  .edu-hero-grade-stamp { top: 0; right: 13%; }
  .edu-section-heading { display: block; }
  .edu-section-heading > p, .edu-section-link { display: block; margin-top: 14px; }
  .edu-grade-cards { grid-template-columns: 1fr; }
  .edu-grade-card { min-height: 100px; }
  .edu-subject-grid { grid-template-columns: 1fr; }
  .edu-kit-cards { grid-template-columns: 1fr; }
  .edu-kit-card { min-height: 235px; }
  .edu-kit-icon { margin-bottom: 18px; }
  .edu-steps { grid-template-columns: 1fr; gap: 22px; }
  .edu-steps li:not(:last-child)::after { top: 45px; left: 22px; width: 1px; height: 28px; border-top: 0; border-left: 1px dashed #b7c7c2; transform: none; }
  .edu-final-cta { display: block; text-align: center; }
  .edu-final-cta p { margin-right: auto; margin-left: auto; }
  .edu-final-actions { margin-top: 26px; }
  .edu-footer-nav { grid-template-columns: repeat(2, 1fr); }
  .edu-footer-bottom { align-items: center; flex-direction: column; text-align: center; }
}

@media (max-width: 575.98px) {
  .header-brand-note small { display: none; }
}

@media (max-width: 479.98px) {
  .edu-brand-copy strong { font-size: 16px; }
  .edu-hero h1 { font-size: 41px; }
  .edu-hero-lead { font-size: 16px; }
  .edu-hero-actions { flex-direction: column; gap: 15px; }
  .edu-btn-primary { width: 100%; }
  .edu-section { padding: 48px 16px; }
  .edu-section-heading h2, .edu-kit-intro h2, .edu-benefit-copy h2, .edu-final-cta h2 { font-size: 31px; }
  .edu-grade-card { grid-template-columns: 52px 1fr; padding: 14px; }
  .edu-grade-card > i { display: none; }
  .edu-grade-number { width: 52px; height: 62px; font-size: 33px; }
  .edu-subject-card { grid-template-columns: 53px 1fr; gap: 13px; padding: 17px; }
  .edu-subject-icon { width: 53px; height: 53px; border-radius: 14px; font-size: 21px; }
  .edu-card-arrow { display: none; }
  .edu-subject-copy strong { font-size: 18px; }
  .edu-benefit-panel { padding: 25px 20px; border-radius: 24px; }
  .edu-benefit-quote { padding: 27px 23px; box-shadow: 7px 7px 0 var(--lime); }
  .edu-final-cta { margin: 0 16px 48px; padding: 35px 22px; border-radius: 24px; }
  .edu-footer-nav { grid-template-columns: 1fr; }
}

@media (max-width: 1199.98px) {
  .catalog-intro { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
  .catalog-summary > div { min-width: 0; padding: 0 14px; }
  .lesson-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .catalog-content { padding: 16px; }
  .catalog-intro { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 22px; }
  .catalog-intro h1 { font-size: 44px; }
  .catalog-intro-copy > p { font-size: 15px; }
  .catalog-intro-aside { max-width: none; padding: 22px; box-shadow: 6px 6px 0 var(--lime); }
  .catalog-summary { display: grid; grid-template-columns: repeat(3, 1fr); }
  .catalog-summary > div { padding: 0 9px; }
  .catalog-summary strong { font-size: 18px; }
  .catalog-summary span { font-size: 9px; }
  .catalog-section-heading { display: block; }
  .catalog-section-heading > p { margin-top: 8px; }
  .lesson-materials { grid-template-columns: 1fr; }
  .lesson-file { border-top: 1px solid var(--line); border-left: 0; }
  .lesson-file:first-child { border-top: 0; }
}

@media (max-width: 479.98px) {
  .catalog-breadcrumbs { margin-bottom: 18px; }
  .catalog-intro h1 { font-size: 38px; }
  .catalog-summary { grid-template-columns: 1fr; gap: 13px; }
  .catalog-summary > div { padding: 0; border-left: 0; }
  .catalog-summary span { margin-top: 2px; font-size: 10px; }
  .lesson-card-top { grid-template-columns: 43px 1fr; padding: 16px; }
  .lesson-number { width: 43px; height: 43px; }
  .lesson-count { display: none; }
  .catalog-empty { align-items: flex-start; padding: 24px 19px; }
  .catalog-empty > span { width: 48px; height: 48px; }
  .catalog-empty h2 { font-size: 20px; }
}

@media (max-width: 1199.98px) {
  .lesson-card-actions { grid-template-columns: 1fr auto; }
  .lesson-gift-status { grid-column: 1 / -1; }
  .lesson-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .lesson-hero { grid-template-columns: 1fr; padding: 30px 24px; }
  .lesson-access-card { width: 100%; box-shadow: 6px 6px 0 var(--lime); }
  .lesson-material-grid { grid-template-columns: 1fr; }
  .catalog-grade-directory { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .lesson-card-actions { grid-template-columns: 1fr; }
  .lesson-favorite, .lesson-open-button { width: 100%; }
  .lesson-section-heading { display: block; }
  .lesson-section-heading > p { margin-top: 8px; text-align: left; }
  .lesson-trust-row { gap: 9px 14px; }
  .lesson-material-actions { grid-template-columns: 1fr; }
  .lesson-material-side-list { margin-left: 14px; }
  .lesson-bottom-download { grid-template-columns: 1fr; }
  .lesson-bottom-download-inner { grid-column: 1; padding-left: 0; }
  .welcome-plan-grid { grid-template-columns: 1fr; }
  .welcome-modal-actions { align-items: stretch; flex-direction: column; }
  .welcome-modal-actions a, .welcome-modal-actions button { width: 100%; text-align: center; }
  .lesson-preview-toolbar { align-items: flex-start; flex-direction: column; gap: 3px; }
  .catalog-grade-directory.is-single .catalog-subject-directory { grid-template-columns: 1fr; }
}

@media (max-width: 479.98px) {
  .lesson-page { padding-top: 18px; }
  .lesson-breadcrumbs { padding-left: 118px; overflow: visible; white-space: normal; }
  .lesson-breadcrumbs > i { font-size: 9px; }
  .lesson-breadcrumbs a { min-height: 28px; padding: 5px 7px; font-size: 10px; }
  .lesson-hero { padding: 25px 19px; border-radius: 20px; }
  .lesson-hero h1 { font-size: 36px; }
  .lesson-hero-copy > p { font-size: 14px; }
  .lesson-access-card { padding: 22px; }
  .lesson-material-card { min-height: 0; padding: 21px; }
  .lesson-free-explainer { align-items: flex-start; }
  .lesson-notice { align-items: flex-start; flex-wrap: wrap; }
  .lesson-notice a { margin-left: 36px; }
  .catalog-grade-card-head { grid-template-columns: 49px 1fr auto; padding: 16px; }
  .catalog-grade-number { width: 49px; height: 49px; font-size: 23px; }
  .catalog-subject-link { grid-template-columns: 38px minmax(0, 1fr) auto 10px; padding: 9px; }
  .catalog-subject-link-icon { width: 38px; height: 38px; }
  .catalog-subject-link-copy small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
