/* Bilik Akademiyası — site styles. Mobile first, no framework. */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122, U+2190-2193; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-ext.woff2") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0100-0130, U+0132-02FF, U+20BC; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-cyrillic.woff2") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; 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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-0130, U+0132-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+20BC; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; }

:root {
    /* Brand palette from the brief */
    --bg: #F4F3FB;
    --ink: #211C55;
    --accent: #5B45E0;
    --soft: #E1DDF7;
    --on: #FFFFFF;
    /* Sticker colours */
    --lime: #C6F36B;
    --coral: #FF8A6B;
    --sky: #7CC8FF;
    --sun: #FFD45C;
    --muted: #4A4579;

    --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 24px;
    --radius-sm: 14px;
    --line: 2px solid var(--ink);
    --shadow: 5px 5px 0 var(--ink);
    --shadow-accent: 7px 7px 0 var(--accent);
    --gutter: 16px;
    --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 500 1rem/1.6 var(--font-body);
    overflow-x: hidden;
    padding-bottom: 76px; /* room for the mobile call / WhatsApp bar */
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.section--ink :focus-visible, .enroll :focus-visible, .site-footer :focus-visible, .mobile-actions :focus-visible { outline-color: var(--sun); }
body.nav-open { overflow: hidden; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stretched-link { text-decoration: none; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* ---------- Buttons, links, stickers ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    border: var(--line); border-radius: 999px;
    background: var(--on); color: var(--ink);
    font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--accent { background: var(--accent); color: var(--on); }
.btn--outline { background: var(--on); }
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 1.05rem; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent); text-decoration: none; }
.link-arrow svg { width: 20px; height: 20px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

.sticker {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; margin: 0;
    border: var(--line); border-radius: 999px;
    background: var(--on); color: var(--ink);
    font: 700 .78rem/1.3 var(--font-display); letter-spacing: .01em;
    transform: rotate(-2deg);
    width: fit-content;
}
.sticker svg { width: 16px; height: 16px; }
.sticker--big { padding: 9px 16px; font-size: .95rem; }
.sticker--violet { background: var(--accent); color: var(--on); }
.sticker--lime { background: var(--lime); }
.sticker--coral { background: var(--coral); }
.sticker--sky { background: var(--sky); }
.sticker--sun { background: var(--sun); }
.sticker--ink { background: var(--ink); color: var(--on); }

.card { background: var(--on); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.site-header__logo { flex: none; margin-right: auto; }
.site-header__logo img { height: 42px; width: auto; }
.site-header__tools { display: flex; align-items: center; gap: 10px; }
.site-header__cta { display: none; }

.lang-switch { display: flex; border: var(--line); border-radius: 999px; overflow: hidden; background: var(--on); }
.lang-switch__item { display: grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 10px; font: 700 .8rem var(--font-display); text-decoration: none; }
.lang-switch__item.is-active { background: var(--ink); color: var(--on); }
.lang-switch a.lang-switch__item:hover { background: var(--soft); }

.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; border: var(--line); border-radius: 14px; background: var(--lime); cursor: pointer; padding: 0; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle__close { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block !important; }

.site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: 24px;
    padding: 24px var(--gutter) 110px;
    background: var(--bg); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
.site-nav__list { list-style: none; display: grid; gap: 6px; }
.site-nav__list a { display: block; padding: 12px 4px; font: 800 1.5rem/1.2 var(--font-display); text-decoration: none; border-bottom: 2px dashed var(--soft); }
.site-nav__list a[aria-current="page"] { color: var(--accent); }
.site-nav__cta { align-self: flex-start; }
.site-nav__contact { display: grid; gap: 4px; color: var(--muted); }
.site-nav__contact a { font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.15rem; }

/* ---------- Mobile call / WhatsApp bar ---------- */
.mobile-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
}
.mobile-actions__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; background: var(--on); color: var(--ink); font-weight: 800; text-decoration: none; border: 2px solid var(--on); }
.mobile-actions__btn svg { width: 20px; height: 20px; }
.mobile-actions__btn--wa { background: var(--lime); border-color: var(--lime); }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section--tight { padding-block: 32px 56px; }
.section--soft { background: var(--soft); border-block: var(--line); }
.section--ink { background: var(--ink); color: var(--on); }
.section--ink .section-text { color: #D6D2F5; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-title { font-size: clamp(1.55rem, 5.4vw, 2.6rem); max-width: 22ch; }
.section-title--light { color: var(--on); }
.section-text { max-width: 60ch; color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: 20px; }
.bento { display: grid; gap: 20px; }

/* ---------- Hero ---------- */
.hero { padding-block: 32px 48px; overflow: hidden; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__eyebrow { margin-bottom: 18px; }
.hero__title { font-size: clamp(2rem, 8.6vw, 4.1rem); line-height: 1.06; margin-bottom: 20px; }
.hand-underline { position: relative; display: inline-block; color: var(--accent); white-space: nowrap; }
.hand-underline svg { position: absolute; left: -2%; bottom: -.2em; width: 104%; height: .36em; color: var(--lime); z-index: -1; overflow: visible; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin-bottom: 26px; }
.hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__arrow { display: none; }
.hero__scores { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__scores li { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border: var(--line); border-radius: 16px; background: var(--on); }
.hero__scores strong { font: 800 1.3rem var(--font-display); color: var(--accent); }
.hero__scores span { font-weight: 700; color: var(--muted); font-size: .9rem; }
.hero__visual { position: relative; max-width: 520px; margin-inline: auto; }
.hero__visual img { width: 100%; }
.hero__sticker { position: absolute; left: -4px; bottom: 6%; transform: rotate(-6deg); box-shadow: var(--shadow); }

/* ---------- Course cards ---------- */
.course-card { --tone: var(--soft); position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--tone); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.course-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-accent); }
.course-card--violet { --tone: var(--accent); color: var(--on); }
.course-card--lime { --tone: var(--lime); }
.course-card--coral { --tone: var(--coral); }
.course-card--sky { --tone: var(--sky); }
.course-card--sun { --tone: var(--sun); }
.course-card .sticker { background: var(--on); color: var(--ink); }
.course-card__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--line); background: var(--bg); }
.course-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.course-card__title { font-size: clamp(1.25rem, 4vw, 1.6rem); margin: 0; }
.course-card__title a { color: inherit; }
.course-card__summary { margin: 0; opacity: .92; }
.course-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 2px dashed currentColor; }
.course-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.course-card__more svg { width: 20px; height: 20px; }
.price strong { font: 800 1.35rem var(--font-display); }

