/*
 * Nadezhda School frontend styles
 * Version: 0.1.0-alpha.18
 * Handwritten CSS. No external framework or font.
 */

:root {
    --nds-bg: #fffafb;
    --nds-surface: #ffffff;
    --nds-surface-soft: #fff0f5;
    --nds-text: #211920;
    --nds-muted: #756d74;
    --nds-border: #eadfe5;
    --nds-primary: #e62572;
    --nds-primary-dark: #bd1557;
    --nds-coral: #ff6a50;
    --nds-violet: #9a477f;
    --nds-yellow: #ffd64f;
    --nds-success: #14794d;
    --nds-warning: #946400;
    --nds-danger: #b4233d;
    --nds-dark: #2a1524;
    --nds-radius-sm: 16px;
    --nds-radius: 28px;
    --nds-radius-lg: 44px;
    --nds-shell: 1240px;
    --nds-shadow: 0 18px 48px rgba(54, 22, 40, 0.095);
    --nds-shadow-soft: 0 10px 28px rgba(54, 22, 40, 0.065);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--nds-text);
    background: var(--nds-bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--nds-yellow); outline-offset: 4px; }
::selection { color: #fff; background: var(--nds-primary); }

.nds-shell { width: min(calc(100% - 32px), var(--nds-shell)); margin-inline: auto; }
.nds-section { padding: clamp(72px, 9vw, 118px) 0; }
.nds-section--surface { background: var(--nds-surface); }
.nds-section--dark { color: #fff; background: var(--nds-dark); }
.nds-section--teacher { background: linear-gradient(180deg, #fff 0%, #fff2f6 100%); }
.nds-section--faq { background: #fff; }
.nds-section--content { padding-top: 24px; }

.skip-link {
    position: fixed; z-index: 1000; left: 16px; top: 16px;
    transform: translateY(-150%); padding: 12px 16px;
    border-radius: 12px; background: #fff; color: var(--nds-dark); box-shadow: var(--nds-shadow);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky; z-index: 100; top: 0;
    border-bottom: 1px solid rgba(33, 25, 32, 0.08);
    background: rgba(255, 250, 251, 0.985);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.site-header__inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.02; }
.site-brand__name { font-weight: 900; letter-spacing: -0.035em; }
.site-brand__tagline { margin-top: 7px; color: var(--nds-primary); font-size: 10px; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.site-nav__panel { display: flex; align-items: center; gap: 26px; }
.site-nav__list, .site-footer__menu { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { font-size: 14px; font-weight: 720; text-decoration: none; }
.site-nav__list a:hover { color: var(--nds-primary); }
.site-nav-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--nds-border); border-radius: 999px; background: #fff; color: var(--nds-text); cursor: pointer; }
.site-nav-toggle__label { font-weight: 800; }
.site-nav-toggle__icon { display: none; }

.nds-button {
    display: inline-flex; min-height: 54px; align-items: center; justify-content: center;
    padding: 0 24px; border: 0; border-radius: 999px; text-decoration: none;
    font-weight: 820; line-height: 1; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.nds-button:hover { transform: translateY(-2px); }
.nds-button--primary { color: #fff; background: linear-gradient(135deg, var(--nds-primary), var(--nds-coral)); box-shadow: 0 12px 32px rgba(230, 37, 114, 0.20); }
.nds-button--ghost { border: 1px solid var(--nds-border); background: #fff; }
.nds-button--dark { color: #fff; background: var(--nds-dark); }
.site-header__cta { min-height: 44px; padding-inline: 18px; font-size: 13px; }

.nds-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--nds-primary); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.nds-kicker::before { width: 30px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--nds-primary), var(--nds-coral)); content: ""; }
.nds-kicker--light { color: #fff; }
.nds-kicker--light::before { background: var(--nds-yellow); }
.nds-heading { max-width: 850px; margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: 0.98; letter-spacing: -0.055em; }
.nds-heading--light { color: #fff; }
.nds-lead { max-width: 700px; margin: 0; color: var(--nds-muted); font-size: clamp(17px, 1.45vw, 19px); line-height: 1.55; }
.nds-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nds-link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; }
.nds-link-arrow::after { content: "→"; transition: transform 160ms ease; }
.nds-link-arrow:hover::after { transform: translateX(5px); }

.nds-hero { position: relative; overflow: clip; padding: clamp(24px, 3vw, 36px) 0 32px; }
.nds-hero::after { position: absolute; z-index: -1; right: -280px; top: -300px; width: 720px; aspect-ratio: 1; border-radius: 50%; background: rgba(230, 37, 114, 0.07); content: ""; }
.nds-hero__grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr); gap: clamp(30px, 4vw, 56px); align-items: center; }
.nds-hero__title { max-width: 690px; margin: 0 0 18px; font-size: clamp(44px, 4.35vw, 66px); font-weight: 780; line-height: 0.95; letter-spacing: -0.052em; }
.nds-hero__title span { display: block; margin-top: 8px; background: linear-gradient(105deg, var(--nds-primary), var(--nds-coral) 72%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.nds-hero__media { position: relative; min-height: 500px; }
.nds-hero__image, .nds-hero__placeholder { width: calc(100% - 28px); height: 500px; border-radius: 38px; object-fit: cover; box-shadow: var(--nds-shadow); }
.nds-hero__placeholder { display: grid; place-content: center; gap: 8px; overflow: hidden; color: #fff; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.75), transparent 20%), linear-gradient(150deg, #ffb3d0 0%, var(--nds-primary) 50%, var(--nds-violet) 100%); font-size: clamp(48px, 6vw, 78px); font-weight: 900; line-height: 0.82; letter-spacing: -0.07em; text-transform: uppercase; }
.nds-hero__placeholder span:last-child { opacity: 0.38; transform: translateX(18%); }
.nds-hero__note { position: absolute; right: 0; bottom: 28px; width: min(230px, 66%); padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--nds-shadow); }
.nds-hero__note strong, .nds-hero__note span { display: block; }
.nds-hero__note strong { margin-bottom: 4px; font-size: 20px; letter-spacing: -0.035em; }
.nds-hero__note span { color: var(--nds-muted); font-size: 13px; }

.nds-proof-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.nds-proof { min-height: 88px; padding: 18px 20px; border: 1px solid var(--nds-border); border-radius: 20px; background: #fff; }
.nds-proof:nth-child(2) { background: #fff0f5; }
.nds-proof:nth-child(3) { background: #f3efff; }
.nds-proof:nth-child(4) { background: #fff5e8; }
.nds-proof strong, .nds-proof span { display: block; }
.nds-proof strong { margin-bottom: 3px; font-size: 20px; letter-spacing: -0.035em; }
.nds-proof span { color: var(--nds-muted); font-size: 13px; }

.nds-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.nds-path-card { min-height: 410px; padding: 34px; border-radius: 34px; color: #fff; text-decoration: none; transition: transform 180ms ease; }
.nds-path-card:hover { transform: translateY(-5px); }
.nds-path-card--pink { background: linear-gradient(145deg, var(--nds-primary), #ff416f); }
.nds-path-card--coral { background: linear-gradient(145deg, var(--nds-coral), #f08b3e); }
.nds-path-card--violet { background: linear-gradient(145deg, var(--nds-violet), #ae3dfa); }
.nds-path-card__index { display: block; margin-bottom: 110px; font-size: 82px; font-weight: 950; line-height: 0.8; opacity: 0.22; }
.nds-path-card h3 { max-width: 340px; margin: 0 0 14px; font-size: 30px; line-height: 1.05; letter-spacing: -0.04em; }
.nds-path-card p { max-width: 380px; margin: 0 0 22px; color: rgba(255,255,255,.82); }

.nds-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.nds-card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nds-course-card { overflow: hidden; border: 1px solid var(--nds-border); border-radius: var(--nds-radius); background: #fff; transition: transform 180ms ease, box-shadow 180ms ease; }
.nds-course-card:hover { transform: translateY(-5px); box-shadow: var(--nds-shadow); }
.nds-course-card__media { position: relative; display: block; height: 270px; overflow: hidden; background: linear-gradient(145deg, #ffc3d8, var(--nds-primary)); text-decoration: none; }
.nds-course-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nds-course-card__placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 25% 25%, rgba(255,255,255,.7), transparent 20%), linear-gradient(145deg, #ffc3d8, var(--nds-primary), var(--nds-violet)); }
.nds-badge { position: absolute; left: 18px; top: 18px; padding: 8px 12px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.nds-course-card__body { padding: 26px; }
.nds-course-card h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -0.035em; }
.nds-course-card h3 a { text-decoration: none; }
.nds-course-card p { min-height: 65px; margin: 0; color: var(--nds-muted); font-size: 14px; }
.nds-course-card__meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--nds-border); font-size: 13px; }
.nds-course-card__meta span { color: var(--nds-muted); }

.nds-schedule { margin-top: 46px; overflow: hidden; border: 1px solid var(--nds-border); border-radius: var(--nds-radius); background: #fff; }
.nds-schedule-row { display: grid; grid-template-columns: 2fr 1fr 0.9fr auto; gap: 22px; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--nds-border); }
.nds-schedule-row:last-child { border-bottom: 0; }
.nds-schedule-row h3 { margin: 0 0 4px; font-size: 18px; }
.nds-schedule-row p, .nds-schedule-row time { margin: 0; color: var(--nds-muted); font-size: 13px; }
.nds-status { display: inline-flex; justify-self: start; padding: 8px 12px; border-radius: 999px; background: var(--nds-surface-soft); color: var(--nds-primary-dark); font-size: 12px; font-weight: 850; }
.nds-status--full, .nds-status--closed { color: var(--nds-danger); background: #fff0f2; }
.nds-status--open { color: var(--nds-success); background: #edf9f3; }

.nds-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
.nds-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nds-benefit { min-height: 260px; padding: 30px; border-top: 3px solid var(--nds-dark); background: #fff; }
.nds-benefit span { display: block; margin-bottom: 62px; color: var(--nds-primary); font-weight: 900; }
.nds-benefit h3 { margin: 0 0 12px; font-size: 22px; }
.nds-benefit p { margin: 0; color: var(--nds-muted); }

.nds-teacher { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.nds-teacher__visual { display: grid; min-height: 590px; place-items: center; overflow: hidden; border-radius: var(--nds-radius-lg); color: rgba(255,255,255,.82); background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.7), transparent 21%), linear-gradient(150deg, #ffc5d8, var(--nds-primary), var(--nds-violet)); font-size: 260px; font-weight: 950; letter-spacing: -0.12em; }
.nds-quote { max-width: 720px; margin: 28px 0; font-size: clamp(22px, 2.5vw, 30px); font-weight: 730; line-height: 1.4; letter-spacing: -0.03em; }
.nds-check-list { display: grid; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; }
.nds-check-list li { position: relative; padding-left: 30px; }
.nds-check-list li::before { position: absolute; left: 0; top: 0; color: var(--nds-primary); font-weight: 900; content: "✓"; }

.nds-story-card { padding: 30px; border: 1px solid var(--nds-border); border-radius: var(--nds-radius); background: #fff; }
.nds-story-card__label { margin: 0 0 22px; color: var(--nds-primary); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.nds-story-card h3 { margin: 0 0 12px; font-size: 24px; }
.nds-story-card > p:not(.nds-story-card__label) { color: var(--nds-muted); }
.nds-story-card blockquote { margin: 0 0 28px; font-size: 19px; font-weight: 650; line-height: 1.5; }
.nds-story-card footer { display: flex; flex-direction: column; gap: 3px; color: var(--nds-muted); font-size: 13px; }
.nds-story-card footer strong { color: var(--nds-text); }
.nds-results-proof { margin-top: 34px; }
.nds-results-proof h3 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.nds-results-proof__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nds-results-proof__card { overflow: hidden; border: 1px solid var(--nds-border); border-radius: 26px; background: #fff; }
.nds-results-proof__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nds-results-proof__card p { margin: 0; padding: 14px 16px 16px; color: var(--nds-muted); font-size: 14px; line-height: 1.55; }

.nds-faq-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; }
.nds-faq details { border-top: 1px solid var(--nds-border); }
.nds-faq details:last-child { border-bottom: 1px solid var(--nds-border); }
.nds-faq summary { position: relative; padding: 23px 50px 23px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 780; }
.nds-faq summary::-webkit-details-marker { display: none; }
.nds-faq summary::after { position: absolute; right: 0; top: 16px; display: grid; width: 38px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--nds-primary); background: var(--nds-surface-soft); content: "+"; font-size: 22px; transition: transform 160ms ease; }
.nds-faq details[open] summary::after { transform: rotate(45deg); }
.nds-faq details p { max-width: 680px; margin: 0; padding: 0 52px 23px 0; color: var(--nds-muted); }

.nds-cta { padding: 58px 0 100px; }
.nds-cta__box { position: relative; overflow: hidden; padding: clamp(42px, 7vw, 78px); border-radius: var(--nds-radius-lg); color: #fff; background: linear-gradient(135deg, var(--nds-primary), var(--nds-coral) 55%, var(--nds-violet) 125%); }
.nds-cta__box::after { position: absolute; right: -150px; top: -180px; width: 440px; aspect-ratio: 1; border: 80px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.nds-cta h2 { position: relative; z-index: 1; max-width: 760px; margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.055em; }
.nds-cta p { position: relative; z-index: 1; max-width: 690px; color: rgba(255,255,255,.80); }

.nds-prose { max-width: 820px; }
.nds-prose--page { margin-inline: auto; }
.nds-prose > * + * { margin-top: 1.25em; }
.nds-prose h1, .nds-entry-header h1 { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.055em; }
.nds-prose h2 { margin-top: 1.8em; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.04em; }
.nds-prose h3 { margin-top: 1.6em; font-size: 26px; line-height: 1.15; }
.nds-prose p, .nds-prose li { color: #3d353c; line-height: 1.75; }
.nds-prose a { color: var(--nds-primary-dark); }
.nds-prose img { border-radius: 20px; }
.nds-prose blockquote { margin-inline: 0; padding: 24px 28px; border-left: 5px solid var(--nds-primary); border-radius: 0 20px 20px 0; background: var(--nds-surface-soft); font-size: 20px; font-weight: 650; }
.nds-prose table { width: 100%; border-collapse: collapse; }
.nds-prose th, .nds-prose td { padding: 12px; border: 1px solid var(--nds-border); text-align: left; vertical-align: top; }
.nds-entry-header { margin-bottom: 38px; }
.nds-entry-meta { display: flex; gap: 16px; margin-top: 18px; color: var(--nds-muted); font-size: 13px; }
.nds-entry-media { margin: 34px 0 0; }
.nds-entry-media img { width: 100%; border-radius: var(--nds-radius); }

.nds-listing-header { margin-bottom: 48px; }
.nds-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.nds-article-card { overflow: hidden; border: 1px solid var(--nds-border); border-radius: var(--nds-radius); background: #fff; }
.nds-article-card__media { display: block; height: 230px; overflow: hidden; background: var(--nds-surface-soft); }
.nds-article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nds-article-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(145deg, #ffd1df, #f4a2bc 55%, #d8c5ff); }
.nds-article-card__body { padding: 24px; }
.nds-article-card h2 { margin: 12px 0; font-size: 24px; line-height: 1.15; letter-spacing: -0.035em; }
.nds-article-card h2 a { text-decoration: none; }
.nds-article-card p { color: var(--nds-muted); }
.nds-pagination { margin-top: 46px; }
.nds-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nds-pagination .page-numbers { display: grid; min-width: 44px; min-height: 44px; place-items: center; padding: 0 12px; border: 1px solid var(--nds-border); border-radius: 999px; background: #fff; text-decoration: none; }
.nds-pagination .current { color: #fff; background: var(--nds-dark); }
.nds-empty-state { max-width: 680px; padding: 42px; border: 1px dashed var(--nds-border); border-radius: var(--nds-radius); background: #fff; }

.nds-error-page { min-height: 62vh; display: grid; align-items: center; }
.nds-error-page__inner { text-align: center; }
.nds-error-page__code { margin: 0; color: var(--nds-primary); font-size: clamp(90px, 18vw, 220px); font-weight: 950; line-height: .75; letter-spacing: -.09em; }
.nds-error-page h1 { margin: 32px 0 12px; font-size: clamp(38px, 5vw, 64px); }
.nds-error-page p { max-width: 620px; margin: 0 auto 28px; color: var(--nds-muted); }

.site-footer { padding: 46px 0; border-top: 1px solid var(--nds-border); background: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: start; }
.site-footer__nav { justify-self: center; }
.site-footer__menu { flex-wrap: wrap; justify-content: center; font-size: 13px; }
.site-footer__menu a { text-decoration: none; }
.site-footer__legal { display: flex; justify-self: end; flex-direction: column; gap: 8px; color: var(--nds-muted); font-size: 12px; text-align: right; }
.site-footer__legal a { color: var(--nds-text); }

@media (max-width: 1023px) {
    .nds-hero__grid, .nds-teacher, .nds-split, .nds-faq-layout { grid-template-columns: 1fr; }
    .nds-hero__media { min-height: 440px; }
    .nds-hero__image, .nds-hero__placeholder { height: 440px; }
    .nds-path-grid, .nds-card-grid, .nds-card-grid--three, .nds-article-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .nds-proof-row { grid-template-columns: 1fr 1fr; }
    .nds-schedule-row { grid-template-columns: 1.6fr 1fr 1fr; }
    .nds-schedule-row .nds-button { grid-column: 1 / -1; justify-self: start; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__nav { justify-self: end; }
    .site-footer__legal { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 899px) {
    .site-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-nav__panel { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: none; align-items: stretch; flex-direction: column; gap: 18px; padding: 20px; border: 1px solid var(--nds-border); border-radius: 24px; background: #fff; box-shadow: var(--nds-shadow); }
    .site-nav__panel.is-open { display: flex; }
    .site-nav__list { align-items: stretch; flex-direction: column; gap: 0; }
    .site-nav__list a { display: block; min-height: 48px; padding: 13px 4px; border-bottom: 1px solid var(--nds-border); }
    .site-header__cta { width: 100%; }
    .nds-nav-open { overflow: hidden; }
}

@media (max-width: 699px) {
    .nds-shell { width: min(calc(100% - 28px), var(--nds-shell)); }
    .site-header__inner { min-height: 68px; }
    .site-brand__name { font-size: 15px; }
    .nds-hero { padding-top: 42px; }
    .nds-hero__title { font-size: clamp(48px, 14vw, 66px); }
    .nds-actions { display: grid; }
    .nds-actions .nds-button { width: 100%; }
    .nds-hero__media { min-height: 430px; }
    .nds-hero__image, .nds-hero__placeholder { width: calc(100% - 18px); height: 430px; border-radius: 32px; }
    .nds-hero__placeholder { font-size: 44px; }
    .nds-hero__note { bottom: 28px; width: 205px; padding: 18px; }
    .nds-proof-row, .nds-path-grid, .nds-card-grid, .nds-card-grid--three, .nds-benefits, .nds-article-grid { grid-template-columns: 1fr; }
    .nds-proof-row { gap: 8px; }
    .nds-path-card { min-height: 335px; padding: 28px; }
    .nds-path-card__index { margin-bottom: 72px; }
    .nds-path-card h3 { font-size: 28px; }
    .nds-schedule-row { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
    .nds-schedule-row .nds-button { grid-column: auto; width: 100%; }
    .nds-teacher__visual { min-height: 440px; font-size: 180px; }
    .nds-benefit { min-height: auto; }
    .nds-benefit span { margin-bottom: 34px; }
    .nds-faq summary { font-size: 17px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__nav, .site-footer__legal { grid-column: auto; justify-self: start; }
    .site-footer__menu { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ========================================================================== 
   Alpha 2/3: header actions, manageable homepage, compact above-the-fold hero.
   ========================================================================== */

/* Typography is intentionally less brutal than alpha.1. */
.nds-heading { font-weight: 760; line-height: 1.02; letter-spacing: -0.045em; }
.nds-hero__title { max-width: 690px; font-size: clamp(44px, 4.35vw, 66px); font-weight: 760; line-height: 0.95; letter-spacing: -0.052em; }
.nds-hero__title span { margin-top: 8px; background: linear-gradient(100deg, var(--nds-primary), var(--nds-coral) 76%); background-clip: text; -webkit-background-clip: text; }
.nds-quote { font-weight: 620; }

/* Header: standard WordPress menu + persistent promo/contact actions. */
.site-header__inner { position: relative; gap: 18px; }
.site-nav__panel { margin-left: auto; }
.site-header__quick-actions { display: flex; align-items: center; gap: 9px; }
.site-header__promo,
.site-contact__toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}
.site-header__promo { color: #2a1b00; background: #ffd249; box-shadow: 0 9px 24px rgba(183, 128, 0, .13); }
.site-header__promo:hover { background: #ffca1e; }
.site-contact { position: relative; }
.site-contact__toggle { border-color: var(--nds-border); color: var(--nds-text); background: #fff; }
.site-contact__toggle:hover { border-color: #d6c7ce; background: #fff9fb; }
.site-contact__chevron { font-size: 17px; transition: transform 160ms ease; }
.site-contact.is-open .site-contact__chevron { transform: rotate(180deg); }
.site-contact__panel {
    position: absolute;
    z-index: 120;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 28px));
    padding: 9px;
    border: 1px solid var(--nds-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--nds-shadow);
}
.site-contact__panel[hidden] { display: none; }
.site-contact__item { display: flex; justify-content: space-between; gap: 18px; padding: 13px 14px; border-radius: 13px; text-decoration: none; }
.site-contact__item:hover { background: var(--nds-surface-soft); }
.site-contact__item-label { font-weight: 760; }
.site-contact__item-value { color: var(--nds-muted); font-size: 13px; text-align: right; }

/* Hero imagery: no pseudo-startup typography when a real photo is not configured. */
.nds-hero { padding-top: clamp(24px, 3vw, 36px); }
.nds-photo-placeholder { display: grid; place-items: end start; width: 100%; height: 100%; overflow: hidden; color: rgba(255,255,255,.92); background: radial-gradient(circle at 24% 18%, rgba(255,255,255,.75), transparent 18%), linear-gradient(150deg, #ffb9cf, var(--nds-primary) 68%, #b71b67); }
.nds-photo-placeholder span { margin: 26px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(35,15,27,.12); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nds-photo-placeholder--hero { width: calc(100% - 28px); height: 500px; border-radius: 38px; box-shadow: var(--nds-shadow); }
.nds-photo-placeholder--teacher { min-height: 590px; }
.nds-hero__note strong { font-size: 20px; }

/* Audience paths: shorter and more editorial. */
.nds-path-card { min-height: 340px; }
.nds-path-card__index { margin-bottom: 64px; font-size: 64px; }
.nds-path-card h3 { font-size: 27px; }
.nds-path-card--berry { background: linear-gradient(145deg, #b91b65, #d43c87); }

/* Approach adds optional real photography without forcing a decorative placeholder. */
.nds-section--approach {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fffafb 0%, #fff6f8 52%, #fffafb 100%);
}
.nds-section--approach::before,
.nds-section--approach::after {
    position: absolute;
    z-index: 0;
    width: 430px;
    aspect-ratio: 1;
    border: 1px solid rgba(230, 37, 114, .14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.nds-section--approach::before { left: -285px; top: 48%; }
.nds-section--approach::after { right: -310px; bottom: -185px; }
.nds-approach { position: relative; z-index: 1; }
.nds-approach__top {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
    gap: clamp(46px, 6vw, 84px);
    align-items: end;
}
.nds-approach__intro { max-width: 520px; }
.nds-approach__intro .nds-heading { max-width: 520px; }
.nds-approach__intro .nds-lead { max-width: 500px; margin-top: 22px; }
.nds-approach__showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    margin-top: clamp(38px, 5vw, 62px);
}
.nds-approach__showcase.has-photo.has-video { grid-template-columns: minmax(0, 1.75fr) minmax(260px, .62fr); }
.nds-approach__photo-card,
.nds-approach__video-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid #eddde5;
    background: #fff;
    box-shadow: 0 22px 58px rgba(72, 28, 50, .08);
}
.nds-approach__photo-card { min-height: 100%; border-radius: 30px; }
.nds-approach__photo { width: 100%; height: 100%; min-height: 520px; aspect-ratio: 16 / 10; object-fit: cover; }
.nds-approach__photo-label {
    position: absolute;
    left: 20px;
    bottom: 20px;
    max-width: calc(100% - 40px);
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 999px;
    color: #fff;
    background: rgba(42,21,36,.68);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .01em;
}
.nds-approach__video-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-self: stretch;
    border-radius: 30px;
}
.nds-approach__video-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: #1b0c17;
}
.nds-approach__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1b0c17;
}
.nds-approach__video-copy { display: grid; gap: 6px; padding: 18px 18px 20px; }
.nds-approach__video-copy strong { display: block; font-size: 18px; letter-spacing: -.025em; line-height: 1.25; }
.nds-approach__video-copy p { margin: 0; color: var(--nds-muted); font-size: 13px; line-height: 1.5; }
.nds-benefit { min-height: 225px; }
.nds-benefit span { margin-bottom: 38px; }

/* Founder block uses actual media / restrained fallback instead of a giant letter. */
.nds-teacher__visual { display: block; min-height: 590px; font-size: inherit; background: #f7edf1; }
.nds-teacher__image { width: 100%; height: 590px; object-fit: cover; }

/* CTA gains a visible action before School Core enrollment form exists. */
.nds-button--light { color: var(--nds-text); background: #fff; }
.nds-cta__fallback { position: relative; z-index: 2; margin-top: 20px; }
.nds-cta__form { position: relative; z-index: 2; margin-top: 26px; }

/* Full footer: information, legal menu, merchant/legal text and acquiring banner. */
.site-footer { padding: 0; }
.site-footer__top { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(150px, .8fr)); gap: clamp(28px, 4vw, 58px); padding-top: 54px; padding-bottom: 42px; }
.site-footer__about p { max-width: 360px; margin: 20px 0 0; color: var(--nds-muted); font-size: 14px; }
.site-footer__column h2 { margin: 0 0 16px; font-size: 13px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.site-footer__menu { align-items: flex-start; flex-direction: column; gap: 9px; font-size: 13px; }
.site-footer__menu a { color: var(--nds-muted); }
.site-footer__menu a:hover { color: var(--nds-primary-dark); }
.site-footer__contacts { display: grid; gap: 11px; }
.site-footer__contacts a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.site-footer__contacts strong { font-size: 13px; }
.site-footer__contacts span { color: var(--nds-muted); font-size: 12px; }
.site-footer__merchant { display: flex; justify-content: space-between; gap: 34px; align-items: center; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--nds-border); }
.site-footer__legal-text { max-width: 760px; color: var(--nds-muted); font-size: 12px; }
.site-footer__legal-text > :first-child { margin-top: 0; }
.site-footer__legal-text > :last-child { margin-bottom: 0; }
.site-footer__acquiring { flex: 0 0 auto; }
.site-footer__acquiring-image { max-width: 330px; max-height: 72px; width: auto; object-fit: contain; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--nds-border); color: var(--nds-muted); font-size: 12px; }
.site-footer__bottom a { color: var(--nds-text); }

@media (max-width: 1100px) {
    .site-nav__list { gap: 14px; }
    .site-nav__list a { font-size: 13px; }
    .site-header__quick-actions { gap: 6px; }
    .site-header__promo, .site-contact__toggle { padding-inline: 14px; }
    .site-footer__top { grid-template-columns: 1.2fr repeat(2, 1fr); }
    .site-footer__top > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 899px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
        padding: 9px 0;
    }
    .site-brand { grid-column: 1; grid-row: 1; min-width: 0; }
    .site-nav-toggle { grid-column: 2; grid-row: 1; display: inline-flex; }
    .site-header__quick-actions { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .site-header__promo, .site-contact__toggle { width: 100%; min-height: 40px; }
    .site-contact__panel { left: auto; right: 0; top: calc(100% + 7px); }
    .site-nav__panel { top: calc(100% + 6px); }
    .site-footer__top { grid-template-columns: 1fr 1fr; }
    .site-footer__top > :last-child { grid-column: auto; }
    .site-footer__merchant { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 699px) {
    .site-brand__tagline { margin-top: 4px; font-size: 9px; }
    .site-nav-toggle { min-width: 44px; min-height: 44px; }
    .site-nav-toggle__label { font-size: 12px; }
    .nds-hero { padding-top: 22px; }
    .nds-hero__title { font-size: clamp(34px, 10vw, 46px); line-height: .98; margin-bottom: 14px; }
    .nds-hero__media { min-height: 330px; }
    .nds-hero__image, .nds-photo-placeholder--hero { width: 100%; height: 330px; border-radius: 26px; }
    .nds-hero__note { right: 10px; bottom: 14px; width: min(185px, 68%); padding: 14px; }
    .nds-proof-row { grid-template-columns: 1fr 1fr; }
    .nds-proof { min-height: 98px; padding: 18px; }
    .nds-proof strong { font-size: 19px; }
    .nds-path-card { min-height: 270px; padding: 24px; }
    .nds-path-card__index { margin-bottom: 40px; font-size: 50px; }
    .nds-path-card h3 { font-size: 25px; }
    .nds-benefits { grid-template-columns: 1fr 1fr; gap: 10px; }
    .nds-benefit { padding: 20px; }
    .nds-benefit span { margin-bottom: 22px; }
    .nds-benefit h3 { font-size: 18px; }
    .nds-benefit p { font-size: 13px; }
    .nds-teacher__visual, .nds-teacher__image, .nds-photo-placeholder--teacher { min-height: 410px; height: 410px; border-radius: 28px; }
    .nds-results-proof__grid { grid-template-columns: 1fr; }
    .nds-section { padding: 64px 0; }
    .nds-cta { padding: 38px 0 72px; }
    .site-footer__top { grid-template-columns: 1fr; padding-top: 40px; }
    .site-footer__merchant, .site-footer__bottom { align-items: flex-start; flex-direction: column; }
    .site-footer__acquiring-image { max-width: min(100%, 310px); }
}

@media (max-width: 390px) {
    .site-header__promo, .site-contact__toggle { padding-inline: 10px; font-size: 12px; }
    .site-brand__name { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nds-benefits { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Alpha 3: compact above-the-fold hero.
   Goal: desktop header + headline + lead + both CTAs + hero media fit into the
   initial viewport on a typical 1080p display without making the UI cramped.
   ========================================================================== */
@media (min-width: 900px) {
    .nds-hero .nds-kicker { margin-bottom: 14px; }
    .nds-hero .nds-button { min-height: 50px; padding-inline: 22px; }
}

@media (max-width: 699px) {
    .nds-hero .nds-kicker { margin-bottom: 12px; font-size: 10px; }
    .nds-hero .nds-lead { font-size: 16px; line-height: 1.5; }
    .nds-hero .nds-actions { margin-top: 18px; }
    .nds-hero .nds-button { min-height: 48px; }
    .nds-proof-row { margin-top: 20px; }
}


/* ==========================================================================
   Alpha 4: Beauty Academy refinement.
   Softer typography, plum/berry palette, local SVG iconography and a rebuilt
   contact experience. Presentation-only: no School Core business logic.
   ========================================================================== */

/* Softer professional beauty typography. */
.nds-heading { font-weight: 700; line-height: 1.03; letter-spacing: -0.042em; }
.nds-hero__title { font-weight: 710; letter-spacing: -0.048em; }
.nds-quote { font-weight: 560; }
.site-nav__list a { font-weight: 650; }

/* The dark audience section is deep plum rather than neutral black. */
.nds-section--dark {
    background:
        radial-gradient(circle at 88% 12%, rgba(235, 86, 144, .12), transparent 26%),
        linear-gradient(155deg, #25131f 0%, #35172b 52%, #2b1727 100%);
}

/* Header actions: beauty-first, still distinct and compact. */
.site-header__promo {
    color: #fff;
    background: linear-gradient(135deg, #ef2d72 0%, #ff6d63 100%);
    box-shadow: 0 10px 26px rgba(219, 38, 105, .20);
}
.site-header__promo:hover { background: linear-gradient(135deg, #d91f65 0%, #f95e59 100%); }
.site-header__promo-icon,
.site-contact__toggle-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
}
.site-header__promo-icon img,
.site-contact__toggle-icon img { width: 18px; height: 18px; display: block; }
.site-contact__toggle {
    border-color: #eadce3;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 24px rgba(72, 26, 51, .06);
}
.site-contact__toggle:hover { border-color: #dfcbd5; background: #fff7fa; }
.site-contact__chevron { display: none; }

/* Rebuilt contact card. */
.site-contact__backdrop { display: none; }
.site-contact__backdrop[hidden],
.site-contact__panel[hidden] { display: none; }
.site-contact__panel {
    width: min(390px, calc(100vw - 28px));
    padding: 18px;
    border: 1px solid #eddde5;
    border-radius: 28px;
    background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
    box-shadow: 0 28px 80px rgba(61, 23, 46, .18);
}
.site-contact__panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 3px 14px;
}
.site-contact__panel-head > div { min-width: 0; }
.site-contact__panel-head strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 720;
    letter-spacing: -.02em;
}
.site-contact__panel-head span {
    display: block;
    max-width: 285px;
    color: var(--nds-muted);
    font-size: 12px;
    line-height: 1.45;
}
.site-contact__close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f8edf2;
    cursor: pointer;
}
.site-contact__close:hover { background: #f2e2e9; }
.site-contact__close img { width: 18px; height: 18px; }
.site-contact__list { display: grid; gap: 8px; }
.site-contact__item {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) 24px;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 9px 11px;
    border: 1px solid rgba(112, 55, 82, .08);
    border-radius: 19px;
    background: rgba(255,255,255,.9);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.site-contact__item:hover {
    transform: translateY(-1px);
    border-color: rgba(185, 31, 98, .18);
    background: #fff;
    box-shadow: 0 10px 28px rgba(86, 34, 60, .07);
}
.site-contact__item-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 16px;
    background: #fff0f5;
}
.site-contact__item--telegram .site-contact__item-icon { background: #edf8ff; }
.site-contact__item--whatsapp .site-contact__item-icon { background: #eefbf4; }
.site-contact__item--viber .site-contact__item-icon { background: #f5efff; }
.site-contact__item--instagram .site-contact__item-icon { background: #fff0f5; }
.site-contact__item--email .site-contact__item-icon { background: #f6f0fa; }
.site-contact__item-icon img { width: 24px; height: 24px; }
.site-contact__item-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-contact__item-label { font-size: 14px; font-weight: 720; }
.site-contact__item-value {
    overflow: hidden;
    color: var(--nds-muted);
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-contact__item-arrow { width: 24px; height: 24px; display: grid; place-items: center; margin: 0; }
.site-contact__item-arrow img { width: 18px; height: 18px; opacity: .72; }

/* Audience paths: less "construction course", more modern beauty academy. */
.nds-path-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 30px;
    box-shadow: 0 22px 50px rgba(13, 4, 10, .12);
}
.nds-path-card::after {
    position: absolute;
    right: -58px;
    top: -62px;
    width: 170px;
    aspect-ratio: 1;
    border: 34px solid rgba(255,255,255,.09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.nds-path-card--pink { background: linear-gradient(145deg, #ea2d72 0%, #d32768 100%); }
.nds-path-card--coral { background: linear-gradient(145deg, #ff7864 0%, #f45f58 100%); }
.nds-path-card--berry { background: linear-gradient(145deg, #b73d78 0%, #873c77 100%); }
.nds-path-card__index { margin-bottom: 52px; font-size: 48px; font-weight: 700; opacity: .22; }
.nds-path-card h3 { font-size: 25px; font-weight: 700; }
.nds-path-card p { color: rgba(255,255,255,.86); }

/* Approach cards now use icon-led beauty editorial cards instead of black rules. */
.nds-benefits { gap: 14px; }
.nds-benefit {
    min-height: 220px;
    padding: 26px;
    border: 1px solid #f0dfe7;
    border-top: 1px solid #f0dfe7;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fff9fb 100%);
    box-shadow: 0 14px 38px rgba(70, 28, 51, .045);
}
.nds-benefit:nth-child(2) { background: linear-gradient(180deg, #fff 0%, #fff8f4 100%); }
.nds-benefit:nth-child(3) { background: linear-gradient(180deg, #fff 0%, #faf6ff 100%); }
.nds-benefit:nth-child(4) { background: linear-gradient(180deg, #fff 0%, #fff5f8 100%); }
.nds-benefit__icon {
    width: 54px;
    height: 54px;
    display: grid !important;
    place-items: center;
    margin: 0 0 24px !important;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(93, 39, 66, .07);
}
.nds-benefit__icon img { width: 32px; height: 32px; }
.nds-benefit h3 { font-size: 20px; font-weight: 700; }
.nds-benefit p { color: #766971; }

/* Founder / FAQ / CTA get slightly softer editorial rhythm. */
.nds-teacher__content .nds-heading,
.nds-faq-layout .nds-heading { font-weight: 700; }
.nds-cta__box {
    background: linear-gradient(135deg, #e72b70 0%, #ff6e61 58%, #a34c83 130%);
}

/* Footer: softer beauty surface, icons and clearer legal/payment area. */
.site-footer {
    border-top: 1px solid #f0e1e8;
    background: linear-gradient(180deg, #fff9fb 0%, #fff 100%);
}
.site-footer__top { padding-top: 58px; }
.site-footer__column h2 {
    font-size: 14px;
    font-weight: 720;
    letter-spacing: 0;
    text-transform: none;
}
.site-footer__menu { gap: 10px; }
.site-footer__menu a { color: #6e636a; }
.site-footer__contacts { gap: 8px; }
.site-footer__contact-row {
    display: grid !important;
    grid-template-columns: 36px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 0;
}
.site-footer__contact-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #fff0f5;
}
.site-footer__contact-icon img { width: 20px; height: 20px; }
.site-footer__contact-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.site-footer__contact-copy strong { font-size: 12px; font-weight: 700; }
.site-footer__contact-copy span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.site-footer__merchant {
    margin-bottom: 8px;
    padding: 26px 28px;
    border: 1px solid #f0e1e8;
    border-radius: 24px;
    background: rgba(255,255,255,.76);
}
.site-footer__bottom { border-top-color: #f0e1e8; }

@media (max-width: 899px) {
    .nds-path-card { min-height: 285px; }
    .nds-path-card__index { margin-bottom: 42px; }
}

@media (max-width: 699px) {
    /*
     * alpha.5: a backdrop-filter on an ancestor establishes a containing block
     * for fixed descendants in Chromium/WebKit. The contact sheet lives inside
     * the sticky header, so the mobile fixed panel must not inherit that block.
     * Use an opaque mobile header and keep the sheet fixed to the real viewport.
     */
    .site-header {
        background: #fffafb;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .nds-contact-open { overflow: hidden; }
    .site-contact__backdrop {
        position: fixed;
        z-index: 150;
        inset: 0;
        display: block;
        background: rgba(42, 21, 36, .43);
        backdrop-filter: blur(4px);
    }
    .site-contact__backdrop[hidden] { display: none; }
    .site-contact__panel {
        position: fixed;
        z-index: 160;
        left: 12px;
        right: 12px;
        top: auto;
        /* alpha.6: keep the sheet visually detached from the browser edge. */
        bottom: max(48px, calc(env(safe-area-inset-bottom) + 36px));
        width: auto;
        max-height: 62vh;
        max-height: 62svh;
        max-height: 62dvh;
        overflow: auto;
        overscroll-behavior: contain;
        padding: 14px 18px 18px;
        border-radius: 30px;
        box-shadow: 0 30px 90px rgba(42, 21, 36, .32);
    }
    .site-contact__panel::before {
        content: "";
        display: block;
        width: 44px;
        height: 4px;
        margin: -2px auto 12px;
        border-radius: 999px;
        background: #e5d3dc;
    }
    .site-contact__panel-head { padding: 0 2px 14px; }
    .site-contact__panel-head strong { font-size: 20px; }
    .site-contact__panel-head span { font-size: 12px; }
    .site-contact__item { min-height: 64px; }
    .site-header__promo,
    .site-contact__toggle { min-height: 42px; border-radius: 16px; }
    .site-header__promo-icon,
    .site-contact__toggle-icon { width: 17px; height: 17px; flex-basis: 17px; }
    .site-header__promo-icon img,
    .site-contact__toggle-icon img { width: 17px; height: 17px; }
    .nds-path-card { min-height: 250px; padding: 23px; border-radius: 26px; }
    .nds-path-card__index { margin-bottom: 34px; font-size: 44px; }
    .nds-path-card h3 { font-size: 23px; }
    .nds-benefits { grid-template-columns: 1fr 1fr; }
    .nds-benefit { min-height: 200px; padding: 18px; border-radius: 20px; }
    .nds-benefit__icon { width: 46px; height: 46px; margin-bottom: 18px !important; border-radius: 15px; }
    .nds-benefit__icon img { width: 28px; height: 28px; }
    .nds-benefit h3 { font-size: 17px; }
    .nds-benefit p { font-size: 12.5px; }
    .site-footer__merchant { padding: 22px; border-radius: 20px; }
}

@media (max-width: 390px) {
    .nds-benefits { grid-template-columns: 1fr; }
    .nds-benefit { min-height: auto; }
}


/* Alpha.13 — composed training media block. */
@media (max-width: 1099px) {
    .nds-approach__top { grid-template-columns: 1fr; gap: 32px; align-items: start; }
    .nds-approach__intro { max-width: 720px; }
    .nds-approach__showcase.has-photo.has-video { grid-template-columns: minmax(0, 1.5fr) minmax(250px, .6fr); }
    .nds-approach__photo { min-height: 460px; }
}

@media (max-width: 760px) {
    .nds-section--approach::before { left: -350px; top: 42%; }
    .nds-section--approach::after { right: -360px; bottom: 2%; }
    .nds-approach__top { gap: 28px; }
    .nds-approach__intro .nds-heading { max-width: 12ch; }
    .nds-approach__showcase,
    .nds-approach__showcase.has-photo.has-video { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
    .nds-approach__photo-card { border-radius: 24px; }
    .nds-approach__photo { min-height: 0; aspect-ratio: 4 / 3; }
    .nds-approach__photo-label { left: 14px; bottom: 14px; max-width: calc(100% - 28px); font-size: 11px; }
    .nds-approach__video-card { width: min(100%, 390px); justify-self: center; border-radius: 24px; }
    .nds-approach__video-wrap { aspect-ratio: 9 / 16; }
    .nds-approach__video-copy { padding: 16px 16px 18px; }
}

@media (max-width: 520px) {
    .nds-section--approach { padding-top: 70px; padding-bottom: 76px; }
    .nds-approach__intro .nds-lead { margin-top: 16px; }
    .nds-approach__video-card { width: min(100%, 340px); }
    .nds-benefits { gap: 10px; }
    .nds-benefit { min-height: 0; padding: 18px; }
}

@media (max-width: 390px) {
    .nds-approach__video-card { width: min(100%, 320px); }
}

/* ==========================================================================
   School Core public UI integration — alpha.7
   The plugin owns form semantics/data; the theme owns presentation.
   ========================================================================== */

.nds-schedule-row__availability {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}
.nds-schedule-row__price {
    color: var(--nds-text);
    font-size: 14px;
    line-height: 1.2;
}

.nds-cta__form {
    max-width: 980px;
}
.nds-cta__form .nschool-form-wrap {
    position: relative;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    color: var(--nds-text);
    box-shadow: 0 18px 48px rgba(69,21,48,.13);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.nds-cta__form .nschool-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
    margin: 0;
}
.nds-cta__form .nschool-form__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.nds-cta__form .nschool-form__field > span {
    color: #62555d;
    font-size: 12px;
    font-weight: 720;
}
.nds-cta__form .nschool-form input:not([type="checkbox"]),
.nds-cta__form .nschool-form select,
.nds-cta__form .nschool-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #eadce3;
    border-radius: 16px;
    outline: 0;
    background: #fff;
    color: var(--nds-text);
    font: inherit;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nds-cta__form .nschool-form textarea {
    min-height: 108px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}
.nds-cta__form .nschool-form input:focus,
.nds-cta__form .nschool-form select:focus,
.nds-cta__form .nschool-form textarea:focus {
    border-color: #ef4b82;
    box-shadow: 0 0 0 4px rgba(239,75,130,.11);
}
.nds-cta__form .nschool-form__field--wide,
.nds-cta__form .nschool-form__consent,
.nds-cta__form .nschool-form__submit {
    grid-column: 1 / -1;
}
.nds-cta__form .nschool-form__consent {
    display: grid;
    grid-template-columns: 20px minmax(0,1fr);
    gap: 10px;
    align-items: start;
    margin: 2px 0 0;
    color: #6f626a;
    font-size: 12px;
    line-height: 1.45;
}
.nds-cta__form .nschool-form__consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--nds-primary);
}
.nds-cta__form .nschool-form__consent a {
    color: var(--nds-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nds-cta__form .nschool-form__submit {
    justify-self: start;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nds-primary), var(--nds-coral));
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 780;
    box-shadow: 0 12px 30px rgba(232,43,112,.20);
    transition: transform .18s ease, box-shadow .18s ease;
}
.nds-cta__form .nschool-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 34px rgba(232,43,112,.25);
}
.nds-cta__form .nschool-form-message {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #eadce3;
    border-radius: 14px;
    background: #fff;
    color: var(--nds-text);
    font-size: 13px;
}
.nds-cta__form .nschool-form-message--success {
    border-color: #b9e2c7;
    background: #f3fbf6;
}
.nds-cta__form .nschool-form-message--error {
    border-color: #f0b9c4;
    background: #fff5f7;
}

@media (max-width: 699px) {
    .nds-cta__form .nschool-form-wrap {
        padding: 18px;
        border-radius: 22px;
    }
    .nds-cta__form .nschool-form {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .nds-cta__form .nschool-form__field--wide,
    .nds-cta__form .nschool-form__consent,
    .nds-cta__form .nschool-form__submit {
        grid-column: auto;
    }
    .nds-cta__form .nschool-form input:not([type="checkbox"]),
    .nds-cta__form .nschool-form select {
        min-height: 50px;
        border-radius: 15px;
    }
    .nds-cta__form .nschool-form__submit {
        width: 100%;
        justify-self: stretch;
    }
}

/* --------------------------------------------------------------------------
 * School Core public storefront — alpha.8
 * Real course/teacher data stays in Core; these rules are presentation only.
 * -------------------------------------------------------------------------- */
.nds-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}
.nds-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nds-primary-dark);
    font-weight: 820;
    text-decoration: none;
}
.nds-text-link span { transition: transform 160ms ease; }
.nds-text-link:hover span { transform: translateX(4px); }

.nds-course-card { display: flex; flex-direction: column; }
.nds-course-card--preview { outline: 2px dashed rgba(148, 100, 0, .25); outline-offset: -8px; }
.nds-course-card__badges { position: absolute; left: 18px; top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.nds-course-card__badges .nds-badge { position: static; }
.nds-badge--preview { color: #7c4f00; background: #fff4cf; }
.nds-course-card__body { display: flex; flex: 1; flex-direction: column; }
.nds-course-card__eyebrow {
    min-height: 0 !important;
    margin: 0 0 8px !important;
    color: var(--nds-primary) !important;
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.nds-course-card__excerpt { min-height: 0 !important; }
.nds-course-card__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nds-course-card__facts span { padding: 7px 10px; border-radius: 999px; background: var(--nds-surface-soft); color: #5f5360; font-size: 12px; font-weight: 720; }
.nds-course-card__footer { margin-top: auto; padding-top: 22px; }
.nds-course-card__meta { margin-top: 0; }
.nds-course-card__price { display: block; margin-top: 14px; font-size: 20px; letter-spacing: -.025em; }
.nds-course-card__link { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--nds-border); color: var(--nds-primary-dark); font-weight: 820; text-decoration: none; }

.nds-schedule-row__course p { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nds-schedule-row__course p span + span::before { margin-right: 14px; color: #c7b6c1; content: "•"; }
.nds-schedule-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 42px;
    padding: 30px 32px;
    border: 1px dashed #ddcbd5;
    border-radius: var(--nds-radius);
    background: #fff;
}
.nds-schedule-empty strong { display: block; margin-bottom: 6px; font-size: 20px; }
.nds-schedule-empty p { max-width: 700px; margin: 0; color: var(--nds-muted); }
.nds-empty-state strong { display: block; margin-bottom: 8px; font-size: 24px; }
.nds-empty-state p { color: var(--nds-muted); }
.nds-empty-state .nds-button { margin-top: 12px; }
.nds-teacher__specialization { max-width: 650px; color: var(--nds-muted); font-size: 17px; line-height: 1.7; }
.nds-teacher__link { margin-top: 24px; }

.nds-page-hero { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 118px) 0 72px; background: linear-gradient(180deg, #fff7fa 0%, var(--nds-bg) 100%); }
.nds-page-hero::after { position: absolute; right: -190px; top: -220px; width: 560px; aspect-ratio: 1; border: 76px solid rgba(230,37,114,.07); border-radius: 50%; content: ""; }
.nds-page-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 70px; align-items: end; }
.nds-page-hero h1 { max-width: 850px; margin: 0 0 22px; font-size: clamp(48px, 7vw, 88px); line-height: .93; letter-spacing: -.06em; }
.nds-page-hero__note { padding: 28px; border: 1px solid var(--nds-border); border-radius: 28px; background: rgba(255,255,255,.82); box-shadow: var(--nds-shadow); }
.nds-page-hero__note strong, .nds-page-hero__note span { display: block; }
.nds-page-hero__note strong { margin-bottom: 6px; font-size: 20px; }
.nds-page-hero__note span { color: var(--nds-muted); }
.nds-course-catalog { align-items: stretch; }

.nds-course-hero { position: relative; overflow: hidden; padding: clamp(52px, 7vw, 92px) 0 78px; background: linear-gradient(180deg, #fff8fa 0%, var(--nds-bg) 100%); }
.nds-course-hero::after { position: absolute; z-index: 0; right: -180px; top: -230px; width: 590px; aspect-ratio: 1; border: 84px solid rgba(230,37,114,.07); border-radius: 50%; content: ""; }
.nds-course-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: clamp(40px, 6vw, 76px); align-items: center; }
.nds-back-link { display: inline-flex; margin-bottom: 24px; color: var(--nds-muted); font-size: 14px; font-weight: 760; text-decoration: none; }
.nds-back-link:hover { color: var(--nds-primary-dark); }
.nds-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.nds-chip { display: inline-flex; padding: 8px 12px; border: 1px solid var(--nds-border); border-radius: 999px; background: #fff; color: #675b64; font-size: 11px; font-weight: 860; letter-spacing: .04em; text-transform: uppercase; }
.nds-chip--preview { border-color: #f0d998; color: #7c4f00; background: #fff6d9; }
.nds-course-hero h1 { max-width: 780px; margin: 0 0 22px; font-size: clamp(46px, 6.2vw, 82px); line-height: .94; letter-spacing: -.06em; }
.nds-course-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 30px; }
.nds-course-facts > div { padding: 17px 18px; border: 1px solid var(--nds-border); border-radius: 18px; background: rgba(255,255,255,.74); }
.nds-course-facts span, .nds-course-facts strong { display: block; }
.nds-course-facts span { margin-bottom: 4px; color: var(--nds-muted); font-size: 11px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.nds-course-facts strong { font-size: 15px; }
.nds-course-hero__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 28px; }
.nds-course-price { display: flex; flex-direction: column; }
.nds-course-price span { color: var(--nds-muted); font-size: 12px; }
.nds-course-price strong { font-size: 28px; letter-spacing: -.04em; }
.nds-course-price small { color: var(--nds-muted); }
.nds-course-hero__media { position: relative; min-height: 570px; }
.nds-course-hero__media > img, .nds-photo-placeholder--course { width: calc(100% - 34px); height: 570px; object-fit: cover; border-radius: 40px; box-shadow: var(--nds-shadow); }
.nds-photo-placeholder--course { display: grid; place-items: end start; padding: 28px; color: rgba(255,255,255,.9); background: radial-gradient(circle at 28% 20%, rgba(255,255,255,.75), transparent 20%), linear-gradient(145deg, #ffb9d1, var(--nds-primary), var(--nds-violet)); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.nds-course-hero__media-note { position: absolute; right: 0; bottom: 28px; width: min(290px, 76%); padding: 20px; border-radius: 22px; background: #fff; box-shadow: var(--nds-shadow); }
.nds-course-hero__media-note strong, .nds-course-hero__media-note span { display: block; }
.nds-course-hero__media-note strong { margin-bottom: 5px; font-size: 18px; }
.nds-course-hero__media-note span { color: var(--nds-muted); font-size: 13px; }

.nds-section--course-summary { padding-top: 52px; }
.nds-course-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.nds-course-summary article { padding: 30px; border: 1px solid var(--nds-border); border-radius: 28px; background: #fff; }
.nds-course-summary article > span { display: inline-flex; margin-bottom: 46px; color: var(--nds-primary); font-size: 13px; font-weight: 900; }
.nds-course-summary h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.08; letter-spacing: -.035em; }
.nds-course-summary p { margin: 0; color: var(--nds-muted); }
.nds-course-program__grid { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: clamp(42px, 7vw, 92px); align-items: start; }
.nds-course-program__heading { position: sticky; top: 110px; }
.nds-course-program__content { max-width: 760px; }
.nds-course-program__content h2:first-child { margin-top: 0; }
.nds-course-program__content h2 { padding-top: 26px; border-top: 1px solid var(--nds-border); }
.nds-course-program__content h3 { margin-top: 28px; font-size: 19px; }
.nds-course-program__content p { margin-top: 8px; }

.nds-course-enroll { padding: 76px 0 100px; color: #fff; background: linear-gradient(135deg, var(--nds-dark), #4a1d3c 62%, #6a264b 100%); }
.nds-course-enroll__grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(38px, 7vw, 86px); align-items: start; }
.nds-course-enroll h2 { max-width: 600px; margin: 0 0 18px; font-size: clamp(38px, 5vw, 60px); line-height: .98; letter-spacing: -.05em; }
.nds-course-enroll > .nds-shell > div > p:not(.nds-kicker) { color: rgba(255,255,255,.72); }
.nds-course-enroll__form .nschool-form-wrap { margin: 0; padding: 28px; border-radius: 28px; color: var(--nds-text); background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.18); }
.nds-course-enroll__form .nschool-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.nds-course-enroll__form .nschool-form__context { grid-column: 1/-1; margin: 0; padding: 12px 14px; border-radius: 14px; color: var(--nds-primary-dark); background: var(--nds-surface-soft); font-size: 13px; font-weight: 780; }
.nds-course-enroll__form .nschool-form__field { display: grid; gap: 7px; margin: 0; }
.nds-course-enroll__form .nschool-form__field > span { font-size: 12px; font-weight: 780; }
.nds-course-enroll__form .nschool-form input:not([type="checkbox"]),
.nds-course-enroll__form .nschool-form select,
.nds-course-enroll__form .nschool-form textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--nds-border); border-radius: 15px; color: var(--nds-text); background: #fff; }
.nds-course-enroll__form .nschool-form textarea { min-height: 105px; resize: vertical; }
.nds-course-enroll__form .nschool-form input:focus,
.nds-course-enroll__form .nschool-form select:focus,
.nds-course-enroll__form .nschool-form textarea:focus { border-color: var(--nds-primary); outline: 3px solid rgba(230,37,114,.11); }
.nds-course-enroll__form .nschool-form__field--wide,
.nds-course-enroll__form .nschool-form__consent,
.nds-course-enroll__form .nschool-form__submit { grid-column: 1/-1; }
.nds-course-enroll__form .nschool-form__consent { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--nds-muted); font-size: 12px; }
.nds-course-enroll__form .nschool-form__consent input { margin-top: 3px; }
.nds-course-enroll__form .nschool-form__submit { min-height: 54px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg,var(--nds-primary),var(--nds-coral)); font-weight: 850; cursor: pointer; }
.nds-course-enroll__form .nschool-form-message { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; }
.nds-course-enroll__form .nschool-form-message--success { color: #0d6d43; background: #e9f7ef; }
.nds-course-enroll__form .nschool-form-message--error { color: var(--nds-danger); background: #fff0f2; }

.nds-teacher-archive { display: grid; gap: 24px; }
.nds-teacher-card { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(0,1.3fr); overflow: hidden; border: 1px solid var(--nds-border); border-radius: 34px; background: #fff; }
.nds-teacher-card__media { min-height: 420px; background: var(--nds-surface-soft); }
.nds-teacher-card__media img, .nds-teacher-card__media .nds-course-card__placeholder { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.nds-teacher-card__body { align-self: center; padding: 42px; }
.nds-teacher-card__body h2 { margin: 0 0 14px; font-size: clamp(34px,4vw,54px); letter-spacing: -.045em; }
.nds-teacher-card__body h2 a { text-decoration: none; }
.nds-teacher-card__body > p:not(.nds-kicker) { max-width: 680px; color: var(--nds-muted); }

.nds-teacher-profile { padding: clamp(54px,8vw,96px) 0; background: linear-gradient(180deg,#fff8fa 0%,var(--nds-bg) 100%); }
.nds-teacher-profile__grid { display: grid; grid-template-columns: minmax(320px,.85fr) minmax(0,1.15fr); gap: clamp(42px,7vw,90px); align-items: center; }
.nds-teacher-profile__media img, .nds-teacher-profile__media .nds-photo-placeholder--teacher { width: 100%; height: 620px; object-fit: cover; border-radius: 40px; box-shadow: var(--nds-shadow); }
.nds-teacher-profile__content h1 { margin: 0 0 22px; font-size: clamp(48px,7vw,84px); line-height: .94; letter-spacing: -.06em; }
.nds-teacher-profile__fact { max-width: 680px; margin-top: 14px; padding: 18px 20px; border: 1px solid var(--nds-border); border-radius: 18px; background: #fff; }
.nds-teacher-profile__fact span, .nds-teacher-profile__fact strong { display: block; }
.nds-teacher-profile__fact span { margin-bottom: 4px; color: var(--nds-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.nds-preview-note { margin-top: 20px; padding: 13px 15px; border-radius: 14px; color: #7c4f00; background: #fff6d9; font-size: 13px; font-weight: 760; }
.nds-teacher-profile__body { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 68px; align-items: start; }
.nds-teacher-profile__education { padding: 28px; border: 1px solid var(--nds-border); border-radius: 26px; background: #fff; }
.nds-teacher-profile__education h2 { margin: 0 0 12px; font-size: 24px; }
.nds-teacher-profile__education p { margin: 0; color: var(--nds-muted); }

@media (max-width: 899px) {
    .nds-section-head { align-items: flex-start; }
    .nds-page-hero__grid,
    .nds-course-hero__grid,
    .nds-course-program__grid,
    .nds-course-enroll__grid,
    .nds-teacher-profile__grid,
    .nds-teacher-profile__body { grid-template-columns: 1fr; }
    .nds-course-program__heading { position: static; }
    .nds-course-summary { grid-template-columns: 1fr; }
    .nds-course-hero__media { min-height: 470px; }
    .nds-course-hero__media > img, .nds-photo-placeholder--course { height: 470px; }
    .nds-teacher-card { grid-template-columns: 1fr; }
    .nds-teacher-card__media, .nds-teacher-card__media img, .nds-teacher-card__media .nds-course-card__placeholder { min-height: 360px; height: 360px; }
    .nds-teacher-profile__media img, .nds-teacher-profile__media .nds-photo-placeholder--teacher { height: 520px; }
}

@media (max-width: 699px) {
    .nds-section-head { display: block; }
    .nds-section-head .nds-text-link { margin-top: 20px; }
    .nds-schedule-empty { align-items: stretch; flex-direction: column; padding: 24px; }
    .nds-schedule-empty .nds-button { width: 100%; }
    .nds-page-hero { padding: 54px 0 48px; }
    .nds-page-hero h1 { font-size: clamp(42px,13vw,62px); }
    .nds-page-hero__note { padding: 22px; }
    .nds-course-hero { padding: 36px 0 52px; }
    .nds-course-hero h1 { font-size: clamp(40px,12vw,58px); }
    .nds-course-facts { grid-template-columns: 1fr 1fr; }
    .nds-course-hero__actions { align-items: stretch; flex-direction: column; }
    .nds-course-hero__actions .nds-button { width: 100%; }
    .nds-course-hero__media { min-height: 390px; }
    .nds-course-hero__media > img, .nds-photo-placeholder--course { width: 100%; height: 390px; border-radius: 28px; }
    .nds-course-hero__media-note { right: 14px; bottom: 14px; width: calc(100% - 28px); }
    .nds-course-summary article { padding: 24px; }
    .nds-course-summary article > span { margin-bottom: 26px; }
    .nds-course-enroll { padding: 58px 0 72px; }
    .nds-course-enroll__form .nschool-form-wrap { padding: 20px; border-radius: 24px; }
    .nds-course-enroll__form .nschool-form { grid-template-columns: 1fr; }
    .nds-course-enroll__form .nschool-form__field--wide,
    .nds-course-enroll__form .nschool-form__consent,
    .nds-course-enroll__form .nschool-form__submit,
    .nds-course-enroll__form .nschool-form__context { grid-column: auto; }
    .nds-teacher-card__body { padding: 28px; }
    .nds-teacher-profile__media img, .nds-teacher-profile__media .nds-photo-placeholder--teacher { height: 430px; border-radius: 28px; }
    .nds-teacher-profile__content h1 { font-size: clamp(42px,13vw,60px); }
}

/* --------------------------------------------------------------------------
 * Working storefront — alpha.9
 * Schedule filters, course proof, teacher courses and demo-ready presentation.
 * -------------------------------------------------------------------------- */
.nds-badge--availability { color: #6b2449; background: rgba(255,255,255,.92); }
.nds-course-card__badges { max-width: calc(100% - 36px); }
.nds-catalog-count { color: var(--nds-muted); font-size: 13px; font-weight: 760; }
.nds-teacher__experience { margin-top: 12px; color: var(--nds-primary-dark); font-size: 13px; font-weight: 800; }
.nds-home-reviews { margin-top: clamp(36px, 6vw, 64px); }
.nds-home-reviews > h3 { margin: 0 0 20px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }

.nds-status--full,
.nds-status--closed { color: #75646e; background: #f1eaee; }
.nds-schedule-row--full,
.nds-schedule-row--closed { background: rgba(255,255,255,.54); }
.nds-schedule-row--full .nds-schedule-row__course,
.nds-schedule-row--closed .nds-schedule-row__course { opacity: .78; }

.nds-schedule-filters {
    display: grid;
    grid-template-columns: minmax(220px,1.2fr) minmax(210px,.8fr) auto auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid var(--nds-border);
    border-radius: 24px;
    background: #fff;
}
.nds-schedule-filters label { display: grid; gap: 7px; }
.nds-schedule-filters label > span { color: var(--nds-muted); font-size: 11px; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
.nds-schedule-filters select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--nds-border);
    border-radius: 14px;
    background: #fff;
    color: var(--nds-text);
    font: inherit;
}
.nds-schedule-filters select:focus { border-color: var(--nds-primary); outline: 3px solid rgba(230,37,114,.10); }
.nds-schedule-filters .nds-text-link { align-self: center; padding: 12px 4px; }
.nds-schedule--page { border: 1px solid var(--nds-border); border-radius: 28px; background: #fff; overflow: hidden; }

.nds-course-teacher__grid { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: clamp(36px,6vw,74px); align-items: center; }
.nds-course-teacher__media img,
.nds-course-teacher__media .nds-photo-placeholder--teacher { width: 100%; height: 480px; object-fit: cover; border-radius: 34px; box-shadow: var(--nds-shadow); }
.nds-course-teacher__specialization { max-width: 680px; color: var(--nds-muted); line-height: 1.7; }
.nds-course-social-proof__reviews { margin-top: 20px; }
.nds-course-next-steps { background: linear-gradient(180deg,#fff 0%,#fff7fa 100%); }
.nds-course-next-steps__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.nds-course-next-steps__grid article { padding: 28px; border: 1px solid var(--nds-border); border-radius: 26px; background: #fff; }
.nds-course-next-steps__grid article > span { display: inline-flex; margin-bottom: 36px; color: var(--nds-primary); font-size: 12px; font-weight: 900; }
.nds-course-next-steps__grid h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; }
.nds-course-next-steps__grid p { margin: 0; color: var(--nds-muted); }
.nds-story-card__media { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: -10px -10px 22px; }
.nds-story-card__media figure { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: 18px; background: var(--nds-surface-soft); }
.nds-story-card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.nds-story-card__media figure > span { position: absolute; z-index: 1; left: 8px; top: 8px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.nds-story-card__before { font-size: 13px; }
.nds-story-card__course { font-size: 12px; font-weight: 760; }
.nds-teacher-profile__facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 20px 0 24px; }
.nds-teacher-profile__facts .nds-teacher-profile__fact { margin-top: 0; }
.nds-course-enroll__form .nschool-form__context--muted { color: var(--nds-muted); background: #fbf7f9; font-weight: 650; }

@media (max-width: 899px) {
    .nds-schedule-filters { grid-template-columns: 1fr 1fr; }
    .nds-course-teacher__grid { grid-template-columns: 1fr; }
    .nds-course-next-steps__grid { grid-template-columns: 1fr; }
    .nds-teacher-profile__facts { grid-template-columns: 1fr; }
}

@media (max-width: 699px) {
    .nds-schedule-filters { grid-template-columns: 1fr; padding: 16px; border-radius: 20px; }
    .nds-schedule-filters .nds-button { width: 100%; }
    .nds-schedule-filters .nds-text-link { justify-content: center; }
    .nds-course-teacher__media img,
    .nds-course-teacher__media .nds-photo-placeholder--teacher { height: 390px; border-radius: 28px; }
    .nds-story-card__media { grid-template-columns: 1fr 1fr; }
}

/* ========================================================================== 
   Alpha.14: compact course cards + anchor landing refinement.
   Primary decision data and CTA stay high in the card; homepage anchors land
   closer to useful content below the sticky header.
   ========================================================================== */
#courses,
#schedule,
#audience-paths,
#contact {
    scroll-margin-top: 92px;
}
body.admin-bar #courses,
body.admin-bar #schedule,
body.admin-bar #audience-paths,
body.admin-bar #contact {
    scroll-margin-top: 124px;
}

/* The courses/schedule transition should feel continuous instead of like two
   unrelated full-height landing sections. */
#courses {
    padding-top: clamp(46px, 5vw, 68px);
    padding-bottom: clamp(48px, 5vw, 66px);
}
#schedule {
    padding-top: clamp(52px, 5.5vw, 72px);
}
#courses .nds-card-grid {
    margin-top: 34px;
}

/* Course card: price/date/program CTA are decision data, therefore they sit
   immediately below the title instead of being pinned to the bottom. */
.nds-course-card__body {
    padding: 22px 24px 24px;
}
.nds-course-card h3 {
    margin-bottom: 16px;
}
.nds-course-card__commerce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--nds-border);
    border-radius: 18px;
    background: var(--nds-surface-soft);
}
.nds-course-card__commerce .nds-course-card__price {
    flex: 0 0 auto;
    margin: 0;
    color: var(--nds-dark);
    font-size: 23px;
    line-height: 1;
    letter-spacing: -.035em;
    white-space: nowrap;
}
.nds-course-card__commerce .nds-course-card__meta {
    display: grid;
    justify-items: end;
    gap: 3px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: right;
}
.nds-course-card__commerce .nds-course-card__meta span {
    color: var(--nds-muted);
    font-size: 11px;
}
.nds-course-card__commerce .nds-course-card__meta strong {
    color: var(--nds-dark);
    font-size: 13px;
    line-height: 1.25;
}
.nds-course-card__link {
    margin-top: 0;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(230,37,114,.16);
    border-radius: 14px;
    background: #fff8fa;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.nds-course-card__link:hover {
    border-color: rgba(230,37,114,.34);
    background: #fff0f5;
    transform: translateY(-1px);
}
.nds-course-card__excerpt {
    margin-top: 0 !important;
    line-height: 1.5;
}
.nds-course-card__facts {
    margin-top: 14px;
}
/* Historical footer no longer participates in homepage/course archive cards,
   but keeping the selector neutral avoids surprises for cached markup. */
.nds-course-card__footer {
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 1023px) {
    #courses,
    #schedule {
        padding-top: 58px;
        padding-bottom: 58px;
    }
    .nds-course-card__commerce {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .nds-course-card__commerce .nds-course-card__meta {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 699px) {
    #courses,
    #schedule,
    #audience-paths,
    #contact {
        scroll-margin-top: 78px;
    }
    body.admin-bar #courses,
    body.admin-bar #schedule,
    body.admin-bar #audience-paths,
    body.admin-bar #contact {
        scroll-margin-top: 124px;
    }
    #courses,
    #schedule {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    #courses .nds-card-grid {
        margin-top: 30px;
    }
    .nds-course-card__body {
        padding: 20px;
    }
    .nds-course-card__commerce {
        padding: 13px 14px;
    }
}

/* Homepage density: keep the next actionable schedule closer to the course
   cards without making the catalogue itself feel cramped. */
@media (min-width: 1024px) {
    #courses {
        padding-top: 42px;
        padding-bottom: 36px;
    }
    #schedule {
        padding-top: 42px;
    }
    #courses .nds-course-card__media {
        height: 238px;
    }
    #courses .nds-course-card h3 {
        font-size: 22px;
        line-height: 1.08;
    }
    #courses .nds-course-card__excerpt {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    #schedule .nds-schedule {
        margin-top: 34px;
    }
}
.nds-course-card__commerce .nds-course-card__meta:only-child {
    justify-items: start;
    width: 100%;
    text-align: left;
}


/* Alpha.15 — direct registration CTA from course cards. */
.nds-course-card__actions {
    display: grid;
    gap: 9px;
    margin: 0 0 16px;
}
.nds-course-card__actions .nds-course-card__link {
    margin-bottom: 0;
}
.nds-course-card__enroll {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--nds-primary-dark);
    border-radius: 14px;
    color: #fff;
    background: var(--nds-primary-dark);
    font-weight: 850;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.nds-course-card__enroll:hover {
    color: #fff;
    background: var(--nds-dark);
    box-shadow: 0 12px 28px rgba(74, 21, 48, .16);
    transform: translateY(-1px);
}
.nds-course-card__enroll:focus-visible {
    outline: 3px solid rgba(230, 37, 114, .24);
    outline-offset: 2px;
}
@media (max-width: 699px) {
    .nds-course-card__actions { gap: 8px; }
    .nds-course-card__enroll { min-height: 46px; }
}

/* alpha.17 structured student-result card */
.nds-story-card__steps{display:grid;gap:12px;margin:18px 0}.nds-story-card__steps p{margin:0;padding:14px 16px;border-radius:16px;background:var(--nds-surface-soft);color:var(--nds-muted)}.nds-story-card__steps strong,.nds-story-card__steps span{display:block}.nds-story-card__steps strong{margin-bottom:5px;color:var(--nds-text);font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.nds-story-card__steps span{font-size:14px;line-height:1.55}


/* alpha.18 scroll performance: reduce continuous repaint cost without changing layout. */
@media (min-width: 700px) {
    /* The sticky header used to blur the whole moving page beneath it on every frame. */
    .site-header {
        background: rgba(255, 250, 251, .985);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* Keep large static surfaces cheap to repaint while preserving the existing visual hierarchy. */
.nds-hero__image,
.nds-photo-placeholder--hero,
.nds-course-card,
.nds-approach__photo-card,
.nds-approach__video-card,
.nds-story-card,
.nds-page-hero__note,
.nds-course-hero__media > img,
.nds-photo-placeholder--course,
.nds-teacher-profile__media img,
.nds-teacher-profile__media .nds-photo-placeholder--teacher {
    backface-visibility: hidden;
}
