/* ===========================================================================
   English By Helia — public stylesheet
   ---------------------------------------------------------------------------
   Structure:
     1.  Design tokens (light + dark)
     2.  Reset & base
     3.  Layout primitives
     4.  Typography & utilities
     5.  Buttons, chips, badges
     6.  Forms
     7.  Header & navigation
     8.  Loader, toasts, modals
     9.  Hero
     10. Sections & components
     11. Booking calendar
     12. Blog, gallery, footer
     13. Mobile app-like layer
     14. Motion & accessibility
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------------- */

:root {
    /* Brand — overridden inline from admin theme settings */
    --brand-500: #6366f1;
    --brand-600: #8b5cf6;
    --brand-accent: #22d3ee;

    --brand-gradient: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    --brand-gradient-soft: linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 16%, transparent),
                                                    color-mix(in srgb, var(--brand-600) 16%, transparent));

    /* Neutrals — light theme */
    --bg: #f6f7fb;
    --bg-elevated: #ffffff;
    --bg-sunken: #eef0f7;
    --surface: rgba(255, 255, 255, .72);
    --surface-strong: rgba(255, 255, 255, .9);
    --border: rgba(17, 24, 39, .09);
    --border-strong: rgba(17, 24, 39, .16);

    --text: #0f1420;
    --text-muted: #5a6478;
    --text-faint: #8b93a5;
    --text-invert: #ffffff;

    --ok: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(15, 20, 32, .05), 0 1px 3px rgba(15, 20, 32, .06);
    --shadow-md: 0 4px 12px rgba(15, 20, 32, .07), 0 12px 28px rgba(15, 20, 32, .06);
    --shadow-lg: 0 12px 32px rgba(15, 20, 32, .10), 0 32px 64px rgba(15, 20, 32, .08);
    --shadow-brand: 0 10px 30px color-mix(in srgb, var(--brand-500) 28%, transparent);

    /* Radii */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-full: 999px;

    /* Spacing scale */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;
    --s-10: 128px;

    /* Type scale — fluid */
    --t-xs: clamp(.72rem, .7rem + .1vw, .78rem);
    --t-sm: clamp(.82rem, .8rem + .15vw, .9rem);
    --t-base: clamp(.94rem, .9rem + .2vw, 1.02rem);
    --t-lg: clamp(1.06rem, 1rem + .3vw, 1.2rem);
    --t-xl: clamp(1.25rem, 1.1rem + .6vw, 1.55rem);
    --t-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
    --t-3xl: clamp(1.9rem, 1.4rem + 2vw, 3rem);
    --t-4xl: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);

    --font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur-fast: .18s;
    --dur: .32s;
    --dur-slow: .6s;

    --container: 1200px;
    --header-h: 76px;

    --blur: saturate(180%) blur(20px);

    color-scheme: light;
}

[data-theme='dark'] {
    --bg: #080a0f;
    --bg-elevated: #10141d;
    --bg-sunken: #0c0f16;
    --surface: rgba(24, 29, 41, .62);
    --surface-strong: rgba(24, 29, 41, .86);
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .17);

    --text: #eef1f7;
    --text-muted: #a2abbd;
    --text-faint: #737d92;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);

    color-scheme: dark;
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------------- */

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

/*
 * An author `display:` rule beats the browser's `[hidden] { display: none }`
 * no matter how weak its selector, so any styled element carrying the hidden
 * attribute stays on screen — and, being on screen, keeps swallowing clicks.
 * That is how the booking calendar ended up sealed behind its own loading
 * spinner. One rule closes the whole category.
 */
[hidden] { display: none !important; }

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    /* `clip` (not `hidden`) discards sideways overflow without turning the
       root into a scroll container. Decorative blurs and orbs deliberately
       sit outside the viewport; in RTL any leak here scrolls the page away
       from the content, so this is a hard guard rather than a nicety. */
    overflow-x: clip;
}

body {
    font-family: var(--font);
    font-size: var(--t-base);
    line-height: 1.85;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img, svg, video, canvas, iframe {
    display: block;
    max-width: 100%;
}

img { height: auto; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.01em;
}

:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

::selection {
    background: color-mix(in srgb, var(--brand-500) 26%, transparent);
    color: var(--text);
}

/* Scrollbar — subtle, matches the theme */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--r-full);
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); background-clip: content-box; }

/* ---------------------------------------------------------------------------
   3. Layout primitives
   --------------------------------------------------------------------------- */

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.container--narrow { width: min(100% - 2.5rem, 820px); }

.section {
    position: relative;
    padding-block: clamp(var(--s-7), 8vw, var(--s-9));
}

.section__spacer { height: var(--s-7); }

.section__cta {
    display: flex;
    justify-content: center;
    margin-top: var(--s-7);
}

/* Ambient gradient wash behind certain sections */
.section__aurora {
    position: absolute;
    inset-inline-start: -10%;
    top: 10%;
    width: 60vw;
    height: 60vw;
    max-width: 720px;
    max-height: 720px;
    background: radial-gradient(circle at 30% 30%,
                color-mix(in srgb, var(--brand-500) 18%, transparent), transparent 62%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.section__aurora--reverse {
    inset-inline-start: auto;
    inset-inline-end: -10%;
    background: radial-gradient(circle at 70% 40%,
                color-mix(in srgb, var(--brand-600) 18%, transparent), transparent 62%);
}

.section > .container { position: relative; z-index: 1; }

.card-grid {
    display: grid;
    gap: clamp(var(--s-4), 2.4vw, var(--s-5));
}

.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Masonry-ish columns for reviews of varying length */
.masonry { columns: 1; column-gap: var(--s-5); }
.masonry > * { break-inside: avoid; margin-bottom: var(--s-5); }

@media (min-width: 720px)  { .masonry--3 { columns: 2; } }
@media (min-width: 1080px) { .masonry--3 { columns: 3; } }

/* ---------------------------------------------------------------------------
   4. Typography & utilities
   --------------------------------------------------------------------------- */

.sr-only {
    position: absolute;
    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;
    inset-inline-start: var(--s-4);
    top: -100px;
    z-index: 2000;
    padding: var(--s-3) var(--s-5);
    background: var(--brand-500);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: var(--s-4); }

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Keep a visible colour if background-clip is unsupported */
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-1) var(--s-3);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--brand-500);
    border-radius: var(--r-full);
    background: color-mix(in srgb, var(--brand-500) 10%, transparent);
}

.eyebrow--glass {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--text);
}

.eyebrow__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand-500);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 20%, transparent);
}

.section-head { margin-bottom: clamp(var(--s-6), 4vw, var(--s-7)); }
.section-head--center { text-align: center; }
.section-head--center .section-head__subtitle { margin-inline: auto; }

.section-head__title {
    margin-top: var(--s-3);
    font-size: var(--t-3xl);
    font-weight: 800;
    letter-spacing: -.02em;
}

.section-head__subtitle {
    margin-top: var(--s-3);
    max-width: 60ch;
    color: var(--text-muted);
    font-size: var(--t-lg);
}

/* Glass surfaces */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

