/* =====================================================================
   Shadow VPN — дизайн-система лендинга
   Тёмная «космическая» тема, гласморфизм, аура-фон, градиентные акценты.
   Только чистый CSS, без зависимостей.
   ===================================================================== */

/* ----------------------------- Токены -------------------------------- */
:root {
    --bg: #0A0E27;
    --bg-2: #0B1226;
    --bg-3: #0D1530;

    --surface: rgba(255, 255, 255, .045);
    --surface-2: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);

    --text: #F4F7FF;
    --muted: #A6B0CF;
    --muted-2: #7A86A8;

    --primary: #5B8CFF;
    --primary-2: #9A5BFF;
    --cyan: #2BD6F5;
    --success: #34E0A1;
    --amber: #FFB35B;
    --danger: #FF6B6B;

    --grad-primary: linear-gradient(135deg, #5B8CFF, #9A5BFF);
    --grad-cyan: linear-gradient(135deg, #2BD6F5, #5B8CFF);
    --grad-text: linear-gradient(120deg, #7FB0FF, #B98BFF 55%, #2BD6F5);

    --r-sm: 12px;
    --r: 18px;
    --r-lg: 26px;
    --pill: 999px;

    --shadow-card: 0 20px 60px rgba(5, 8, 25, .5);
    --glow: 0 10px 40px rgba(91, 140, 255, .45);

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

    --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
    --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------ Сброс -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
    scroll-padding-top: calc(var(--header-h) + 14px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Статичная аура-подложка на всю страницу + лёгкий шум против бандинга. */
body::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -2;
    background:
        radial-gradient(42vw 42vw at 12% -8%, rgba(91, 140, 255, .22), transparent 60%),
        radial-gradient(46vw 46vw at 92% 4%, rgba(154, 91, 255, .20), transparent 62%),
        radial-gradient(40vw 40vw at 78% 96%, rgba(43, 214, 245, .14), transparent 60%),
        radial-gradient(50vw 50vw at 8% 92%, rgba(91, 140, 255, .12), transparent 62%);
    animation: aura-drift 30s var(--ease) infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

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

/* Атрибут hidden должен побеждать любые display-правила классов. */
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

:focus:not(:focus-visible) { outline: none; }

/* ---------------------------- Типографика ---------------------------- */
.eyebrow {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--cyan);
    font-weight: 600;
}

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }

.section-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }

/* --------------------------- Лейаут-хелперы -------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.container-narrow { max-width: 820px; }

.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }

.section--alt::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(13, 21, 48, .55) 18%, rgba(13, 21, 48, .55) 82%, transparent);
}

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(38px, 5vw, 64px);
    text-align: center;
}

.section-head .eyebrow { display: block; margin-bottom: 14px; }

.section-head .section-sub { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--r-sm);
    transform: translateY(-160%);
    transition: transform .2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* Дрейфующая «клякса» для отдельных секций. */
.aura {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aura--hero::before, .aura--cta::before {
    content: "";
    position: absolute;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(70px);
    background: radial-gradient(circle, rgba(154, 91, 255, .34), transparent 65%);
    top: -10%;
    right: -6%;
    animation: blob 24s var(--ease) infinite alternate;
}

.aura--cta::before { background: radial-gradient(circle, rgba(43, 214, 245, .30), transparent 65%); left: -8%; right: auto; }

/* ------------------------------ Кнопки ------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: var(--pill);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.btn:active { transform: translateY(0) scale(.99); }

.btn-ico { display: inline-flex; }

.btn-ico .ico { width: 1.15em; height: 1.15em; }

.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--glow); }

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, .42) 50%, transparent 75%);
    transform: translateX(-130%);
    transition: transform .7s var(--ease);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(91, 140, 255, .6); }

.btn-primary:hover::before { transform: translateX(130%); }

.btn-ghost {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }

.btn-sm { min-height: 44px; padding: 0 20px; font-size: .94rem; }

.btn-lg { min-height: 54px; padding: 0 32px; font-size: 1.05rem; }

.btn-block { width: 100%; }

/* Состояние загрузки сабмита. */
.btn .btn-spinner {
    position: absolute;
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
}

.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading .btn-spinner { display: block; animation: spin .7s linear infinite; }

/* ------------------------------ Карточки ----------------------------- */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 26px;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* Градиентная рамка-свечение по краю на hover. */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-primary);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none;
}

