/* =========================================================================
   Академия — an online school theme (child of Default).

   base.twig links the Default stylesheets and the modules' ones first,
   then this file last, so it only has to override.

   ART DIRECTION
   Modern ed-tech, playful but tidy. A pale lavender page (#F4F2FF), white
   rounded cards with soft indigo shadows, one saturated indigo (#4B3BFF)
   for buttons, dark bands and the footer, and two bright accents — lime
   (#C6F432) and coral (#FF6B57) — for badges, progress fills, highlights
   and the 3D-ish shapes (CSS spheres, rings and cubes with glossy
   gradients). Each course direction owns a tone: indigo, lime, coral, sky.

   Type: Manrope ExtraBold for big friendly headlines (tight tracking),
   Onest for text. Pills everywhere: chips, badges, buttons. Progress bars
   and segmented «module» bars are the signature detail.

   Variants (theme.json → design.controls) are at the end of the file.
   ========================================================================= */

@font-face { font-family: 'Akademiya Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url('/themes/default/assets/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Akademiya Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url('/themes/default/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Akademiya Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/themes/default/assets/fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Akademiya Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/themes/default/assets/fonts/onest-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Akademiya Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/themes/default/assets/fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Akademiya Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/themes/default/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Akademiya Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900;
    src: url('/themes/default/assets/fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Akademiya Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900;
    src: url('/themes/default/assets/fonts/unbounded-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* The owner's design settings: core prints the chosen values as
   :root{--akademiya-…} after this file, so these are only the defaults. */
:root {
    --akademiya-accent: #4b3bff;
    --akademiya-lime: #c6f432;
    --akademiya-coral: #ff6b57;
    --akademiya-font-display: 'Akademiya Manrope', Manrope, 'Segoe UI', system-ui, sans-serif;
    --akademiya-font-body: 'Akademiya Onest', Onest, 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --akademiya-radius: 28px;
}

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */

:root:root {
    --ak-indigo: var(--akademiya-accent);
    --ak-indigo-hover: color-mix(in srgb, var(--akademiya-accent), #000 18%);
    --ak-indigo-deep: color-mix(in srgb, var(--akademiya-accent), #0b0830 62%);
    --ak-indigo-soft: color-mix(in srgb, var(--akademiya-accent), #fff 88%);
    --ak-indigo-text: color-mix(in srgb, var(--akademiya-accent), #000 12%);
    --ak-lime: var(--akademiya-lime);
    --ak-lime-soft: color-mix(in srgb, var(--akademiya-lime), #fff 72%);
    --ak-coral: var(--akademiya-coral);
    --ak-coral-soft: color-mix(in srgb, var(--akademiya-coral), #fff 80%);
    --ak-coral-text: color-mix(in srgb, var(--akademiya-coral), #000 38%);
    --ak-sky: #7cc4ff;
    --ak-sky-soft: #dff0ff;
    --ak-paper: #f4f2ff;
    --ak-paper-2: #ebe8ff;
    --ak-sheet: #ffffff;
    --ak-ink: #16123d;
    --ak-muted: #585476;
    --ak-faint: #7b7899;
    --ak-line: rgb(22 18 61 / 0.1);
    --ak-radius: var(--akademiya-radius);
    --ak-radius-sm: calc(var(--akademiya-radius) * 0.55);
    --ak-display: var(--akademiya-font-display);
    --ak-sans: var(--akademiya-font-body);
    --ak-shadow: 0 1px 2px rgb(40 30 140 / 0.06), 0 22px 48px -26px rgb(52 38 190 / 0.38);
    --ak-shadow-hi: 0 2px 4px rgb(40 30 140 / 0.08), 0 30px 60px -24px rgb(52 38 190 / 0.5);

    --c-bg: var(--ak-paper);
    --c-surface: var(--ak-sheet);
    --c-surface-sunk: var(--ak-paper-2);
    --c-text: #26224b;
    --c-text-strong: var(--ak-ink);
    --c-text-muted: var(--ak-muted);
    --c-text-faint: var(--ak-faint);
    --c-border: var(--ak-line);
    --c-border-strong: rgb(22 18 61 / 0.2);
    --c-accent: var(--ak-indigo);
    --c-accent-hover: var(--ak-indigo-hover);
    --c-accent-soft: var(--ak-indigo-soft);
    --c-accent-contrast: #ffffff;
    --c-mark: var(--ak-coral);
    --c-mark-text: var(--ak-coral-text);
    --c-mark-soft: var(--ak-coral-soft);
    --c-slab: var(--ak-indigo-deep);
    --c-slab-text: #f1efff;
    --c-slab-muted: #bdb8ef;
    --c-link: var(--ak-indigo-text);
    --c-link-hover: var(--ak-ink);

    --font-ui: var(--ak-sans);
    --font-display: var(--ak-display);
    --font-prose: var(--ak-sans);

    --t-lg: clamp(1.3rem, 1.18rem + 0.5vw, 1.6rem);
    --t-xl: clamp(1.9rem, 1.5rem + 1.7vw, 2.9rem);
    --t-2xl: clamp(2.4rem, 1.7rem + 3vw, 4.1rem);
    --t-3xl: clamp(2.7rem, 1.8rem + 4vw, 5rem);
    --lh-tight: 1.02;
    --lh-snug: 1.1;
    --tr-tight: -0.035em;
    --tr-snug: -0.025em;
    --fw-heading: 800;

    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: var(--ak-radius-sm);
    --r-lg: var(--ak-radius);
    --r-btn: 999px;
    --card-radius: var(--ak-radius);
    --card-bg: var(--ak-sheet);
    --card-border: 1px solid transparent;
    --w-wide: 82rem;
    --w-container: 72rem;
    --shadow-lift: var(--ak-shadow);

    --sp-sm: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    --sp-md: clamp(3.5rem, 2.6rem + 4vw, 6rem);
    --sp-lg: clamp(4.5rem, 3.2rem + 6vw, 8rem);
    --sp-xl: clamp(6rem, 4rem + 9vw, 10rem);

    color-scheme: light;
}

:root:root[data-akademiya-paper="white"] { --ak-paper: #ffffff; --ak-paper-2: #f3f2fb; }
:root:root[data-akademiya-paper="cream"] { --ak-paper: #fbf7ef; --ak-paper-2: #f3ecdc; }

/* Tones of the four directions. */
.ak-tone-1 { --tone-bg: var(--ak-indigo-soft); --tone-solid: var(--ak-indigo); --tone-fg: var(--ak-indigo-text); --tone-on: #fff; }
.ak-tone-2 { --tone-bg: var(--ak-lime-soft); --tone-solid: var(--ak-lime); --tone-fg: #3d4d05; --tone-on: var(--ak-ink); }
.ak-tone-3 { --tone-bg: var(--ak-coral-soft); --tone-solid: var(--ak-coral); --tone-fg: var(--ak-coral-text); --tone-on: var(--ak-ink); }
.ak-tone-4 { --tone-bg: var(--ak-sky-soft); --tone-solid: var(--ak-sky); --tone-fg: #0d4c80; --tone-on: var(--ak-ink); }

/* Dark scopes. */
:root:root .cms-tone-dark,
:root:root .cms-tone-primary,
:root:root .cms-on-dark,
.ak-dark,
.ak-ftr {
    --c-bg: var(--ak-indigo-deep);
    --c-surface: rgb(255 255 255 / 0.07);
    --c-surface-sunk: rgb(255 255 255 / 0.05);
    --c-text: #e7e4ff;
    --c-text-strong: #ffffff;
    --c-text-muted: #c3bff0;
    --c-text-faint: #a29dd6;
    --c-border: rgb(255 255 255 / 0.14);
    --c-border-strong: rgb(255 255 255 / 0.3);
    --c-accent: var(--ak-lime);
    --c-accent-hover: #ffffff;
    --c-accent-contrast: var(--ak-ink);
    --c-link: #ffffff;
    --c-link-hover: var(--ak-lime);
    --card-bg: rgb(255 255 255 / 0.07);
    color-scheme: dark;
}

:root:root .cms-tone-dark,
:root:root .cms-tone-primary { --section-bg: var(--ak-indigo-deep); }
:root:root .cms-tone-soft { --section-bg: var(--ak-paper-2); --c-bg: var(--ak-paper-2); }
:root:root .cms-tone-accent {
    --section-bg: var(--ak-indigo);
    --c-text: #fff; --c-text-strong: #fff; --c-text-muted: #e1ddff;
    --c-accent: var(--ak-lime); --c-accent-contrast: var(--ak-ink); --c-link: #fff;
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */

body.ak-body {
    background-color: var(--ak-paper);
    color: var(--c-text);
    font-family: var(--ak-sans);
    overflow-x: clip;
}

.ak-wrap {
    width: 100%;
    max-width: var(--w-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.ak-body :where(h1, h2, h3, h4) { font-family: var(--ak-display); }

.cms-section__title { font-weight: 800; }
.cms-section__subtitle { font-size: var(--t-md); }

.ak-h2 {
    font-family: var(--ak-display);
    font-size: var(--t-xl);
    font-weight: 800;
    line-height: var(--lh-snug);
    letter-spacing: var(--tr-snug);
    color: var(--c-text-strong);
    text-wrap: balance;
    margin: 0 0 var(--s-6);
}

.ak-sec { padding-block: var(--sp-md); }
.ak-sec--tight { padding-block: var(--sp-sm); }
.ak-sec--soft { background: var(--ak-paper-2); }
.ak-sec__lead { margin: calc(var(--s-5) * -1) 0 var(--s-6); color: var(--c-text-muted); font-size: var(--t-md); max-width: 42rem; }

.ak-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--ak-radius);
    box-shadow: var(--ak-shadow);
}

/* Buttons: pills with a little lift. */
.ak-body .cms-btn { border-radius: 999px; font-weight: 700; font-size: 0.95rem; padding: 0.85rem 1.6rem; }
.ak-body .cms-btn--primary { box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--c-accent), transparent 20%); }
.ak-body .cms-btn--ghost { background: var(--ak-sheet); border-color: transparent; box-shadow: inset 0 0 0 1.5px var(--c-border-strong); }
.ak-dark .cms-btn--ghost, .ak-ftr .cms-btn--ghost { background: transparent; }
.ak-body .cms-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--c-accent); color: var(--c-accent); }
.ak-body .ak-btn-lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1rem; }
.ak-body .ak-btn-lime { background: var(--ak-lime); color: var(--ak-ink); }
.ak-body .ak-btn-lime:hover { background: #fff; color: var(--ak-ink); }

@media (prefers-reduced-motion: no-preference) {
    .ak-body .cms-btn--primary:hover { transform: translateY(-2px); }
}

/* Pills and chips. */
.ak-pill {
    display: inline-flex; align-items: center; gap: 0.55rem;
    margin: 0 0 var(--s-4);
    padding: 0.4rem 0.95rem 0.4rem 0.55rem;
    border-radius: 999px;
    background: var(--ak-sheet);
    box-shadow: var(--ak-shadow);
    font-size: var(--t-sm); font-weight: 600; color: var(--ak-ink);
}
.ak-pill__dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--ak-lime) 13% 100%); box-shadow: inset 0 -3px 6px rgb(0 0 0 / 0.12); }
.ak-pill--dark { background: var(--ak-ink); color: #fff; padding-inline: 0.95rem; box-shadow: none; }
.ak-pill--lime { background: var(--ak-lime); color: var(--ak-ink); padding-inline: 0.95rem; box-shadow: none; }

.ak-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.ak-chip {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 0.5rem 1.1rem; border-radius: 999px;
    font-weight: 600; font-size: var(--t-sm); text-decoration: none;
    background: var(--ak-sheet); color: var(--ak-ink);
    box-shadow: inset 0 0 0 1.5px var(--ak-line);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ak-chip::before { content: ''; width: 0.6rem; height: 0.6rem; margin-inline-end: 0.5rem; border-radius: 50%; background: var(--dot, var(--ak-indigo)); }
.ak-chip--1 { --dot: var(--ak-indigo); }
.ak-chip--2 { --dot: #8fbf00; }
.ak-chip--3 { --dot: var(--ak-coral); }
.ak-chip--4 { --dot: var(--ak-sky); }
a.ak-chip:hover { background: var(--ak-ink); color: #fff; box-shadow: none; }

.ak-badge {
    display: inline-flex; align-items: center;
    padding: 0.28rem 0.7rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
    background: var(--ak-ink); color: #fff;
}
.ak-badge--hit { background: var(--ak-coral); color: var(--ak-ink); }
.ak-badge--new { background: var(--ak-lime); color: var(--ak-ink); }
.ak-badge--sale { background: var(--ak-ink); color: var(--ak-lime); }
.ak-badge--best { background: var(--ak-indigo); color: #fff; }

.ak-hl {
    color: inherit;
    background: linear-gradient(transparent 64%, var(--ak-lime) 64%, var(--ak-lime) 94%, transparent 94%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    padding-inline: 0.04em;
}

/* Progress bars. */
.ak-bar { display: block; height: 10px; border-radius: 999px; background: var(--ak-paper-2); overflow: hidden; }
.ak-bar__fill { display: block; width: var(--p, 50%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ak-indigo), color-mix(in srgb, var(--ak-indigo), var(--ak-sky) 45%)); }
.ak-bar--lime { background: rgb(255 255 255 / 0.14); }
.ak-bar--lime .ak-bar__fill { background: linear-gradient(90deg, var(--ak-lime), color-mix(in srgb, var(--ak-lime), #fff 40%)); }

.ak-icon-bubble {
    display: inline-grid; place-items: center; flex: none;
    width: 3rem; height: 3rem; border-radius: 1rem;
    background: var(--tone-bg); color: var(--tone-fg);
}
.ak-icon-bubble .cms-icon { width: 1.4rem; height: 1.4rem; }

.ak-checks { display: grid; gap: 0.7rem; margin: var(--s-5) 0; padding: 0; list-style: none; }
.ak-checks li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 500; }
.ak-checks .cms-icon { flex: none; width: 1.5rem; height: 1.5rem; padding: 0.25rem; border-radius: 50%; background: var(--ak-ink); color: var(--ak-lime); }
.ak-checks--sm li { font-size: var(--t-sm); }
.ak-checks--light .cms-icon { background: var(--ak-lime); color: var(--ak-ink); }

.ak-anchor { position: absolute; top: -6rem; }

/* 3D-ish shapes, drawn in CSS. */
.ak-shape { position: absolute; display: block; pointer-events: none; z-index: 0; }
.ak-shape--ball {
    width: 4.5rem; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff 0 6%, color-mix(in srgb, var(--ak-coral), #fff 35%) 14%, var(--ak-coral) 48%, color-mix(in srgb, var(--ak-coral), #5a0a00 45%) 100%);
    box-shadow: 0 18px 30px -14px rgb(160 40 20 / 0.45);
}
.ak-shape--ring {
    width: 6.5rem; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, transparent 0 30%, transparent 30%),
        conic-gradient(from 200deg, var(--ak-indigo), color-mix(in srgb, var(--ak-indigo), #fff 45%), var(--ak-indigo), color-mix(in srgb, var(--ak-indigo), #000 35%), var(--ak-indigo));
    -webkit-mask: radial-gradient(circle, transparent 0 34%, #000 35%);
    mask: radial-gradient(circle, transparent 0 34%, #000 35%);
    filter: drop-shadow(0 16px 20px rgb(40 30 140 / 0.35));
}
.ak-shape--cube {
    width: 3.6rem; aspect-ratio: 1; border-radius: 0.9rem;
    background: linear-gradient(145deg, color-mix(in srgb, var(--ak-lime), #fff 45%), var(--ak-lime) 45%, color-mix(in srgb, var(--ak-lime), #2d3a00 40%));
    transform: rotate(18deg);
    box-shadow: 0 16px 26px -14px rgb(60 80 0 / 0.5);
}
html[data-akademiya-shapes="off"] .ak-shape,
html[data-akademiya-shapes="off"] .ak-ftr__shape,
html[data-akademiya-shapes="off"] .ak-hero__shape,
html[data-akademiya-shapes="off"] .ak-chero__art { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .ak-float { animation: ak-bob 6s ease-in-out infinite; }
    .ak-hero__stat--2 { animation-delay: -2s; }
    .ak-hero__s1, .ak-chero__s1 { animation: ak-spin 18s linear infinite; }
}
@keyframes ak-bob { 50% { transform: translateY(-8px); } }
@keyframes ak-spin { to { rotate: 360deg; } }

/* Breadcrumbs. */
.ak-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin: 0 0 var(--s-5); padding: 0; list-style: none; font-size: var(--t-sm); color: var(--c-text-muted); }
.ak-crumbs li + li::before { content: '/'; margin-inline-end: 0.5rem; opacity: 0.5; }
.ak-crumbs a { color: inherit; text-decoration: none; }
.ak-crumbs a:hover { color: var(--c-accent); }

/* -------------------------------------------------------------------------
   3. Header
   ------------------------------------------------------------------------- */

.ak-hdr.site-header { background: transparent; border-bottom: 0; }
.ak-hdr .hdr-row--top { background: var(--ak-ink); color: #e7e4ff; border-bottom: 0; font-size: 0.8rem; }
.ak-hdr .hdr-row--top .cms-icon { color: var(--ak-lime); }
.ak-hdr .hdr-row--top a { color: #fff; }
.ak-hdr .hdr-row--main { padding: 0.7rem var(--gutter) 0; }
.ak-hdr .hdr-row--main .hdr-row__inner {
    max-width: calc(var(--w-wide) - var(--gutter) * 2);
    min-height: 4.1rem;
    padding: 0.45rem 0.55rem 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--ak-shadow);
}
.ak-hdr.site-header--sticky.is-scrolled { box-shadow: none; }
.ak-hdr .hdr-nav__link { font-weight: 600; border-radius: 999px; }
.ak-hdr .hdr-nav__link:hover { background: var(--ak-paper); }
.ak-hdr .hdr-phone__number { font-family: var(--ak-display); font-weight: 800; color: var(--ak-ink); }
.ak-hdr .hdr-el--button .cms-btn { min-height: 48px; }

.ak-logo { gap: 0.6rem; text-decoration: none; }
.ak-logo__mark { width: 2.4rem; height: 2.4rem; flex: none; }
.ak-logo .hdr-logo__name { font-family: var(--ak-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ak-ink); }
.ak-burger { border-radius: 50%; }

html[data-akademiya-header="bar"] .ak-hdr .hdr-row--main { padding: 0; background: rgb(255 255 255 / 0.95); box-shadow: 0 1px 0 var(--ak-line); }
html[data-akademiya-header="bar"] .ak-hdr .hdr-row--main .hdr-row__inner { max-width: var(--w-wide); border-radius: 0; box-shadow: none; background: transparent; padding-inline: var(--gutter); }
html[data-akademiya-header="indigo"] .ak-hdr .hdr-row--main { padding: 0; background: var(--ak-indigo-deep); }
html[data-akademiya-header="indigo"] .ak-hdr .hdr-row--main .hdr-row__inner { max-width: var(--w-wide); border-radius: 0; box-shadow: none; background: transparent; padding-inline: var(--gutter); }
html[data-akademiya-header="indigo"] .ak-hdr .hdr-row--main {
    --c-text: #e7e4ff; --c-text-strong: #fff; --c-text-muted: #c3bff0; --c-border: rgb(255 255 255 / 0.18); --c-border-strong: rgb(255 255 255 / 0.3);
    --c-accent: var(--ak-lime); --c-accent-contrast: var(--ak-ink); --c-link: #fff;
    color: #fff;
}
html[data-akademiya-header="indigo"] .ak-hdr .hdr-nav__link:hover { background: rgb(255 255 255 / 0.1); }
html[data-akademiya-header="indigo"] .ak-logo .hdr-logo__name,
html[data-akademiya-header="indigo"] .ak-hdr .hdr-phone__number { color: #fff; }

@media (max-width: 59.99rem) {
    .ak-hdr .hdr-row--main { padding: 0.5rem 0.75rem 0; }
    .ak-hdr .hdr-row--main .hdr-row__inner { min-height: 3.6rem; padding: 0.35rem 0.4rem 0.35rem 0.9rem; }
    .ak-logo .hdr-logo__name { font-size: 1.15rem; }
    .ak-logo__mark { width: 2.1rem; height: 2.1rem; }
}

.ak-drawer { background: var(--ak-paper); }

/* The sticky round «Записаться». */
.ak-sticky {
    position: fixed; z-index: 55;
    right: clamp(0.75rem, 2vw, 1.75rem);
    bottom: clamp(0.75rem, 2vw, 1.75rem);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.ak-sticky.is-away { opacity: 0; transform: translateY(1rem) scale(0.9); pointer-events: none; }
.ak-sticky__btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    min-height: 58px; padding: 0.55rem 1.4rem 0.55rem 0.6rem;
    border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ak-lime); color: var(--ak-ink);
    font: 800 1rem/1 var(--ak-display); letter-spacing: -0.01em; text-decoration: none;
    box-shadow: 0 18px 40px -14px rgb(30 20 110 / 0.55), inset 0 -3px 0 rgb(0 0 0 / 0.08);
}
.ak-sticky__btn:hover { background: var(--ak-ink); color: #fff; }
.ak-sticky__spark {
    width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none;
    background: radial-gradient(circle at 34% 30%, #fff 0 8%, color-mix(in srgb, var(--ak-indigo), #fff 30%) 20%, var(--ak-indigo) 60%);
}
html[data-akademiya-sticky="off"] .ak-sticky { display: none; }
body:has(.cms-cookie:not([hidden])) .ak-sticky { bottom: 6rem; }

/* -------------------------------------------------------------------------
   4. Footer
   ------------------------------------------------------------------------- */

.ak-ftr.site-footer {
    position: relative; overflow: hidden;
    margin-top: var(--sp-sm);
    border-radius: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0 0;
    background: var(--ak-indigo-deep);
    color: var(--c-text);
    border-top: 0;
}
.ak-ftr__shape { position: absolute; pointer-events: none; }
.ak-ftr__shape--ring {
    right: -4rem; top: -4rem; width: 16rem; aspect-ratio: 1; border-radius: 50%;
    border: 2.2rem solid color-mix(in srgb, var(--ak-indigo), #fff 12%); opacity: 0.55;
}
.ak-ftr__shape--ball {
    left: 42%; bottom: 5.5rem; width: 2.4rem; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff 0 8%, var(--ak-lime) 30%, color-mix(in srgb, var(--ak-lime), #2d3a00 50%));
}
.ak-ftr__band { position: relative; padding: var(--sp-sm) 0 0; }
.ak-ftr__band-inner { display: grid; gap: var(--s-5); padding: var(--s-6) var(--gutter); border-radius: var(--ak-radius); background: var(--ak-lime); color: var(--ak-ink); max-width: calc(var(--w-wide) - var(--gutter) * 2); }
.ak-ftr__band-title { font-size: var(--t-lg); font-weight: 800; color: var(--ak-ink); margin: 0; }
.ak-ftr__main { position: relative; display: grid; gap: var(--s-7); padding-block: var(--sp-md) var(--s-7); }
.ak-ftr__brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; }
.ak-ftr__mark { width: 3rem; height: 3rem; }
.ak-ftr__name { font-family: var(--ak-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; }
.ak-ftr__logo { max-height: 3rem; width: auto; }
.ak-ftr__lead { max-width: 30rem; margin: var(--s-4) 0; color: var(--c-text-muted); line-height: 1.6; }
.ak-ftr__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.ak-ftr__title { margin: 0 0 var(--s-4); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ak-lime); font-family: var(--ak-sans); }
.ak-ftr__menu { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.ak-ftr__menu a, .ak-ftr__line a { color: var(--c-text); text-decoration: none; }
.ak-ftr__menu a:hover, .ak-ftr__line a:hover { color: var(--ak-lime); }
.ak-ftr__contacts { font-style: normal; display: grid; gap: 0.5rem; }
.ak-ftr__contacts p { margin: 0; }
.ak-ftr__phone a { font-family: var(--ak-display); font-size: 1.35rem; font-weight: 800; color: #fff; text-decoration: none; }
.ak-ftr__phone span { display: block; font-size: var(--t-sm); color: var(--c-text-muted); }
.ak-ftr__line--muted { color: var(--c-text-muted); }
.ak-ftr__bottom { position: relative; border-top: 1px solid var(--c-border); }
.ak-ftr__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); padding-block: var(--s-5); font-size: var(--t-sm); color: var(--c-text-muted); }
.ak-ftr__bottom-inner p { margin: 0; }
.ak-ftr__links { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.ak-ftr__links a { color: var(--c-text-muted); }
.ak-ftr__pay { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.ak-ftr__pay-item { padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--c-border); font-size: var(--t-xs); }
.ak-ftr .site-socials__link { border-radius: 50%; }
@media (min-width: 60rem) {
    .ak-ftr__main { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); }
    .ak-ftr__band-inner { grid-template-columns: 1fr 1.2fr; align-items: center; }
}

/* -------------------------------------------------------------------------
   5. Hero (akademiya_hero)
   ------------------------------------------------------------------------- */

.ak-hero { display: grid; gap: var(--s-7); align-items: center; }
.ak-hero > * { min-width: 0; }
.ak-hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.3rem);
    overflow-wrap: break-word; hyphens: manual;
    font-weight: 800; line-height: 1.02; letter-spacing: -0.045em;
    color: var(--ak-ink); text-wrap: balance;
}
.ak-hero__lead { margin: var(--s-5) 0 0; max-width: 36rem; font-size: var(--t-md); line-height: 1.55; color: var(--c-text-muted); }
.ak-search {
    position: relative; display: flex; align-items: center; gap: 0.5rem;
    max-width: 36rem; margin-top: var(--s-6);
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    border-radius: 999px; background: var(--ak-sheet); box-shadow: var(--ak-shadow-hi);
}
.ak-search__icon { display: grid; color: var(--ak-indigo); }
.ak-search__icon .cms-icon { width: 1.3rem; height: 1.3rem; }
.ak-body .ak-search__input { flex: 1; min-width: 0; min-height: 48px; border: 0; box-shadow: none; padding: 0; border-radius: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ak-ink); outline: none; }
.ak-search__input::placeholder { color: var(--ak-faint); }
.ak-search:focus-within { box-shadow: var(--ak-shadow-hi), 0 0 0 3px color-mix(in srgb, var(--ak-indigo), transparent 60%); }
.ak-search__btn { flex: none; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--ak-indigo); color: #fff; font: 700 0.95rem/1 var(--ak-sans); cursor: pointer; }
.ak-search__btn:hover { background: var(--ak-ink); }
.ak-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: var(--s-4); }
.ak-hero__chips-label { font-size: var(--t-sm); color: var(--c-text-muted); }
.ak-hero__actions { margin-top: var(--s-6); }

.ak-hero__visual { position: relative; justify-self: center; width: min(100%, 30rem); padding: 1.5rem 0; }
.ak-hero__frame {
    position: relative; z-index: 1; margin: 0;
    aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: 42% 58% 44% 56% / 38% 40% 60% 62%;
    border-radius: calc(var(--ak-radius) * 3) calc(var(--ak-radius) * 1.2) calc(var(--ak-radius) * 3) calc(var(--ak-radius) * 1.2);
    background: linear-gradient(160deg, var(--ak-indigo-soft), var(--ak-lime-soft));
    box-shadow: var(--ak-shadow-hi);
}
.ak-hero__img, .ak-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.ak-hero__blank { position: absolute; inset: 0; }
.ak-hero__blank .ak-shape--ball { left: 30%; top: 35%; width: 8rem; }
.ak-hero__blank .ak-shape--ring { right: 15%; top: 15%; }
.ak-hero__shape { position: absolute; z-index: 2; right: -1.5rem; bottom: -0.5rem; width: 42%; border-radius: 50%; overflow: hidden; box-shadow: var(--ak-shadow-hi); aspect-ratio: 1; }
.ak-hero__shape img { width: 100%; height: 100%; object-fit: cover; }
.ak-hero__s1 { left: -2.5rem; top: 0; z-index: 2; }
.ak-hero__s2 { right: 8%; top: -0.5rem; z-index: 2; width: 3.2rem; }
.ak-hero__s3 { left: 12%; bottom: 0; z-index: 2; }
.ak-hero__progress {
    position: absolute; z-index: 3; left: -2rem; bottom: 16%;
    display: flex; gap: 0.8rem; align-items: center;
    width: min(18rem, 80%); padding: 0.9rem 1rem;
    border-radius: 1.3rem; background: var(--ak-sheet); box-shadow: var(--ak-shadow-hi);
}
.ak-hero__progress-icon { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ak-indigo); color: #fff; }
.ak-hero__progress-icon .cms-icon { width: 1.1rem; height: 1.1rem; }
.ak-hero__progress-body { flex: 1; min-width: 0; }
.ak-hero__progress-title { margin: 0 0 0.45rem; font-size: 0.85rem; font-weight: 700; color: var(--ak-ink); }
.ak-hero__progress-label { display: flex; gap: 0.35rem; align-items: center; margin: 0.45rem 0 0; font-size: 0.75rem; color: var(--c-text-muted); }
.ak-hero__progress-label .cms-icon { width: 0.95rem; height: 0.95rem; color: #5a8a00; }
.ak-hero__stat {
    position: absolute; z-index: 3;
    display: grid; padding: 0.8rem 1.1rem; border-radius: 1.3rem;
    background: var(--ak-ink); color: #fff; box-shadow: var(--ak-shadow-hi);
}
.ak-hero__stat--1 { right: -1.5rem; top: 12%; }
.ak-hero__stat--2 { right: 18%; bottom: -0.5rem; background: var(--ak-lime); color: var(--ak-ink); }
.ak-hero__stat--3 { left: -1rem; top: 30%; background: var(--ak-coral); color: var(--ak-ink); }
.ak-hero__stat-value { font-family: var(--ak-display); font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ak-hero__stat-label { max-width: 9rem; margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.25; opacity: 0.85; }
.ak-hero--photo .ak-hero__shape ~ .ak-hero__stat--2 { right: 44%; }

@media (min-width: 62rem) {
    .ak-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-8); }
    .ak-hero__visual { justify-self: end; }
}
@media (max-width: 40rem) {
    .ak-search { flex-wrap: wrap; border-radius: 1.6rem; padding: 0.5rem; }
    .ak-search__icon { display: none; }
    .ak-search__input { padding-inline: 0.7rem; }
    .ak-search__btn { width: 100%; }
    .ak-hero__visual { width: calc(100% - 2rem); }
    .ak-hero__progress { left: -0.75rem; }
    .ak-hero__stat--1 { right: -0.75rem; }
    .ak-hero__s1 { left: -1rem; width: 4.5rem; }
    .ak-hero__shape { right: -0.75rem; }
}

/* -------------------------------------------------------------------------
   6. Directions
   ------------------------------------------------------------------------- */

.ak-dirs__grid { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.ak-dir {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; min-height: 17rem;
    padding: var(--s-6); border-radius: var(--ak-radius);
    background: var(--tone-bg); color: var(--ak-ink);
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.ak-dir:hover { box-shadow: var(--ak-shadow-hi); }
@media (prefers-reduced-motion: no-preference) { .ak-dir:hover { transform: translateY(-4px); } }
.ak-dir.ak-tone-1 { background: var(--ak-indigo); color: #fff; }
.ak-dir__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; max-width: 60%; }
.ak-dir__count { padding: 0.3rem 0.75rem; border-radius: 999px; background: rgb(255 255 255 / 0.7); color: var(--ak-ink); font-size: 0.8rem; font-weight: 700; }
.ak-dir__title { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.ak-dir__link { color: inherit; text-decoration: none; }
.ak-dir__link::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: var(--ak-radius); }
.ak-dir__link:focus-visible { outline: none; }
.ak-dir__link:focus-visible::after { outline: 3px solid var(--ak-ink); outline-offset: -3px; }
.ak-dir__text { margin: 0; font-size: var(--t-sm); line-height: 1.5; opacity: 0.85; }
.ak-dir__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.ak-dir__tags li { padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid currentColor; font-size: 0.75rem; font-weight: 600; opacity: 0.8; }
.ak-dir__more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; padding-top: var(--s-3); font-weight: 700; font-size: var(--t-sm); }
.ak-dir__more .cms-icon { width: 1rem; height: 1rem; }
.ak-dir__art { position: absolute; z-index: 0; right: -6%; bottom: -12%; width: 44%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.ak-dir__art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ak-dir.ak-tone-1 .ak-dir__art img { mix-blend-mode: normal; }
.ak-dir__art .ak-shape--ball { position: relative; width: 70%; margin: 15%; }

@media (min-width: 48rem) {
    .ak-dirs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
    .ak-dirs--4 .ak-dirs__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .ak-dirs--4 .ak-dir:nth-child(1) { grid-column: span 4; }
    .ak-dirs--4 .ak-dir:nth-child(1) .ak-dir__body { max-width: 52%; }
    .ak-dirs--4 .ak-dir:nth-child(1) .ak-dir__art { width: 40%; right: -3%; bottom: -14%; }
    .ak-dirs--4 .ak-dir:nth-child(2) { grid-column: span 2; }
    .ak-dirs--4 .ak-dir:nth-child(3) { grid-column: span 3; }
    .ak-dirs--4 .ak-dir:nth-child(4) { grid-column: span 3; }
    .ak-dirs--4 .ak-dir:nth-child(2) .ak-dir__body { max-width: 100%; }
    .ak-dirs--4 .ak-dir:nth-child(2) .ak-dir__art { width: 42%; right: -8%; bottom: -12%; }
    .ak-dirs--4 .ak-dir:nth-child(2) .ak-dir__text { max-width: 70%; }
    .ak-dirs--3 .ak-dirs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------------------
   7. Course cards and the catalogue grid
   ------------------------------------------------------------------------- */

.ak-courses__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.ak-courses__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ak-fchip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 44px; padding: 0.45rem 0.6rem 0.45rem 1.1rem;
    border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ak-sheet); color: var(--ak-ink);
    font: 600 0.9rem/1 var(--ak-sans);
    box-shadow: inset 0 0 0 1.5px var(--ak-line);
}
.ak-fchip__n { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding-inline: 0.4rem; border-radius: 999px; background: var(--tone-bg, var(--ak-paper-2)); color: var(--tone-fg, var(--ak-ink)); font-size: 0.78rem; font-weight: 700; }
.ak-fchip:hover { box-shadow: inset 0 0 0 1.5px var(--ak-ink); }
.ak-fchip.is-active { background: var(--ak-ink); color: #fff; box-shadow: none; }
.ak-fchip.is-active .ak-fchip__n { background: var(--ak-lime); color: var(--ak-ink); }
.ak-courses__search {
    display: flex; align-items: center; gap: 0.5rem;
    flex: 0 1 20rem; min-height: 48px; padding: 0 1rem;
    border-radius: 999px; background: var(--ak-sheet); box-shadow: inset 0 0 0 1.5px var(--ak-line);
    color: var(--ak-faint);
}
.ak-courses__search:focus-within { box-shadow: inset 0 0 0 2px var(--ak-indigo); }
.ak-courses__search .cms-icon { width: 1.1rem; height: 1.1rem; flex: none; }
.ak-body .ak-courses__search input { flex: 1; padding: 0; box-shadow: none; border-radius: 0; min-width: 0; min-height: 44px; border: 0; background: none; font: inherit; color: var(--ak-ink); outline: none; }
.ak-courses__grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.ak-courses__item { display: flex; }
.ak-courses__item[hidden] { display: none; }
.ak-courses__empty { padding: var(--s-6); border-radius: var(--ak-radius); background: var(--ak-sheet); text-align: center; color: var(--c-text-muted); }
.ak-courses__more { margin: var(--s-6) 0 0; text-align: center; }

.ak-course {
    position: relative; display: flex; flex-direction: column; width: 100%;
    border-radius: var(--ak-radius); background: var(--ak-sheet);
    box-shadow: var(--ak-shadow);
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.ak-course:hover { box-shadow: var(--ak-shadow-hi); }
@media (prefers-reduced-motion: no-preference) { .ak-course:hover { transform: translateY(-5px); } }
.ak-course:focus-within { outline: 3px solid var(--ak-indigo); outline-offset: 3px; }
.ak-course__top {
    position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem;
    height: 9.5rem; margin: 0.5rem 0.5rem 0; padding: 0.9rem;
    border-radius: calc(var(--ak-radius) - 0.4rem);
    background: var(--tone-bg); overflow: hidden;
}
.ak-course__dir { position: relative; z-index: 1; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--ak-sheet); color: var(--tone-fg, var(--ak-indigo-text)); font-size: 0.78rem; font-weight: 700; }
.ak-course__top .ak-badge { position: relative; z-index: 1; }
.ak-course__art { position: absolute; right: -0.5rem; bottom: -1.8rem; width: 9.5rem; aspect-ratio: 1; }
.ak-course__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; mix-blend-mode: multiply; }
.ak-course__art .ak-shape--ball { right: 2rem; top: 1rem; width: 4rem; }
.ak-course__art .ak-shape--ring { right: -1rem; bottom: 1rem; width: 5rem; }
.ak-course__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem 1.3rem 0.6rem; flex: 1; }
.ak-course__title { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; color: var(--ak-ink); }
.ak-course__link { color: inherit; text-decoration: none; }
.ak-course__link::after { content: ''; position: absolute; inset: 0; border-radius: var(--ak-radius); }
.ak-course__link:focus-visible { outline: none; }
.ak-course__text { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--c-text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ak-course__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.ak-course__meta li { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--ak-paper); font-size: 0.78rem; font-weight: 600; color: var(--ak-ink); }
.ak-course__meta .cms-icon { width: 0.9rem; height: 0.9rem; color: var(--ak-indigo); }
.ak-course__prog { display: grid; gap: 0.35rem; margin-top: auto; padding-top: 0.5rem; }
.ak-course__segs { display: flex; gap: 3px; }
.ak-course__segs span { flex: 1; height: 6px; border-radius: 999px; background: var(--tone-solid, var(--ak-indigo)); opacity: 0.85; }
.ak-course__segs span:nth-child(n+4) { opacity: 0.28; }
.ak-course__modules { font-size: 0.75rem; color: var(--c-text-faint); font-weight: 600; }
.ak-course__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.8rem 0.9rem 1rem 1.3rem; border-top: 1px dashed var(--ak-line); }
.ak-course__price { display: grid; margin: 0; }
.ak-course__amount { font-family: var(--ak-display); font-size: 1.2rem; font-weight: 800; color: var(--ak-ink); letter-spacing: -0.02em; }
.ak-course__unit { font-size: 0.75rem; color: var(--c-text-faint); }
.ak-course__go { display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--ak-ink); color: #fff; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), rotate 200ms var(--ease); }
.ak-course:hover .ak-course__go { background: var(--ak-lime); color: var(--ak-ink); rotate: 45deg; }

html[data-akademiya-cards="outline"] .ak-course,
html[data-akademiya-cards="outline"] .ak-card { box-shadow: none; border: 1.5px solid var(--c-border-strong); }
html[data-akademiya-cards="tinted"] .ak-course { background: var(--tone-bg); box-shadow: none; }
html[data-akademiya-cards="tinted"] .ak-course__top { background: var(--ak-sheet); }
html[data-akademiya-cards="tinted"] .ak-card { background: var(--ak-indigo-soft); box-shadow: none; }

/* The catalogue and direction headers. */
.ak-phead { position: relative; overflow: hidden; padding: var(--sp-sm) 0 var(--s-5); }
.ak-phead__title { margin: 0; font-size: var(--t-3xl); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ak-ink); }
.ak-phead__count { margin-inline-start: 0.3em; padding: 0.15em 0.45em; border-radius: 999px; background: var(--ak-lime); font-size: 0.32em; letter-spacing: 0; vertical-align: super; }
.ak-phead__lead { max-width: 40rem; margin: var(--s-4) 0 0; font-size: var(--t-md); color: var(--c-text-muted); }
.ak-phead__dirs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.ak-phead__s1 { right: 8%; top: 1.5rem; }
.ak-phead__s2 { right: 22%; bottom: 1rem; }
.ak-dirpill { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 52px; padding: 0.3rem 0.4rem 0.3rem 0.3rem; border-radius: 999px; background: var(--tone-bg); color: var(--ak-ink); text-decoration: none; font-weight: 700; }
.ak-dirpill__art { width: 2.7rem; height: 2.7rem; border-radius: 50%; overflow: hidden; background: var(--ak-sheet); }
.ak-dirpill__art img { width: 100%; height: 100%; object-fit: cover; }
.ak-dirpill__n { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 999px; background: var(--ak-sheet); font-size: 0.8rem; }
.ak-dirpill:hover { background: var(--ak-ink); color: #fff; }
.ak-dirpill:hover .ak-dirpill__n { color: var(--ak-ink); }
@media (max-width: 48rem) { .ak-phead .ak-shape { display: none; } }

.ak-dhead { padding: var(--sp-sm) 0; background: var(--tone-bg); border-radius: 0 0 clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem); }
.ak-dhead__grid { display: grid; gap: var(--s-6); align-items: center; }
.ak-dhead__title { margin: 0; font-size: var(--t-3xl); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ak-ink); }
.ak-dhead__lead { max-width: 36rem; margin: var(--s-4) 0 0; font-size: var(--t-md); color: var(--ak-ink); opacity: 0.8; }
.ak-dhead__count { display: flex; align-items: baseline; gap: 0.5rem; margin: var(--s-5) 0 0; font-weight: 600; color: var(--ak-ink); }
.ak-dhead__count span { font-family: var(--ak-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--tone-fg); }
.ak-dhead__art { position: relative; justify-self: center; width: min(100%, 22rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.ak-dhead__art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ak-dhead.ak-tone-1 .ak-dhead__art img { mix-blend-mode: normal; }
.ak-dhead__art .ak-shape--ball { left: 30%; top: 30%; width: 8rem; }
.ak-dnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; padding-top: var(--s-6); }
.ak-dnav__label { font-size: var(--t-sm); color: var(--c-text-muted); }
@media (min-width: 56rem) { .ak-dhead__grid { grid-template-columns: 1.3fr 0.7fr; } }

/* The lime band at the end of listings. */
.ak-band {
    position: relative; overflow: hidden;
    display: grid; gap: var(--s-5); align-items: center;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--ak-radius); background: var(--ak-lime); color: var(--ak-ink);
}
.ak-band__title { margin: 0; font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: var(--ak-ink); }
.ak-band__text { max-width: 38rem; margin: var(--s-3) 0 0; font-size: var(--t-md); }
.ak-band .cms-btn--primary { background: var(--ak-ink); color: #fff; }
.ak-band__s1 { right: -1rem; top: -1rem; width: 6rem; opacity: 0.9; }
@media (min-width: 56rem) { .ak-band { grid-template-columns: 1fr auto; } }

/* -------------------------------------------------------------------------
   8. Course page
   ------------------------------------------------------------------------- */

.ak-chero { padding: var(--sp-sm) 0 var(--sp-md); }
.ak-chero__grid { display: grid; gap: var(--s-7); align-items: center; }
.ak-chero__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 var(--s-4); }
.ak-chero__tags .ak-course__dir { background: var(--tone-bg); }
.ak-chero__title { margin: 0; font-size: var(--t-3xl); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--ak-ink); text-wrap: balance; }
.ak-chero__lead { max-width: 38rem; margin: var(--s-5) 0 0; font-size: var(--t-md); line-height: 1.55; color: var(--c-text-muted); }
.ak-chero__actions { margin-top: var(--s-6); }
.ak-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.6rem; margin: var(--s-6) 0 0; }
.ak-fact { padding: 0.9rem 1rem; border-radius: 1.2rem; background: var(--ak-sheet); box-shadow: var(--ak-shadow); }
.ak-fact dt { font-size: 0.75rem; color: var(--c-text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ak-fact dd { margin: 0.3rem 0 0; font-family: var(--ak-display); font-weight: 800; font-size: 1.05rem; color: var(--ak-ink); line-height: 1.2; }
.ak-chero__visual { position: relative; justify-self: center; width: min(100%, 32rem); padding: 1rem 0; }
.ak-chero__frame { position: relative; z-index: 1; margin: 0; aspect-ratio: 5 / 4; border-radius: calc(var(--ak-radius) * 2.2) var(--ak-radius) calc(var(--ak-radius) * 2.2) var(--ak-radius); overflow: hidden; background: var(--tone-bg); box-shadow: var(--ak-shadow-hi); }
.ak-chero__frame img { width: 100%; height: 100%; object-fit: cover; }
.ak-chero__art { position: absolute; z-index: 2; left: -1.5rem; top: -1rem; width: 30%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--ak-shadow-hi); background: var(--tone-bg); }
.ak-chero__art img { width: 100%; height: 100%; object-fit: cover; }
.ak-chero__s1 { right: -1.5rem; top: -1rem; z-index: 0; }
.ak-chero__s2 { left: 45%; bottom: -1rem; z-index: 2; width: 3rem; }
.ak-chero__price { position: absolute; z-index: 3; right: -1rem; bottom: 12%; display: grid; padding: 1rem 1.2rem; border-radius: 1.4rem; background: var(--ak-ink); color: #fff; box-shadow: var(--ak-shadow-hi); }
.ak-chero__price-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ak-lime); font-weight: 700; }
.ak-chero__amount { font-family: var(--ak-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ak-chero__unit { font-size: 0.78rem; opacity: 0.8; }
.ak-chero__modules { position: absolute; z-index: 3; left: -1rem; bottom: 8%; display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem 0.7rem 0.7rem; border-radius: 999px; background: var(--ak-lime); color: var(--ak-ink); box-shadow: var(--ak-shadow-hi); }
.ak-chero__modules-n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ak-ink); color: var(--ak-lime); font-family: var(--ak-display); font-weight: 800; }
.ak-chero__modules-l { font-size: 0.85rem; font-weight: 700; max-width: 7rem; line-height: 1.15; }
@media (min-width: 62rem) { .ak-chero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); } }
@media (max-width: 40rem) {
    .ak-chero__visual { width: calc(100% - 1.5rem); }
    .ak-chero__price { right: -0.75rem; }
    .ak-chero__modules { left: -0.75rem; }
    .ak-chero__art { left: -0.75rem; }
}

.ak-aud { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.ak-aud__item { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); }
.ak-aud__item p { margin: 0; font-weight: 600; color: var(--ak-ink); line-height: 1.4; }
.ak-aud__n { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; background: var(--tone-bg); color: var(--tone-fg); font-family: var(--ak-display); font-weight: 800; }

.ak-learn { display: grid; gap: var(--s-6); }
.ak-outcomes { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.ak-outcome { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 1.3rem; background: var(--ak-sheet); font-weight: 600; color: var(--ak-ink); line-height: 1.4; }
.ak-outcome .cms-icon { flex: none; width: 1.7rem; height: 1.7rem; padding: 0.3rem; border-radius: 50%; background: var(--ak-lime); color: var(--ak-ink); }
.ak-learn__about { padding: var(--s-6); }
.ak-learn__about-title { margin: 0 0 var(--s-4); font-size: var(--t-lg); font-weight: 800; color: var(--ak-ink); }
.ak-prose p { color: var(--c-text-muted); }
@media (min-width: 62rem) { .ak-learn--split { grid-template-columns: 1.4fr 0.8fr; align-items: start; } }

.ak-how { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 62rem) { .ak-how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ak-how__item { padding: var(--s-5); }
.ak-how__value { margin: var(--s-4) 0 0.2rem; font-family: var(--ak-display); font-weight: 800; font-size: 1.1rem; color: var(--ak-ink); line-height: 1.2; }
.ak-how__label { margin: 0; font-size: var(--t-sm); color: var(--c-text-faint); }

.ak-prog { display: grid; gap: var(--s-6); align-items: start; }
.ak-prog__aside .ak-h2 { margin-bottom: var(--s-4); }
.ak-prog__sum { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 var(--s-4); color: var(--c-text-muted); font-weight: 600; line-height: 1.3; }
.ak-prog__big { font-family: var(--ak-display); font-size: 4rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ak-indigo); }
.ak-prog__segs { max-width: 18rem; margin-bottom: var(--s-5); }
.ak-prog__segs span { height: 10px; opacity: 1; }
.ak-prog__segs span:nth-child(n+4) { opacity: 0.3; }
.ak-prog__toggle { min-height: 44px; padding: 0.5rem 1.1rem; border: 0; border-radius: 999px; background: var(--ak-sheet); box-shadow: inset 0 0 0 1.5px var(--c-border-strong); font: 700 0.9rem/1 var(--ak-sans); color: var(--ak-ink); cursor: pointer; }
.ak-prog__toggle:hover { box-shadow: inset 0 0 0 1.5px var(--ak-indigo); color: var(--ak-indigo); }
.ak-prog__list { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.ak-module__d { border-radius: 1.4rem; background: var(--ak-sheet); box-shadow: var(--ak-shadow); overflow: hidden; }
.ak-module__d[open] { box-shadow: var(--ak-shadow-hi); }
.ak-module__sum { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "n n plus" "title title plus" "time time plus"; gap: 0.25rem 1rem; align-items: center; padding: 1.1rem 1.2rem 1.1rem 1.4rem; cursor: pointer; list-style: none; }
.ak-module__sum::-webkit-details-marker { display: none; }
.ak-module__n { grid-area: n; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tone-fg, var(--ak-indigo-text)); }
.ak-module__title { grid-area: title; font-family: var(--ak-display); font-weight: 800; font-size: 1.15rem; color: var(--ak-ink); line-height: 1.2; }
.ak-module__time { grid-area: time; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--c-text-faint); }
.ak-module__time .cms-icon { width: 0.9rem; height: 0.9rem; }
.ak-module__plus { grid-area: plus; position: relative; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ak-paper); transition: background-color var(--dur) var(--ease), rotate 200ms var(--ease); }
.ak-module__plus::before, .ak-module__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 2px; margin: -1px 0 0 -0.45rem; border-radius: 2px; background: var(--ak-ink); }
.ak-module__plus::after { rotate: 90deg; }
details[open] > summary .ak-module__plus { background: var(--ak-lime); rotate: 45deg; }
.ak-module__body { padding: 0 1.4rem 1.3rem; }
.ak-module__body p { margin: 0; color: var(--c-text-muted); }
.ak-module__topics { display: grid; gap: 0.45rem; margin: 0; padding: 0.9rem 0 0; border-top: 1px dashed var(--ak-line); list-style: none; }
.ak-module__topics li { position: relative; padding-left: 1.3rem; color: var(--c-text-muted); }
.ak-module__topics li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--tone-solid, var(--ak-indigo)); }
@media (min-width: 62rem) {
    .ak-prog { grid-template-columns: 0.75fr 1.25fr; gap: var(--s-8); }
    .ak-prog__aside { position: sticky; top: 7rem; }
}

.ak-projects { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.ak-projects__link { display: block; aspect-ratio: 1; border-radius: var(--ak-radius); overflow: hidden; box-shadow: var(--ak-shadow); }
.ak-projects__link img { width: 100%; height: 100%; object-fit: cover; transition: scale 400ms var(--ease); }
.ak-projects__link:hover img { scale: 1.05; }
@media (min-width: 56rem) { .ak-projects--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ak-video { margin: 0 0 var(--s-5); border-radius: var(--ak-radius); overflow: hidden; }

.ak-packs { display: grid; gap: var(--s-4); margin: 0 0 var(--s-5); padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.ak-pack { display: flex; flex-direction: column; gap: 0.6rem; padding: var(--s-5); }
.ak-pack--top { background: var(--ak-indigo); color: #fff; --c-text-strong: #fff; --c-text-muted: #ddd9ff; }
.ak-pack__name { margin: 0; font-size: 1.2rem; font-weight: 800; }
.ak-pack__price { margin: 0; font-family: var(--ak-display); font-size: 1.8rem; font-weight: 800; }
.ak-pack__price span { font-size: 0.85rem; font-weight: 500; }
.ak-rows { margin: 0; padding: 0; list-style: none; border-radius: var(--ak-radius); background: var(--ak-sheet); }
.ak-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px dashed var(--ak-line); }
.ak-row small { display: block; color: var(--c-text-faint); }
.ak-note { display: flex; gap: 0.5rem; margin-top: var(--s-4); color: var(--c-text-muted); font-size: var(--t-sm); }

.ak-cfaq { display: grid; gap: var(--s-6); }
.ak-cfaq__list { display: grid; gap: 0.6rem; }
.ak-qa { border-radius: 1.3rem; background: var(--ak-sheet); }
.ak-qa__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem 1.1rem 1.4rem; font-family: var(--ak-display); font-weight: 800; font-size: 1.05rem; color: var(--ak-ink); cursor: pointer; list-style: none; }
.ak-qa__q::-webkit-details-marker { display: none; }
.ak-qa__q .ak-module__plus { flex: none; }
.ak-qa__a { padding: 0 1.4rem 1.2rem; color: var(--c-text-muted); }
.ak-qa__a p { margin: 0; }
@media (min-width: 62rem) { .ak-cfaq { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start; } }

.ak-headrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-6); }
.ak-headrow .ak-h2 { margin: 0; }
.ak-more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--ak-indigo-text); text-decoration: none; }
.ak-more .cms-icon { width: 1rem; height: 1rem; }

.ak-order { position: relative; overflow: hidden; display: grid; gap: var(--s-6); padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: calc(var(--ak-radius) * 1.3); background: var(--ak-indigo-deep); color: var(--c-text); }
.ak-order__title { margin: 0; font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.ak-order__text { margin: var(--s-4) 0 0; color: var(--c-text-muted); font-size: var(--t-md); }
.ak-order__box { position: relative; z-index: 1; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--ak-radius); background: var(--ak-sheet); color: var(--ak-ink);
    --c-bg: #fff; --c-surface: #fff; --c-surface-sunk: var(--ak-paper); --c-text: #26224b; --c-text-strong: var(--ak-ink); --c-text-muted: var(--ak-muted); --c-border: var(--ak-line); --c-border-strong: rgb(22 18 61 / 0.22); --c-accent: var(--ak-indigo); --c-accent-hover: var(--ak-indigo-hover); --c-accent-contrast: #fff; --c-link: var(--ak-indigo-text); color-scheme: light; }
.ak-order__s1 { right: -2rem; bottom: -2rem; width: 10rem; opacity: 0.8; }
.ak-order__s2 { left: 40%; top: 1.5rem; width: 2.2rem; }
.ak-order__intro { position: relative; z-index: 1; }
@media (min-width: 62rem) { .ak-order { grid-template-columns: 1fr 1fr; align-items: center; } }

/* The page's own blocks keep the site's rhythm. */
.ak-cblocks > .cms-section:first-child { padding-top: var(--sp-sm); }

/* -------------------------------------------------------------------------
   9. Results, trial, certificate, corporate
   ------------------------------------------------------------------------- */

.ak-res { display: grid; gap: var(--s-5); }
.ak-res__panel { position: relative; overflow: hidden; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--ak-radius); background: var(--ak-indigo); color: #fff; }
.ak-res__panel-title { position: relative; margin: 0 0 var(--s-5); font-weight: 700; color: var(--ak-lime); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.08em; }
.ak-res__stats { position: relative; display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.ak-res__stat { display: grid; gap: 0.35rem; }
.ak-res__value { font-family: var(--ak-display); font-size: clamp(2.6rem, 2rem + 2.5vw, 3.8rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.ak-res__label { max-width: 22rem; color: #e1ddff; line-height: 1.4; }
.ak-res__stat .ak-bar { margin-top: 0.4rem; }
.ak-res__note { position: relative; margin: var(--s-5) 0 0; font-size: 0.8rem; color: #c9c4ff; }
.ak-res__shape { right: -2.5rem; top: -2.5rem; width: 9rem; filter: brightness(1.5) drop-shadow(0 16px 20px rgb(0 0 0 / 0.25)); opacity: 0.6; }
.ak-res__stories { display: grid; gap: var(--s-4); align-items: start; margin: 0; padding: 0; list-style: none; }
.ak-story { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); }
.ak-story__head { display: flex; align-items: center; gap: 0.9rem; }
.ak-story__photo { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; overflow: hidden; background: var(--ak-lime); display: grid; place-items: center; }
.ak-story__photo img { width: 100%; height: 100%; object-fit: cover; }
.ak-story__initial { font-family: var(--ak-display); font-weight: 800; font-size: 1.4rem; color: var(--ak-ink); }
.ak-story__name { margin: 0; font-family: var(--ak-display); font-weight: 800; color: var(--ak-ink); font-size: 1.1rem; }
.ak-story__course { margin: 0; font-size: var(--t-sm); color: var(--c-text-faint); }
.ak-story__path { display: grid; gap: 0.4rem; margin: 0; }
.ak-story__path > div { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.6rem 0.9rem; border-radius: 1rem; }
.ak-story__was { background: var(--ak-paper); }
.ak-story__now { background: var(--ak-lime-soft); }
.ak-story__path dt { flex: none; width: 3.6rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-text-faint); }
.ak-story__path dd { margin: 0; font-weight: 700; color: var(--ak-ink); }
.ak-story__salary { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-weight: 700; color: #3d6a00; }
.ak-story__salary .cms-icon { width: 1.1rem; height: 1.1rem; }
.ak-story__quote { margin: 0; padding: 0; border: 0; color: var(--c-text-muted); font-size: 0.95rem; line-height: 1.55; }
.ak-story__quote p { margin: 0; }
@media (min-width: 48rem) { .ak-res__stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
    .ak-res { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); align-items: stretch; }
    .ak-res--solo { grid-template-columns: 1fr; }
}

.ak-trial__card {
    position: relative; overflow: hidden;
    display: grid; gap: var(--s-6);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border-radius: calc(var(--ak-radius) * 1.3);
    background: var(--ak-lime); color: var(--ak-ink);
    --c-text-muted: #3a4410;
}
.ak-trial__s1 { left: 44%; bottom: -3rem; width: 7rem; opacity: 0.9; }
.ak-trial__text { position: relative; z-index: 1; }
.ak-trial__title { margin: 0; font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ak-ink); text-wrap: balance; }
.ak-trial__lead { margin: var(--s-4) 0 0; font-size: var(--t-md); max-width: 32rem; }
.ak-trial__media { position: relative; margin: var(--s-5) 0 0; max-width: 26rem; }
.ak-trial__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--ak-radius); }
.ak-sticker {
    display: inline-grid; place-items: center; text-align: center;
    width: 6rem; height: 6rem; padding: 0.5rem; border-radius: 50%;
    font-family: var(--ak-display); font-weight: 800; line-height: 1.05; font-size: 1.1rem;
    box-shadow: 0 16px 30px -14px rgb(0 0 0 / 0.4);
}
.ak-sticker--price { background: var(--ak-coral); color: var(--ak-ink); font-size: 1.6rem; rotate: -10deg; }
.ak-sticker--time { background: var(--ak-ink); color: var(--ak-lime); rotate: 8deg; }
.ak-trial__media .ak-sticker--price { position: absolute; right: -1rem; top: -1.5rem; }
.ak-trial__media .ak-sticker--time { position: absolute; left: -0.75rem; bottom: -1.25rem; }
.ak-trial__stickers { display: flex; gap: 0.75rem; margin: var(--s-4) 0 0; }
.ak-trial__form {
    position: relative; z-index: 1; align-self: start;
    padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--ak-radius); background: var(--ak-sheet);
    box-shadow: 0 30px 60px -30px rgb(40 50 0 / 0.5);
    --c-text-muted: var(--ak-muted);
}
.ak-trial__form-title { margin: 0 0 var(--s-4); font-family: var(--ak-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ak-ink); }
.ak-trial__note { display: flex; gap: 0.4rem; align-items: center; margin: var(--s-4) 0 0; font-size: var(--t-sm); color: var(--c-text-muted); }
.ak-trial__note .cms-icon { width: 1rem; height: 1rem; }
@media (min-width: 62rem) { .ak-trial__card { grid-template-columns: 1.1fr 0.9fr; } }

.ak-cert { display: grid; gap: var(--s-7); align-items: center; }
.ak-cert__stage { position: relative; padding: 1.5rem; }
.ak-cert__doc {
    position: relative; z-index: 1;
    max-width: 30rem; margin-inline: auto; padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--ak-radius); background: var(--ak-sheet);
    box-shadow: var(--ak-shadow-hi);
    rotate: -3deg;
    background-image: radial-gradient(circle at 100% 0, var(--ak-indigo-soft) 0 28%, transparent 28.5%), radial-gradient(circle at 0 100%, var(--ak-lime-soft) 0 22%, transparent 22.5%);
}
.ak-cert__top { display: flex; align-items: center; gap: 0.6rem; }
.ak-cert__mark { width: 2.2rem; height: 2.2rem; }
.ak-cert__brand { font-family: var(--ak-display); font-weight: 800; color: var(--ak-ink); }
.ak-cert__kind { margin: var(--s-6) 0 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ak-indigo-text); }
.ak-cert__name { margin: 0.4rem 0 0; font-family: var(--ak-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ak-ink); }
.ak-cert__course { margin: 0.3rem 0 0; color: var(--c-text-muted); }
.ak-cert__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px dashed var(--ak-line); }
.ak-cert__hours, .ak-cert__number { margin: 0; font-size: 0.8rem; color: var(--c-text-muted); }
.ak-cert__hours { font-weight: 700; color: var(--ak-ink); }
.ak-cert__seal { display: grid; place-items: center; flex: none; width: 4.6rem; height: 4.6rem; border-radius: 50%; overflow: hidden; background: var(--ak-lime); color: var(--ak-ink); box-shadow: 0 0 0 5px var(--ak-sheet), 0 0 0 7px var(--ak-lime); rotate: 12deg; }
.ak-cert__seal img { width: 100%; height: 100%; object-fit: cover; }
.ak-cert__seal .cms-icon { width: 2rem; height: 2rem; }
.ak-cert__s1 { left: 0; top: 0; }
.ak-cert__list { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.ak-cert__item { display: flex; gap: 1rem; align-items: flex-start; }
.ak-cert__title { margin: 0.2rem 0 0.3rem; font-size: 1.15rem; font-weight: 800; color: var(--ak-ink); }
.ak-cert__text { margin: 0; color: var(--c-text-muted); }
.ak-cert__licence { display: flex; gap: 0.5rem; align-items: center; margin: var(--s-6) 0 0; font-size: var(--t-sm); color: var(--c-text-faint); }
.ak-cert__licence .cms-icon { width: 1.1rem; height: 1.1rem; color: var(--ak-indigo); }
@media (min-width: 62rem) { .ak-cert { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

.ak-corp__band { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: calc(var(--ak-radius) * 1.3); background: var(--ak-indigo-deep); color: var(--c-text); }
.ak-corp__s1 { right: 3rem; top: 2rem; }
.ak-corp__top { position: relative; z-index: 1; display: grid; gap: var(--s-6); align-items: center; }
.ak-corp__title { margin: 0; font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: #fff; }
.ak-corp__lead { max-width: 34rem; margin: var(--s-4) 0 0; font-size: var(--t-md); color: var(--c-text-muted); }
.ak-corp__stats { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.ak-corp__stats li { display: grid; }
.ak-corp__value { font-family: var(--ak-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ak-lime); line-height: 1; }
.ak-corp__label { font-size: var(--t-sm); color: var(--c-text-muted); }
.ak-corp__media { margin: 0; border-radius: var(--ak-radius); overflow: hidden; aspect-ratio: 4 / 3; }
.ak-corp__img { width: 100%; height: 100%; object-fit: cover; }
.ak-corp__features { position: relative; z-index: 1; display: grid; gap: var(--s-4); margin: var(--s-7) 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.ak-corp__feature { padding: var(--s-5); border-radius: 1.4rem; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.1); }
.ak-corp__icon { display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 0.9rem; background: var(--ak-lime); color: var(--ak-ink); }
.ak-corp__icon .cms-icon { width: 1.3rem; height: 1.3rem; }
.ak-corp__ftitle { margin: var(--s-4) 0 0.3rem; font-size: 1.1rem; font-weight: 800; color: #fff; }
.ak-corp__ftext { margin: 0; font-size: var(--t-sm); color: var(--c-text-muted); }
.ak-corp__action { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.ak-corp__note { margin: 0; color: var(--c-text-muted); font-size: var(--t-sm); }
@media (min-width: 62rem) { .ak-corp__top--media { grid-template-columns: 1.1fr 0.9fr; } }

/* -------------------------------------------------------------------------
   10. Shared blocks and modules, re-dressed
   ------------------------------------------------------------------------- */

/* Tariffs. */
.cms-ptable__card, .cms-ptable__plan-inner { border-radius: var(--ak-radius); }
.cms-ptable__plan--featured .cms-ptable__plan-inner,
.cms-ptable__card--featured { background: var(--ak-indigo); color: #fff; }
.cms-ptable__badge { border-radius: 999px; background: var(--ak-lime); color: var(--ak-ink); font-weight: 800; }
.cms-ptable__price, .cms-ptable__amount { font-family: var(--ak-display); font-weight: 800; letter-spacing: -0.03em; }
.cms-ptable__old { color: var(--ak-coral-text); }
.cms-ptable__mark--yes { color: #4f8a00; }

/* Schedule. */
.cms-schedule__chip { border-radius: 999px; }
.cms-schedule__item { border-radius: 1rem; }
.cms-schedule__time { font-family: var(--ak-display); font-weight: 800; }

/* Stages. */
.cms-stages__item { border-radius: var(--ak-radius); }
.cms-stages__title { font-family: var(--ak-display); font-weight: 800; }

/* FAQ, testimonials, entry lists: rounder, softer. */
.cms-faq__item { border-radius: 1.3rem; }
.cms-testimonials__item, .cms-testi, .cms-card, .entry-card { border-radius: var(--ak-radius); }

/* Forms. */
.ak-body .cms-form input:not([type="checkbox"]):not([type="radio"]),
.ak-body .cms-form select,
.ak-body .cms-form textarea,
.ak-body .form-field input:not([type="checkbox"]):not([type="radio"]),
.ak-body .form-field select,
.ak-body .form-field textarea { border-radius: 1rem; }

/* Team and blog modules: rounded photos and cards. */
.team-card, .tm-card { border-radius: var(--ak-radius); overflow: hidden; }
.team-card img, .tm-card img { border-radius: calc(var(--ak-radius) - 6px); }

/* -------------------------------------------------------------------------
   11. Density
   ------------------------------------------------------------------------- */

:root:root[data-akademiya-density="compact"] {
    --sp-sm: clamp(2rem, 1.6rem + 2vw, 2.75rem);
    --sp-md: clamp(2.75rem, 2.1rem + 3vw, 4.25rem);
    --sp-lg: clamp(3.5rem, 2.6rem + 4.5vw, 6rem);
}

@media (max-width: 47.99rem) {
    .ak-dir { min-height: 0; padding: var(--s-5); }
    .ak-dir__body { max-width: 74%; }
    .ak-dir__art { width: 34%; top: -8%; bottom: auto; right: -8%; }
    .ak-hero__actions .cms-btn { flex: 1 1 100%; }
}

/* Floating shapes never widen the page on phones. */
.ak-chero, .ak-cpage, .ak-catalogue, .ak-direction { overflow-x: clip; }