/* Rich text from the editor */
.rich-text { color: var(--text-muted); font-size: var(--t-lg); line-height: 2.1; }
.rich-text > * + * { margin-top: var(--s-4); }
.rich-text h2 { color: var(--text); font-size: var(--t-2xl); margin-top: var(--s-6); }
.rich-text h3 { color: var(--text); font-size: var(--t-xl); margin-top: var(--s-5); }
.rich-text strong { color: var(--text); font-weight: 700; }
.rich-text a { color: var(--brand-500); text-decoration: underline; text-underline-offset: 4px; }
.rich-text ul, .rich-text ol { padding-inline-start: var(--s-5); }
.rich-text ul li { list-style: disc; }
.rich-text ol li { list-style: decimal; }
.rich-text li + li { margin-top: var(--s-2); }
.rich-text img { border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.rich-text blockquote {
    padding: var(--s-4) var(--s-5);
    border-inline-start: 3px solid var(--brand-500);
    background: color-mix(in srgb, var(--brand-500) 6%, transparent);
    border-radius: var(--r-sm);
    color: var(--text);
}
.rich-text pre {
    padding: var(--s-4);
    background: var(--bg-sunken);
    border-radius: var(--r-sm);
    overflow-x: auto;
    direction: ltr;
}
.rich-text code { font-family: ui-monospace, monospace; font-size: .9em; }
.rich-text table { width: 100%; border-collapse: collapse; }
.rich-text th, .rich-text td { padding: var(--s-3); border: 1px solid var(--border); }

/* Icons */
.icon { flex: none; width: 24px; height: 24px; }
.icon--xs { width: 16px; height: 16px; }
.icon--sm { width: 20px; height: 20px; }
.icon--lg { width: 34px; height: 34px; }
.icon--xl { width: 52px; height: 52px; }

/* ---------------------------------------------------------------------------
   5. Buttons, chips, badges
   --------------------------------------------------------------------------- */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: .72rem 1.35rem;
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid transparent;
    border-radius: var(--r-full);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease),
                box-shadow var(--dur) var(--ease),
                background var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled, .btn.is-loading { opacity: .6; pointer-events: none; }

.btn--sm { padding: .5rem 1rem; font-size: var(--t-xs); }
.btn--lg { padding: .95rem 1.85rem; font-size: var(--t-base); }
.btn--block { width: 100%; }

.btn--primary {
    --btn-bg: var(--brand-gradient);
    --btn-fg: #fff;
    box-shadow: var(--shadow-brand);
}

/* Sheen sweep on hover */
.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform var(--dur-slow) var(--ease);
    z-index: -1;
}

.btn--primary:hover::after { transform: translateX(120%); }