.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 28px 70px rgba(5, 8, 25, .6); }

.card:hover::before { opacity: .55; }

/* --------------------------- Медиа + фолбэк -------------------------- */
.media {
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    background:
        linear-gradient(135deg, rgba(91, 140, 255, .12), rgba(154, 91, 255, .1)),
        var(--surface);
    aspect-ratio: 16 / 10;
}

.media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

.media img.img-failed { display: none; }

.media-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    color: var(--muted-2);
}

.media-fallback .ico { width: 38%; height: 38%; max-width: 80px; opacity: .7; }

/* ------------------------------- Шапка ------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(10, 14, 39, .72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 30px rgba(5, 8, 25, .4);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand-logo {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    flex: 0 0 auto;
}

.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; }

.brand-tag { font-size: .72rem; color: var(--muted-2); }

.nav-list { display: flex; align-items: center; gap: 6px; }

.nav-list a {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    color: var(--muted);
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav-list a:hover { color: var(--text); background: var(--surface); }

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

/* Бургер */
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }

.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное оверлей-меню */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 14, 39, .82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-nav { display: flex; flex-direction: column; gap: 8px; width: min(420px, 100%); text-align: center; }

.mobile-nav a:not(.btn) {
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--surface);
    transform: translateY(14px);
    opacity: 0;
    transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .2s;
}

.mobile-nav .btn { margin-top: 10px; transform: translateY(14px); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease), box-shadow .25s; }

.mobile-menu.is-open .mobile-nav a { transform: translateY(0); opacity: 1; }
.mobile-menu.is-open .mobile-nav a:nth-child(1) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: .1s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: .2s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { transition-delay: .25s; }
.mobile-menu.is-open .mobile-nav a:nth-child(6) { transition-delay: .3s; }

/* ------------------------------- Hero -------------------------------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 110px); }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: none; letter-spacing: .04em; font-size: .9rem; color: var(--muted); padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--pill); background: var(--surface); }

.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52, 224, 161, .6); animation: pulse 2.2s var(--ease) infinite; }

.hero-title { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.05; font-weight: 800; margin: 22px 0 0; }

.hero-sub { margin-top: 24px; color: var(--muted); font-size: 1.12rem; max-width: 560px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; }

.hero-chips li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .96rem; }

.chip-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(52, 224, 161, .14); color: var(--success); }

.chip-ico .ico { width: 14px; height: 14px; }

.hero-visual { position: relative; }

.hero-media {
    aspect-ratio: 1;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    animation: float 7s var(--ease) infinite alternate;
}

/* Hero-картинка прозрачная (объект «парит» над аурой): без кропа + мягкая тень. */
.hero-media img { object-fit: contain; filter: drop-shadow(0 26px 55px rgba(70, 110, 230, .45)); }

.media-fallback--hero { color: var(--primary); }
.media-fallback--hero .ico { width: 46%; height: 46%; max-width: 200px; opacity: .85; }

.hero-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--r);
    background: rgba(11, 18, 38, .72);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}

.hero-badge-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad-cyan); color: #04121b; }

.hero-badge-ico .ico { width: 20px; height: 20px; }

.hero-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-badge-text b { font-size: .92rem; }
.hero-badge-text i { font-style: normal; font-size: .76rem; color: var(--muted-2); }

.hero-badge--1 { top: 8%; left: -6%; animation: float 8s var(--ease) infinite alternate; }
.hero-badge--2 { bottom: 9%; right: -4%; animation: float 9s var(--ease) .5s infinite alternate-reverse; }

/* ----------------------------- Trust bar ----------------------------- */
.trustbar { padding: 8px 0 4px; }

.trustbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    padding: 20px 24px;
    border-block: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, var(--surface));
}

.trustbar-text { color: var(--muted); font-weight: 500; }

.pay-badges { display: flex; flex-wrap: wrap; gap: 10px; }

.pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .02em;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.pay-badge--mir { background: linear-gradient(135deg, rgba(0, 158, 96, .2), rgba(0, 158, 96, .08)); border-color: rgba(0, 200, 120, .4); }
.pay-badge--sbp { background: linear-gradient(135deg, rgba(255, 90, 60, .18), rgba(120, 60, 200, .16)); border-color: rgba(160, 90, 220, .4); }
.pay-badge--visa { color: #f7f9ff; background: linear-gradient(135deg, rgba(26, 31, 113, .4), rgba(40, 60, 180, .22)); border-color: rgba(80, 110, 230, .45); font-style: italic; }
.pay-badge--mastercard::before { content: ""; width: 26px; height: 16px; background: radial-gradient(circle 8px at 9px 8px, #ff5f00 60%, transparent 61%), radial-gradient(circle 8px at 17px 8px, rgba(235, 0, 27, .9) 60%, transparent 61%); }

/* ---------------------------- Возможности ---------------------------- */
.grid { display: grid; gap: 22px; }

.features-grid { grid-template-columns: repeat(3, 1fr); }

.feature-card { display: flex; flex-direction: column; gap: 16px; }

.feature-media { aspect-ratio: 4 / 3; }

.feature-icon {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(91, 140, 255, .22), rgba(154, 91, 255, .22));
    border: 1px solid var(--border-strong);
    color: var(--primary);
}

.feature-icon .ico { width: 30px; height: 30px; }

.feature-title { font-size: 1.22rem; }

.feature-text { color: var(--muted); font-size: 1rem; }

/* ----------------------------- Как это ------------------------------- */
.steps-grid { grid-template-columns: repeat(3, 1fr); }

.step-card { display: flex; flex-direction: column; gap: 16px; overflow: hidden; }

.step-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.4rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.step-media { aspect-ratio: 4 / 3; background: none; overflow: visible; }
/* Иконки шагов прозрачные — «парят» на карточке без кропа. */
.step-media img { object-fit: contain; filter: drop-shadow(0 14px 30px rgba(70, 110, 230, .32)); }

.step-title { font-size: 1.22rem; }

.step-text { color: var(--muted); }

/* ----------------------------- Устройства ---------------------------- */
.devices-grid { grid-template-columns: repeat(6, 1fr); }

.device-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; }

.device-ico {
    display: grid;
    place-items: center;
    width: 58px; height: 58px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.device-ico .ico { width: 28px; height: 28px; }

.device-name { font-size: 1.04rem; }

.device-note { font-size: .85rem; color: var(--muted-2); }

/* ------------------------------ Серверы ------------------------------ */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-list { display: flex; align-items: center; gap: 14px; padding-right: 14px; }

.ping {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: var(--pill);
    background: var(--surface);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.ping-flag { flex: 0 0 auto; width: 24px; height: 18px; border-radius: 3px; background-size: cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ping-country { font-weight: 500; }
.ping-ms { color: var(--success); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }

/* ------------------------------ Тарифы ------------------------------- */
.pricing-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; }

.price-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; }

.price-card--featured {
    border-color: rgba(154, 122, 255, .55);
    background: linear-gradient(180deg, rgba(91, 140, 255, .14), rgba(154, 91, 255, .07)), var(--surface);
    box-shadow: 0 30px 80px rgba(91, 60, 200, .4);
}

.price-card--featured::before { opacity: .8; }

.price-badge {
    align-self: flex-start;
    padding: 6px 13px;
    border-radius: var(--pill);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: rgba(255, 179, 91, .18);
    color: var(--amber);
    border: 1px solid rgba(255, 179, 91, .4);
}

.price-badge--hot { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--glow); }

.price-name { font-family: var(--font-text); font-weight: 600; font-size: 1.05rem; color: var(--muted); }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }

.price-now { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; white-space: nowrap; }

.price-per { color: var(--muted-2); font-size: .9rem; white-space: nowrap; }

.price-old-row { display: flex; align-items: center; gap: 10px; margin-top: -6px; }

.price-old { color: var(--muted-2); font-size: .95rem; }

.price-save { font-size: .76rem; font-weight: 700; color: var(--success); background: rgba(52, 224, 161, .14); padding: 3px 9px; border-radius: var(--pill); }

.price-bullets { display: flex; flex-direction: column; gap: 11px; margin: 8px 0 6px; flex: 1; }

.price-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--muted); }

.bullet-ico { flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(91, 140, 255, .16); color: var(--primary); margin-top: 1px; }

.bullet-ico .ico { width: 13px; height: 13px; }

.pricing-note { text-align: center; color: var(--muted-2); font-size: .9rem; margin-top: 26px; }

