/* ======================================================================
   МНЦ — Центр цифровой безопасности
   Landing styles (vanilla, self-hosted, self-contained)
   ====================================================================== */

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

:root {
    --app-vh: 100svh;

    /* palette (kept from the previous landing) */
    --primary: #5b4eff;
    --primary-hover: #4a3ed9;
    --primary-dark: #3b28cc;
    --primary-light: #eef2ff;
    --primary-soft: rgba(91, 78, 255, 0.06);

    --ink-900: #111827;
    --ink-800: #1f2937;
    --ink-700: #344054;
    --ink-600: #475467;
    --ink-500: #667085;
    --ink-400: #98a2b3;
    --ink-300: #d7dde7;
    --ink-200: #e5e7eb;
    --ink-100: #eaecf0;
    --ink-50:  #f3f4f6;

    --surface:  #ffffff;
    --surface-2:#f8fafc;
    --surface-3:#f2f4f8;

    --success-bg: #ecfdf3;
    --success-fg: #027a48;
    --danger-bg:  #fef2f2;
    --danger-br:  #fecaca;
    --danger-fg:  #b91c1c;

    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius:    18px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-2xl:32px;

    --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 12px 30px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.08);
    --shadow-primary: 0 14px 36px rgba(91, 78, 255, 0.22);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    --header-offset: 72px;
}
@supports (height: 100dvh) { :root { --app-vh: 100dvh; } }

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-900);
    background: var(--surface-3);
    overflow-x: hidden;
    padding-top: var(--header-offset);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img, svg { display: block; max-width: 100%; }
input { font: inherit; color: inherit; }

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 72px 0;
    scroll-margin-top: 0;
}
.section--tight { padding: 48px 0; }
[id] { scroll-margin-top: 0; }
@media (max-width: 768px) {
    .section { padding: 40px 0; }
    .section--tight { padding: 28px 0; }
}
@media (max-width: 480px) {
    .section { padding: 32px 0; }
    .wrap { padding: 0 16px; }
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
}

.h2 {
    margin-top: 10px;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink-900);
    font-weight: 700;
}
.lead {
    margin-top: 14px;
    max-width: 780px;
    color: var(--ink-500);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.7;
}

/* ---------------------- reveal ---------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
    will-change: transform, opacity;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------- header ---------------------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    min-height: var(--header-offset);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--ink-200);
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.06);
}
.topbar > .wrap { width: 100%; }
.topbar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}
.brand > span:not(.brand__logo) { min-width: 0; }
.brand__logo {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}
.brand__logo img,
.brand__logo svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand__name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink-900);
    line-height: 1.2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand__sub  {
    font-size: 12px;
    color: var(--ink-500);
    line-height: 1.2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 560px) {
    .brand__sub { display: none; }
}

.topbar__nav {
    margin-left: auto;
    display: none;
    align-items: center;
    gap: 28px;
}
@media (min-width: 960px) { .topbar__nav { display: flex; } }
.topbar__nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-600);
    transition: color .2s ease;
}
.topbar__nav a:hover { color: var(--ink-900); }

.topbar__nav-chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary) !important;
    font-weight: 600;
}
.topbar__nav-chat:hover { background: var(--primary); color: #fff !important; }

.burger {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    color: var(--ink-900);
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, border-color .2s ease;
}
.burger svg { display: block; }
.burger svg rect { fill: currentColor; }
.burger:hover,
.burger:active { background: var(--ink-50); border-color: var(--ink-300); }
@media (min-width: 960px) { .burger { display: none; } }

/* ---------------------- mobile menu ---------------------- */
.menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    visibility: hidden;
}
.menu.is-open { pointer-events: auto; visibility: visible; }
.menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    transition: opacity .25s ease;
    border: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.menu.is-open .menu__backdrop { opacity: 1; }
.menu__panel {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.18);
    transform: translateY(-16px);
    opacity: 0;
    transition: transform .25s var(--ease), opacity .25s ease;
}
.menu.is-open .menu__panel { transform: translateY(0); opacity: 1; }
.menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.menu__list { display: flex; flex-direction: column; gap: 2px; }
.menu__list a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-800);
    transition: background .2s ease, color .2s ease;
}
.menu__list a:hover,
.menu__list a:active { background: var(--ink-50); color: var(--ink-900); }
.menu__chat { color: var(--primary) !important; font-weight: 600; }
.menu__divider { height: 1px; background: var(--ink-100); margin: 12px 0; }
.menu__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
}

