/* ===========================================
   OLESIA TYM v2 — Premium / Editorial style
   Inspired by c21cy.com
============================================ */

/* ------------------------
   1. THEME TOKENS
------------------------ */
:root,
[data-theme="light"] {
    --bg:               #f6f3ee;
    --bg-elevated:      #ffffff;
    --bg-section:       #ffffff;
    --bg-section-alt:   #ece6dc;
    --bg-inverse:       #0e1a26;
    --bg-inverse-soft:  #15263a;

    --text:             #0e1a26;
    --text-soft:        #2b3a4c;
    --text-muted:       #6b7886;
    --text-on-dark:     #f6f3ee;
    --text-muted-on-dark: #9aa6b4;

    --border:           rgba(14, 26, 38, 0.10);
    --border-strong:    rgba(14, 26, 38, 0.22);
    --border-on-dark:   rgba(255, 255, 255, 0.12);

    --accent:           #b08d57;   /* warm gold */
    --accent-strong:    #8c6c3e;
    --accent-soft:      rgba(176, 141, 87, 0.10);
    --accent-foreground:#0e1a26;

    --signal:           #c4423a;   /* C21 red-ish accent */
    --signal-soft:      rgba(196, 66, 58, 0.08);

    --shadow-sm:  0 1px 2px rgba(14, 26, 38, 0.04), 0 1px 1px rgba(14, 26, 38, 0.02);
    --shadow-md:  0 8px 24px rgba(14, 26, 38, 0.07), 0 2px 6px rgba(14, 26, 38, 0.04);
    --shadow-lg:  0 24px 60px rgba(14, 26, 38, 0.12), 0 4px 12px rgba(14, 26, 38, 0.05);

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-sans:    "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

    --tracking-wide: 0.18em;
    --tracking-wider: 0.28em;

    --container: 1240px;
    --header-h: 80px;   /* fixed .nav-bar height — reserved on <main> so content never tucks under it */
    --section-y: clamp(72px, 9vw, 132px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --bg:               #0b121b;
    --bg-elevated:      #11202f;
    --bg-section:       #0b121b;
    --bg-section-alt:   #0f1c2a;
    --bg-inverse:       #152434;
    --bg-inverse-soft:  #1c2f43;

    --text:             #f4ede0;
    --text-soft:        #d7cdb9;
    --text-muted:       #98a4b3;
    --text-on-dark:     #f4ede0;
    --text-muted-on-dark: #98a4b3;

    --border:           rgba(255, 255, 255, 0.10);
    --border-strong:    rgba(255, 255, 255, 0.20);
    --border-on-dark:   rgba(255, 255, 255, 0.14);

    --accent:           #d8b27a;
    --accent-strong:    #efd5a6;
    --accent-soft:      rgba(216, 178, 122, 0.12);
    --accent-foreground:#0b121b;

    --signal:           #e26a62;
    --signal-soft:      rgba(226, 106, 98, 0.12);

    --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md:  0 12px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-lg:  0 30px 70px rgba(0, 0, 0, 0.55);
}

/* ------------------------
   2. BASE
------------------------ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* Reserve the fixed-header height on <main> so page content never starts under
   the .nav-bar. The homepage hero is DESIGNED to sit under the translucent
   header, so .home-landing pulls itself back up by the same amount. */
main { padding-top: var(--header-h); }
.home-landing { margin-top: calc(var(--header-h) * -1); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease), opacity 0.2s var(--ease); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-soft); }

::selection { background: var(--accent); color: var(--accent-foreground); }