/* «Популярный» тариф — чуть крупнее на десктопе (на узких экранах — без масштаба). */
@media (min-width: 1081px) {
    .price-card--featured { transform: scale(1.045); z-index: 1; }
    .price-card--featured:hover { transform: scale(1.045) translateY(-6px); }
}

/* ------------------------------- Статы ------------------------------- */
.stats { padding: 10px 0 30px; }

.stats-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 18px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.stat { text-align: center; flex: 1 1 140px; }

.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.5rem); display: block; }

.stat-label { color: var(--muted); font-size: .92rem; }

/* ------------------------------ Отзывы ------------------------------- */
.reviews-grid { grid-template-columns: repeat(3, 1fr); }

.review-card { display: flex; flex-direction: column; gap: 16px; }

.stars { display: inline-flex; gap: 3px; color: var(--amber); }
.stars .ico { width: 18px; height: 18px; }

.review-text { color: var(--text); font-size: 1.02rem; line-height: 1.6; }

.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.review-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-avatar--initial { background: var(--grad-primary); color: #fff; font-weight: 700; font-family: var(--font-display); border: 0; }

.review-meta { display: flex; flex-direction: column; line-height: 1.25; }
.review-meta b { font-size: .98rem; }
.review-meta i { font-style: normal; font-size: .84rem; color: var(--muted-2); }

/* -------------------------------- FAQ -------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq-item { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .25s var(--ease), background-color .25s var(--ease); }

.faq-item:hover { border-color: var(--border-strong); }

.faq-q { margin: 0; font-size: 1rem; }

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    text-align: left;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 1.06rem;
    color: var(--text);
}

.faq-chevron { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--muted); transition: transform .3s var(--ease), color .2s, background-color .2s; }

.faq-chevron .ico { width: 18px; height: 18px; }

.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); background: var(--grad-primary); color: #fff; }

/* Панель: без JS открыта (доступна и индексируется). С JS — сворачивается через max-height. */
.faq-panel { overflow: hidden; transition: max-height .35s var(--ease); }
.js .faq-panel { max-height: 0; }

.faq-answer { padding: 0 22px 22px; color: var(--muted); }

/* ---------------------------- Финальный CTA -------------------------- */
.final-cta { padding-bottom: clamp(40px, 6vw, 80px); }

.cta-panel {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, rgba(91, 140, 255, .16), rgba(154, 91, 255, .12)), var(--bg-2);
    box-shadow: var(--shadow-card);
}

.cta-title { font-size: clamp(1.9rem, 4vw, 3rem); }

.cta-sub { margin: 16px auto 30px; color: var(--muted); max-width: 540px; font-size: 1.08rem; }

/* ----------------------------- Поддержка ----------------------------- */
.support-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); }

.support-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.support-sub { margin-top: 12px; color: var(--muted); max-width: 520px; }

.support-btn { flex: 0 0 auto; }

/* ------------------------------- Подвал ------------------------------ */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: clamp(48px, 6vw, 72px) 0 30px; background: linear-gradient(180deg, transparent, rgba(11, 18, 38, .6)); }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }

.footer-brand .brand { margin-bottom: 18px; }

.footer-desc { color: var(--muted); max-width: 360px; margin-bottom: 18px; }

.footer-mini { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-mini li { font-size: .82rem; color: var(--muted); padding: 6px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); }

.footer-h { font-family: var(--font-text); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 16px; }

.footer-col ul { display: flex; flex-direction: column; gap: 11px; }

.footer-col a { color: var(--muted); transition: color .2s var(--ease); }

.footer-col a:hover { color: var(--text); }

.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }

.footer-copy { color: var(--muted); font-size: .9rem; }

.footer-legal { color: var(--muted-2); font-size: .82rem; line-height: 1.5; }
.footer-legal p { margin: 0; }

.footer-disclaimer { color: var(--muted-2); font-size: .82rem; max-width: 760px; }