.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.facts div { display: grid; gap: 0; }
.facts dt { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; opacity: .85; }
.facts dt svg { width: 16px; height: 16px; }
.facts dd { margin: 0; font-weight: 800; }

/* Courses page rows */
.course-list { display: grid; gap: 28px; }
.course-row { --tone: var(--soft); position: relative; display: grid; overflow: hidden; background: var(--on); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.course-row:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-accent); }
.course-row__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tone); border-bottom: var(--line); }
.course-row__body { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.course-row__body p { margin: 0; color: var(--muted); }
.course-row__title { font-size: clamp(1.35rem, 4.4vw, 2rem); margin: 0; }
.course-row__title a { color: inherit; }
.course-row .sticker--violet { background: var(--accent); color: var(--on); }
.course-row .course-card__foot { border-top-color: var(--soft); }

/* Course page */
.course-hero { --tone: var(--soft); background: var(--tone); border-bottom: var(--line); padding-block: 24px 40px; }
.course-hero.course-card--violet { color: var(--on); }
.course-hero.course-card--violet .breadcrumbs a, .course-hero.course-card--violet .page-hero__lead { color: var(--on); }
.course-hero .sticker { background: var(--on); color: var(--ink); margin-bottom: 14px; }
.course-hero__grid { display: grid; gap: 28px; align-items: center; }
.course-hero__image { width: 100%; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg); }
.course-hero .page-hero__lead { margin-bottom: 24px; }

.bento--facts { grid-template-columns: 1fr 1fr; }
.fact-card { padding: 18px; display: grid; gap: 4px; align-content: start; }
.fact-card > svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 4px; }
.fact-card__label { font: 700 .85rem var(--font-body); color: var(--muted); margin: 0; letter-spacing: 0; }
.fact-card__value { font: 800 1.05rem/1.3 var(--font-display); margin: 0; }
.fact-card__value--big { font-size: 1.6rem; }
.fact-card__value small { font: 700 .9rem var(--font-body); }
.fact-card--accent { background: var(--lime); }
.fact-card--accent > svg { color: var(--ink); }
.fact-card--accent .fact-card__label { color: var(--ink); }
.fact-card--wide { grid-column: 1 / -1; }
.schedule { list-style: none; display: grid; gap: 6px; font-weight: 700; }
.schedule li { padding: 8px 12px; border-radius: 12px; background: var(--bg); }

