/* НАП · общая визуальная система. Подключается после стилей страниц. */
:root {
  --nap-blue: #002f86;
  --nap-navy: #001c51;
  --nap-cyan: #0099de;
  --nap-action: #0077c8;
  --nap-action-hover: #0065aa;
  --nap-paper: #ffffff;
  --nap-ice: #eaf5fc;
  --nap-ice-deep: #d9edf9;
  --nap-ink: #102c5c;
  --nap-muted: #405c7e;
  --nap-line: #b9d5e8;
  --nap-font: Manrope, Arial, sans-serif;
  --nap-space-1: 8px;
  --nap-space-2: 16px;
  --nap-space-3: 24px;
  --nap-space-4: 40px;
  --nap-space-5: 64px;
  --nap-radius-sm: 8px;
  --nap-radius-card: 12px;
  --nap-shadow-card: 0 18px 48px rgba(0, 28, 81, .09);
  --nap-focus: #0099de;
}

body[data-page] {
  --ink: var(--nap-ink);
  --muted: var(--nap-muted);
  --border: var(--nap-line);
  --soft: var(--nap-ice);
  --paper: var(--nap-paper);
  --deep: var(--nap-navy);
  --forest: var(--nap-navy);
  --green: var(--nap-blue);
  --lime: var(--nap-ice-deep);
  --line: var(--nap-line);
  --course-accent: var(--nap-blue);
  --book-accent: var(--nap-action);
  --pack-accent: #0054aa;
  --wrap: 1280px;
  color: var(--nap-ink);
  background: var(--nap-paper);
  font-family: var(--nap-font);
}
body[data-page] :is(h1, h2, h3, h4, p, button, input, select, textarea) { font-family: var(--nap-font); }
body[data-page] :is(h1, h2, h3, h4) { letter-spacing: 0; }
body[data-page] :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--nap-focus);
  outline-offset: 4px;
}
body[data-page] .wrap { max-width: 1280px; }
body[data-page] .section { scroll-margin-top: 82px; }

/* One navigation system, with the supplied horizontal SVG on every page. */
body[data-page]:not([data-page="home"]) .site-header {
  background: #fff;
  border-bottom: 1px solid var(--nap-line);
  box-shadow: none;
}
body[data-page]:not([data-page="home"]) .site-header .nav-inner {
  width: calc(100% - 48px);
  max-width: 1280px;
  height: 88px;
  min-height: 88px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}
body[data-page]:not([data-page="home"]) .site-header .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 310px;
  min-width: 0;
}
body[data-page]:not([data-page="home"]) .site-header .brand img { width: 100%; height: auto; object-fit: contain; }
body[data-page]:not([data-page="home"]) .site-header .desktop-nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  gap: 27px;
}
body[data-page]:not([data-page="home"]) .site-header .desktop-nav a {
  color: var(--nap-navy);
  font-size: 15px;
  font-weight: 700;
  border-bottom-width: 2px;
}
body[data-page]:not([data-page="home"]) .site-header .desktop-nav a:is(:hover, .is-active) { border-bottom-color: var(--nap-cyan); }
body[data-page]:not([data-page="home"]) .site-header .nav-actions { grid-column: 3; grid-row: 1; }
body[data-page]:not([data-page="home"]) .site-header .nav-actions .button {
  min-width: 0;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--nap-blue);
  border-radius: var(--nap-radius-sm);
  background: var(--nap-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
}
body[data-page]:not([data-page="home"]) .site-header .nav-actions .button:hover { background: var(--nap-navy); border-color: var(--nap-navy); }