/* ------------------------------- Модалки ----------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 22, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.modal-dialog {
    position: relative;
    width: min(460px, 100%);
    max-height: min(92vh, 760px);
    overflow-y: auto;
    padding: 30px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
    box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
    transform: translateY(18px) scale(.98);
    transition: transform .3s var(--ease);
}

.modal-dialog--sm { width: min(420px, 100%); }

.modal.is-open .modal-dialog { transform: translateY(0) scale(1); }

.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: color .2s, background-color .2s, transform .2s; }

.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, .12); transform: rotate(90deg); }

.modal-close .ico { width: 20px; height: 20px; }

.modal-title { font-size: 1.5rem; }

.modal-lead { color: var(--muted); margin-top: 10px; font-size: .98rem; }

.checkout-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0; padding: 14px 18px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }

.checkout-plan-label { color: var(--muted-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

.checkout-plan-value { display: flex; align-items: baseline; gap: 8px; }
.checkout-plan-value b { font-size: 1.05rem; }
.checkout-plan-price { color: var(--cyan); font-weight: 700; }

.paytabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; }

.paytab { padding: 12px; border-radius: var(--r-sm); font-weight: 600; color: var(--muted); transition: color .2s, background-color .2s; }

.paytab.is-active { background: var(--grad-primary); color: #fff; box-shadow: var(--glow); }

.field { display: block; margin-bottom: 16px; }

.field-label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 8px; }

.field input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder { color: var(--muted-2); }

.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 140, 255, .25); }

.field.has-error input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); }

.field-error { display: block; color: var(--danger); font-size: .84rem; margin-top: 7px; }

.check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 11px; cursor: pointer; font-size: .92rem; color: var(--muted); }

.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check-box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border-strong); background: var(--surface); color: transparent; transition: background-color .2s, border-color .2s, color .2s; margin-top: 1px; }

.check-box .ico { width: 14px; height: 14px; }

.check input:checked + .check-box { background: var(--grad-primary); border-color: transparent; color: #fff; }

.check input:focus-visible + .check-box { outline: 2px solid var(--cyan); outline-offset: 2px; }

.link { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; font: inherit; }

.link:hover { color: var(--primary); }

.modal-fine { margin-top: 14px; font-size: .78rem; color: var(--muted-2); line-height: 1.5; }

.btn .btn-label { transition: opacity .2s; }

.modal-success { text-align: center; padding: 14px 6px; }

.success-ico { display: grid; place-items: center; width: 74px; height: 74px; margin: 6px auto 18px; border-radius: 50%; background: rgba(52, 224, 161, .16); color: var(--success); animation: pop .4s var(--ease); }

.success-ico .ico { width: 38px; height: 38px; }

.success-text { color: var(--muted); margin: 12px 0 26px; }

/* Страница оформления/оплаты: карточка чуть шире и выбор тарифа радио-карточками. */
.checkout-card { max-width: 520px; text-align: left; }
.checkout-card .auth-title { text-align: left; }
.checkout-card .modal-success { text-align: center; }

.order-plans { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.order-plans .field-label { display: block; margin-bottom: 6px; }
.order-plan { display: block; cursor: pointer; }
.order-plan input { position: absolute; opacity: 0; width: 0; height: 0; }
.order-plan-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: var(--r); background: var(--surface-2); border: 1.5px solid var(--border); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.order-plan-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-plan-name { font-size: 1rem; }
.order-plan-bullet { font-size: .82rem; color: var(--muted-2); }
.order-plan-price { white-space: nowrap; }
.order-plan-price b { color: var(--cyan); font-weight: 700; }
.order-plan-per { color: var(--muted-2); font-size: .85rem; margin-left: 2px; }
.order-plan input:checked + .order-plan-card { border-color: var(--cyan); background: var(--surface); box-shadow: var(--glow); }
.order-plan input:focus-visible + .order-plan-card { outline: 2px solid var(--cyan); outline-offset: 2px; }

.terms-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }

.terms-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }

.terms-ico { flex: 0 0 auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(52, 224, 161, .14); color: var(--success); margin-top: 1px; }

.terms-ico .ico { width: 15px; height: 15px; }

.terms-list b { color: var(--text); }

/* ----------------------------- Юр. страницы -------------------------- */
.legal { padding: clamp(90px, 12vw, 130px) 0 60px; }

.legal-crumbs { font-size: .88rem; color: var(--muted-2); margin-bottom: 22px; }
.legal-crumbs a { color: var(--muted); }
.legal-crumbs a:hover { color: var(--text); }

.legal-title { font-size: clamp(2rem, 4vw, 3rem); }

.legal-updated { color: var(--muted-2); margin-top: 8px; }

.legal-note { margin: 26px 0; padding: 16px 20px; border-radius: var(--r); border: 1px solid rgba(255, 179, 91, .35); background: rgba(255, 179, 91, .08); color: var(--text); font-size: .92rem; }