.course-detail { display: grid; gap: 28px; align-items: start; }
.prose { max-width: 70ch; font-size: 1.07rem; }
.prose h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); margin-top: 1.6em; }
.audience { padding: 22px; background: var(--soft); }
.audience__title { font-size: 1.2rem; }
.checklist { list-style: none; display: grid; gap: 10px; margin-bottom: 1em; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checklist svg { flex: none; width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }

.modules { list-style: none; display: grid; gap: 18px; counter-reset: module; }
.module { padding: 20px; box-shadow: 4px 4px 0 var(--accent); }
.module__num { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--on); font: 700 .75rem var(--font-display); }
.module__title { font-size: 1.1rem; margin-bottom: .4em; }
.module p { margin: 0; color: var(--muted); }

/* ---------- Results ---------- */
.result-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--on); }
.result-card--violet { background: var(--accent); color: var(--on); }
.result-card--violet .sticker--ink { background: var(--on); color: var(--ink); }
.result-card--lime { background: var(--lime); }
.result-card--sun { background: var(--sun); }
.result-card--sky { background: var(--sky); }
.result-card--coral { background: var(--coral); }
.result-card--soft { background: var(--on); }
.result-card__score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; }
.result-card__value { font: 800 clamp(3.4rem, 15vw, 5rem)/.95 var(--font-display); letter-spacing: -.04em; }
.result-card__max { font: 700 1.1rem var(--font-display); opacity: .8; }
.result-card__person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.result-card__person img { width: 56px; height: 56px; border-radius: 50%; border: var(--line); background: var(--on); flex: none; object-fit: cover; }
.result-card__name { font-size: 1rem; margin: 0 0 2px; }
.result-card__detail { margin: 0; font-size: .9rem; font-weight: 600; opacity: .9; }
.result-card[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter { min-height: 44px; padding: 8px 18px; border: var(--line); border-radius: 999px; background: var(--on); font-weight: 800; cursor: pointer; }
.filter.is-active { background: var(--ink); color: var(--on); }

/* ---------- Teachers ---------- */
.teacher-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 20px; background: var(--on); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.teacher-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-accent); }
.teacher-card__photo { position: relative; margin-bottom: 10px; }
.teacher-card__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: var(--line); background: var(--soft); }
.teacher-card__badge { position: absolute; right: 10px; bottom: -12px; transform: rotate(3deg); }
.teacher-card__name { font-size: 1.15rem; margin: 6px 0 0; }
.teacher-card__name a { color: inherit; }
.teacher-card__role { margin: 0; color: var(--muted); font-weight: 600; }
.teacher-card__cred { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-weight: 800; font-size: .92rem; }
.teacher-card__cred svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.profile { padding-block: 24px 56px; }
.profile__grid { display: grid; gap: 28px; align-items: start; }
.profile__photo { position: relative; max-width: 420px; }
.profile__photo img { width: 100%; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-accent); background: var(--soft); }
.profile__photo .sticker { position: absolute; left: -6px; bottom: 18px; box-shadow: var(--shadow); }
.profile__role { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.profile__subtitle { font-size: 1.2rem; margin-top: 1.6em; }
.sticker-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.sticker-list .sticker:nth-child(even) { transform: rotate(2deg); }
.pill-links { list-style: none; display: grid; gap: 8px; }

/* ---------- Method steps ---------- */
.steps { list-style: none; display: grid; gap: 18px; }
.step { position: relative; padding: 22px; border: 2px solid var(--on); border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
.step__num { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border: 2px solid var(--on); border-radius: 50%; background: var(--lime); color: var(--ink); font: 800 1.2rem var(--font-display); transform: rotate(-6deg); }
.step:nth-child(2) .step__num { background: var(--sky); }
.step:nth-child(3) .step__num { background: var(--sun); }
.step:nth-child(4) .step__num { background: var(--coral); }
.step__title { font-size: 1.15rem; color: var(--on); }
.step__text { margin: 0; color: #D6D2F5; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 8px 16px 4px; margin-inline: -4px; }
.testimonial { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 24px; }
.testimonial__stars { display: flex; gap: 3px; color: var(--sun); }
.testimonial__stars svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 1.5px; }
.testimonial__text { margin: 0; font-size: 1.02rem; }
.testimonial__text p { margin: 0; }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial__author strong { display: block; }
.testimonial__author small { display: block; color: var(--muted); font-weight: 700; font-size: .85rem; }
.testimonial__avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: var(--line); border-radius: 50%; background: var(--soft); font: 800 .95rem var(--font-display); }
.testimonial:nth-child(2) .testimonial__avatar { background: var(--lime); }
.testimonial:nth-child(3) .testimonial__avatar { background: var(--sky); }
.testimonial:nth-child(4) .testimonial__avatar { background: var(--coral); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 28px; }
.faq-layout .section-text { margin-bottom: 20px; }
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--on); border: var(--line); border-radius: 18px; }
.faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 800; font-size: 1.05rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 14px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; border: var(--line); border-radius: 50%; background: var(--lime); font: 800 1.2rem/1 var(--font-display); }
.faq__item[open] summary::after { content: "−"; background: var(--sun); }
.faq__item p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* ---------- Blog ---------- */
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--on); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-accent); }
.post-card__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--line); background: var(--soft); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.post-card__title { font-size: 1.15rem; margin: 0; }
.post-card__title a { color: inherit; }
.post-card__excerpt { margin: 0; color: var(--muted); }
.post-card .link-arrow { margin-top: auto; }