.btn--glass {
    --btn-bg: var(--surface);
    border-color: var(--border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.btn--glass:hover { border-color: var(--brand-500); }

.btn--ghost { border-color: var(--border-strong); }
.btn--ghost:hover {
    border-color: var(--brand-500);
    color: var(--brand-500);
    background: color-mix(in srgb, var(--brand-500) 7%, transparent);
}

.btn--light { --btn-bg: #fff; --btn-fg: #0f1420; box-shadow: var(--shadow-md); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); --btn-fg: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; }

.btn--play { border-color: var(--border-strong); }
.btn__play {
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: all var(--dur-fast) var(--ease);
}

.icon-btn:hover { color: var(--brand-500); border-color: var(--brand-500); }
.icon-btn--sm { width: 34px; height: 34px; border-radius: var(--r-xs); }
.icon-btn--danger:hover { color: var(--danger); border-color: var(--danger); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: .38rem .85rem;
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-sunken);
    border: 1px solid transparent;
    border-radius: var(--r-full);
    transition: all var(--dur-fast) var(--ease);
}

.chip:hover { color: var(--brand-500); border-color: var(--brand-500); }
.chip.is-active { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.chip--soft { background: color-mix(in srgb, var(--brand-500) 9%, transparent); color: var(--brand-500); }
.chip__count {
    padding: 0 .4rem;
    background: var(--brand-500);
    color: #fff;
    border-radius: var(--r-full);
    font-size: .7em;
}

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip-row--wrap { gap: var(--s-2); }
.chip-row--center { justify-content: center; margin-bottom: var(--s-6); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: .25rem .7rem;
    font-size: var(--t-xs);
    font-weight: 600;
    border-radius: var(--r-full);
    background: var(--bg-sunken);
    color: var(--text-muted);
}

.badge--glass {
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    color: #fff;
}

.badge--pending   { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge--confirmed { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge--completed { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }
.badge--cancelled,
.badge--no_show   { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

.date-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: .5rem 1rem;
    border-radius: var(--r-full);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: var(--t-sm);
    font-weight: 600;
    transition: all var(--dur-fast) var(--ease);
}

.date-chip:hover {
    border-color: var(--brand-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Star rating display */
.stars, .review-card__stars { display: inline-flex; gap: 2px; color: var(--text-faint); }
.star.is-filled, .is-filled { color: #fbbf24; }
.star.is-filled svg { fill: currentColor; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--open { background: var(--ok); }
.dot--full { background: var(--warn); }
.dot--holiday { background: var(--danger); }
.dot--brand { background: var(--brand-500); }

.pulse-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70%  { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.avatar--initial {
    display: grid;
    place-items: center;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
}

.spinner {
    width: 26px; height: 26px;
    border: 2.5px solid var(--border);
    border-top-color: var(--brand-500);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
   6. Forms
   --------------------------------------------------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--s-4);
}

.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: var(--s-2); }

.field__label {
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text);
}

.field__hint { font-size: var(--t-xs); color: var(--text-faint); }
.field__locale { font-size: var(--t-xs); color: var(--text-faint); margin-top: var(--s-2); }

.req { color: var(--danger); }

.input {
    width: 100%;
    padding: .8rem 1rem;
    font-size: var(--t-sm);
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    transition: border-color var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease),
                background var(--dur-fast) var(--ease);
}

.input::placeholder { color: var(--text-faint); }

.input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 14%, transparent);
}

.input:user-invalid { border-color: var(--danger); }

textarea.input { resize: vertical; min-height: 110px; line-height: 1.9; }
.input--code { font-family: ui-monospace, monospace; font-size: var(--t-xs); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-inline-end: 2.4rem; }
.select-wrap__arrow {
    position: absolute;
    inset-inline-end: var(--s-3);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-faint);
}

.input-group { position: relative; display: flex; }
.input-group .input { padding-inline-end: 3rem; }
.input-group__btn {
    position: absolute;
    inset-inline-end: var(--s-2);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    padding: var(--s-1);
}

/* Segmented control (online / in person) */
.segmented {
    display: grid;
    grid-auto-flow: column;
    gap: var(--s-2);
    padding: var(--s-1);
    background: var(--bg-sunken);
    border-radius: var(--r-sm);
}

.segmented__option input { position: absolute; opacity: 0; pointer-events: none; }

.segmented__option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: .6rem 1rem;
    border-radius: var(--r-xs);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.segmented__option input:checked + span {
    background: var(--bg-elevated);
    color: var(--brand-500);
    box-shadow: var(--shadow-sm);
}

.segmented__option input:focus-visible + span { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* Checkbox */
.checkbox { display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox__box {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border: 1.5px solid var(--border-strong);
    border-radius: 7px;
    color: transparent;
    transition: all var(--dur-fast) var(--ease);
}

.checkbox input:checked + .checkbox__box {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
}

.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.checkbox__label { font-size: var(--t-sm); color: var(--text-muted); }
.checkbox--sm .checkbox__box { width: 18px; height: 18px; border-radius: 6px; }

/* Star rating input */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: var(--s-1); }
.rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-input label { color: var(--text-faint); cursor: pointer; transition: color var(--dur-fast) var(--ease); }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: #fbbf24; }
.rating-input input:checked ~ label svg { fill: currentColor; }

/* Captcha */
.captcha { display: flex; align-items: center; gap: var(--s-3); }
.captcha__question {
    padding: .7rem 1rem;
    background: var(--bg-sunken);
    border-radius: var(--r-sm);
    font-weight: 700;
    letter-spacing: .05em;
    white-space: nowrap;
}
.captcha .input { flex: 1; }

/* Honeypot — hidden from humans, present for bots */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-note { min-height: 1.5em; font-size: var(--t-sm); }
.form-note.is-error { color: var(--danger); }
.form-note.is-success { color: var(--ok); }

.search-form {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    max-width: 520px;
    margin-top: var(--s-5);
    padding: var(--s-2);
    border-radius: var(--r-full);
}

.search-form .input { border: 0; background: transparent; }
.search-form .input:focus { box-shadow: none; }
.search-form__icon { color: var(--text-faint); margin-inline-start: var(--s-3); }

.notice {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-md);
}

.notice--warning { border-inline-start: 3px solid var(--warn); color: var(--warn); }

.empty-state {
    display: grid;
    justify-items: center;
    gap: var(--s-4);
    padding: var(--s-8) var(--s-5);
    text-align: center;
    color: var(--text-muted);
}

.empty-state svg { color: var(--text-faint); }

/* ---------------------------------------------------------------------------
   7. Header & navigation
   --------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 900;
    height: var(--header-h);
    transition: background var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                height var(--dur) var(--ease);
}

.site-header.is-stuck {
    background: var(--surface-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 66px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    height: 100%;
}

.brand { display: flex; align-items: center; gap: var(--s-3); }

.brand__mark {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 13px;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: var(--shadow-brand);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__name { font-weight: 800; font-size: var(--t-base); }
.brand__tag { font-size: var(--t-xs); color: var(--text-muted); }
.brand__logo { max-height: 42px; width: auto; object-fit: contain; }

.nav-desktop { display: none; }

.nav-list { display: flex; align-items: center; gap: var(--s-1); }

.nav-link {
    position: relative;
    padding: .5rem .85rem;
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--r-sm);
    transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav-link:hover { color: var(--text); background: var(--bg-sunken); }
.nav-link.is-active { color: var(--brand-500); }

.nav-link.is-active::after {
    content: '';
    position: absolute;
    inset-inline: 25%;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-gradient);
}

.site-header__actions { display: flex; align-items: center; gap: var(--s-2); }

.lang-switch {
    display: flex;
    align-items: center;
    gap: var(--s-1);
    padding: .45rem .7rem;
    font-size: var(--t-xs);
    font-weight: 700;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--dur-fast) var(--ease);
}

.lang-switch:hover { color: var(--brand-500); border-color: var(--brand-500); }

.theme-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    overflow: hidden;
}

.theme-toggle:hover { color: var(--brand-500); border-color: var(--brand-500); }

.theme-toggle__sun, .theme-toggle__moon {
    position: absolute;
    display: grid;
    place-items: center;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.theme-toggle__moon { transform: translateY(120%) rotate(-40deg); opacity: 0; }
[data-theme='dark'] .theme-toggle__sun { transform: translateY(-120%) rotate(40deg); opacity: 0; }
[data-theme='dark'] .theme-toggle__moon { transform: none; opacity: 1; }

.nav-cta { display: none; }

.menu-toggle {
    display: grid;
    gap: 5px;
    width: 42px; height: 42px;
    place-content: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

.menu-toggle span {
    display: block;
    width: 18px; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: transparent;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--brand-gradient);
    transition: width .1s linear;
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 1000; }
.mobile-menu[hidden] { display: none; }

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 14, .55);
    backdrop-filter: blur(6px);
    animation: fade var(--dur) var(--ease);
}

.mobile-menu__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(88vw, 400px);
    display: flex;
    flex-direction: column;
    padding: var(--s-5);
    background: var(--bg-elevated);
    border-inline-start: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: slideIn var(--dur) var(--ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(var(--s-5), env(safe-area-inset-bottom));
}

@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(var(--slide-from, 100%)); opacity: .4; } }

[dir='rtl'] .mobile-menu__panel { --slide-from: -100%; }

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s-5);
}

.mobile-menu__list { display: grid; gap: var(--s-1); }

.mobile-menu__link {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4);
    border-radius: var(--r-md);
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--dur-fast) var(--ease);
    animation: menuItem var(--dur) var(--ease) backwards;
    animation-delay: calc(var(--i) * 45ms);
}

@keyframes menuItem { from { opacity: 0; transform: translateY(10px); } }

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
    background: color-mix(in srgb, var(--brand-500) 9%, transparent);
    color: var(--brand-500);
}

.mobile-menu__chev { margin-inline-start: auto; opacity: .5; }

.mobile-menu__foot {
    margin-top: auto;
    padding-top: var(--s-5);
    display: grid;
    gap: var(--s-4);
    justify-items: center;
}

/* Social */
.social { display: flex; gap: var(--s-2); }

.social a {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--dur-fast) var(--ease);
}

.social a:hover {
    color: #fff;
    background: var(--brand-gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

/* Breadcrumbs */
.breadcrumbs { padding-top: calc(var(--header-h) + var(--s-4)); font-size: var(--t-sm); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); color: var(--text-faint); }
.breadcrumbs__item { display: flex; align-items: center; gap: var(--s-2); }
.breadcrumbs__item a:hover { color: var(--brand-500); }
.breadcrumbs__sep { opacity: .5; }

/* ---------------------------------------------------------------------------
   8. Loader, toasts, modals
   --------------------------------------------------------------------------- */

.loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow);
}

.loader.is-done { opacity: 0; visibility: hidden; }

.loader__inner { display: grid; justify-items: center; gap: var(--s-5); }

.loader__mark { position: relative; display: grid; place-items: center; width: 84px; height: 84px; }

.loader__letter {
    font-size: 2rem;
    font-weight: 900;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--brand-500);
    animation: spin 1s linear infinite;
}

.loader__bar {
    width: 160px; height: 3px;
    border-radius: var(--r-full);
    background: var(--bg-sunken);
    overflow: hidden;
}

.loader__bar span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-gradient);
    animation: loaderBar 1.2s var(--ease) infinite;
}

@keyframes loaderBar {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(310%); }
}

.toast-stack {
    position: fixed;
    inset-block-end: max(var(--s-5), env(safe-area-inset-bottom));
    inset-inline-end: var(--s-5);
    z-index: 2000;
    display: grid;
    gap: var(--s-3);
    width: min(92vw, 380px);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4);
    border-radius: var(--r-md);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-lg);
    animation: toastIn var(--dur) var(--ease-out);
}

.toast.is-hiding { animation: toastOut var(--dur) var(--ease) forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(16px) scale(.97); } }