/* ------------------------
   3. LAYOUT HELPERS
------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-y) 0;
    position: relative;
}

.section--alt { background: var(--bg-section-alt); }
.section--inverse {
    background: var(--bg-inverse);
    color: var(--text-on-dark);
}
.section--inverse h1,
.section--inverse h2,
.section--inverse h3,
.section--inverse h4 { color: var(--text-on-dark); }
.section--inverse p { color: var(--text-muted-on-dark); }

.grid { display: grid; gap: 24px; }
@media (min-width: 768px)  { .grid-2  { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .grid-3  { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .grid-2-tablet { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .grid-4  { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------
   4. TYPOGRAPHY HELPERS
------------------------ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 18px;
}
[data-theme="dark"] .eyebrow { color: var(--accent); }
.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.05;
    margin-bottom: 18px;
    color: var(--text);
}
.section--inverse .section-title { color: var(--text-on-dark); }

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}
.section-head {
    text-align: center;
    margin-bottom: 64px;
}
.section-head.start { text-align: left; margin: 0 0 40px; }
.section-head.start .eyebrow::before { display: none; }
.section-head.start .eyebrow { padding-left: 0; }

.gold {
    color: var(--accent-strong);
    font-style: italic;
    font-family: var(--font-display);
}
[data-theme="dark"] .gold { color: var(--accent); }

/* ------------------------
   5. BUTTONS
------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.btn--primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}
[data-theme="dark"] .btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-foreground);
}
[data-theme="dark"] .btn--primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn--outline:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.section--inverse .btn--outline {
    color: var(--text-on-dark);
    border-color: var(--border-on-dark);
}
.section--inverse .btn--outline:hover {
    background: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--accent);
}

.btn--gold {
    background: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--accent);
}
.btn--gold:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn--lg { padding: 18px 34px; font-size: 14px; }
.btn--block { width: 100%; }

/* ------------------------
   6. NAVIGATION
------------------------ */
.nav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(246, 243, 238, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
[data-theme="dark"] .nav-bar {
    background: rgba(11, 18, 27, 0.78);
}
.nav-bar.scrolled {
    background: rgba(246, 243, 238, 0.95);
    border-bottom-color: var(--border);
}
[data-theme="dark"] .nav-bar.scrolled {
    background: rgba(11, 18, 27, 0.92);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    color: var(--text);
}
.nav-brand .mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-size: 17px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
}
[data-theme="dark"] .nav-brand .mark {
    background: var(--accent);
    color: var(--accent-foreground);
}
.nav-brand .name {
    line-height: 1.05;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.nav-brand .name b {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-size: 13px;
}
.nav-brand .tagline {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: var(--tracking-wider);
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    list-style: none;
    padding: 0;
}
.nav-menu a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
    position: relative;
    padding: 6px 0;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}
.nav-menu a:hover::after { width: 100%; }

/* --- Multi-level dropdown --- */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; }

.nav-caret {
    display: none; /* desktop: dropdown opens on hover; caret used on mobile */
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.nav-dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 210px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 60;
}
/* invisible hover bridge so the menu doesn't close in the gap */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
}
.nav-dropdown li { width: 100%; }
.nav-dropdown a {
    display: block;
    padding: 9px 20px;
    font-size: 13px;
    white-space: nowrap;
    color: var(--text-soft);
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover,
.nav-dropdown a.active {
    color: var(--text);
    background: var(--accent-soft);
}

/* --- System-nav ({%navigation:main%}) markup adapters ---
   The reccms nav renderer (core, single UI path → not theme-overridable) emits
   .nav-item.has-dropdown > a + button.nav-dropdown-toggle + .nav-dropdown > ul.
   Map that Bootstrap-flavoured markup onto the theme's Bootstrap-free styling. */
.nav-dropdown ul { list-style: none; margin: 0; padding: 0; }
.nav-dropdown-toggle {           /* desktop: hidden — dropdown opens on hover */
    display: none;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
}
.nav-dropdown-toggle svg,
.nav-dropdown-toggle .icon { display: none; }  /* kill the core's sprite icon (no sprite in theme) */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    overflow: hidden;
    padding: 2px;
}
.lang-switch button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.lang-switch button.active {
    background: var(--text);
    color: var(--bg);
}
[data-theme="dark"] .lang-switch button.active {
    background: var(--accent);
    color: var(--accent-foreground);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: all 0.2s var(--ease);
}
.theme-toggle:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: inline; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }

/* User / account icon — mirrors .theme-toggle (registration lives at /auth/*) */
.nav-user {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--text);
    display: grid;
    place-items: center;
    font-size: 15px;
    transition: all 0.2s var(--ease);
}
.nav-user:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.nav-cta-desktop { }
@media (max-width: 1399px) {
    .nav-cta-desktop { display: none; }
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1199px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: fixed;
        top: 60px;
        right: 0;
        left: auto;
        bottom: auto;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 10px 32px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu a {
        font-size: 18px;
        font-family: var(--font-display);
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu .nav-cta-mobile { margin-top: 16px; }

    /* Dropdown becomes an inline accordion on mobile */
    .has-dropdown { width: 100%; }
    .has-dropdown > a { width: calc(100% - 44px); }
    .has-dropdown::after { display: none; }
    .nav-caret {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 8px;
        width: 44px;
        height: 44px;
        font-size: 18px;
        transition: transform 0.3s var(--ease);
    }
    .has-dropdown.open .nav-caret { transform: rotate(180deg); }

    /* System-nav toggle button = mobile caret (CSS-drawn chevron, font-independent) */
    .nav-dropdown-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 8px;
        width: 44px;
        height: 44px;
        transition: transform 0.3s var(--ease);
    }
    .nav-dropdown-toggle::before {
        content: '';
        width: 9px;
        height: 9px;
        margin-top: -4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }
    .has-dropdown.open .nav-dropdown-toggle { transform: rotate(180deg); }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        min-width: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease);
    }
    .has-dropdown.open .nav-dropdown { max-height: 320px; }
    /* neutralise desktop hover shift — accordion stays put */
    .has-dropdown:hover .nav-dropdown,
    .has-dropdown:focus-within .nav-dropdown { transform: none; }
    .nav-dropdown a {
        font-size: 15px;
        padding: 12px 0 12px 18px;
        color: var(--text-muted);
    }
    .nav-dropdown a:hover,
    .nav-dropdown a.active { background: transparent; color: var(--accent-strong); }
}

/* Very narrow screens: shrink logo, hide theme & language switch */
@media (max-width: 400px) {
    .nav-brand .name b { font-size: 8px; }
    .nav-brand .tagline { font-size: 7px; }
    .nav-actions .theme-toggle,
    .nav-actions .lang-switch { display: none; }
}

/* ------------------------
   7. HERO
------------------------ */
.hero {
    padding-top: 130px;
    padding-bottom: var(--section-y);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    gap: 60px;
    align-items: center;
}
@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 30px;
}
[data-theme="dark"] .hero-eyebrow { color: var(--accent); }
.hero-eyebrow .line {
    width: 40px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0 0 26px;
    font-weight: 400;
}
.hero-title em {
    font-style: italic;
    color: var(--accent-strong);
}
[data-theme="dark"] .hero-title em { color: var(--accent); }

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 60px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 540px;
}
.hero-meta-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.hero-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 520px;
    margin-left: auto;
}
.hero-visual .frame {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-visual .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.hero-visual:hover .frame img { transform: scale(1.03); }

.hero-visual .frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(14, 26, 38, 0.35) 100%);
    pointer-events: none;
}

.hero-visual .tag {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    backdrop-filter: blur(10px);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}
[data-theme="dark"] .hero-visual .tag {
    background: rgba(17, 32, 47, 0.95);
    color: var(--text-on-dark);
}
.hero-visual .tag .ic {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: grid; place-items: center;
    font-size: 14px;
}
[data-theme="dark"] .hero-visual .tag .ic { color: var(--accent); }
.hero-visual .tag .lbl {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    margin-bottom: 2px;
}
.hero-visual .tag .val { font-weight: 600; }
.hero-visual .tag.tl { top: 24px; left: -24px; }
.hero-visual .tag.br { bottom: 44px; right: -24px; }
@media (max-width: 575px) {
    .hero-visual .tag.tl, .hero-visual .tag.br { left: 12px; right: auto; }
    .hero-visual .tag.br { bottom: 20px; right: 12px; left: auto; }
    /* Long-label CTAs (e.g. «Записаться на консультацию») overflow the viewport
       because .btn is white-space:nowrap. On phones let labels wrap and let hero
       CTAs take the full width so they always fit. */
    .btn { white-space: normal; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { width: 100%; }
}

/* ------------------------
   8. ABOUT
------------------------ */
.about-grid {
    display: grid;
    gap: 60px;
    align-items: center;
}
@media (min-width: 992px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-images {
    position: relative;
    aspect-ratio: 5 / 6;
    max-width: 520px;
}
.about-images .main,
.about-images .accent {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-images .main {
    width: 80%;
    height: 85%;
    top: 0; left: 0;
}
.about-images .accent {
    width: 50%;
    height: 50%;
    bottom: 0; right: 0;
    border: 6px solid var(--bg);
}
.about-images .main img,
.about-images .accent img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.bio-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    gap: 22px;
}
.bio-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    align-items: start;
}
.bio-list .ic {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: grid; place-items: center;
    font-size: 18px;
}
[data-theme="dark"] .bio-list .ic { color: var(--accent); }
.bio-list strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
    font-family: var(--font-sans);
    font-size: 15px;
}
.bio-list span { color: var(--text-muted); font-size: 14px; }