.legal-body { display: flex; flex-direction: column; gap: 30px; margin-top: 30px; }

.legal-body h2 { font-size: 1.3rem; margin-bottom: 10px; }

.legal-body p { color: var(--muted); }

.legal-body ul { color: var(--muted); margin-top: 6px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--muted-2); }

.legal-body a { color: var(--cyan); text-underline-offset: 2px; text-decoration: underline; }

.legal-back { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; }

.error-page { text-align: center; }
.error-page .eyebrow { display: block; margin-bottom: 12px; }
.error-lead { color: var(--muted); max-width: 520px; margin: 16px auto 0; }
.error-id { margin-top: 18px; color: var(--muted-2); font-size: .88rem; }
.error-id code { color: var(--cyan); }
.error-page .legal-back { justify-content: center; }

/* ----------------------------- Reveal -------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }

.js [data-reveal].in { opacity: 1; transform: none; }

/* --------------------------- Анимации -------------------------------- */
@keyframes aura-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.06); }
}

@keyframes blob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-6%, 8%) scale(1.12); }
    100% { transform: translate(5%, -4%) scale(1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-14px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 224, 161, .55); }
    70% { box-shadow: 0 0 0 9px rgba(52, 224, 161, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 224, 161, 0); }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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

@keyframes pop {
    0% { transform: scale(.6); opacity: 0; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* --------------------------- Адаптивность ---------------------------- */
@media (max-width: 1080px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .price-card--featured { transform: none; }
    .devices-grid { grid-template-columns: repeat(3, 1fr); }
    /* Карточки шире 3-в-ряд/1-в-ряд — цена снова крупная. */
    .price-now { font-size: 2.1rem; }
}

@media (max-width: 960px) {
    .nav-desktop { display: none; }
    .burger { display: block; }
    .header-cta { display: none; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
    .hero-sub { margin-inline: 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
    .reviews-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .support-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
    .features-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
    .devices-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-badge { display: none; }
    .stats-strip { gap: 22px 12px; }
    .stat { flex-basis: 40%; }
    .modal-dialog { padding: 24px 20px; }
}

@media (max-width: 400px) {
    .container { padding-inline: 16px; }
    .hero-title { font-size: 2.1rem; }
    .btn-lg { width: 100%; }
    .hero-cta .btn { width: 100%; }
    .devices-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ----------------------- Уважение к reduced-motion ------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .marquee-track { animation: none !important; }
    .hero-media, .hero-badge { animation: none !important; }
}

/* ===================================================================== */
/* Личный кабинет и страница входа                                        */
/* ===================================================================== */

/* Текстовые поля (код входа) — те же стили, что и у email-инпута. */
.field input[type="text"],
.field input[type="tel"],
.field input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}

/* Страница входа: центрируем карточку в области под шапкой. */
.auth-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: clamp(40px, 8vw, 96px) 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    padding: clamp(28px, 5vw, 40px);
    text-align: center;
}

.auth-ico {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--glow);
}

.auth-ico .ico { width: 28px; height: 28px; }

.auth-title { font-size: 1.6rem; margin-bottom: 10px; }

.auth-lead { color: var(--muted); font-size: .98rem; margin-bottom: 24px; }
.auth-lead b { color: var(--text); }

.auth-form { text-align: left; }
.auth-form .field { margin-bottom: 18px; }
.auth-form .btn { margin-top: 4px; }

/* Поле для кода: крупно, по центру, с разрядкой. */
.auth-code {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .5em;
    text-indent: .5em; /* компенсация разрядки последнего символа */
    font-family: var(--font-text);
}
.auth-code::placeholder { letter-spacing: .4em; color: var(--muted-2); }

.auth-alert {
    text-align: left;
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 18px;
}
.auth-alert--err { background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .35); color: #ffc2c2; }
.auth-alert--ok { background: rgba(52, 224, 161, .1); border: 1px solid rgba(52, 224, 161, .32); color: #9af0cf; }

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.auth-actions form { margin: 0; }

.auth-foot {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: .86rem;
    color: var(--muted-2);
}

/* --- Кабинет --- */
.cabinet-page { display: block; padding-top: clamp(90px, 12vw, 130px); padding-bottom: clamp(56px, 9vw, 110px); }

.cabinet-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.cabinet-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 8px 0 6px; }
.cabinet-email { color: var(--muted); font-size: .96rem; word-break: break-all; }
.cabinet-logout { flex-shrink: 0; }

.access-card { padding: clamp(24px, 4vw, 34px); }

.access-status { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }

.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; }
.access-card.is-active .status-dot { background: var(--success); box-shadow: 0 0 0 4px rgba(52, 224, 161, .18); }
.access-card.is-inactive .status-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 179, 91, .16); }