.toast__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-xs); flex: none; }
.toast--success .toast__icon { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.toast--error   .toast__icon { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.toast--warning .toast__icon { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.toast--info    .toast__icon { background: color-mix(in srgb, var(--info) 18%, transparent); color: var(--info); }

.toast__text { flex: 1; font-size: var(--t-sm); }
.toast__close { color: var(--text-faint); }

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    padding: var(--s-5);
    background: rgba(4, 6, 12, .86);
    backdrop-filter: blur(10px);
    animation: fade var(--dur) var(--ease);
}

.video-modal[hidden] { display: none; }

.video-modal__frame {
    width: min(100%, 980px);
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-modal__frame iframe,
.video-modal__frame img { width: 100%; height: 100%; border: 0; object-fit: contain; }

.video-modal__close {
    position: absolute;
    top: var(--s-5);
    inset-inline-end: var(--s-5);
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* ---------------------------------------------------------------------------
   9. Hero
   --------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: min(100svh, 900px);
    display: flex;
    align-items: center;
    padding-block: calc(var(--header-h) + var(--s-7)) var(--s-8);
    overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__mesh {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(40% 45% at 20% 25%, color-mix(in srgb, var(--brand-500) 30%, transparent), transparent 60%),
        radial-gradient(35% 40% at 80% 20%, color-mix(in srgb, var(--brand-600) 26%, transparent), transparent 60%),
        radial-gradient(45% 45% at 65% 80%, color-mix(in srgb, var(--brand-accent) 20%, transparent), transparent 62%);
    filter: blur(40px);
    animation: meshDrift 24s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-2%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .5;
    animation: float 14s ease-in-out infinite;
}

.hero__orb--1 { width: 320px; height: 320px; top: 8%;  inset-inline-start: 6%;  background: var(--brand-500); }
.hero__orb--2 { width: 260px; height: 260px; bottom: 12%; inset-inline-end: 10%; background: var(--brand-600); animation-delay: -4s; }
.hero__orb--3 { width: 200px; height: 200px; top: 46%; inset-inline-end: 38%;   background: var(--brand-accent); animation-delay: -8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-28px) scale(1.05); }
}

.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    opacity: .5;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(var(--s-6), 5vw, var(--s-8));
    align-items: center;
}

.hero__title {
    margin-top: var(--s-4);
    font-size: var(--t-4xl);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.03em;
}

.hero__lead {
    margin-top: var(--s-4);
    max-width: 52ch;
    font-size: var(--t-lg);
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-top: var(--s-6);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-6);
    margin-top: var(--s-7);
    padding-top: var(--s-5);
    border-top: 1px solid var(--border);
}

.hero__stats li { display: grid; gap: 2px; }
.hero__stats strong { font-size: var(--t-2xl); font-weight: 800; }
.hero__stats span { font-size: var(--t-xs); color: var(--text-muted); }

.hero__visual { position: relative; display: none; }

.hero__portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-xl);
    overflow: hidden;
    padding: 0;
}

.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }

.hero__portrait-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--text-faint);
    background: var(--brand-gradient-soft);
}

.hero__portrait-glow {
    position: absolute;
    inset: auto -20% -30% -20%;
    height: 55%;
    background: var(--brand-gradient);
    filter: blur(60px);
    opacity: .35;
}

.hero__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-md);
    animation: floatCard 6s ease-in-out infinite;
}

.hero__float span { display: grid; line-height: 1.4; }
.hero__float strong { font-size: var(--t-sm); font-weight: 700; }
.hero__float small { font-size: var(--t-xs); color: var(--text-muted); }

.hero__float--name   { bottom: 8%; inset-inline-start: -6%; }
.hero__float--slot   { top: 12%;  inset-inline-end: -8%; animation-delay: -2s; }
.hero__float--rating { top: 52%;  inset-inline-start: -12%; animation-delay: -4s; gap: var(--s-2); }

.hero__float-icon {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--r-xs);
    background: var(--brand-gradient-soft);
    color: var(--brand-500);
}

.hero__float-icon--live { background: color-mix(in srgb, var(--ok) 15%, transparent); }
.hero__float-stars { display: inline-flex; color: #fbbf24; }
.hero__float-stars svg { fill: currentColor; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.hero__scroll {
    position: absolute;
    inset-inline: 0;
    bottom: var(--s-5);
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: var(--s-2);
    font-size: var(--t-xs);
    color: var(--text-faint);
}

.hero__scroll-mouse {
    width: 22px; height: 34px;
    border: 1.5px solid currentColor;
    border-radius: var(--r-full);
    display: grid;
    justify-items: center;
    padding-top: 6px;
}

.hero__scroll-mouse span {
    width: 3px; height: 6px;
    border-radius: 2px;
    background: currentColor;
    animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes scrollDot {
    0%   { opacity: 0; transform: translateY(0); }
    35%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(11px); }
}

/* ---------------------------------------------------------------------------
   10. Sections & components
   --------------------------------------------------------------------------- */

.page-hero {
    position: relative;
    padding-block: calc(var(--header-h) + var(--s-6)) var(--s-7);
    text-align: center;
    overflow: hidden;
}

.breadcrumbs + .page-hero { padding-top: var(--s-6); }

.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }

.page-hero__orb {
    position: absolute;
    top: -30%;
    /* Physical `left` on purpose: transforms always act on the physical axis,
       so pairing it with inset-inline-start threw this off-canvas in RTL.
       left + translateX centres identically in both writing directions. */
    left: 50%;
    transform: translateX(-50%);
    width: 620px; height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand-500) 22%, transparent), transparent 64%);
    filter: blur(40px);
}

.page-hero > .container { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--s-3); }

.page-hero__title { font-size: var(--t-3xl); font-weight: 800; letter-spacing: -.02em; }
.page-hero__lead { max-width: 60ch; color: var(--text-muted); font-size: var(--t-lg); }

/* About */
.about-grid { display: grid; gap: clamp(var(--s-5), 5vw, var(--s-8)); align-items: center; }
.about-grid__media { position: relative; }

.about-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo__placeholder {
    display: grid; place-items: center; height: 100%;
    color: var(--text-faint);
    background: var(--brand-gradient-soft);
}

.about-badge {
    position: absolute;
    bottom: var(--s-5);
    inset-inline-start: calc(-1 * var(--s-4));
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    color: var(--brand-500);
}

.about-badge span { display: grid; color: var(--text); }
.about-badge strong { font-size: var(--t-xl); font-weight: 800; }
.about-badge small { font-size: var(--t-xs); color: var(--text-muted); }

.about-highlights { display: grid; gap: var(--s-3); margin-top: var(--s-6); }

.about-highlights__item {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-size: var(--t-sm);
    color: var(--text-muted);
}

.about-highlights__icon {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    flex: none;
    border-radius: var(--r-xs);
    background: var(--brand-gradient-soft);
    color: var(--brand-500);
}

.about-grid__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.about-hero { display: grid; gap: var(--s-7); justify-items: stretch; text-align: start; }
.about-hero__role { color: var(--brand-500); font-weight: 600; margin-bottom: var(--s-4); }
.about-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* Philosophy pillars */
.pillar-grid {
    display: grid;
    gap: var(--s-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.pillar {
    position: relative;
    padding: var(--s-5);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.pillar__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    background: var(--brand-gradient-soft);
    color: var(--brand-500);
    margin-bottom: var(--s-4);
}

.pillar__title { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.pillar__text { font-size: var(--t-sm); color: var(--text-muted); }

.pillar__index {
    position: absolute;
    top: var(--s-3);
    inset-inline-end: var(--s-4);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--border);
    opacity: .8;
}

/* Method steps */
.method-steps { display: grid; gap: var(--s-5); }

.method-step { display: grid; grid-template-columns: 46px 1fr; gap: var(--s-4); }

.method-step__marker { display: grid; justify-items: center; gap: var(--s-2); }

.method-step__number {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow-brand);
}

.method-step__line { flex: 1; width: 2px; background: var(--border); border-radius: 2px; min-height: 20px; }
.method-step:last-child .method-step__line { display: none; }

.method-step__body { padding: var(--s-5); }
.method-step__icon { display: inline-grid; place-items: center; color: var(--brand-500); margin-bottom: var(--s-2); }
.method-step__title { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.method-step__text { font-size: var(--t-sm); color: var(--text-muted); }

/* Statistics */
.stats-panel { padding: clamp(var(--s-5), 4vw, var(--s-7)); }
.stats-panel__title { text-align: center; margin-bottom: var(--s-5); font-size: var(--t-xl); }

.stats-grid {
    display: grid;
    gap: var(--s-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    text-align: center;
}

.stat { display: grid; justify-items: center; gap: var(--s-1); }

.stat__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: var(--brand-gradient-soft);
    color: var(--brand-500);
    margin-bottom: var(--s-2);
}

.stat__value { font-size: var(--t-3xl); font-weight: 900; letter-spacing: -.02em; }
.stat__label { font-size: var(--t-sm); color: var(--text-muted); }

/* Course card */
.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--card-color) 45%, transparent);
}