/* ------------------------
   9. SERVICES
------------------------ */
.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    height: 100%;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 22px;
}
[data-theme="dark"] .service-icon { color: var(--accent); }

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 500;
}
.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}
.service-link {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}
.service-link:hover { color: var(--accent-strong); gap: 12px; }
[data-theme="dark"] .service-link:hover { color: var(--accent); }

/* ------------------------
   10. PROCESS
------------------------ */
.process-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 576px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s var(--ease);
    height: 100%;
}
.process-step:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.process-num {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent-strong);
    line-height: 1;
    opacity: 0.6;
    font-style: italic;
    display: block;
    margin-bottom: 18px;
}
[data-theme="dark"] .process-num { color: var(--accent); }
.process-step h4 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}
.process-step p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ------------------------
   11. TARIFFS
------------------------ */
.tariff-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s var(--ease);
}
.tariff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.tariff-card.featured {
    background: var(--bg-inverse);
    color: var(--text-on-dark);
    border-color: var(--bg-inverse);
}
.tariff-card.featured .tariff-name { color: var(--text-on-dark); }
.tariff-card.featured .tariff-eyebrow,
.tariff-card.featured .tariff-period { color: var(--text-muted-on-dark); }
.tariff-card.featured .tariff-features li { color: var(--text-on-dark); border-color: rgba(255,255,255,0.08); }

.badge-popular {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--accent);
    color: var(--accent-foreground);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.tariff-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.tariff-name {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 18px;
    color: var(--text);
}
.tariff-price {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.tariff-card.featured .tariff-price { color: var(--accent); }
.tariff-price .cur {
    font-size: 1.4rem;
    vertical-align: super;
    margin-right: 4px;
    color: var(--accent-strong);
}
[data-theme="dark"] .tariff-price .cur { color: var(--accent); }
.tariff-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 26px;
}
.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: grid;
    gap: 12px;
    flex: 1;
}
.tariff-features li {
    font-size: 14px;
    color: var(--text-soft);
    padding-left: 26px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.tariff-features li:last-child { border-bottom: none; padding-bottom: 0; }
.tariff-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-strong);
    font-weight: 700;
}
[data-theme="dark"] .tariff-features li::before,
.tariff-card.featured .tariff-features li::before { color: var(--accent); }

.tariff-card.featured .btn--outline {
    color: var(--text-on-dark);
    border-color: var(--border-on-dark);
}
.tariff-card.featured .btn--outline:hover {
    background: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--accent);
}

/* ------------------------
   12. VIP TABS
------------------------ */
.tabs-nav {
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    margin: 0 auto 50px;
}
.section-head .tabs-nav { display: inline-flex; }

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    background: var(--text);
    color: var(--bg);
}
[data-theme="dark"] .tab-btn.active {
    background: var(--accent);
    color: var(--accent-foreground);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp 0.45s var(--ease); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.vip-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    height: 100%;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
}
.vip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.vip-card.featured {
    background: var(--bg-inverse);
    color: var(--text-on-dark);
    border-color: var(--bg-inverse);
}
.vip-card.featured .vip-name { color: var(--text-on-dark); }
.vip-card.featured .vip-days { background: rgba(255,255,255,0.12); color: var(--text-on-dark); }
.vip-card.featured .vip-list li { color: var(--text-on-dark); border-color: rgba(255,255,255,0.08); }

.vip-days {
    align-self: flex-start;
    font-size: 11px;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent-strong);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}
[data-theme="dark"] .vip-days { color: var(--accent); }
.vip-name {
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 500;
}
.vip-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
    flex: 1;
}
.vip-list li {
    font-size: 13px;
    color: var(--text-soft);
    padding: 10px 0 10px 22px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.vip-list li:last-child { border-bottom: none; }
.vip-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-strong);
    font-weight: 700;
}
[data-theme="dark"] .vip-list li::before,
.vip-card.featured .vip-list li::before { color: var(--accent); }

.vip-price {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1;
    color: var(--text);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.vip-card.featured .vip-price { color: var(--accent); }
.vip-price .cur {
    font-size: 1rem;
    vertical-align: super;
    margin-right: 3px;
    color: var(--accent-strong);
}
[data-theme="dark"] .vip-price .cur { color: var(--accent); }

.vip-card.featured .btn--outline {
    color: var(--text-on-dark);
    border-color: var(--border-on-dark);
}
.vip-card.featured .btn--outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-foreground);
}