.status-text { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }

.access-grid { display: grid; gap: 1px; background: var(--border); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.access-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    background: var(--surface);
    margin: 0;
}
.access-label { color: var(--muted); font-size: .92rem; }
.access-value { font-weight: 600; text-align: right; }

.access-empty { color: var(--muted); margin-bottom: 20px; }
.access-cta { margin-top: 22px; }

.access-manage { margin-top: 22px; }
.access-note { color: var(--muted); font-size: .9rem; line-height: 1.55; margin-bottom: 14px; }

.cabinet-notice { margin-bottom: 22px; }

.cabinet-help { margin-top: 22px; color: var(--muted-2); font-size: .9rem; }

/* --- Блок подключения к VPN (три состояния: готов / готовится / заглушка) --- */
.connect-card { position: relative; overflow: hidden; margin-top: 18px; padding: clamp(24px, 4vw, 34px); }

/* Содержимое-заглушка: размыто и неинтерактивно. */
.connect-inner { filter: blur(7px); opacity: .5; pointer-events: none; user-select: none; }

.connect-title { font-size: 1.2rem; margin-bottom: 18px; }

.connect-grid { display: flex; align-items: center; gap: 20px; }

.connect-qr {
    width: 120px; height: 120px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.connect-qr .ico { width: 72px; height: 72px; color: var(--text); }

.connect-keys { flex: 1; min-width: 0; }
.connect-key {
    margin: 8px 0 16px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.connect-apps { display: flex; gap: 10px; flex-wrap: wrap; }
.connect-app {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border-radius: var(--pill);
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: .85rem;
}
.connect-app .ico { width: 16px; height: 16px; }

/* Оверлей поверх размытого блока. */
.connect-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 24px; text-align: center;
    background: rgba(10, 14, 39, .35);
}
.connect-badge {
    font-family: var(--font-display); font-weight: 700;
    font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
    padding: 8px 18px;
    border-radius: var(--pill);
    background: var(--grad-primary); color: #fff;
    box-shadow: var(--glow);
}
.connect-soon { max-width: 360px; color: var(--text); font-size: .92rem; line-height: 1.5; }

@media (max-width: 560px) {
    .connect-grid { flex-direction: column; align-items: stretch; }
    .connect-qr { width: 100%; height: 150px; }
}

/* --- Активная карточка подключения (Remnawave) --- */
.connect-card.is-ready { display: flex; flex-direction: column; gap: 18px; }

.connect-head { display: flex; align-items: flex-start; gap: 14px; }
.connect-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--cyan);
}
.connect-icon .ico { width: 24px; height: 24px; }
.connect-head .connect-title { margin-bottom: 0; }
.connect-sub { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: 4px; }

.connect-go { margin: 0; }

.connect-link { display: flex; flex-direction: column; gap: 8px; }
.connect-link-row { display: flex; gap: 10px; align-items: stretch; }
.connect-link-input {
    flex: 1; min-width: 0;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--muted);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: .86rem;
    text-overflow: ellipsis;
}
.connect-link-input:focus { outline: none; border-color: var(--primary); color: var(--text); }
.connect-copy { flex-shrink: 0; white-space: nowrap; }
.connect-copy.is-copied { color: var(--success); border-color: rgba(52, 224, 161, .4); }
.connect-hint { color: var(--muted-2); font-size: .84rem; line-height: 1.5; }

.connect-recreate { margin-top: 2px; text-align: center; }
.link-muted { color: var(--muted-2); font-size: .88rem; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; }
.link-muted:hover { color: var(--text); text-decoration: underline; }

/* --- Зона отказа (полное удаление профиля + аккаунта) --- */
.danger-card { margin-top: 18px; padding: 0; overflow: hidden; }
.danger-summary {
    list-style: none; cursor: pointer;
    padding: 18px clamp(20px, 4vw, 28px);
    font-weight: 600; color: var(--muted);
    display: flex; align-items: center; gap: 10px;
    transition: color .2s;
}
.danger-summary::-webkit-details-marker { display: none; }
.danger-summary::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--danger); opacity: .7; flex-shrink: 0;
}
.danger-summary:hover { color: var(--text); }
.danger-body { padding: 0 clamp(20px, 4vw, 28px) clamp(20px, 4vw, 28px); }
.danger-text { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }

.btn-danger {
    background: rgba(255, 107, 107, .12);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, .35);
}
.btn-danger:hover { transform: translateY(-1px); background: rgba(255, 107, 107, .2); border-color: rgba(255, 107, 107, .55); }

@media (max-width: 560px) {
    .connect-link-row { flex-direction: column; }
    .connect-copy { width: 100%; }
}

@media (max-width: 960px) {
    /* На мобильных вход доступен через бургер-меню. */
    .header-login { display: none; }
}

/* =====================================================================
   Админ-панель (/admin) — переиспользует токены и .card кабинета.
   ===================================================================== */
.admin-page { display: block; padding-top: clamp(90px, 12vw, 130px); padding-bottom: clamp(56px, 9vw, 110px); }

.admin-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.admin-actions { display: flex; align-items: center; gap: 10px; }

.admin-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-tabs-label { color: var(--muted); font-size: .9rem; margin-right: 4px; }
.admin-chip {
    padding: 6px 14px; border-radius: var(--pill); font-size: .88rem; font-weight: 600;
    border: 1px solid var(--border); color: var(--muted); background: var(--surface);
    transition: color .2s, border-color .2s, background .2s;
}
.admin-chip:hover { color: var(--text); border-color: var(--border-strong); }
.admin-chip.is-active { color: var(--text); border-color: transparent; background: var(--grad-primary); box-shadow: var(--glow); }

/* KPI */
.admin-kpis {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px; margin-bottom: 22px;
}
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.kpi-value { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.kpi-sub { color: var(--muted-2); font-size: .85rem; }

/* Блоки */
.admin-block { padding: clamp(18px, 3vw, 26px); margin-bottom: 18px; }
.admin-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.admin-muted { color: var(--muted-2); font-size: .85rem; }
.admin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .admin-two { grid-template-columns: 1fr; } }

/* Дневной график (чистый CSS, без зависимостей) */
.admin-chart {
    display: flex; align-items: flex-end; gap: 3px;
    height: 140px; padding: 6px 2px 0; margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.admin-bar-wrap { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 3px; }
.admin-bar {
    width: 100%; border-radius: 3px 3px 0 0; min-height: 2px;
    background: var(--grad-cyan); opacity: .85; transition: opacity .2s;
}
.admin-bar:hover { opacity: 1; }
.admin-bar.is-empty { background: var(--border); min-height: 2px; opacity: .5; }

/* Таблицы */
.admin-details { margin-top: 10px; }
.admin-details > summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 600; padding: 4px 0; }
.admin-details > summary:hover { color: var(--text); }
.admin-table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 9px 12px; text-align: left; white-space: nowrap; }
.admin-table thead th {
    color: var(--muted-2); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid var(--border);
}
.admin-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .cap { text-transform: capitalize; }
.admin-table .email { font-family: var(--font-text); color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.admin-table tr.is-dim td { color: var(--muted-2); }

.admin-tag {
    display: inline-block; padding: 2px 9px; border-radius: var(--pill); font-size: .74rem; font-weight: 600;
    background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.admin-tag--new { color: var(--success); border-color: rgba(52, 224, 161, .4); background: rgba(52, 224, 161, .1); }

/* «Какие тарифы покупали»: счёт + выручка муатным подзаголовком в ячейке */
.pp-rev { display: block; font-size: .72rem; font-weight: 400; color: var(--muted-2); }
.pp-total td { border-top: 1px solid var(--border-strong); font-weight: 700; }
.pp-total td:first-child { color: var(--muted); }

.admin-status { font-size: .82rem; font-weight: 600; color: var(--muted); }
.admin-status--ok { color: var(--success); }
.admin-status--off { color: var(--amber); }

.admin-empty { color: var(--muted); text-align: center; padding: 18px 0; }

/* Пользователи */
.admin-search { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-search-input {
    flex: 1 1 240px; max-width: 360px; padding: 10px 14px; border-radius: var(--r-sm);
    background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit;
}
.admin-search-input:focus { outline: none; border-color: var(--primary); }
.admin-count { margin-bottom: 16px; }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }

