/* ═══════════════════════════════════════════
   Planetarijum — New Design System
   ═══════════════════════════════════════════ */

@font-face {
    font-family: 'planetarijum';
    src: url('../_fontovi/Astro.woff2') format('woff2'),
         url('../_fontovi/Astro.woff')  format('woff'),
         url('../_fontovi/Astro.TTF')   format('truetype');
    font-display: swap;
}

:root {
    --night:       #0c0a1e;
    --night-2:     #13102a;
    --void:        #f6f4ff;
    --card:        #ffffff;
    --border:      rgba(91,77,212,0.14);
    --border-hi:   rgba(91,77,212,0.32);
    --gold:        #c9a84c;
    --gold-dark:   #8a6520;
    --violet:      #5b4dd4;
    --violet-hi:   #7b6ef4;
    --violet-dim:  rgba(91,77,212,0.08);
    --violet-glow: rgba(91,77,212,0.25);
    --text-1:      #16142e;
    --text-2:      #3c3a5e;
    --text-3:      #8080aa;
    --text-inv:    #e8e4ff;
    --text-inv-2:  rgba(232,228,255,0.7);
    --red:         #bf3030;
    --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
    --shadow:      0 2px 18px rgba(91,77,212,0.09);
    --shadow-lg:   0 8px 40px rgba(91,77,212,0.18);
    --t: 0.22s cubic-bezier(0.4,0,0.2,1);
    --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--void);
    color: var(--text-1);
    font-family: 'Noto Sans Display', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Nav ─────────────────────────────────────── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: var(--nav-h);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91,77,212,0.12);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
    height: 100%; display: flex; align-items: center; gap: 2rem;
}
.nav-brand {
    display: flex; align-items: center; gap: .55rem;
    font-size: 1.1rem; font-weight: 600; color: var(--text-1);
    letter-spacing: .02em; white-space: nowrap;
    text-decoration: none;
}
.nav-brand .nav-logo-img { height: 36px; width: auto; display: block; }
.nav-links {
    display: flex; align-items: center; gap: .25rem; flex: 1;
}
.nav-link {
    padding: .45rem .75rem; border-radius: var(--r-sm);
    font-size: .9rem; color: var(--text-2);
    transition: color var(--t), background var(--t);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-1);
    background: rgba(91,77,212,0.07);
}
.nav-link.active { color: var(--violet); }
.nav-links-sep, .nav-mobile-auth-row, .nav-link-icon, .nav-backdrop { display: none; }
.nav-auth { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex-shrink: 0; }
.btn-nav-ghost {
    padding: .4rem .9rem; border-radius: var(--r-sm);
    font-size: .88rem; color: var(--text-2);
    transition: color var(--t);
}
.btn-nav-ghost:hover { color: var(--text-1); }
.btn-nav-fill {
    padding: .4rem 1rem; border-radius: var(--r-sm);
    background: var(--violet); color: #fff;
    font-size: .88rem; font-weight: 500;
    transition: background var(--t);
}
.btn-nav-fill:hover { background: var(--violet-hi); }
.btn-nav-outline {
    padding: .4rem .9rem; border-radius: var(--r-sm);
    border: 1px solid rgba(91,77,212,0.3); color: var(--text-2);
    font-size: .88rem;
    transition: border-color var(--t), color var(--t);
}
.btn-nav-outline:hover { border-color: var(--violet); color: var(--violet); }

/* ── User profile dropdown ── */
.nav-user-menu { position: relative; }
.nav-user-btn {
    display: flex; align-items: center; gap: .3rem;
    background: none; border: none; cursor: pointer;
    padding: .4rem .9rem; border-radius: var(--r-sm);
    font-size: .88rem; color: var(--text-2);
    font-family: inherit;
    transition: color var(--t);
}
.nav-user-btn:hover { color: var(--text-1); }
.nav-chevron { font-size: .7em; transition: transform .2s; display: inline-block; }
.nav-user-menu.open .nav-chevron { transform: rotate(180deg); }
.nav-user-dropdown {
    display: none; position: absolute;
    top: calc(100% + 10px); right: 0;
    min-width: 200px;
    background: rgba(12,10,30,.97);
    border: 1px solid rgba(91,77,212,.3);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    padding: .4rem 0;
    z-index: 300;
}
.nav-user-menu.open .nav-user-dropdown { display: block; }
.nav-dd-item {
    display: block; padding: .55rem 1.1rem;
    font-size: .88rem; color: rgba(232,228,255,.75);
    transition: background var(--t), color var(--t);
    white-space: nowrap;
}
.nav-dd-item:hover { background: rgba(91,77,212,.12); color: #fff; }
.nav-dd-sep { height: 1px; background: rgba(91,77,212,.2); margin: .35rem 0; }
.nav-dd-danger { color: rgba(220,80,80,.8); }
.nav-dd-danger:hover { background: rgba(180,40,40,.1); color: #e05555; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; padding: .4rem; background: none; border: none;
    cursor: pointer; margin-left: auto;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-1); border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--void);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; display: none;
}
.hero-stars {
    display: none;
    position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 8%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 72% 5%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 22%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 8% 45%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 48% 40%, rgba(255,255,255,0.55) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 55%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 82% 48%, rgba(255,255,255,0.45) 0%, transparent 100%),
        radial-gradient(1px 1px at 93% 65%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 5% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 85%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 78%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 78% 88%, rgba(255,255,255,0.45) 0%, transparent 100%),
        radial-gradient(2px 2px at 42% 70%, rgba(201,168,76,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 68% 30%, rgba(201,168,76,0.4) 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
    font-size: .65rem; letter-spacing: .4em; text-transform: uppercase;
    color: var(--gold-dark); margin-bottom: 1.2rem;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 300; letter-spacing: .02em;
    color: var(--text-1); line-height: 1.2; margin-bottom: 1.4rem;
}
.hero-title em { font-style: italic; color: var(--violet); font-weight: 400; }
.hero-title strong { font-weight: 600; color: var(--violet-hi); }
.hero-sub {
    font-size: 1.08rem; color: var(--text-2);
    max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
    padding: .85rem 2.2rem; border-radius: var(--r-md);
    background: var(--violet); color: #fff;
    font-size: 1rem; font-weight: 500;
    transition: background var(--t), transform var(--t), box-shadow var(--t);
    box-shadow: 0 4px 20px rgba(91,77,212,0.4);
}
.btn-hero-primary:hover {
    background: var(--violet-hi);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(91,77,212,0.55);
}
.btn-hero-ghost {
    padding: .85rem 2.2rem; border-radius: var(--r-md);
    border: 1.5px solid rgba(91,77,212,0.25); color: var(--text-2);
    font-size: 1rem;
    transition: border-color var(--t), background var(--t), color var(--t);
}
.btn-hero-ghost:hover {
    border-color: var(--violet);
    background: rgba(91,77,212,0.05);
    color: var(--violet);
}
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 1; display: flex; flex-direction: column; align-items: center;
    gap: .4rem; color: var(--text-3); font-size: .75rem;
    letter-spacing: .1em; text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Page hero (marketing pages, light) ── */
.page-hero {
    padding: calc(var(--nav-h) + 3.5rem) 1.5rem 4rem;
    background: var(--void);
    border-bottom: 1px solid rgba(91,77,212,0.1);
    text-align: center;
}
.page-hero-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.page-hero-eyebrow {
    font-size: .65rem; letter-spacing: .38em; text-transform: uppercase;
    color: var(--gold-dark); margin-bottom: .8rem;
}
.page-hero-title {
    font-size: clamp(2rem,5vw,3rem); font-weight: 300;
    color: var(--text-1); margin-bottom: 1rem;
}
.page-hero-title em { font-style: italic; color: var(--violet); }
.page-hero-desc {
    color: var(--text-2); font-size: 1.05rem;
    max-width: 560px; margin: 0 auto 2.2rem; line-height: 1.7;
}

/* ── CTA section (light) ── */
.section-cta {
    background: linear-gradient(160deg, #ece9ff 0%, var(--void) 60%);
    border-top: 1px solid rgba(91,77,212,0.1);
}

/* ── Page wrapper ─────────────────────────────── */
.page-body { padding-top: var(--nav-h); min-height: 100vh; }
.page-body.dark { background: var(--night); }
.section { padding: 5rem 1.5rem; }
.section.tight { padding: 3rem 1.5rem; }
.container { max-width: 1060px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.container.wide { max-width: 1200px; }

/* ── Section headers ─────────────────────────── */
.section-eyebrow {
    font-size: .62rem; letter-spacing: .38em; text-transform: uppercase;
    color: var(--gold-dark); margin-bottom: .5rem; text-align: center;
}
.section-eyebrow.inv { color: var(--gold); }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400; text-align: center; margin-bottom: .8rem;
    color: var(--text-1);
}
.section-title.inv { color: var(--text-inv); }
.section-title em { font-style: italic; color: var(--violet); }
.section-title.inv em { color: var(--gold); }
.section-desc {
    text-align: center; color: var(--text-3); max-width: 540px;
    margin: 0 auto 3rem; font-size: .96rem; line-height: 1.75;
}
.section-desc.inv { color: var(--text-inv-2); }

/* ── Feature grid ────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem 1.8rem 1.8rem;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
    text-decoration: none; color: inherit;
}
.feature-card:hover {
    border-color: var(--border-hi);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.feature-card.dark-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(91,77,212,0.2);
    color: var(--text-inv);
}
.feature-card.dark-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(91,77,212,0.45);
}
.feature-icon {
    width: 48px; height: 48px; border-radius: var(--r-md);
    background: var(--violet-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.2rem;
}
.feature-card.dark-card .feature-icon {
    background: rgba(91,77,212,0.2);
}
.feature-title {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text-1); margin-bottom: .5rem;
}
.feature-card.dark-card .feature-title { color: var(--text-inv); }
.feature-desc {
    font-size: .9rem; color: var(--text-3); line-height: 1.65; flex: 1;
}
.feature-card.dark-card .feature-desc { color: var(--text-inv-2); }
.feature-link {
    margin-top: 1.4rem; font-size: .86rem;
    color: var(--violet); font-weight: 500;
    display: inline-flex; align-items: center; gap: .3rem;
}
.feature-card.dark-card .feature-link { color: var(--gold); }

/* ── Steps ───────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; position: relative;
}
.step-item { text-align: center; }
.step-num {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--violet-dim);
    border: 2px solid var(--border-hi);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; color: var(--violet);
    margin: 0 auto 1rem;
}
.step-title { font-size: .96rem; font-weight: 600; margin-bottom: .4rem; }
.step-desc { font-size: .86rem; color: var(--text-3); line-height: 1.6; }

/* ── Stat bar ────────────────────────────────── */
.stat-row {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 3rem 4rem;
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(91,77,212,0.12);
    border-bottom: 1px solid rgba(91,77,212,0.12);
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 2.2rem; font-weight: 700; color: var(--violet);
    line-height: 1.1; margin-bottom: .25rem;
}
.stat-label { font-size: .82rem; color: var(--text-3); letter-spacing: .03em; }

/* ── Auth forms ──────────────────────────────── */
.auth-page {
    min-height: 100vh;
    background: var(--void);
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}
.auth-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.8rem 2.4rem;
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.auth-icon { font-size: 2.5rem; text-align: center; margin-bottom: .8rem; }
.auth-title {
    font-size: 1.5rem; font-weight: 600;
    color: var(--text-1); text-align: center; margin-bottom: .4rem;
}
.auth-sub {
    font-size: .9rem; color: var(--text-3);
    text-align: center; margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-label {
    display: block; font-size: .82rem;
    color: var(--text-2); margin-bottom: .45rem;
}
.form-input {
    width: 100%; padding: .75rem 1rem;
    background: var(--void);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-1); font-family: inherit; font-size: .95rem;
    transition: border-color var(--t), background var(--t);
    outline: none;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus {
    border-color: var(--violet);
    background: var(--card);
}
.form-error {
    display: none; font-size: .82rem;
    color: #f08080; margin-top: .4rem;
}
.btn-submit {
    width: 100%; padding: .85rem;
    background: var(--violet); color: #fff;
    border: none; border-radius: var(--r-md);
    font-family: inherit; font-size: 1rem; font-weight: 500;
    cursor: pointer; margin-top: .4rem;
    transition: background var(--t), transform var(--t);
}
.btn-submit:hover { background: var(--violet-hi); transform: translateY(-1px); }
.auth-footer {
    margin-top: 1.6rem; text-align: center;
    font-size: .86rem; color: var(--text-3);
}
.auth-footer a { color: var(--violet); }
.auth-footer a:hover { text-decoration: underline; }

/* ── Dashboard ───────────────────────────────── */
.dash-header {
    background: var(--night);
    padding: calc(var(--nav-h) + 2.5rem) 1.5rem 2.5rem;
}
.dash-greeting {
    font-size: .65rem; letter-spacing: .38em;
    text-transform: uppercase; color: var(--gold); margin-bottom: .5rem;
}
.dash-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 300; color: var(--text-inv); margin-bottom: .4rem;
}
.dash-title strong { font-weight: 600; color: var(--violet-hi); }
.dash-sub { font-size: .96rem; color: var(--text-inv-2); }
.dash-body { background: var(--void); padding: 2.5rem 1.5rem 5rem; }
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.dash-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.dash-card:hover {
    border-color: var(--border-hi);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.dash-card-icon {
    width: 44px; height: 44px; border-radius: var(--r-md);
    background: var(--violet-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1.1rem;
}
.dash-card-title {
    font-size: 1.05rem; font-weight: 600;
    margin-bottom: .4rem; color: var(--text-1);
}
.dash-card-desc {
    font-size: .86rem; color: var(--text-3);
    line-height: 1.6; flex: 1;
}
.dash-card-meta {
    margin-top: 1.2rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.dash-card-count {
    font-size: 1.5rem; font-weight: 700; color: var(--violet);
}
.dash-card-action {
    font-size: .82rem; color: var(--violet); font-weight: 500;
}

/* ── Contact ─────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem; align-items: start;
}
.contact-info-title {
    font-size: 1.2rem; font-weight: 600;
    margin-bottom: .6rem; color: var(--text-1);
}
.contact-info-desc {
    font-size: .92rem; color: var(--text-3);
    line-height: 1.7; margin-bottom: 1.8rem;
}
.contact-item {
    display: flex; align-items: flex-start; gap: .9rem;
    margin-bottom: 1.2rem;
}
.contact-item-icon {
    width: 38px; height: 38px; border-radius: var(--r-sm);
    background: var(--violet-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-label {
    font-size: .78rem; color: var(--text-3);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem;
}
.contact-item-value { font-size: .94rem; color: var(--text-1); }
.contact-form-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.2rem;
    box-shadow: var(--shadow);
}
.contact-form-title {
    font-size: 1.1rem; font-weight: 600;
    margin-bottom: 1.5rem; color: var(--text-1);
}
.form-input-light {
    width: 100%; padding: .7rem 1rem;
    background: var(--void);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-1); font-family: inherit; font-size: .92rem;
    transition: border-color var(--t);
    outline: none;
}
.form-input-light:focus { border-color: var(--violet); }
textarea.form-input-light { resize: vertical; min-height: 120px; }
.btn-submit-light {
    padding: .75rem 1.8rem;
    background: var(--violet); color: #fff;
    border: none; border-radius: var(--r-md);
    font-family: inherit; font-size: .95rem; font-weight: 500;
    cursor: pointer;
    transition: background var(--t), transform var(--t);
}
.btn-submit-light:hover { background: var(--violet-hi); transform: translateY(-1px); }

/* ── Footer ──────────────────────────────────── */
.site-footer {
    background: var(--card);
    border-top: 1px solid rgba(91,77,212,0.1);
    padding: 3rem 1.5rem 2rem;
}
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.footer-col-title {
    font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--violet); margin-bottom: .85rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid rgba(91,77,212,.15);
}
.footer-col-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-link { font-size: .85rem; color: var(--text-3); text-decoration: none; transition: color var(--t); }
.footer-link:hover { color: var(--text-1); }
.footer-social-row { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .2rem; }
.footer-social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; text-decoration: none;
    background: rgba(91,77,212,.07); border: 1px solid rgba(91,77,212,.14);
    color: var(--text-3); transition: all var(--t);
}
.footer-social-btn:hover { background: rgba(91,77,212,.15); color: var(--violet); border-color: rgba(91,77,212,.3); }
.footer-newsletter-text { font-size: .82rem; color: var(--text-3); line-height: 1.65; margin-bottom: .9rem; }
.footer-newsletter-form { display: flex; flex-direction: column; gap: .45rem; }
.footer-newsletter-input {
    width: 100%; padding: .55rem .8rem; box-sizing: border-box;
    border: 1px solid rgba(91,77,212,.2); border-radius: 8px;
    background: var(--void); color: var(--text-1); font-size: .85rem;
    outline: none; transition: border-color var(--t);
}
.footer-newsletter-input:focus { border-color: var(--violet); }
.footer-newsletter-input::placeholder { color: var(--text-3); }
.footer-newsletter-btn {
    padding: .55rem 1rem; border: none; border-radius: 8px; cursor: pointer;
    background: var(--violet); color: #fff;
    font-size: .82rem; font-weight: 600; transition: background var(--t);
}
.footer-newsletter-btn:hover { background: var(--violet-hi); }
.footer-payment-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 1rem 1.5rem; padding: 1.5rem 0 1rem;
    border-top: 1px solid rgba(91,77,212,.08);
}
.footer-payment-row img { opacity: .75; transition: opacity var(--t); }
.footer-payment-row img:hover { opacity: 1; }
.footer-copy {
    font-size: .78rem; color: var(--text-3); text-align: center;
    padding-top: 1rem; border-top: 1px solid rgba(91,77,212,.08);
}
.footer-viber-block { margin-top: 1.1rem; }
.footer-viber-divider {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: .75rem; color: var(--text-3); font-size: .75rem;
}
.footer-viber-divider::before,
.footer-viber-divider::after {
    content: ''; flex: 1;
    border-top: 1px solid rgba(91,77,212,.15);
}
.footer-viber-link {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .85rem; font-weight: 500; color: #7360f2;
    text-decoration: none; transition: opacity var(--t);
}
.footer-viber-link:hover { opacity: .75; }
@media (max-width: 880px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }

/* ── Utilities ───────────────────────────────── */
.text-gold { color: var(--gold-dark); }
.text-violet { color: var(--violet); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 860px) {
    .site-nav { height: 64px; overflow: visible; }
    .nav-toggle { display: flex !important; }
    .nav-inner { gap: 0; padding: 0 1rem; }
    .nav-auth { display: flex !important; margin-left: auto; }
    .nav-auth--guest { display: none !important; }
    .nav-user-btn { padding: .32rem .7rem; font-size: .82rem; }
    .nav-links-sep { display: block; height: 1px; background: rgba(91,77,212,.14); margin: .65rem .9rem; }
    .nav-mobile-auth-row { display: flex !important; gap: .6rem; margin-top: .3rem; }
    .nav-mobile-auth-link {
        flex: 1 1 0;
        width: auto;
        display: flex !important;
        justify-content: center;
        font-weight: 600;
        border: 1.5px solid rgba(91,77,212,.3);
        color: var(--violet);
    }
    .nav-mobile-auth-link--fill {
        background: var(--violet);
        color: #fff;
        border-color: var(--violet);
        box-shadow: 0 4px 14px rgba(91,77,212,.35);
    }
    .nav-mobile-auth-link--fill:active { background: var(--violet-hi); }

    .nav-backdrop {
        display: block;
        position: fixed; inset: 64px 0 0 0;
        z-index: 190;
        background: rgba(15,10,35,0);
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .25s ease, background .25s ease, visibility .25s ease;
    }
    .nav-backdrop.open {
        opacity: 1; visibility: visible; pointer-events: auto;
        background: rgba(15,10,35,.4);
    }

    .nav-links {
        position: absolute !important;
        top: 64px; left: 0; right: 0;
        z-index: 195;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        padding: .7rem .7rem .9rem;
        border-top: none;
        border-radius: 0 0 var(--r-lg) var(--r-lg);
        background: rgba(255,255,255,0.99);
        box-shadow: 0 20px 45px rgba(20,15,50,.18);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    }
    .nav-links::before {
        content: '';
        flex-shrink: 0;
        display: block; height: 3px; margin: -.7rem -.7rem .5rem;
        background: linear-gradient(90deg, var(--violet) 0%, var(--gold) 100%);
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav-link {
        width: 100%;
        display: flex; align-items: center; justify-content: flex-start; gap: .65rem;
        text-align: left;
        font-size: .92rem; font-weight: 500; line-height: 1.3;
        white-space: normal;
        padding: .8rem .9rem;
        border-radius: var(--r-sm);
        -webkit-tap-highlight-color: transparent;
        transition: background var(--t), color var(--t);
    }
    .nav-link-icon { display: inline-flex; flex-shrink: 0; color: var(--violet); opacity: .8; }
    .nav-link:active { color: var(--text-1); background: rgba(91,77,212,.09); }
    .nav-link.active { background: rgba(91,77,212,.08); }
    .nav-link.active .nav-link-icon { opacity: 1; }
    .nav-user-btn { display: flex !important; }
    .nav-user-dropdown {
        position: absolute !important; display: none;
        flex-direction: column;
        background: var(--violet) !important;
        border-color: rgba(255,255,255,.18) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,.35) !important;
        top: calc(100% + 6px); right: 0;
    }
    .nav-user-menu.open .nav-user-dropdown { display: block !important; }
    .nav-dd-item { color: rgba(255,255,255,.85) !important; text-align: left; }
    .nav-dd-item:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }
    .nav-dd-sep { background: rgba(255,255,255,.2) !important; }
    .nav-dd-danger { color: rgba(255,180,180,.85) !important; }
    .nav-dd-danger:hover { background: rgba(255,80,80,.15) !important; color: #ffa0a0 !important; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    #ev-banner {
        top: auto !important;
        bottom: 0 !important;
        border-bottom: none !important;
        border-top: 1px solid rgba(0,0,0,.12) !important;
    }
}
@media (max-width: 480px) {
    .auth-box { padding: 2rem 1.4rem; }
    .section { padding: 3.5rem 1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .btn-nav-outline, .btn-nav-fill { padding: .35rem .6rem; font-size: .82rem; }
}

/* ── CTA Cards ───────────────────────────────────────────────────────── */
.cta-cards-zone { padding: 3rem 1.5rem; background: var(--card); }
.cta-cards-inner { max-width: 1140px; margin: 0 auto; }
.cta-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cta-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-xl); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.cta-img-ph {
    height: 150px;
    background: linear-gradient(135deg, rgba(91,77,212,.07) 0%, rgba(91,77,212,.13) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 3.2rem; color: rgba(91,77,212,.3);
    border-bottom: 1px solid var(--border);
}
.cta-card-body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.cta-card-title { font-size: 1rem; font-weight: 700; color: var(--text-1); margin: 0 0 .5rem; }
.cta-card-text { font-size: .83rem; color: var(--text-2); line-height: 1.65; margin: 0 0 1.1rem; flex: 1; }
.cta-card-btn {
    display: block; text-align: center;
    background: var(--violet); color: #fff;
    border-radius: var(--r-md); padding: .55rem 1rem;
    font-size: .83rem; font-weight: 600;
    text-decoration: none; transition: opacity var(--t);
}
.cta-card-btn:hover { opacity: .85; text-decoration: none; }
@media (max-width: 900px) { .cta-cards-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 540px) { .cta-cards-grid { grid-template-columns: 1fr !important; } .cta-cards-zone { padding: 2rem 1rem; } }

/* ── Brand name logo (hero) ── */
.lp-brand-name {
    display: flex; align-items: baseline; justify-content: center;
    font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 300;
    color: #fff; text-shadow: 1px 1px 4px rgba(0,0,0,.6);
    line-height: 1; margin-bottom: 1.4rem; letter-spacing: .04em;
}
.lp-brand-glyph { font-family: 'planetarijum', sans-serif; font-size: .72em; color: var(--gold); }
.lp-brand-glyph--end { font-size: 1em; font-weight: 300; position: relative; top: .15em; }
.lp-brand-icon { height: 1em; width: auto; display: block; margin-right: .35em; align-self: center; }

/* ── Page title icons ── */
.page-title:has(.page-ttl-icon),
h1:has(.page-ttl-icon) { display: flex; align-items: center; }
.page-ttl-icon {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--violet);
    background: rgba(91,77,212,.09);
    border-radius: 10px;
    padding: .3rem;
    margin-right: .55rem; flex-shrink: 0;
    transition: background .18s;
}