/* ------------------------
   13. COURSES
------------------------ */
.course-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px 28px;
    height: 100%;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.course-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: 11px;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent-strong);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}
[data-theme="dark"] .course-tag { color: var(--accent); }
.course-name {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 500;
}
.course-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 22px;
    flex: 1;
}
.course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.course-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text);
    line-height: 1;
}
.course-price .cur {
    font-size: 0.9rem;
    vertical-align: super;
    margin-right: 2px;
    color: var(--accent-strong);
}
[data-theme="dark"] .course-price .cur { color: var(--accent); }

/* ------------------------
   14. TESTIMONIALS (slider)
------------------------ */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}
.testimonial-track {
    display: flex;
    transition: transform 0.6s var(--ease);
}
.testimonial-slide {
    flex: 0 0 100%;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 4px;
}
@media (min-width: 768px) {
    .testimonial-slide { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .testimonial-slide { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    position: relative;
    height: 100%;
}
.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--accent);
    line-height: 1;
    opacity: 0.7;
}
.testimonial-stars {
    color: var(--accent);
    letter-spacing: 4px;
    margin: 10px 0 16px;
    font-size: 14px;
}
.testimonial-text {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-inverse);
    color: var(--text-on-dark);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}
[data-theme="dark"] .testimonial-avatar {
    background: var(--accent);
    color: var(--accent-foreground);
}
.testimonial-author .name {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text);
    margin: 0 0 2px;
    font-size: 14px;
}
.testimonial-author .role {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}
.slider-arrow {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s var(--ease);
}
.slider-arrow:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.slider-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.slider-dots button {
    width: 8px; height: 8px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: var(--border-strong);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.slider-dots button.active {
    background: var(--accent);
    width: 28px;
    border-radius: 4px;
}

/* ------------------------
   15. CERTIFICATES
------------------------ */
.cert-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px)  { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px)  { .cert-grid { grid-template-columns: repeat(4, 1fr); } }

.cert-card {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    cursor: zoom-in;
}
.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.cert-img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: var(--bg-section-alt);
}
.cert-img img {
    width: 100%; height: 100%;
    object-fit: contain;   /* show the WHOLE certificate framed, never crop/distort it */
    padding: 12px;
    transition: transform 0.5s var(--ease);
}
.cert-card:hover .cert-img img { transform: scale(1.04); }
.cert-img::after {
    content: '+';
    position: absolute;
    inset: auto 12px 12px auto;
    width: 36px; height: 36px;
    background: var(--accent-strong);
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s var(--ease);
}
.cert-card:hover .cert-img::after { opacity: 1; transform: translateY(0); }
.cert-info {
    padding: 16px 18px;
    border-top: 1px solid var(--border);
}
.cert-info h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    color: var(--text);
}
.cert-info span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cert-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 0 auto 40px;
    padding: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    width: fit-content;
    max-width: 100%;
}

/* ------------------------
   16. FAQ
------------------------ */
.faq-grid {
    display: grid;
    gap: 50px;
    align-items: start;
}
@media (min-width: 992px) {
    .faq-grid { grid-template-columns: 5fr 7fr; }
}

.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
}
.faq-btn .arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
    font-size: 14px;
}
.faq-item.open .faq-btn { color: var(--accent-strong); }
[data-theme="dark"] .faq-item.open .faq-btn { color: var(--accent); }
.faq-item.open .faq-btn .arrow {
    background: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--accent);
    transform: rotate(45deg);
}
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-body { max-height: 400px; }
.faq-body-inner {
    padding: 0 0 24px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ------------------------
   17. CTA / FORM
------------------------ */
.cta-grid {
    display: grid;
    gap: 30px;
    align-items: stretch;
}
@media (min-width: 992px) { .cta-grid { grid-template-columns: 7fr 5fr; } }

.form-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px 44px;
    height: 100%;
}
@media (max-width: 575px) { .form-card { padding: 32px 24px; } }

.form-grid {
    display: grid;
    gap: 18px;
}
@media (min-width: 768px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .full { grid-column: 1 / -1; }
}

.form-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.2s var(--ease);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-textarea { resize: vertical; min-height: 110px; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.form-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-strong);
}