.course-card__link { position: absolute; inset: 0; z-index: 2; }

.course-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-sunken);
}

.course-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}

.course-card:hover .course-card__media img { transform: scale(1.06); }

.course-card__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: color-mix(in srgb, var(--card-color) 70%, transparent);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--card-color) 14%, transparent),
        transparent);
}

.course-card__badge { position: absolute; top: var(--s-3); inset-inline-start: var(--s-3); z-index: 1; }

.course-card__body { flex: 1; padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.course-card__title { font-size: var(--t-lg); }
.course-card__text { font-size: var(--t-sm); color: var(--text-muted); }

.course-card__facts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-1); }
.course-card__facts li {
    display: flex; align-items: center; gap: var(--s-1);
    font-size: var(--t-xs);
    color: var(--text-faint);
}

.course-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-5);
    border-top: 1px solid var(--border);
    background: var(--bg-sunken);
}

.course-card__price { display: grid; }
.course-card__price strong { font-size: var(--t-lg); font-weight: 800; }
.course-card__price-old {
    font-size: var(--t-xs);
    color: var(--text-faint);
    text-decoration: line-through;
}

.course-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--card-color, var(--brand-500));
}

.course-card:hover .course-card__cta svg { transform: translateX(var(--arrow-shift, -4px)); }
[dir='ltr'] .course-card { --arrow-shift: 4px; }
.course-card__cta svg { transition: transform var(--dur) var(--ease); }

/* Private classes panel */
.private-panel {
    display: grid;
    gap: var(--s-6);
    align-items: center;
    margin-top: var(--s-8);
    padding: clamp(var(--s-5), 4vw, var(--s-7));
    overflow: hidden;
    position: relative;
}

.private-panel__title { font-size: var(--t-2xl); margin-block: var(--s-3); }
.private-panel__text { color: var(--text-muted); }
.private-panel__list { display: grid; gap: var(--s-2); margin-block: var(--s-5); }
.private-panel__list li { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); }
.private-panel__list svg { color: var(--ok); flex: none; }

.private-panel__visual {
    position: relative;
    display: none;
    place-items: center;
    aspect-ratio: 1;
    color: var(--brand-500);
}

.private-panel__orb {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: var(--brand-gradient);
    filter: blur(50px);
    opacity: .3;
}

/* Timeline */
.timeline { position: relative; display: grid; gap: var(--s-5); padding-inline-start: var(--s-6); }

.timeline::before {
    content: '';
    position: absolute;
    inset-block: 8px;
    inset-inline-start: 15px;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-500), var(--border));
    border-radius: 2px;
}

.timeline__item { position: relative; }

.timeline__dot {
    position: absolute;
    inset-inline-start: calc(-1 * var(--s-6));
    top: var(--s-4);
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--brand-500);
    color: var(--brand-500);
    transform: translateX(var(--dot-shift, 50%));
}

[dir='ltr'] .timeline__dot { --dot-shift: -50%; }

.timeline__card { padding: var(--s-5); transition: transform var(--dur) var(--ease); }
.timeline__card:hover { transform: translateX(var(--card-shift, -6px)); }
[dir='ltr'] .timeline__card { --card-shift: 6px; }

.timeline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.timeline__location { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-xs); color: var(--text-faint); }
.timeline__title { font-size: var(--t-lg); }
.timeline__org { color: var(--brand-500); font-size: var(--t-sm); font-weight: 600; margin-top: 2px; }
.timeline__text { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--text-muted); }

.timeline__item--education .timeline__dot { border-color: var(--info); color: var(--info); }
.timeline__item--achievement .timeline__dot { border-color: var(--warn); color: var(--warn); }

/* Certificates carousel */
.carousel { position: relative; }

.carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 320px);
    gap: var(--s-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: var(--s-3);
    scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }

.carousel__controls { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-4); }

.cert-card { overflow: hidden; display: flex; flex-direction: column; }

.cert-card__media {
    aspect-ratio: 4 / 3;
    background: var(--bg-sunken);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.cert-card__media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.cert-card__placeholder { color: var(--brand-500); }
.cert-card__body { padding: var(--s-4); display: grid; gap: var(--s-2); }
.cert-card__title { font-size: var(--t-base); }
.cert-card__issuer { font-size: var(--t-sm); color: var(--brand-500); }
.cert-card__text { font-size: var(--t-xs); color: var(--text-muted); }

/* Reviews */
.rating-summary {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    width: fit-content;
    margin: 0 auto var(--s-6);
    padding: var(--s-4) var(--s-5);
}

.rating-summary__value { font-size: var(--t-3xl); font-weight: 900; }
.rating-summary__meta { display: grid; gap: 2px; }
.rating-summary__meta small { font-size: var(--t-xs); color: var(--text-muted); }

.review-card {
    position: relative;
    display: grid;
    gap: var(--s-3);
    padding: var(--s-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.review-card__quote {
    position: absolute;
    top: var(--s-4);
    inset-inline-end: var(--s-4);
    color: var(--border);
}

.review-card__body { font-size: var(--t-sm); color: var(--text-muted); line-height: 2; }
.review-card__person { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.review-card__identity { display: grid; }
.review-card__identity strong { font-size: var(--t-sm); }
.review-card__identity small { font-size: var(--t-xs); color: var(--text-faint); }
.review-card .avatar { width: 46px; height: 46px; }

/* Gallery */
.gallery-grid {
    display: grid;
    gap: var(--s-3);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}

.gallery-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

.gallery-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    padding: 0;
    cursor: zoom-in;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.gallery-tile:hover { transform: scale(1.03); box-shadow: var(--shadow-md); z-index: 1; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }

.gallery-tile__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(6, 8, 14, .38);
    color: #fff;
}

.gallery-tile__play::before {
    content: '';
    position: absolute;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
}

.gallery-tile__play svg { position: relative; }

.gallery-tile__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: var(--s-3);
    font-size: var(--t-xs);
    color: #fff;
    background: linear-gradient(to top, rgba(6, 8, 14, .8), transparent);
    text-align: start;
}

.album-card { overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur) var(--ease); }
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.album-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--bg-sunken); overflow: hidden; }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; }
.album-card__ph { display: grid; place-items: center; height: 100%; color: var(--text-faint); }

.album-card__count {
    position: absolute;
    bottom: var(--s-3);
    inset-inline-end: var(--s-3);
    padding: .2rem .6rem;
    font-size: var(--t-xs);
    border-radius: var(--r-full);
    background: rgba(6, 8, 14, .6);
    color: #fff;
    backdrop-filter: blur(6px);
}