/* Reusable actions, forms, cards and footer. */
body[data-page] .button { border-radius: var(--nap-radius-sm); font-weight: 800; }
body[data-page] .button-dark { background: var(--nap-blue); border-color: var(--nap-blue); color: #fff; }
body[data-page] .button-dark:hover:not(:disabled) { background: var(--nap-navy); border-color: var(--nap-navy); color: #fff; }
body[data-page] .button-outline { border-color: var(--nap-blue); color: var(--nap-blue); background: transparent; }
body[data-page] .button-outline:hover:not(:disabled) { background: var(--nap-ice); color: var(--nap-navy); }
body[data-page] .button-lime { background: var(--nap-ice); border-color: var(--nap-ice); color: var(--nap-navy); }
body[data-page] .button-lime:hover:not(:disabled) { background: var(--nap-ice-deep); }
body[data-page] :is(input, select, textarea) { color: var(--nap-navy); border-color: var(--nap-line); }
body[data-page] :is(input, select, textarea)::placeholder { color: var(--nap-muted); opacity: 1; }
body[data-page] .panel { border-color: var(--nap-line); }
body[data-page] .footer,
body[data-page=course] .footer,
body:has(.nap-product) .footer {
  background: var(--nap-navy);
  color: #fff;
  border-top: 0;
}
body[data-page] .footer :is(p, a, .small-note, .foot-bottom),
body:has(.nap-product) .footer :is(p, a, .small-note, .foot-bottom) { color: #d8eaff; }
body[data-page] .footer b { color: #fff; }
body[data-page] .footer a:hover { color: #fff; text-decoration: underline; }
body[data-page] .footer .foot-bottom { border-color: #4773ad; }

/* Home: the approved masthead stays intact; below it the page has a calmer rhythm. */
body[data-page="home"] .manifesto-section { background: #fff; }
/* The approved approach block has its own composition in Solo's brand layer. */
body[data-page="home"] .home-situations,
body[data-page="home"] #author,
body[data-page="home"] .home-faq { background: var(--nap-ice); }
body[data-page="home"] .standout { background: var(--nap-blue); color: #fff; }
body[data-page="home"] .standout :is(p, .course-detail, .course-facts span) { color: #e8f4ff; }
body[data-page="home"] .category-card { border: 1px solid var(--nap-line); background: #f7fbfe; border-radius: var(--nap-radius-card); }
body[data-page="home"] .category-card:nth-child(2) { background: var(--nap-ice); }
body[data-page="home"] .category-card:nth-child(3) { background: #dceefa; }
body[data-page="home"] .category-card:focus-visible { outline-color: var(--nap-blue); }
body[data-page="home"] .dark-section { background: var(--nap-blue); }

/* Parents: one broad ascent in the opening, then editorial light/dark sections. */
body[data-page="parents"] .page-hero { position: relative; isolation: isolate; background: var(--nap-navy); }
body[data-page="parents"] .page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 46%;
  z-index: -1;
  background: #0c55ae;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 76% 0);
}
body[data-page="parents"] .page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 55%;
  height: 38%;
  z-index: -1;
  background: var(--nap-cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 38% 0);
  opacity: .42;
}
body[data-page="parents"] .page-hero .wrap { position: relative; z-index: 1; }
body[data-page="parents"] .page-hero h1 .muted { color: #a8dfff; }
body[data-page="parents"] .page-hero .button-dark { background: var(--nap-action); border-color: var(--nap-action); color: #fff; }
body[data-page="parents"] .page-hero .button-dark:hover { background: var(--nap-action-hover); border-color: var(--nap-action-hover); }
body[data-page="parents"] .page-hero .button-outline { color: #fff; border-color: #fff; }
body[data-page="parents"] .page-hero .button-outline:hover { background: #fff; color: var(--nap-navy); }
body[data-page="parents"] #method,
body[data-page="parents"] main > .section:nth-of-type(7),
body[data-page="parents"] main > .section:nth-of-type(9) { background: var(--nap-ice); }
body[data-page="parents"] #thinking { background: var(--nap-blue); color: #fff; }
body[data-page="parents"] #thinking :is(p, .section-lead) { color: #e4f3ff; }
body[data-page="parents"] .lesson-demo { border-color: var(--nap-line); background: #fff; }
body[data-page="parents"] .lesson-sidebar { background: var(--nap-ice); }
body[data-page="parents"] .lesson-tab.active { background: var(--nap-blue); color: #fff; }
body[data-page="parents"] .quick-route { background: var(--nap-blue); color: #fff; }
body[data-page="parents"] .quick-route :is(label, select) { color: var(--nap-navy); }

/* Catalog: filters are a light control surface, cards carry three blue weights. */
body[data-page="catalog"] { --catalog-ink: var(--nap-navy); --catalog-paper: #fff; --catalog-lime: var(--nap-ice); }
body[data-page="catalog"] #products { background: #fff; }
body[data-page="catalog"] .catalog-head h1 { color: var(--nap-navy); }
body[data-page="catalog"] .filter-panel { background: var(--nap-ice); border: 1px solid var(--nap-line); border-radius: var(--nap-radius-card); }
body[data-page="catalog"] .field span { color: var(--nap-navy); }
body[data-page="catalog"] .field :is(input, select) { border: 1px solid var(--nap-line); border-radius: var(--nap-radius-sm); font-size: 16px; background-color: #fff; }
body[data-page="catalog"] .field :is(input, select):focus-visible { border-color: var(--nap-blue); }
body[data-page="catalog"] .type-tabs button { border: 1px solid var(--nap-line); border-radius: var(--nap-radius-sm); color: var(--nap-navy); font-size: 15px; }
body[data-page="catalog"] .type-tabs button:hover { background: #d9edf9; }
body[data-page="catalog"] .type-tabs button.is-selected { background: var(--nap-blue); border-color: var(--nap-blue); color: #fff; }
body[data-page="catalog"] .reset-link { color: var(--nap-blue); font-size: 15px; }
body[data-page="catalog"] .products-grid { gap: 18px; }
body[data-page="catalog"] .product-card { --category-accent: var(--nap-blue); --category-surface: var(--nap-blue); border: 1px solid var(--nap-line); border-radius: var(--nap-radius-card); box-shadow: 0 4px 24px rgba(0, 28, 81, .04); }
body[data-page="catalog"] .product-card.type-book { --category-accent: var(--nap-action); --category-surface: var(--nap-action); }
body[data-page="catalog"] .product-card.type-pack { --category-accent: #0054aa; --category-surface: #0054aa; }
body[data-page="catalog"] .product-card:hover { border-color: var(--category-accent); box-shadow: var(--nap-shadow-card); }
body[data-page="catalog"] .product-kind { color: var(--category-accent); font-size: 14px; }
body[data-page="catalog"] .product-series,
body[data-page="catalog"] .product-subtitle,
body[data-page="catalog"] .product-price.is-unconfirmed { color: var(--nap-muted); }
body[data-page="catalog"] .product-grade { border-radius: 6px; }
body[data-page="catalog"] .product-title,
body[data-page="catalog"] .product-volume,
body[data-page="catalog"] .product-price { color: var(--nap-navy); }
body[data-page="catalog"] .product-link { background: var(--category-surface); color: #fff; font-size: 15px; }
body[data-page="catalog"] .empty-state { background: var(--nap-ice); border-color: var(--nap-line); }

/* Main program: spacious blue opening, clear progress and purchase choices. */
body[data-page="course"] .course-hero { position: relative; isolation: isolate; background: var(--nap-blue); }
body[data-page="course"] .course-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  z-index: -1;
  background: #0b53aa;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 72% 0);
}
body[data-page="course"] .course-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 63%;
  height: 33%;
  z-index: -1;
  background: var(--nap-cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 45% 0);
  opacity: .45;
}
body[data-page="course"] .course-hero .hero-grid { position: relative; z-index: 1; }
body[data-page="course"] .hero-copy h1 span,
body[data-page="course"] .program-stats strong { color: #a7e3ff; }
body[data-page="course"] .course-hero :is(.hero-kicker, .hero-meta, .hero-lead) { color: #e7f4ff; }
body[data-page="course"] .course-hero .button-lime { background: #fff; border-color: #fff; color: var(--nap-blue); }
body[data-page="course"] .situations,
body[data-page="course"] .offer { background: #fff; }
body[data-page="course"] .outcomes,
body[data-page="course"] .roles,
body[data-page="course"] .author,
body[data-page="course"] .faq { background: var(--nap-ice); }
body[data-page="course"] .program { background: var(--nap-navy); color: #fff; }
body[data-page="course"] .program :is(p, small, .program-detail) { color: #dfedff; }
body[data-page="course"] .program-list :is(details, summary) { border-color: #5274a2; }
body[data-page="course"] .role-tabs button[aria-selected="true"] { background: var(--nap-blue); border-color: var(--nap-blue); color: #fff; }
body[data-page="course"] .role-panels article:not([hidden]) { background: #dceefa; }
body[data-page="course"] .offer-item { background: #fff; border-color: var(--nap-line); }
body[data-page="course"] .offer-featured { background: var(--nap-blue); border-color: var(--nap-blue); color: #fff; }
body[data-page="course"] .offer-featured :is(p, li) { color: #e7f4ff; }
body[data-page="course"] .offer-featured .offer-price { color: #fff; }
body[data-page="course"] .offer-item:not(.offer-featured) .button { background: var(--nap-blue); border-color: var(--nap-blue); color: #fff; }
body[data-page="course"] .offer-featured .button { background: #fff; border-color: #fff; color: var(--nap-blue); }
body[data-page="course"] .faq-list details { background: #fff; border: 1px solid var(--nap-line); }
body[data-page="course"] .closing { background: var(--nap-navy); color: #fff; }
body[data-page="course"] .closing p { color: #e3f1ff; }
body[data-page="course"] .inquiry-dialog { background: #fff; color: var(--nap-navy); }
body[data-page="course"] .inquiry-dialog::backdrop { background: rgba(0, 28, 81, .72); }

/* All 72 product pages share these three category treatments. */
body[data-page] .nap-product {
  --product-accent: var(--nap-blue);
  --product-surface: var(--nap-ice);
  --product-ink: var(--nap-navy);
  background: #fff;
  color: var(--nap-navy);
}
body[data-page] .nap-product--book { --product-accent: var(--nap-action); --product-surface: #f2f9fe; }
body[data-page] .nap-product--pack { --product-accent: #0054aa; --product-surface: #deeffa; }
body[data-page] .nap-product .wrap { max-width: 1280px; }
body[data-page] .nap-product__breadcrumbs { color: var(--nap-muted); }
body[data-page] .nap-product__type { color: var(--product-accent); }
body[data-page] .nap-product h1,
body[data-page] .nap-product__section h2,
body[data-page] .nap-product__fact dd,
body[data-page] .nap-product__purchase h2,
body[data-page] .nap-product__price { color: var(--nap-navy); }
body[data-page] .nap-product :is(.nap-product__lead, .nap-product__section p, .nap-product__contents-body, .nap-product__purchase-note) { color: var(--nap-muted); }
body[data-page] .nap-product__facts,
body[data-page] .nap-product__contents,
body[data-page] .nap-product__contents details { border-color: var(--nap-line); }
body[data-page] .nap-product__fact dt,
body[data-page] .nap-product__price-label { color: var(--nap-muted); }
body[data-page] .nap-product__purchase { border: 1px solid var(--nap-line); border-top: 5px solid var(--product-accent); border-radius: var(--nap-radius-card); box-shadow: var(--nap-shadow-card); }
body[data-page] .nap-product__buy { background: var(--nap-blue); color: #fff; border-radius: var(--nap-radius-sm); }
body[data-page] .nap-product__buy:hover { background: var(--nap-navy); color: #fff; filter: none; }
body[data-page] .nap-product__purchase-list { border-color: var(--nap-line); }
body[data-page] .nap-product__purchase-list li,
body[data-page] .nap-product__related { color: var(--nap-muted); }
body[data-page] .nap-product__related a { color: var(--nap-blue); }

@media (max-width: 960px) {
  body[data-page]:not([data-page="home"]) .site-header .nav-inner {
    display: flex;
    justify-content: space-between;
    height: 72px;
    min-height: 72px;
  }
  body[data-page]:not([data-page="home"]) .site-header .brand { width: min(295px, calc(100vw - 112px)); }
  body[data-page]:not([data-page="home"]) .site-header .desktop-nav,
  body[data-page]:not([data-page="home"]) .site-header .nav-actions { display: none; }
  body[data-page]:not([data-page="home"]) .site-header .menu-toggle {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    flex: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #8fb7da;
    border-radius: var(--nap-radius-sm);
    background: #fff;
  }
  body[data-page]:not([data-page="home"]) .site-header .menu-toggle span,
  body[data-page]:not([data-page="home"]) .site-header .menu-toggle::after {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0;
    background: var(--nap-blue);
    border-radius: 0;
    opacity: 1;
  }
  body[data-page]:not([data-page="home"]) .site-header .menu-toggle::after { content: ""; }
  body[data-page]:not([data-page="home"]) .site-header .mobile-nav:not([hidden]) { background: #fff; border-top: 1px solid var(--nap-line); }
  body[data-page]:not([data-page="home"]) .site-header .mobile-nav a { color: var(--nap-navy); border-bottom-color: var(--nap-line); font-size: 16px; }
  body[data-page]:not([data-page="home"]) .site-header .mobile-nav a.is-active { border-bottom-color: var(--nap-cyan); }
}
@media (max-width: 700px) {
  body[data-page] .wrap { width: calc(100% - 36px); }
  body[data-page] .section { scroll-margin-top: 70px; }
  body[data-page="parents"] #habits .feature-card .number,
  body[data-page="parents"] .section.shaded .micro,
  body[data-page="parents"] #family .editorial-box :is(span, p) { font-size: 16px !important; }
  body[data-page] :is(.eyebrow, .micro, .small-note, .section-lead, .feature-card p, .step p,
    .foot-grid p, .foot-grid a, .foot-bottom, .faq-list p, .program-detail, .offer-item p,
    .offer-item li, .role-panels p, .hero-kicker, .hero-meta, .hero-lead,
    .nap-product__breadcrumbs, .nap-product__type, .nap-product__fact dt,
    .nap-product__section p, .nap-product__contents-body, .nap-product__access p,
    .nap-product__related, .nap-product__price-label, .nap-product__purchase-note,
    .nap-product__purchase-list li) { font-size: 16px; }
  body[data-page="catalog"] .field span,
  body[data-page="catalog"] .type-tabs button,
  body[data-page="catalog"] .reset-link,
  body[data-page="catalog"] .product-kind,
  body[data-page="catalog"] .product-series,
  body[data-page="catalog"] .product-grade,
  body[data-page="catalog"] .product-subtitle,
  body[data-page="catalog"] .product-volume,
  body[data-page="catalog"] .product-price,
  body[data-page="catalog"] .product-link { font-size: 16px; }
  body[data-page="course"] .hero-copy h1 { font-size: clamp(2.6rem, 10.5vw, 4rem); }
  body[data-page="course"] .hero-person {
    display: block;
    min-height: 0;
    background: var(--nap-navy);
  }
  body[data-page="course"] .hero-person::after { display: none; }
  body[data-page="course"] .hero-person img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1.06;
    object-fit: cover;
    object-position: center 18%;
  }
  body[data-page="course"] .hero-person figcaption {
    position: static;
    padding: 18px 20px 20px;
    background: var(--nap-navy);
  }
  body[data-page="course"] .hero-person figcaption :is(span, small) { font-size: 16px; }
  body[data-page="course"] .role-tabs button { font-size: 16px; }
  body[data-page] .nap-product__mobile-buy { border-color: var(--nap-line); box-shadow: 0 -8px 25px rgba(0, 28, 81, .08); }
  body[data-page] .nap-product__mobile-buy .nap-product__buy { background: var(--nap-blue); }
}
@media (max-width: 580px) {
  body[data-page]:not([data-page="home"]) .site-header .nav-inner { width: calc(100% - 36px); height: 70px; min-height: 70px; }
  body[data-page]:not([data-page="home"]) .site-header .brand { width: min(268px, calc(100vw - 112px)); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page] .button,
  body[data-page] .nap-product__buy { transition: none; }
  body[data-page] .button:hover,
  body[data-page] .nap-product__buy:hover { transform: none; }
}

/* Site typography. The approved «Наш подход» block is deliberately excluded. */
body[data-page] #content :is(h1, h2, h3):not(.home-positioning *) {
  font-family: var(--nap-font);
  letter-spacing: 0;
  text-wrap: balance;
}
body[data-page] #content h1:not(.home-positioning *) { font-size: 54px; line-height: 1.18; font-weight: 800; }
body[data-page] #content h2:not(.home-positioning *) { font-size: 42px; line-height: 1.2; font-weight: 750; }
body[data-page] #content h3:not(.home-positioning *) { font-size: 24px; line-height: 1.24; font-weight: 700; }
body[data-page="parents"] #content :is(#habits, #thinking) .feature-card h3,
body[data-page="parents"] #content #lessons .lesson-copy h3 { font-size: 24px; }
body[data-page] #content :is(p, li, dt, dd, label, input, select, textarea, button, a, small, figcaption, summary, span):not(.home-positioning *):not(h1 *):not(h2 *):not(h3 *) { font-size: 16px; }
body[data-page] #content :is(p, li, dt, dd, figcaption):not(.home-positioning *) { line-height: 1.55; }
body[data-page] :is(.site-header, .footer, .mobile-sticky-cta, .nap-product__mobile-buy)
  :is(a, button, p, span, small, b) { font-family: var(--nap-font); font-size: 16px; }
body[data-page] #site-header .desktop-nav a,
body[data-page] #site-header .nav-actions .button { font-size: 16px; }
body[data-page] .footer .foot-grid strong { font-size: 24px; line-height: 1.24; }
body[data-page] .prototype-bar .wrap,
body[data-page] #content .breadcrumbs,
body[data-page="catalog"] #content .results-bar strong,
body[data-page="catalog"] #content .side-panel b,
body[data-page="parents"] #content #habits .feature-card .number,
body[data-page="parents"] #content #lessons .lesson-head,
body[data-page="parents"] #content #lessons .lesson-tab,
body[data-page="parents"] #content .info-line:not(.mentor-line) b,
body[data-page="course"] #content .hero-person figcaption strong { font-size: 16px; }
body[data-page="course"] #content .program-list summary b { font-size: 24px; line-height: 1.24; font-weight: 700; }
body[data-page] #content .product-series {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
body[data-page="parents"] #content :is(#habits, #thinking) .section-top .eyebrow,
body[data-page="parents"] #content #lessons .mentor-line b,
body[data-page] #content .large-quote {
  font-family: var(--nap-font);
  font-size: 42px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0;
  text-wrap: balance;
}

@media (max-width: 700px) {
  body[data-page] #content h1:not(.home-positioning *) { font-size: 36px; }
  body[data-page] #content h2:not(.home-positioning *) { font-size: 30px; }
  body[data-page] #content h3:not(.home-positioning *) { font-size: 20px; }
  body[data-page="parents"] #content :is(#habits, #thinking) .feature-card h3,
  body[data-page="parents"] #content #lessons .lesson-copy h3 { font-size: 20px; }
  body[data-page] .footer .foot-grid strong,
  body[data-page="course"] #content .program-list summary b { font-size: 20px; }
  body[data-page="parents"] #content :is(#habits, #thinking) .section-top .eyebrow,
  body[data-page="parents"] #content #lessons .mentor-line b,
  body[data-page] #content .large-quote { font-size: 30px; }
}

/* The desktop hero needs a separate composition on narrow tablets. */
@media (min-width: 701px) and (max-width: 900px) {
  body[data-page="home"] .home-hero .hero-composition {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  body[data-page="home"] .home-hero .hero-intro,
  body[data-page="home"] .home-hero .hero-statement { width: 100%; max-width: 100%; }
  body[data-page="home"] .home-hero .hero-intro { order: 1; }
  body[data-page="home"] .home-hero .hero-intro h1 { max-width: 100%; }
  body[data-page="home"] .home-hero .hero-statement { order: 2; padding-top: 25px; }
  body[data-page="home"] .home-hero .hero-statement .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  body[data-page="home"] .home-hero .hero-statement .actions .button { width: auto; margin: 0; }
  body[data-page="home"] .home-hero .hero-portrait {
    order: 3;
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    width: min(450px, 100%);
    margin: 38px 0 0;
  }
  body[data-page="home"] .home-hero .hero-portrait img { height: 420px; }
  body[data-page="home"] .home-hero .hero-bottom { order: 4; width: 100%; margin-top: 48px; }
}

@media (min-width: 601px) and (max-width: 800px) {
  body[data-page="course"] .course-hero .hero-grid { height: auto; min-height: 0; }
  body[data-page="course"] .course-hero .hero-person {
    height: auto;
    min-height: 0;
    align-self: start;
    margin-top: 105px;
  }
}

/* Tablet composition only. Desktop, phone and the approved approach block stay untouched. */
@media (min-width: 701px) and (max-width: 1180px) {
  body[data-page="home"] .cards.three:has(.category-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  body[data-page="home"] .category-card,
  body[data-page="home"] .category-card + .category-card {
    min-height: 440px;
    margin: 0;
  }
  body[data-page="home"] #content .category-card h3 {
    max-width: 100%;
    font-size: 22px;
  }
  body[data-page="home"] .category-card:first-child p,
  body[data-page="home"] .category-card:nth-child(2) p { max-width: min(100%, 350px); }
  body[data-page="home"] .category-card:nth-child(2) :is(h3, p) { max-width: 100%; }
  body[data-page="home"] .category-card:nth-child(2) p { max-width: min(100%, 350px); }
  body[data-page="home"] .category-card .category-art {
    top: 240px;
    height: 200px;
    object-position: right center;
  }
  body[data-page="home"] .category-card:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 300px;
  }
  body[data-page="home"] .category-card:nth-child(3) :is(h3, p) { max-width: 45%; }
  body[data-page="home"] .category-card:nth-child(3) .category-art {
    top: 0;
    right: 0;
    left: auto;
    width: 55%;
    height: 100%;
    object-position: right center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
    mask-image: linear-gradient(90deg, transparent, #000 24%);
  }

  body[data-page="course"] .outcome-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-page="course"] .outcome-list article:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }
  body[data-page="parents"] #lessons .stage-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (min-width: 701px) and (max-width: 960px) {
  body[data-page="home"] .home-hero .hero-composition {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto auto;
    column-gap: 28px;
    padding-top: 56px;
  }
  body[data-page="home"] .home-hero .hero-intro {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 32px;
  }
  body[data-page="home"] .home-hero .hero-statement {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    padding-top: 0;
  }
  body[data-page="home"] .home-hero .hero-statement .actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  body[data-page="home"] .home-hero .hero-portrait {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: end;
    width: min(100%, 430px);
    margin: 0;
  }
  body[data-page="home"] .home-hero .hero-portrait img { height: 420px; }
  body[data-page="home"] .home-hero .hero-bottom {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 38px;
  }

  body[data-page="parents"] .compact-hero { display: block; }
  body[data-page="parents"] .page-hero { padding: 60px 0 72px; }
  body[data-page="parents"] #content .page-hero h1 { max-width: 680px; }
  body[data-page="parents"] .parent-hero-visual {
    width: min(84%, 650px);
    margin: 42px auto 0;
  }

  body[data-page="course"] .process-track,
  body[data-page="course"] .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="course"] .offer-item:last-child { grid-column: 1 / -1; }
  body[data-page="course"] .offer-item:last-child p { max-width: 62ch; }
  body[data-page="course"] .offer-item:last-child .button {
    align-self: flex-start;
    width: min(100%, 280px);
  }

  body[data-page] #content.nap-product h1 { font-size: clamp(42px, 5.4vw, 48px); }
  body[data-page] #content.nap-product .nap-product__price { font-size: 44px; }
  body.nap-main-program #content .main-course-hero .hero-course-shape p { max-width: 80%; }
}

@media (min-width: 961px) and (max-width: 1100px) {
  body[data-page="parents"] #content .page-hero h1 { font-size: 48px; }
}

@media (min-width: 701px) and (max-width: 800px) {
  body[data-page] .mobile-sticky-cta { display: none; }
  body[data-page] { padding-bottom: 0; }
  body[data-page="catalog"] .filter-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body[data-page="catalog"] .type-tabs { flex-wrap: nowrap; }
  body[data-page="catalog"] .reset-link { align-self: flex-end; }
}

/* A restrained lilac wash unifies the three library illustrations. */
body[data-page="home"] .category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 48%, rgba(139, 107, 224, .08) 70%, rgba(139, 107, 224, .22) 100%);
}

body[data-page="home"] #content .category-card h3 { max-width: 100%; }

@media (max-width: 600px) {
  body[data-page="home"] #content .category-card p { max-width: 100%; }
}