body.no-scroll { overflow: hidden; }

/* ---------------------- hero ---------------------- */
.hero { padding: 20px 0 40px; }
@media (min-width: 768px) { .hero { padding: 32px 0 64px; } }
@media (max-width: 480px) { .hero { padding: 14px 0 28px; } }

.hero__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .hero__grid { gap: 22px; } }

.hero__main {
    position: relative;
    padding: 40px 28px;
    border-radius: 26px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(91, 78, 255, 0.35), transparent 55%),
        linear-gradient(135deg, #1a1a2e 0%, var(--primary-dark) 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(59, 40, 204, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) { .hero__main { padding: 64px 40px; border-radius: 32px; } }
@media (min-width: 1280px) { .hero__main { padding: 84px 48px; } }
@media (max-width: 480px) { .hero__main { padding: 36px 22px; border-radius: 22px; } }

.hero__title {
    margin: 0 auto;
    max-width: 22ch;
    font-weight: 700;
    font-size: clamp(26px, 4.8vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
}
@media (max-width: 420px) {
    .hero__title { font-size: clamp(22px, 7.2vw, 30px); line-height: 1.18; }
}
.hero__subtitle {
    margin: 18px auto 0;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.74);
    max-width: 62ch;
}

.hero__cta {
    margin: 32px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 22px 14px 28px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.hero__cta:hover { background: var(--primary-hover); box-shadow: 0 18px 40px rgba(91, 78, 255, 0.32); }
.hero__cta:active { transform: scale(.985); }
.hero__cta .arrow {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}
.hero__cta:hover .arrow { transform: translateX(3px); }
@media (max-width: 480px) {
    .hero__cta { width: 100%; justify-content: space-between; padding: 16px 18px 16px 22px; }
}

.hero__tags {
    margin: 28px auto 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    width: 100%;
    max-width: 780px;
}
.hero__tag {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.hero__side {
    display: grid;
    gap: 14px;
    align-content: start;
}
@media (min-width: 1024px) { .hero__side { gap: 18px; } }

.hero__card {
    background: var(--surface);
    border: 1px solid var(--ink-300);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .hero__card { padding: 28px; border-radius: 28px; } }

.hero__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.badge-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success-fg);
    font-size: 12px;
    font-weight: 600;
}
.hero__card-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--ink-50);
    color: var(--ink-900);
}
.hero__card-desc {
    margin-top: 14px;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.7;
}
.hero__phone {
    display: inline-block;
    margin-top: 18px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-900);
    transition: color .2s ease;
}
.hero__phone:hover { color: var(--primary); }

.hero__steps {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    align-items: stretch;
}
@media (min-width: 640px) { .hero__steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.hero__step {
    padding: 20px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--ink-300);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hero__step-num { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.hero__step-desc { margin-top: 8px; font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* ---------------------- grid cards (equal height) ---------------------- */
.grid {
    display: grid;
    gap: 18px;
    align-items: stretch;
}
.grid-4 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--ink-300);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (min-width: 768px) { .card { padding: 26px; border-radius: var(--radius-xl); } }
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.card--soft { background: var(--surface-2); }
.card__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
}
@media (min-width: 768px) {
    .card__icon { width: 54px; height: 54px; border-radius: 16px; }
}
.card--soft .card__icon {
    background: var(--surface);
    color: var(--ink-900);
    box-shadow: inset 0 0 0 1px var(--ink-100);
}
.card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card__index {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    line-height: 1;
}
.card__title {
    margin-top: 16px;
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.card__text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-500);
    flex-grow: 1;
}
.card__note {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--primary-light);
    border: 1px solid #d8daff;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

/* ---------------------- help / cta ---------------------- */
.help {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .help { grid-template-columns: 1.05fr 0.95fr; }
}

.help__left,
.help__right {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--ink-300);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
    .help__left, .help__right { padding: 32px; }
}
.help__right {
    color: #fff;
    border-color: transparent;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-primary);
}
.help__right .eyebrow,
.help__right p,
.help__right h2,
.help__right .helpnote { color: #fff !important; }
.help__right .eyebrow { color: rgba(255,255,255,0.85) !important; }

.steps { display: grid; gap: 12px; margin-top: 22px; }
.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--ink-100);
}
.step__num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ink-900);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.step__text { color: var(--ink-700); font-size: 15px; line-height: 1.6; }