.album-card__body { padding: var(--s-4); display: grid; gap: var(--s-2); }
.album-card__title { font-size: var(--t-base); }
.album-card__text { font-size: var(--t-sm); color: var(--text-muted); }

/* FAQ */
.faq-list { display: grid; gap: var(--s-3); }

.faq-item { overflow: hidden; transition: border-color var(--dur) var(--ease); }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand-500) 40%, transparent); }

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-5);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__toggle {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--bg-sunken);
    color: var(--brand-500);
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.faq-item[open] .faq-item__toggle { transform: rotate(45deg); background: var(--brand-gradient); color: #fff; }

.faq-item__answer {
    padding: 0 var(--s-5) var(--s-5);
    font-size: var(--t-sm);
    animation: faqOpen var(--dur) var(--ease);
}

@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } }

.faq-more { text-align: center; margin-top: var(--s-5); color: var(--text-muted); font-size: var(--t-sm); }
.faq-more a { color: var(--brand-500); font-weight: 600; }

.faq-cta {
    display: grid;
    gap: var(--s-4);
    justify-items: center;
    text-align: center;
    margin-top: var(--s-7);
    padding: var(--s-6);
    color: var(--text-muted);
}

.faq-cta svg { color: var(--brand-500); }
.faq-cta h2 { color: var(--text); font-size: var(--t-lg); }

/* CTA panel */
.cta-panel {
    position: relative;
    padding: clamp(var(--s-6), 6vw, var(--s-9)) clamp(var(--s-5), 5vw, var(--s-8));
    border-radius: var(--r-xl);
    background: var(--brand-gradient);
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.cta-panel__bg { position: absolute; inset: 0; pointer-events: none; }

.cta-panel__orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    filter: blur(40px);
}

.cta-panel__orb--1 { width: 300px; height: 300px; top: -20%; inset-inline-start: -8%; }
.cta-panel__orb--2 { width: 240px; height: 240px; bottom: -25%; inset-inline-end: -5%; }

.cta-panel__content { position: relative; display: grid; justify-items: center; gap: var(--s-4); }
.cta-panel .eyebrow--glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .24); color: #fff; }
.cta-panel .eyebrow__dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .24); }
.cta-panel__title { font-size: var(--t-3xl); font-weight: 800; }
.cta-panel__text { max-width: 56ch; opacity: .9; }
.cta-panel__dates { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.cta-panel__dates .date-chip { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .24); color: #fff; }
.cta-panel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-3); }

/* Contact */
.contact-grid, .contact-page { display: grid; gap: clamp(var(--s-5), 4vw, var(--s-7)); }

.contact-list { display: grid; gap: var(--s-3); }

.contact-list__item { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); }

.contact-list__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    flex: none;
    border-radius: var(--r-sm);
    background: var(--brand-gradient-soft);
    color: var(--brand-500);
}

.contact-list__body { display: grid; }
.contact-list__body small { font-size: var(--t-xs); color: var(--text-faint); }
.contact-list__body a:hover { color: var(--brand-500); }

.contact-social { margin-top: var(--s-5); }
.contact-social__title { font-size: var(--t-base); margin-bottom: var(--s-3); }

.map-frame { aspect-ratio: 4 / 3; overflow: hidden; padding: 0; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.15); }

.contact-cta { display: grid; justify-items: center; gap: var(--s-4); padding: var(--s-7); text-align: center; }
.contact-cta svg { color: var(--brand-500); }

.contact-form, .review-form { padding: clamp(var(--s-5), 4vw, var(--s-6)); display: grid; gap: var(--s-4); }
.contact-aside { display: grid; gap: var(--s-4); align-content: start; }

/* Course detail */
.course-hero { position: relative; padding-block: var(--s-6) var(--s-7); overflow: hidden; }
.course-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.course-hero__inner { position: relative; z-index: 1; display: grid; gap: var(--s-6); align-items: start; }
.course-hero__title { font-size: var(--t-3xl); font-weight: 800; margin-block: var(--s-4) var(--s-3); }
.course-hero__lead { color: var(--text-muted); font-size: var(--t-lg); }

.course-hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--s-3);
    margin-top: var(--s-6);
}

.course-hero__facts li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); }
.course-hero__facts svg { color: var(--brand-500); }
.course-hero__facts span { display: grid; }
.course-hero__facts small { font-size: var(--t-xs); color: var(--text-faint); }

.price-card { overflow: hidden; position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.price-card__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.price-card__body { padding: var(--s-5); display: grid; gap: var(--s-3); }
.price-card__label { font-size: var(--t-xs); color: var(--text-faint); }
.price-card__amount { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.price-card__amount strong { font-size: var(--t-2xl); font-weight: 900; }
.price-card__old { font-size: var(--t-sm); color: var(--text-faint); text-decoration: line-through; }

.filter-bar {
    display: grid;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-5);
    margin-bottom: var(--s-6);
}

.filter-bar__group { display: grid; gap: var(--s-2); }
.filter-bar__label {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--t-xs); font-weight: 600; color: var(--text-faint);
}

/* Confirmation */
.confirm-card { padding: clamp(var(--s-6), 5vw, var(--s-8)); text-align: center; display: grid; justify-items: center; gap: var(--s-4); }

.confirm-card__icon {
    display: grid;
    place-items: center;
    width: 84px; height: 84px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ok) 16%, transparent);
    color: var(--ok);
    animation: popIn var(--dur-slow) var(--ease-out);
}

@keyframes popIn { from { transform: scale(.5); opacity: 0; } }

.confirm-card__title { font-size: var(--t-2xl); }
.confirm-card__text { color: var(--text-muted); max-width: 46ch; }

.confirm-code {
    display: grid;
    gap: var(--s-2);
    padding: var(--s-4) var(--s-6);
    border-radius: var(--r-md);
    border: 1px dashed color-mix(in srgb, var(--brand-500) 45%, transparent);
    background: color-mix(in srgb, var(--brand-500) 6%, transparent);
}

.confirm-code__label { font-size: var(--t-xs); color: var(--text-muted); }
.confirm-code__value {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--t-xl); font-weight: 800; letter-spacing: .12em;
    color: var(--brand-500); cursor: pointer;
}

.confirm-details {
    display: grid;
    gap: var(--s-3);
    width: 100%;
    max-width: 480px;
    margin-top: var(--s-3);
    text-align: start;
}

.confirm-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-3) var(--s-4);
    background: var(--bg-sunken);
    border-radius: var(--r-sm);
}

.confirm-details dt {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--t-sm); color: var(--text-muted);
}

.confirm-details dd { font-weight: 600; font-size: var(--t-sm); }

.confirm-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }

/* ---------------------------------------------------------------------------
   11. Booking calendar
   --------------------------------------------------------------------------- */

.booking__steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-bottom: var(--s-6);
    justify-content: center;
}

.booking__step {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: .5rem 1rem;
    border-radius: var(--r-full);
    background: var(--bg-sunken);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-faint);
    transition: all var(--dur) var(--ease);
}

.booking__step.is-active { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-brand); }
.booking__step.is-done { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }

.booking__step-num {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: var(--t-xs);
}

.booking__step:not(.is-active) .booking__step-num { background: var(--border); }

.booking__grid { display: grid; gap: var(--s-5); }
.booking__panel { padding: var(--s-5); }
.booking__panel--wide { grid-column: 1 / -1; }

.booking__panel-title {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--t-lg);
    margin-bottom: var(--s-4);
}