/* ------------------------
   AUTH PAGES (login / register / forgot / reset)
   Centered single card. Reuses .form-*/.btn--* vocabulary; overrides the
   Bootstrap default/auth/* split-hero layout with a lean centered card.
------------------------ */
.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72vh;
    padding: clamp(24px, 5vw, 64px) 20px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 20px auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(32px, 5vw, 52px) clamp(26px, 4vw, 46px);
}

.auth-head { text-align: center; margin-bottom: 30px; }
.auth-eyebrow {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--accent-strong);
    margin-bottom: 14px;
}
.auth-head h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 10px;
}
.auth-head p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.auth-fields { display: grid; gap: 18px; }
.auth-field-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.auth-field-head .form-label { margin-bottom: 0; }

.auth-link {
    font-size: 12px;
    color: var(--accent-strong);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}
.auth-link:hover { border-bottom-color: var(--accent-strong); }

.auth-foot {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-foot a {
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-soft);
    transition: border-color 0.2s var(--ease);
}
.auth-foot a:hover { border-bottom-color: var(--accent-strong); }

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s var(--ease);
}
.auth-back:hover { color: var(--accent-strong); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 26px 0;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-social { display: grid; gap: 10px; }

.auth-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 22px;
}
.auth-alert i { color: var(--accent-strong); margin-top: 1px; }

/* ------------------------
   CONTACTS WIDGET — reusable contact list (atoms from @fragments.*).
   Single source of truth; embedded in the premium paywall + profile page.
------------------------ */
.contacts-widget {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.contacts-widget li a,
.contacts-widget li > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 15px;
}
.contacts-widget li a { transition: color 0.2s var(--ease); }
.contacts-widget li a:hover { color: var(--accent-strong); }
.contacts-widget li i {
    color: var(--accent-strong);
    width: 22px;
    font-size: 17px;
    text-align: center;
    flex-shrink: 0;
}
/* Address line under the contacts widget on the /contacts page */
.page-contacts-loc { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); margin-top: 16px; font-size: 15px; }
.page-contacts-loc i { color: var(--accent-strong); font-size: 17px; }

/* Contacts widget inside the premium paywall (centered gate) */
.premium-gate__contacts { max-width: 320px; margin: 28px auto 0; text-align: left; }
.premium-gate__contacts-lead { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; text-align: center; }

/* ------------------------
   PROFILE / СUBSCRIPTION (auth/profile.html)
------------------------ */
.profile {
    max-width: 660px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px) 20px;
}
.profile-head { text-align: center; margin-bottom: 38px; }
.profile-head h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 8px;
}
.profile-head p { color: var(--text-muted); margin: 0; }

.profile-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(28px, 4vw, 42px);
    margin-bottom: 26px;
}
.profile-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    font-weight: 600;
    margin: 0 0 24px;
}
.profile-card__title i { color: var(--accent-strong); font-size: 17px; }

/* Subscription status banner */
.sub-status {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    border: 1px solid var(--border);
}
.sub-status__icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.sub-status__body b { display: block; font-size: 16px; color: var(--text); margin-bottom: 3px; }
.sub-status__body span { font-size: 14px; color: var(--text-muted); }
.sub-status--active { background: var(--accent-soft); border-color: rgba(176, 141, 87, 0.32); }
.sub-status--active .sub-status__icon { color: var(--accent-strong); }
.sub-status--inactive { background: var(--bg-section-alt); }
.sub-status--inactive .sub-status__icon { color: var(--text-muted); }

.sub-cta { margin-top: 22px; }
.profile-note { margin: 18px 0 0; font-size: 13px; color: var(--text-muted); }
.profile-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.contact-card {
    background: var(--bg-inverse);
    color: var(--text-on-dark);
    border-radius: var(--radius-lg);
    padding: 50px 44px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    pointer-events: none;
}
.contact-card h3 {
    color: var(--text-on-dark);
    font-size: 1.9rem;
    margin-bottom: 16px;
}
.contact-card p {
    color: var(--text-muted-on-dark);
    margin-bottom: 30px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: grid;
    gap: 18px;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-list .ic {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--accent);
    display: grid; place-items: center;
    font-size: 16px;
}
.contact-list .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--text-muted-on-dark);
    margin-bottom: 2px;
}
.contact-list .value {
    color: var(--text-on-dark);
    font-weight: 500;
}
.contact-list .value:hover { color: var(--accent); }