.article__head { padding-block: 24px 20px; max-width: 900px; }
.article__head .post-card__meta { margin-bottom: 14px; }
.article__cover img { width: 100%; max-width: 1024px; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-accent); background: var(--soft); }
.article__body { padding-block: 32px 56px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination__item { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: var(--line); border-radius: 999px; background: var(--on); font-weight: 800; text-decoration: none; }
.pagination__item.is-active { background: var(--ink); color: var(--on); }
.pagination__item.is-disabled { opacity: .45; }
.empty { font-size: 1.1rem; color: var(--muted); }

/* ---------- Page hero / breadcrumbs ---------- */
.page-hero { position: relative; padding-block: 28px 36px; border-bottom: var(--line); background: var(--soft); overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero__title { font-size: clamp(1.9rem, 7.4vw, 3.4rem); max-width: 20ch; margin-bottom: 14px; }
.page-hero__lead { font-size: 1.1rem; max-width: 62ch; color: var(--muted); margin: 0; }
.page-hero__spark { position: absolute; right: var(--gutter); top: 0; width: 44px; height: 44px; color: var(--accent); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 16px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumbs a { color: var(--accent); }
.course-hero.course-card--violet .breadcrumbs ol { color: var(--on); }

/* ---------- Enrolment form ---------- */
.enroll { position: relative; padding-block: 56px; background: var(--accent); color: var(--on); border-block: var(--line); overflow: hidden; }
.enroll__grid { display: grid; gap: 28px; align-items: start; }
.enroll__intro { position: relative; }
.enroll__text { font-size: 1.1rem; color: #EDEAFF; max-width: 46ch; }
.enroll__contacts { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.enroll__contacts a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.enroll__contacts svg { width: 40px; height: 40px; padding: 9px; border: 2px solid var(--on); border-radius: 50%; background: var(--ink); }
.enroll__arrow { display: none; }
.enroll__form { padding: 22px; color: var(--ink); display: grid; gap: 14px; }
.enroll__note { margin: 0; font-size: .9rem; color: var(--muted); text-align: center; }

.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 14px; }
.field label { font-weight: 800; font-size: .92rem; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px;
    border: var(--line); border-radius: var(--radius-sm);
    background: var(--bg); font-size: 1rem; font-weight: 600;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23211C55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; background: var(--on); }
.field [aria-invalid="true"] { border-color: #C0262D; background: #FFF1F1; }
.field__error { margin: 0; color: #B3141C; font-weight: 700; font-size: .9rem; }
.form-errors { padding: 14px 16px; border: 2px solid #B3141C; border-radius: var(--radius-sm); background: #FFF1F1; color: #8A0F15; }
.form-errors ul { margin: 6px 0 0 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 20px; display: grid; gap: 6px; align-content: start; }
.contact-card > svg { width: 30px; height: 30px; color: var(--accent); }
.contact-card h2 { font: 700 .9rem var(--font-body); color: var(--muted); margin: 0; letter-spacing: 0; }
.contact-card p { margin: 0; font-weight: 700; }
.contact-card > a:not(.link-arrow) { font: 800 1.1rem var(--font-display); text-decoration: none; overflow-wrap: anywhere; }
.contact-card--social .social a { background: var(--soft); color: var(--ink); }
.map { overflow: hidden; min-height: 320px; padding: 0; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

.thanks { padding-block: 56px; }
.thanks__box { max-width: 720px; padding: 36px 24px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.thanks__box .hero__actions { justify-content: center; margin-top: 16px; }
.thanks__icon { width: 72px; height: 72px; padding: 14px; border: var(--line); border-radius: 50%; background: var(--lime); }
.error-code { margin: 0; font: 800 clamp(4rem, 20vw, 7rem)/1 var(--font-display); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D6D2F5; padding-top: 48px; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__brand img { height: 46px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { max-width: 40ch; }
.site-footer__title { font-size: 1rem; color: var(--on); margin-bottom: 14px; }
.site-footer__links, .site-footer__contact { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--on); text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact svg { width: 20px; height: 20px; flex: none; color: var(--lime); margin-top: 3px; }
.site-footer__bottom { margin-top: 40px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid currentColor; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social svg { width: 20px; height: 20px; }

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
    :root { --gutter: 24px; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .bento--courses, .bento--results { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr 1fr; }
    .contact-cards { grid-template-columns: 1fr 1fr; }
    .contact-card--social { grid-column: 1 / -1; }
    .steps { grid-template-columns: 1fr 1fr; }
    .modules { grid-template-columns: 1fr 1fr; }
    .bento--facts { grid-template-columns: repeat(3, 1fr); }
    .testimonials { grid-auto-columns: 60%; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .enroll__form { padding: 28px; }
}

/* ---------- ≥ 900px ---------- */
@media (min-width: 900px) {
    .section { padding-block: 88px; }
    .section--tight { padding-block: 48px 88px; }
    .hero { padding-block: 56px 80px; }
    .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
    .hero__arrow { display: block; position: absolute; right: -10px; top: -82px; width: 110px; height: 82px; color: var(--accent); transform: rotate(18deg); pointer-events: none; }
    .course-row { grid-template-columns: 5fr 7fr; }
    .course-row__image { height: 100%; aspect-ratio: auto; border-bottom: 0; border-right: var(--line); }
    .course-row__body { padding: 32px; justify-content: center; }
    .course-hero { padding-block: 32px 56px; }
    .course-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
    .course-detail { grid-template-columns: 1.4fr 1fr; gap: 48px; }
    .profile__grid { grid-template-columns: 5fr 7fr; gap: 56px; }
    .enroll { padding-block: 88px; }
    .enroll__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
    .enroll__arrow { display: block; width: 150px; height: 112px; margin-top: 28px; margin-left: 40%; color: var(--lime); transform: rotate(-60deg) scaleX(-1); }
    .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 56px; }
    .contact-grid { grid-template-columns: 1.1fr .9fr; }
    .map, .map iframe { min-height: 100%; }
    .testimonials { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; padding: 0; margin: 0; }
    .page-hero { padding-block: 40px 56px; }
    .page-hero__spark { width: 64px; height: 64px; top: 10px; }
}

/* ---------- ≥ 1080px: desktop header, bento layouts ---------- */
@media (min-width: 1080px) {
    :root { --header-h: 84px; }
    body { padding-bottom: 0; }
    .mobile-actions { display: none; }
    .nav-toggle { display: none; }
    .site-header__cta { display: inline-flex; }
    .site-header__logo img { height: 48px; }
    .site-nav { position: static; inset: auto; flex-direction: row; align-items: center; padding: 0; background: none; overflow: visible; visibility: visible; opacity: 1; transform: none; transition: none; margin-right: 8px; }
    .site-nav__list { display: flex; gap: 4px; }
    .site-nav__list a { padding: 8px 12px; font: 700 .98rem var(--font-body); border: 2px solid transparent; border-radius: 999px; }
    .site-nav__list a:hover { border-color: var(--ink); background: var(--on); }
    .site-nav__list a[aria-current="page"] { color: var(--ink); background: var(--lime); border-color: var(--ink); }
    .site-nav__home, .site-nav__cta, .site-nav__contact { display: none !important; }

    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
    .bento--courses { grid-template-columns: 1.25fr 1fr 1fr; }
    .bento--courses > :first-child { grid-row: span 2; }
    .bento--courses > :nth-child(2) { grid-column: span 2; }
    .bento--results { grid-template-columns: repeat(3, 1fr); }
    .bento--featured > :first-child { grid-row: span 2; justify-content: space-between; }
    .bento--featured > :first-child .result-card__value { font-size: 7.5rem; }
    .bento--results-all { grid-template-columns: repeat(4, 1fr); }
    .bento--facts { grid-template-columns: repeat(4, 1fr); }
    .fact-card--wide { grid-column: span 1; }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .steps .step:not(:last-child)::after { content: ""; position: absolute; top: 49px; left: calc(22px + 64px); right: -20px; border-top: 3px dashed var(--lime); }
    .modules { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

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