.booking__panel-title svg { color: var(--brand-500); }

.booking__selected-date {
    padding: var(--s-3);
    margin-bottom: var(--s-4);
    border-radius: var(--r-sm);
    background: var(--bg-sunken);
    font-size: var(--t-sm);
    text-align: center;
    color: var(--text-muted);
}

.booking__selected-date.is-set { color: var(--brand-500); font-weight: 700; }

.calendar { position: relative; }

.calendar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}

.calendar__title { font-size: var(--t-lg); }

.calendar__weekdays,
.calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar__weekdays {
    margin-bottom: var(--s-2);
    font-size: var(--t-xs);
    color: var(--text-faint);
    text-align: center;
}

.calendar__day {
    position: relative;
    display: grid;
    place-items: center;
    gap: 2px;
    aspect-ratio: 1;
    min-height: 40px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    background: var(--bg-sunken);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--dur-fast) var(--ease);
}

.calendar__day--empty { background: transparent; }

.calendar__day--open { color: var(--text); background: color-mix(in srgb, var(--ok) 10%, transparent); cursor: pointer; }
.calendar__day--open:hover { background: var(--brand-gradient); color: #fff; transform: scale(1.06); }

.calendar__day--full { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); cursor: not-allowed; }
.calendar__day--holiday { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); cursor: not-allowed; }
.calendar__day--past,
.calendar__day--beyond,
.calendar__day--closed { opacity: .4; cursor: not-allowed; }

.calendar__day.is-selected {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: var(--shadow-brand);
    transform: scale(1.04);
}

.calendar__day-num { line-height: 1; }

.calendar__day-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
}

.calendar__loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
    backdrop-filter: blur(2px);
    border-radius: var(--r-sm);
}

.calendar__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-4);
    margin-top: var(--s-4);
    font-size: var(--t-xs);
    color: var(--text-muted);
}

.calendar__legend li { display: flex; align-items: center; gap: var(--s-2); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--s-2); min-height: 120px; }

.slots__empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 120px;
    color: var(--text-faint);
    font-size: var(--t-sm);
    text-align: center;
}

.slot {
    display: grid;
    gap: 2px;
    padding: var(--s-3);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    font-size: var(--t-sm);
    font-weight: 600;
    text-align: center;
    transition: all var(--dur-fast) var(--ease);
    animation: slotIn var(--dur) var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 30ms);
}

@keyframes slotIn { from { opacity: 0; transform: translateY(8px); } }

.slot:not(:disabled):hover {
    border-color: var(--brand-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.slot.is-selected {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.slot:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.slot__time { direction: ltr; }
.slot__meta { font-size: var(--t-xs); font-weight: 500; opacity: .75; }

.booking__quick { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.booking__quick-label { font-size: var(--t-xs); color: var(--text-faint); }
.booking__quick-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }

.booking__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: var(--s-4);
    margin-block: var(--s-4);
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--brand-500) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand-500) 25%, transparent);
}

.booking__summary-label { font-size: var(--t-xs); color: var(--text-muted); }

/* ---------------------------------------------------------------------------
   12. Blog, post, footer
   --------------------------------------------------------------------------- */

.blog-layout { display: grid; gap: clamp(var(--s-5), 4vw, var(--s-7)); }

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__link { position: absolute; inset: 0; z-index: 2; }
.post-card__media { aspect-ratio: 16 / 10; background: var(--bg-sunken); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--text-faint); }
.post-card__body { flex: 1; padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }

.post-card__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
    font-size: var(--t-xs); color: var(--text-faint);
}

.post-card__title { font-size: var(--t-lg); }
.post-card__text { font-size: var(--t-sm); color: var(--text-muted); }
.post-card__cta {
    display: inline-flex; align-items: center; gap: var(--s-2);
    margin-top: auto; font-size: var(--t-sm); font-weight: 600; color: var(--brand-500);
}

.side-card { padding: var(--s-5); display: grid; gap: var(--s-4); }
.side-card__title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-base); }
.side-card__title svg { color: var(--brand-500); }

.side-list { display: grid; gap: var(--s-1); }
.side-list a {
    display: flex; align-items: center; gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-xs);
    font-size: var(--t-sm);
    color: var(--text-muted);
    transition: all var(--dur-fast) var(--ease);
}
.side-list a:hover { background: var(--bg-sunken); color: var(--brand-500); }
.side-list__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.side-list small { margin-inline-start: auto; color: var(--text-faint); font-size: var(--t-xs); }

.side-posts { display: grid; gap: var(--s-3); }
.side-posts a { display: flex; align-items: center; gap: var(--s-3); }
.side-posts img, .side-posts__ph {
    width: 58px; height: 58px; flex: none;
    border-radius: var(--r-sm);
    object-fit: cover;
    background: var(--bg-sunken);
    display: grid; place-items: center;
    color: var(--text-faint);
}
.side-posts span { display: grid; gap: 2px; }
.side-posts strong { font-size: var(--t-sm); font-weight: 600; }
.side-posts small { font-size: var(--t-xs); color: var(--text-faint); }
.side-posts a:hover strong { color: var(--brand-500); }

.side-card--cta {
    display: grid;
    justify-items: center;
    gap: var(--s-3);
    padding: var(--s-6) var(--s-5);
    text-align: center;
    border-radius: var(--r-md);
    background: var(--brand-gradient);
    color: #fff;
}

.side-card--cta p { font-size: var(--t-sm); opacity: .9; }
.side-card__icon { opacity: .9; }

.post__hero { padding-top: var(--s-5); }
.post__meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4);
    font-size: var(--t-xs); color: var(--text-faint);
}
.post__meta > * { display: inline-flex; align-items: center; gap: var(--s-1); }
.post__title { margin-top: var(--s-4); font-size: var(--t-3xl); font-weight: 800; text-align: center; }
.post__lead { margin-top: var(--s-4); color: var(--text-muted); text-align: center; font-size: var(--t-lg); }

.post__cover { margin-top: var(--s-6); padding: 0; overflow: hidden; aspect-ratio: 16 / 8; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }

.post__body { margin-top: var(--s-7); }

.post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-7); }
.post__tags > span { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); color: var(--text-faint); }

.post__share {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-5);
    padding: var(--s-4) var(--s-5);
}

.post__share > span { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); color: var(--text-muted); }
.post__share-links { display: flex; gap: var(--s-2); }
.post__share-links a, .post__share-links button {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--dur-fast) var(--ease);
}
.post__share-links a:hover, .post__share-links button:hover {
    color: #fff; background: var(--brand-gradient); border-color: transparent;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    margin-top: var(--s-7);
}

.pagination__list { display: flex; gap: var(--s-1); }

.pagination__page, .pagination__nav {
    display: grid;
    place-items: center;
    min-width: 42px; height: 42px;
    padding-inline: var(--s-3);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--dur-fast) var(--ease);
}

.pagination__nav { display: inline-flex; align-items: center; gap: var(--s-2); }
.pagination__page:hover, .pagination__nav:hover { border-color: var(--brand-500); color: var(--brand-500); }
.pagination__page.is-active { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.pagination__gap { display: grid; place-items: center; min-width: 32px; color: var(--text-faint); }

/* Footer */
.site-footer {
    position: relative;
    margin-top: var(--s-9);
    padding-block: var(--s-8) var(--s-6);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.site-footer__glow {
    position: absolute;
    top: -180px;
    /* Physical left + translateX centres in both writing directions. */
    left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 300px;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--brand-500) 16%, transparent), transparent 68%);
    filter: blur(50px);
    pointer-events: none;
}