/* ------------------------
   18. FOOTER
------------------------ */
.footer {
    background: var(--bg-inverse);
    color: var(--text-on-dark);
    padding: 80px 0 30px;
    position: relative;
}
.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    margin-bottom: 60px;
}
@media (min-width: 576px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--text-on-dark);
    display: inline-block;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.footer-brand b {
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
}
.footer-text {
    color: var(--text-muted-on-dark);
    font-size: 14px;
    margin-bottom: 26px;
    max-width: 360px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-on-dark);
    color: var(--text-on-dark);
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: all 0.2s var(--ease);
}
.footer-social a:hover {
    background: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer h6 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--text-on-dark);
    margin-bottom: 22px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.footer-links a {
    color: var(--text-muted-on-dark);
    font-size: 14px;
}
.footer-links a:hover { color: var(--accent); }
.footer-links .loc {
    color: var(--text-muted-on-dark);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-iban {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-on-dark);
    margin: 0 0 16px;
    letter-spacing: .02em;
}

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid var(--border-on-dark);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted-on-dark);
    font-size: 13px;
}
.footer-bottom a { color: inherit; margin-left: 24px; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: var(--accent); }

/* ------------------------
   19. SCROLL TOP
------------------------ */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.35s var(--ease);
    z-index: 90;
    box-shadow: var(--shadow-md);
}
[data-theme="dark"] .scroll-top {
    background: var(--accent);
    color: var(--accent-foreground);
}
.scroll-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top:hover { transform: translateY(-4px); }

/* ------------------------
   20. LIGHTBOX
------------------------ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(8px);
}
.lightbox.show { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ------------------------
   21. COOKIE BANNER
------------------------ */
.cookie {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-inverse);
    color: var(--text-on-dark);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 95;
}
.cookie.show { display: flex; }
.cookie p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted-on-dark);
    flex: 1;
    min-width: 220px;
}
.cookie p a { color: var(--accent); border-bottom: 1px dashed currentColor; }
.cookie-actions {
    display: flex;
    gap: 10px;
}

/* ------------------------
   22. ANIMATIONS
------------------------ */
[data-fade] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-fade].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------
   23. RESPONSIVE TWEAKS
------------------------ */
@media (max-width: 767px) {
    .hero { padding-top: 110px; }
    .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px; }
    .hero-meta-num { font-size: 2rem; }
    .about-images { aspect-ratio: 4/5; max-width: 100%; }
    .hero-visual { margin: 0 auto; }
    .footer-bottom { justify-content: center; text-align: center; }
    .section-head { margin-bottom: 44px; }
    .form-card, .contact-card { padding: 36px 24px; }
}

/* ============================================
   CONTENT REWORK — additional components
============================================ */

/* allow many tabs to wrap nicely (tariffs has 5) */
.tabs-nav { flex-wrap: wrap; max-width: 100%; justify-content: center; }

/* centered single tariff card (psychology / astrology / clearing) */
.single-card { max-width: 460px; margin: 0 auto; }

/* centered editorial text block (training) */
.lead-block {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.lead-block p {
    font-size: 1.06rem;
    color: var(--text-soft);
    margin-bottom: 1.1em;
}

/* check list (coffee with the expert) */
.feature-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}
.feature-list li {
    position: relative;
    padding: 10px 0 10px 32px;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 15px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 4px;
    top: 10px;
    color: var(--accent);
    font-weight: 700;
}

.note-line {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 18px;
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 22px;
}
.price-line .lbl {
    font-size: 12px;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text-muted);
}
.price-line .amt {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--accent-strong);
}
.price-line .amt .cur { font-size: 1.2rem; margin-right: 2px; }

/* support / bank requisites */
.support-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 4vw, 40px);
    box-shadow: var(--shadow-md);
}
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.req-list li:last-child { border-bottom: none; padding-bottom: 0; }
.req-list .label {
    font-size: 12px;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
}
.req-list .value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text);
    text-align: right;
    word-break: break-word;
}

/* slim footer (no duplicate navigation) */
.footer-grid--slim { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .footer-grid--slim { grid-template-columns: 2fr 1fr 1fr; }
}

/* compact inline menu on wide screens (10 nav items) */
@media (min-width: 1200px) {
    .nav-menu { gap: 20px; }
    .nav-menu a { font-size: 12.5px; }
}
@media (min-width: 1400px) {
    .nav-menu { gap: 26px; }
}
