:root {
  --primary: #2F2A6B;
  --primary-hover: #241F56;
  --bg-body: #F3F1EC;
  --bg-card: #FFFcf8;
  --text-main: #1B1A17;
  --text-muted: #5F5B54;
  --border-color: #E4E0D8;
  --danger: #9C3B32;
  --header-bg: rgba(243, 241, 236, 0.92);
  --input-bg: #fff;
  --section-alt: #EAE7E0;
  --mark-bg: #EEEDF6;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(27, 26, 23, 0.04);
  --shadow-md: 0 12px 32px rgba(27, 26, 23, 0.06);
  --header-h: 72px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #C7B6F2;
  --primary-hover: #DDD4F8;
  --bg-body: #14131A;
  --bg-card: #1E1C27;
  --text-main: #F4F1EA;
  --text-muted: #B7B2A8;
  --border-color: #34313F;
  --danger: #F0B4A8;
  --header-bg: rgba(20, 19, 26, 0.92);
  --input-bg: #16151C;
  --section-alt: #1A1822;
  --mark-bg: #2A2740;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; }
body { scrollbar-width: none; }

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 17px;
}

body.modal-open { overflow: hidden; }

.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb { position: absolute; border-radius: 50%; }
.orb { filter: blur(46px); opacity: 0.7; animation: drift 32s ease-in-out infinite; }
.orb-a { width: 460px; height: 460px; background: #D7CFF6; top: -120px; left: -160px; }
.orb-b { width: 380px; height: 380px; background: #F6D7B4; top: 28%; right: -180px; animation-duration: 38s; animation-delay: -10s; }
.orb-c { width: 320px; height: 320px; background: #C9E6D6; bottom: 8%; left: -120px; animation-duration: 36s; animation-delay: -16s; }
.orb-d { width: 300px; height: 300px; background: #E4D0F4; bottom: -80px; right: 8%; animation-duration: 42s; animation-delay: -22s; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(36px, 24px, 0) scale(1.06); }
}
html[data-theme="dark"] .orb { opacity: 0.45; }
html[data-theme="dark"] .orb-a { background: #3A3480; }
html[data-theme="dark"] .orb-b { background: #6A4E32; }
html[data-theme="dark"] .orb-c { background: #245246; }
html[data-theme="dark"] .orb-d { background: #4A3568; }
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

main, .footer, .privacy-page { position: relative; z-index: 1; }

img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-container, .header-actions, .lang-switcher, .hero-actions {
  display: flex;
  align-items: center;
}
.header-container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; justify-content: space-between; gap: 24px; }
.header-actions, .lang-switcher, .hero-actions { gap: 12px; }

.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.footer .logo { font-family: var(--font-heading); font-size: 1.35rem; letter-spacing: -0.03em; display: inline; }
.footer .logo span { font-style: italic; color: #F2D6A2; }

.nav-list { display: flex; gap: 22px; }
.nav-link { font-size: 0.95rem; color: var(--text-muted); }
.nav-link:hover { color: var(--text-main); }

.lang-switcher { border: 1px solid var(--border-color); border-radius: 999px; padding: 3px; background: var(--bg-card); }
.lang-btn {
  border: 0; background: transparent; padding: 4px 10px; border-radius: 999px; cursor: pointer; color: var(--text-muted);
}
.lang-btn.active { background: var(--primary); color: #fff; }
html[data-theme="dark"] .lang-btn.active,
html[data-theme="dark"] .btn-primary { color: #1B1A17; }

.theme-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--text-main); cursor: pointer;
  display: grid; place-items: center;
}
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .icon-moon { fill: currentColor; stroke: none; }
.theme-btn .icon-sun { display: none; }
html[data-theme="dark"] .theme-btn .icon-moon { display: none; }
html[data-theme="dark"] .theme-btn .icon-sun { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; border-color: var(--border-color); }
.btn-secondary:hover { border-color: var(--text-main); }
html[data-theme="dark"] .btn-secondary { border-color: #6E6880; }
.btn:focus-visible, .theme-btn:focus-visible, .lang-btn:focus-visible,
.nav-link:focus-visible, .accordion-header:focus-visible, .modal-close:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-header { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }

.burger-btn {
  display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.burger-btn span { display: block; height: 1.5px; background: var(--text-main); transition: transform 0.2s ease, opacity 0.2s ease; }
.burger-btn.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.hero { padding: 88px 0 28px; }
.hero-container { display: flex; flex-direction: column; gap: 28px; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px; font-weight: 700;
}
.hero-title, .section-title {
  font-family: var(--font-heading); font-weight: 560; letter-spacing: -0.03em; line-height: 1.15;
}
.hero-title { font-size: clamp(3rem, 6.4vw, 5.4rem); margin-bottom: 18px; max-width: 16ch; }
.hero-title em, .section-title em { font-style: italic; }
.hero-subtitle, .section-subtitle { color: var(--text-muted); max-width: 38rem; }
.trial-path {
  counter-reset: path; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  list-style: none; margin: 28px 0 26px; padding: 0; color: var(--text-main); font-size: 0.98rem;
}
.trial-path li { counter-increment: path; padding-top: 12px; border-top: 2px solid var(--primary); }
.trial-path li::before {
  content: counter(path, decimal-leading-zero); display: block; margin-bottom: 6px;
  font-family: var(--font-heading); color: var(--primary); font-size: 0.95rem;
}
.hero-actions { margin: 0 0 32px; flex-wrap: wrap; }
.section-cta { margin-top: 28px; }
.price-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-list article {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 24px;
}
.price-list h3 { font-size: 1.35rem; margin-bottom: 4px; }
.price-list p { color: var(--text-muted); }
.price { text-align: left; color: var(--text-main) !important; margin-top: 8px; }
.price span { display: block; font-family: var(--font-heading); font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; }
.price em { font-style: normal; color: var(--text-muted); font-size: 0.92rem; }
.format-label { font-size: 0.9rem; font-weight: 600; }
.format-options { display: grid; gap: 8px; }
.format-option {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--border-color); border-radius: 12px; background: var(--input-bg); cursor: pointer;
}
.format-option:has(input:checked) { border-color: var(--primary); background: var(--mark-bg); }
.format-option input { accent-color: var(--primary); }
.format-options.is-invalid .format-option { border-color: var(--danger); }
.tg-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 25;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  box-shadow: 0 10px 24px rgba(27, 26, 23, 0.18);
}
html[data-theme="dark"] .tg-float { color: #1B1A17; }
.tg-float svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tg-float:hover { background: var(--primary-hover); }
.lesson {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 24px;
}
.lesson h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lesson p { color: var(--text-muted); }
.lesson .course-meta { margin-bottom: 8px; font-size: 0.85rem; color: var(--primary); }
.closing { padding: 28px 0 72px; }
.closing-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--primary); color: #F7F4EE; border-radius: 28px; padding: 36px 40px;
}
.closing-inner .section-title, .closing-inner .eyebrow { color: #F7F4EE; }
.closing-inner .section-subtitle { color: rgba(247, 244, 238, 0.82); }
.closing-inner .btn-primary { background: #F7F4EE; color: #2F2A6B; }
html[data-theme="dark"] .closing-inner { background: #3A3480; }
.closing-inner .section-subtitle { margin-top: 8px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 0;
  border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.hero-stats div { padding: 22px 0 22px 24px; }
.hero-stats div + div { border-left: 1px solid var(--border-color); }
.hero-stats dt { font-size: 0.82rem; color: var(--text-muted); }
.hero-stats dd { font-family: var(--font-heading); font-size: 2.4rem; letter-spacing: -0.03em; }

.code-panel {
  background: #1C1B22; color: #E8E4DA; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid transparent;
}
html[data-theme="dark"] .code-panel { border-color: #3A3648; }
.code-panel-bar { padding: 12px 16px; color: #A39E93; font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-panel pre { padding: 22px 20px 28px; font-family: ui-monospace, Consolas, monospace; font-size: 0.92rem; line-height: 1.7; overflow: auto; }
.c-key { color: #C7B6F2; }
.c-fn { color: #F2D6A2; }
.c-str { color: #B7D7C3; }
.c-num { color: #F0B7A8; }

.section { padding: 88px 0; }
.section-alt { background: transparent; }
.section-header { margin-bottom: 28px; max-width: 36rem; }
.section-title { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 10px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.features article {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 24px;
}
.course, .form-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 22px; padding: 28px 32px;
}
.mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mark-bg); color: var(--primary); margin-bottom: 14px;
}
.mark svg, .footer-links svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.logo-mask {
  width: 26px; height: 26px; display: block; flex: none;
  background: currentColor;
  -webkit-mask: var(--mask) center / contain no-repeat;
  mask: var(--mask) center / contain no-repeat;
}
.logo-img { width: 26px; height: 26px; object-fit: contain; display: block; flex: none; }
.logo-lua { --mask: url("/icons/lua.svg"); background: #000080; }
.logo-python { --mask: url("/icons/python.svg"); background: #3776AB; }
.course-featured .logo-lua { background: #F7F4EE; }
.mark-light { background: rgba(247, 244, 238, 0.16); color: #F7F4EE; }
.features h3, .course h3, .steps h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.features p, .course > p, .steps p { color: var(--text-muted); }
.course-meta, .course-tech { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.course h3 { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 560; }
.course ul { margin: 16px 0 22px; display: grid; gap: 8px; }
.course li { padding-left: 14px; position: relative; color: var(--text-muted); font-size: 0.95rem; }
.course li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); position: absolute; left: 0; top: 0.55em; }
.course-featured { background: var(--primary); color: #F7F4EE; border-color: var(--primary); }
.course-featured p, .course-featured li, .course-featured .course-meta, .course-featured .course-tech { color: rgba(247, 244, 238, 0.82); }
.course-featured li::before { background: #F2D6A2; }
.course-featured .btn-primary { background: #F7F4EE; color: #2F2A6B; }
.course-featured .btn-primary:hover { background: #fff; color: #241F56; }
html[data-theme="dark"] .course-featured { background: #3A3480; border-color: #3A3480; color: #F7F4EE; }
.course .btn { margin-top: auto; width: 100%; }
.course { display: flex; flex-direction: column; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 24px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 12px;
  font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary);
}
.steps .mark { display: none; }

.form-card { padding: 36px; }
.form-card .section-header { margin-bottom: 24px; }
.application-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.form-group { display: grid; gap: 6px; align-content: start; }
.form-group label { font-size: 0.9rem; font-weight: 600; }
.form-control {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border-color); background: var(--input-bg);
}
.course-picker { position: relative; }
.course-picker-btn {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border-color); background: var(--input-bg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; text-align: left;
}
.course-picker-btn.is-invalid { border-color: var(--danger); }
.course-picker-label { display: inline-flex; align-items: center; gap: 10px; }
.course-chevron { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; transition: transform 0.15s ease; }
.course-picker.open .course-chevron { transform: rotate(180deg); }
.course-picker-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; box-shadow: var(--shadow-md);
}
.course-picker-list[hidden] { display: none; }
.course-picker-list button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: inherit; cursor: pointer; text-align: left;
}
.course-picker-list button:hover,
.course-picker-list button[aria-selected="true"] { background: var(--mark-bg); }
.form-control::placeholder { color: var(--text-muted); opacity: 1; }
.form-control:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
html[data-theme="dark"] .form-control { border-color: #4A4558; }
.form-control.is-invalid { border-color: var(--danger); }
.field-error { min-height: 1.25em; color: var(--danger); font-size: 0.85rem; line-height: 1.25; }
.field-error:empty { visibility: hidden; }

.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.consent-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.consent-group .field-error { flex-basis: 100%; }
.checkbox { position: relative; display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.checkbox input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.checkbox-box {
  width: 20px; height: 20px; margin-top: 1px; flex: none; border-radius: 6px;
  border: 1.5px solid var(--border-color); background: var(--input-bg);
  display: grid; place-items: center;
}
.checkbox-box::after {
  content: ""; width: 10px; height: 6px; border-left: 2px solid transparent; border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translate(0, -1px);
}
.checkbox input:checked + .checkbox-box { background: var(--primary); border-color: var(--primary); }
.checkbox input:checked + .checkbox-box::after { border-color: #fff; }
html[data-theme="dark"] .checkbox input:checked + .checkbox-box::after { border-color: #1B1A17; }
.checkbox input:focus-visible + .checkbox-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.text-link { color: var(--primary); text-decoration: underline; font-size: 0.92rem; }

.form-alert { padding: 12px 14px; border-radius: 12px; background: #F8E8E6; color: var(--danger); }
html[data-theme="dark"] .form-alert { background: #3A2422; }
.form-alert[hidden], .btn-spinner[hidden], .modal[hidden] { display: none !important; }

.accordion { display: grid; }
.accordion-item { border-top: 1px solid var(--border-color); }
.accordion-item:last-child { border-bottom: 1px solid var(--border-color); }
.accordion-header {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 28px 18px 0;
  cursor: pointer; font-weight: 650; position: relative;
}
.accordion-header::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--text-main); border-bottom: 1.5px solid var(--text-main);
  transform: translateY(-70%) rotate(45deg);
}
.accordion-item.active .accordion-header::after { transform: translateY(-20%) rotate(225deg); }
.accordion-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.accordion-item.active .accordion-content { grid-template-rows: 1fr; }
.accordion-content p { overflow: hidden; color: var(--text-muted); padding-bottom: 0; }
.accordion-item.active .accordion-content p { padding-bottom: 18px; }

.footer { padding: 56px 0 24px; background: #1C1B22; color: #E8E4DA; }
.footer .logo span { color: #F2D6A2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h2 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.footer-desc { margin-top: 12px; color: #A39E93; max-width: 28ch; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #C9C3B6; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #F2D6A2; }
.footer-links svg { width: 16px; height: 16px; flex: none; }
.footer-bottom {
  width: min(1080px, calc(100% - 40px)); margin: 36px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 12px; color: #A39E93; font-size: 0.9rem;
}
.footer-bottom a { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.modal {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px;
}
.modal-overlay { position: absolute; inset: 0; background: rgba(16, 15, 20, 0.62); backdrop-filter: blur(6px); }
.modal-box {
  position: relative; width: min(440px, 100%); background: var(--bg-card);
  border-radius: 24px; padding: 36px 32px 28px; z-index: 1; text-align: center;
  border: 1px solid var(--border-color); box-shadow: 0 24px 60px rgba(16, 15, 20, 0.28);
}
.modal-mark {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mark-bg); color: var(--primary);
}
.modal-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal-success .btn { min-width: 140px; }
.modal-wide { width: min(560px, 100%); }
.modal-box h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 560; margin-bottom: 10px; }
.modal-box p { color: var(--text-muted); margin-bottom: 18px; }
.modal-body p { margin-bottom: 12px; }
.modal-body a { color: var(--primary); text-decoration: underline; }
.modal-close {
  position: absolute; top: 10px; right: 12px; border: 0; background: none;
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}

.privacy-page { padding: 48px 0 72px; }
.privacy-box {
  background: var(--bg-card); padding: 36px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
.privacy-box h1 { font-family: var(--font-heading); font-weight: 560; font-size: 2.4rem; margin-bottom: 12px; }
.privacy-box h2 { font-family: var(--font-heading); font-weight: 560; font-size: 1.35rem; margin: 28px 0 8px; }
.privacy-box a:not(.btn) { color: var(--primary); text-decoration: underline; }
.privacy-box p, .privacy-box li { color: var(--text-muted); margin-bottom: 12px; }
.privacy-box ul { list-style: disc; padding-left: 1.2rem; }

@media (max-width: 1080px) {
  .courses, .lessons { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .btn-header { display: none; }
  .burger-btn { display: flex; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-body); border-bottom: 1px solid var(--border-color); padding: 12px 20px 20px;
  }
  .nav.active { display: block; }
  .nav-list { flex-direction: column; gap: 14px; }
}
@media (max-width: 900px) {
  .features, .courses, .lessons, .steps, .price-list, .trial-path, .hero-stats, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .hero-stats div + div, .hero-stats div { border-left: 0; padding-left: 0; }
  .closing-inner { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .price { text-align: left; }
  .footer-bottom { flex-direction: column; }
  .form-card, .course { padding: 24px 18px; }
}