.help__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.help__right h2 { margin-top: 18px; font-size: clamp(22px, 3vw, 30px); }
.help__right p  { margin-top: 16px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.9); }

.help__actions {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn--primary:hover { background: var(--primary-hover); }
.btn--light {
    background: #fff;
    color: var(--ink-900);
}
.btn--light:hover { background: var(--ink-50); }
.btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn__arrow {
    width: 26px; height: 26px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.22);
}
.btn--light .btn__arrow { background: var(--ink-50); color: var(--ink-900); }
.btn--primary .btn__arrow { background: rgba(255,255,255,0.22); color: #fff; }

.helpnote {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------------------- footer ---------------------- */
.site-footer {
    background: var(--ink-900);
    color: #fff;
    margin-top: 48px;
}
.site-footer .wrap { padding-top: 56px; padding-bottom: 36px; }
@media (max-width: 768px) {
    .site-footer { margin-top: 24px; }
    .site-footer .wrap { padding-top: 36px; padding-bottom: 24px; }
}

.footer__legal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer__legal-link:hover {
    color: #fff;
    background: rgba(91, 78, 255, 0.18);
    border-color: rgba(189, 181, 255, 0.35);
    transform: translateY(-1px);
}
.footer__legal-link svg { flex: 0 0 auto; color: #bdb5ff; }

.footer__grid {
    display: grid;
    gap: 28px;
}
@media (min-width: 960px) {
    .footer__grid { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
}

.footer__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.footer__tiles {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer__tiles { grid-template-columns: 1fr 1fr; } }
.footer__tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__tile-icon {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(91, 78, 255, 0.22);
    color: #bdb5ff;
}
.footer__tile-title { font-size: 14px; font-weight: 600; color: #fff; }
.footer__tile-sub   { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

.footer__partners { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer__partner {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
}
.footer__partner img { width: 16px; height: 16px; object-fit: contain; }

.footer__hot {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__hot a {
    display: block;
    margin-top: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    transition: color .2s ease;
}
.footer__hot a:hover { color: #bdb5ff; }
.footer__hot-sub { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

.footer__copy {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------------------- back to top ---------------------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 90;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--ink-900);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s, background .2s ease, transform .2s ease;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.4);
}
.to-top:hover { background: var(--primary); transform: translateY(-2px); }
.to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
body.modal-open .to-top { opacity: 0 !important; visibility: hidden !important; }

/* ---------------------- auth modal ---------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn .2s ease-out;
}
.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(16, 24, 40, 0.22);
    animation: slideUp .3s ease-out;
}
@media (min-width: 480px) { .modal__dialog { padding: 32px; } }
.modal__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    color: var(--ink-500);
    transition: background .2s ease;
}
.modal__close:hover { background: var(--ink-50); }

.modal__icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
}
.modal__icon--success { background: var(--success-bg); color: var(--success-fg); }
.modal__icon--danger  { background: var(--danger-bg);  color: var(--danger-fg);  }

.modal__title {
    margin-top: 20px;
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-900);
}
.modal__desc {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-500);
}

.field { margin-top: 22px; }
.field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
}
.field__input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid var(--ink-300);
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    color: var(--ink-900);
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}
.field__input::placeholder { color: var(--ink-400); }
.field__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 78, 255, 0.15);
}
.field__input.is-error {
    border-color: var(--danger-fg);
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1);
    animation: shake .38s ease;
}

.alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-br);
    color: var(--danger-fg);
    font-size: 14px;
    font-weight: 500;
}

.modal__submit {
    margin-top: 20px;
    width: 100%;
    min-height: 54px;
}
.modal__submit[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.modal__foot {
    margin-top: 16px;
    font-size: 12px;
    color: var(--ink-400);
    text-align: center;
    line-height: 1.6;
}
.modal__foot a { color: var(--primary); }
.modal__foot a:hover { text-decoration: underline; }

.wait {
    text-align: center;
    padding: 8px 0 4px;
}
.wait__ring {
    position: relative;
    margin: 0 auto;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wait__ring::before,
.wait__ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    animation: ring 2.4s ease-in-out infinite;
}
.wait__ring::after {
    inset: 6px;
    border-color: #d4d8ff;
    animation-delay: .6s;
}
.wait__ring-core {
    position: relative;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.wait__timer {
    margin: 22px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--ink-200);
    color: var(--ink-600);
    font-size: 14px;
    font-weight: 500;
}
.wait__timer strong { color: var(--ink-900); font-weight: 700; font-variant-numeric: tabular-nums; }

.info-box {
    margin-top: 22px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--ink-200);
    background: var(--surface-2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}
.info-box__dot {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.info-box__text { color: var(--ink-500); font-size: 14px; line-height: 1.65; }

.spinner {
    width: 18px; height: 18px;
    border: 2.4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.spinner--dark {
    border-color: rgba(91, 78, 255, 0.2);
    border-top-color: var(--primary);
}

/* animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ring {
    0%, 100% { transform: scale(1);    opacity: .35; }
    50%      { transform: scale(1.12); opacity: .15; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
}
@keyframes pop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}
.pop { animation: pop .4s var(--ease); }

/* ---------------------- pwa splash ---------------------- */
.pwa-splash {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: #fff;
    font-family: var(--font);
}
.pwa-splash[hidden] { display: none !important; }
.pwa-splash img { width: 88px; height: 88px; object-fit: contain; }
.pwa-splash p {
    font-size: clamp(17px, 4.5vw, 22px);
    font-weight: 600;
    color: var(--ink-900);
    text-align: center;
    max-width: 92%;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

/* ---------------------- outline button (for dark/light contexts) ---------------------- */
.btn--outline {
    background: #fff;
    color: var(--ink-900);
    border: 1px solid var(--ink-200);
}
.btn--outline:hover { background: var(--ink-50); border-color: var(--ink-300); }

/* ---------------------- 404 page ---------------------- */
.notfound {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0 16px;
    text-align: center;
}
.notfound__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(80px, 16vw, 160px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink-900);
}
.notfound__code .notfound__zero {
    width: clamp(80px, 16vw, 160px);
    height: clamp(80px, 16vw, 160px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: radial-gradient(120% 120% at 0% 0%, rgba(91, 78, 255, 0.35), transparent 55%),
                linear-gradient(135deg, #1a1a2e 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(59, 40, 204, 0.3);
}
.notfound__code .notfound__zero svg {
    width: 54%;
    height: 54%;
}
.notfound__title {
    margin-top: 22px;
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.notfound__desc {
    margin: 14px auto 0;
    max-width: 48ch;
    color: var(--ink-500);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.7;
}
.notfound__actions {
    margin-top: 28px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.notfound__actions .btn { min-width: 220px; }
@media (max-width: 480px) {
    .notfound__actions .btn { min-width: 0; width: 100%; }
}

/* ---------------------- cookie banner ---------------------- */
.cookies {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 0 16px max(16px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .3s var(--ease);
}
.cookies.is-visible { opacity: 1; transform: translateY(0); }
.cookies.is-visible .cookies__panel { pointer-events: auto; }
.cookies__panel {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--ink-200);
    box-shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
    margin-bottom: 16px;
}
.cookies__text { flex: 1 1 260px; min-width: 0; }
.cookies__title { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.cookies__desc  { margin-top: 4px; font-size: 13px; color: var(--ink-500); line-height: 1.55; }
.cookies__desc a { color: var(--primary); font-weight: 600; }
.cookies__desc a:hover { text-decoration: underline; }
.cookies__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookies .btn-ghost,
.cookies .btn-solid {
    min-height: 40px;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cookies .btn-ghost {
    background: transparent;
    color: var(--ink-700);
    border: 1px solid var(--ink-200);
}
.cookies .btn-ghost:hover { background: var(--ink-50); border-color: var(--ink-300); }
.cookies .btn-solid {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-primary);
}
.cookies .btn-solid:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
@media (max-width: 560px) {
    .cookies__panel { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; margin-bottom: 12px; }
    .cookies__text { flex: 0 0 auto; }
    .cookies__actions { justify-content: stretch; }
    .cookies__actions button { flex: 1 1 0; }
}

/* ---------------------- privacy page ---------------------- */
.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 0 56px;
    color: var(--ink-700);
}
.legal h1 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.legal .lead { margin-top: 10px; }
.legal h2 {
    margin-top: 32px;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.legal p, .legal li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-600);
}
.legal p { margin-top: 10px; }
.legal ul { margin-top: 10px; padding-left: 22px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--primary); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal .back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    color: var(--ink-700);
    font-size: 13px;
    font-weight: 600;
}
.legal .back:hover { background: var(--ink-50); }
.legal .back, .legal .back:hover { text-decoration: none; }
.legal .meta { margin-top: 28px; font-size: 13px; color: var(--ink-400); }

/* ---------------------- reduced motion ---------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