.site-footer__grid {
    position: relative;
    display: grid;
    gap: var(--s-6);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--border);
}

.brand--footer { margin-bottom: var(--s-4); }
.site-footer__about { font-size: var(--t-sm); color: var(--text-muted); margin-bottom: var(--s-4); max-width: 42ch; }
.site-footer__title { font-size: var(--t-base); margin-bottom: var(--s-4); }
.site-footer__list { display: grid; gap: var(--s-2); }
.site-footer__list a, .site-footer__list span {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--t-sm); color: var(--text-muted);
}
.site-footer__list a:hover { color: var(--brand-500); }
.site-footer__list svg { color: var(--brand-500); flex: none; }
.site-footer__hint { font-size: var(--t-sm); color: var(--text-muted); margin-bottom: var(--s-3); }

.newsletter-form__row { display: flex; gap: var(--s-2); }
.newsletter-form .input { flex: 1; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding-top: var(--s-5);
    font-size: var(--t-xs);
    color: var(--text-faint);
}

/* Error pages */
.error-page {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: var(--s-5);
    overflow: hidden;
}

.error-page__bg { position: absolute; inset: 0; pointer-events: none; }
.error-page__orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .4; }
.error-page__orb--1 { width: 380px; height: 380px; top: 10%; inset-inline-start: 12%; background: var(--brand-500); }
.error-page__orb--2 { width: 300px; height: 300px; bottom: 10%; inset-inline-end: 12%; background: var(--brand-600); }

.error-page__inner {
    position: relative;
    display: grid;
    justify-items: center;
    gap: var(--s-4);
    padding: clamp(var(--s-6), 6vw, var(--s-9));
    text-align: center;
    max-width: 620px;
}

.error-page__code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; }
.error-page__icon { color: var(--brand-500); }
.error-page__title { font-size: var(--t-2xl); }
.error-page__text { color: var(--text-muted); max-width: 46ch; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-3); }

/* ---------------------------------------------------------------------------
   13. Mobile app-like layer
   --------------------------------------------------------------------------- */

.mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 800;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-1);
    padding: var(--s-2) var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom));
    background: var(--surface-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--border);
}

.mobile-bar__item {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: var(--s-2) var(--s-1);
    border-radius: var(--r-sm);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-faint);
    /* Comfortable touch target on every phone */
    min-height: 52px;
    transition: color var(--dur-fast) var(--ease);
}

.mobile-bar__item.is-active { color: var(--brand-500); }
.mobile-bar__item:active { transform: scale(.94); }

.mobile-bar__item--cta { position: relative; }

.mobile-bar__cta {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin-top: -22px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: var(--shadow-brand);
    border: 3px solid var(--bg);
}

/* Leave room for the bar so nothing is ever hidden behind it */
body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------------------
   14. Responsive
   --------------------------------------------------------------------------- */

@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1.15fr; }
    .about-hero { grid-template-columns: .8fr 1.2fr; align-items: center; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .contact-page { grid-template-columns: 1.3fr .7fr; align-items: start; }
    .private-panel { grid-template-columns: 1.4fr .6fr; }
    .private-panel__visual { display: grid; }
    .filter-bar { grid-template-columns: 1fr 1fr; align-items: center; }
    .booking__grid { grid-template-columns: 1.1fr .9fr; }
    .course-hero__inner { grid-template-columns: 1.3fr .7fr; }
    .method-step { grid-template-columns: 56px 1fr; }
}

@media (min-width: 1024px) {
    :root { --header-h: 84px; }

    .nav-desktop { display: block; }
    .nav-cta { display: inline-flex; }
    .menu-toggle { display: none; }
    .mobile-bar { display: none; }
    body { padding-bottom: 0; }

    .hero__inner { grid-template-columns: 1.15fr .85fr; }
    .hero__visual { display: block; }
    .blog-layout { grid-template-columns: 1fr 320px; align-items: start; }
    .blog-layout__side { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}

@media (min-width: 1280px) {
    .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------------------
   15. Motion & accessibility
   --------------------------------------------------------------------------- */

/* Scroll-reveal: elements start hidden only when JS is available to reveal
   them, so a no-JS visitor sees full content. */
.js [data-animate] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
    transition-delay: var(--delay, 0ms);
    will-change: opacity, transform;
}

.js [data-animate].is-visible {
    opacity: 1;
    transform: none;
}

/* High-contrast users get solid surfaces instead of translucent ones */
@media (prefers-contrast: more) {
    .glass, .glass-card, .site-header.is-stuck, .mobile-bar, .toast {
        background: var(--bg-elevated);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    :root { --border: rgba(17, 24, 39, .3); --text-muted: #3d4658; }
    [data-theme='dark'] { --border: rgba(255, 255, 255, .35); --text-muted: #c9d1e0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-animate] { opacity: 1; transform: none; }
    .loader { display: none; }
    .hero__particles { display: none; }
}

/* Print: drop the chrome, keep the content */
@media print {
    .site-header, .mobile-bar, .site-footer, .loader, .toast-stack,
    .hero__bg, .section__aurora, .booking__panel:not(.booking__panel--wide) { display: none !important; }

    body { background: #fff; color: #000; padding: 0; }
    .glass, .glass-card { box-shadow: none; border: 1px solid #ddd; background: #fff; }
}

/* Weekly timetable ------------------------------------------------------- */

.classes {
    display: grid;
    gap: var(--s-3);
    margin-block: var(--s-4);
}

.class-card {
    display: grid;
    gap: var(--s-1);
    padding: var(--s-4);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-elevated);
    text-align: start;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    animation: slotIn var(--dur-slow) var(--ease) both;
    animation-delay: calc(var(--i, 0) * 45ms);
}

.class-card:hover:not(:disabled) {
    border-color: var(--brand-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.class-card.is-selected {
    border-color: var(--brand-500);
    background: color-mix(in srgb, var(--brand-500) 10%, var(--bg-elevated));
    box-shadow: 0 0 0 1px var(--brand-500) inset;
}

.class-card:disabled,
.class-card.is-full {
    opacity: .5;
    cursor: not-allowed;
}

.class-card__day  { font-weight: 700; font-size: var(--t-base); color: var(--text); }
.class-card__time { font-size: var(--t-lg); font-weight: 800; color: var(--brand-500); }
.class-card__meta { font-size: var(--t-xs); color: var(--text-muted); }

.session-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--s-3);
    margin-block: var(--s-4);
    padding: var(--s-4);
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--brand-500) 7%, transparent);
}

.session-summary dt { font-size: var(--t-xs); color: var(--text-muted); margin-bottom: var(--s-1); }
.session-summary dd { font-size: var(--t-sm); font-weight: 700; color: var(--text); }

.session-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: var(--s-2);
    margin-block: var(--s-3);
    padding: 0;
    list-style: none;
    counter-reset: session;
}

.session-list li {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: var(--t-xs);
    color: var(--text-muted);
}

.session-list li::before {
    counter-increment: session;
    content: counter(session);
    display: grid;
    place-items: center;
    inline-size: 20px;
    block-size: 20px;
    flex: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-500) 14%, transparent);
    color: var(--brand-500);
    font-weight: 700;
}

.booking__hint { font-size: var(--t-sm); color: var(--text-muted); margin-block-end: var(--s-3); }
.booking__hint--muted { font-size: var(--t-xs); }
