:root {
    --bg: #081018;
    --bg-2: #0d1824;
    --card: rgba(255, 255, 255, .075);
    --card-strong: rgba(255, 255, 255, .12);
    --line: rgba(255, 255, 255, .14);
    --text: #eef7ff;
    --muted: #9fb0c4;
    --accent: #49d7ff;
    --accent-2: #7cffc9;
    --dark: #05090f;
    --shadow: 0 24px 80px rgba(0, 0, 0, .32);
    --radius: 28px;
    --radius-sm: 18px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(73, 215, 255, .22), transparent 34rem),
        radial-gradient(circle at 82% 10%, rgba(124, 255, 201, .12), transparent 28rem),
        linear-gradient(180deg, #081018 0%, #0b1320 48%, #071018 100%);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
code {
    padding: .18rem .42rem;
    border-radius: .55rem;
    color: #c7fbff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
}

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

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}
.section { padding: 96px 0; }
.section.compact { padding: 72px 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8, 16, 24, .72);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}
.header-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}
.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #061018;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 30px rgba(73, 215, 255, .35);
}
.nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }
.menu-toggle { display: none; }

.hero { padding-top: 86px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr);
    gap: 44px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    margin-bottom: 22px;
    max-width: 840px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: .95;
    letter-spacing: -.055em;
}
h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.03;
    letter-spacing: -.035em;
}
h3 { margin-bottom: 10px; font-size: 22px; }
p { color: var(--muted); line-height: 1.68; }
.lead { max-width: 700px; font-size: 20px; color: #c9d8e7; }
.hero-actions, .card-actions, .proxy-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: #061018;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 16px 44px rgba(73, 215, 255, .22);
}
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
.btn-soft { color: var(--text); border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .08); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn-big { min-height: 60px; padding: 0 28px; }
.full { width: 100%; margin-top: 22px; }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}
.trust-row span, .chips span {
    padding: 9px 13px;
    border-radius: 999px;
    color: #d9ecfb;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
}
.glass-card, .card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .055));
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}
.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    padding: 28px;
    border-radius: var(--radius);
}
.orb {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(73, 215, 255, .9), rgba(124, 255, 201, .2) 45%, transparent 70%);
    filter: blur(4px);
}
.status-line { position: relative; display: flex; align-items: center; gap: 10px; color: #d7fbff; font-weight: 800; }
.pulse {
    width: 10px; height: 10px; border-radius: 999px;
    background: var(--accent-2);
    box-shadow: 0 0 0 8px rgba(124, 255, 201, .13);
}
.mini-dashboard { position: relative; display: grid; gap: 14px; margin-top: 76px; }
.mini-dashboard div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(5, 10, 17, .55);
    border: 1px solid rgba(255, 255, 255, .11);
}
.mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #07111d;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 26px rgba(73, 215, 255, .18);
    white-space: nowrap;
}
.mini-link:hover { transform: translateY(-1px); filter: brightness(1.04); }
.mini-link:focus-visible { outline: 2px solid rgba(124, 255, 201, .75); outline-offset: 3px; }

.section-head { max-width: 760px; margin-bottom: 34px; }
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.card {
    padding: 28px;
    border-radius: var(--radius-sm);
}
.service-icon { font-size: 34px; margin-bottom: 14px; }
.muted { color: var(--muted); }
.check-list { padding: 0; margin: 22px 0; list-style: none; display: grid; gap: 10px; }
.check-list li { color: #d8e7f7; display: flex; gap: 10px; }
.check-list li::before { content: "✓"; color: var(--accent-2); font-weight: 900; }

.dark-band {
    background: linear-gradient(135deg, rgba(73, 215, 255, .08), rgba(124, 255, 201, .05));
    border-block: 1px solid rgba(255, 255, 255, .08);
}
.connect-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 36px; align-items: start; }
.steps { display: grid; gap: 14px; }
.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}
.step > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #061018;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step p { margin-bottom: 0; }

.proxy-layout { display: grid; grid-template-columns: .75fr 1fr; gap: 28px; align-items: start; }
.proxy-toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.proxy-toolbar input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--text);
    outline: none;
    background: rgba(0, 0, 0, .18);
}
.proxy-list { display: grid; gap: 10px; max-height: 450px; overflow: auto; padding-right: 4px; }
.proxy-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .08);
}
.proxy-item b { display: block; margin-bottom: 3px; }
.proxy-item span { color: var(--muted); font-size: 13px; word-break: break-all; }
.copy-status { min-height: 24px; margin-top: 12px; color: var(--accent-2); }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.tariff-list { display: grid; gap: 10px; margin-top: 20px; }
.tariff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
}
.tariff-row span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.tariff-row strong { color: #dffeff; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.updates-section { padding-top: 56px; }
.updates-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.update-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .09);
}
.update-card time { color: var(--accent-2); font-size: 12px; font-weight: 800; }
.update-card h3 { margin-top: 12px; font-size: 18px; }
.update-card p { margin-bottom: 0; font-size: 14px; }

.support-section { padding-top: 56px; }
.support-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 42px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(73, 215, 255, .16), rgba(124, 255, 201, .1));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: var(--shadow);
}
.support-card p { max-width: 730px; margin-bottom: 0; }

.faq-list { display: grid; gap: 12px; }
details {
    padding: 20px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .09);
}
summary { cursor: pointer; font-weight: 800; }
details p { margin: 14px 0 0; }

.site-footer { padding: 44px 0; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .16); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-grid p { margin: 14px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 980px) {
    .hero-grid, .connect-grid, .proxy-layout, .two-col { grid-template-columns: 1fr; }
    .cards, .updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-card { min-height: 360px; }
}

@media (max-width: 720px) {
    .section, .section.compact { padding: 58px 0; }
    .header-row { min-height: 68px; }
    .nav {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        padding: 18px;
        border-radius: 18px;
        background: rgba(8, 16, 24, .96);
        border: 1px solid rgba(255, 255, 255, .12);
    }
    .nav.is-open { display: flex; }
    .menu-toggle {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 14px;
        color: var(--text);
        background: rgba(255, 255, 255, .07);
    }
    h1 { font-size: 43px; line-height: 1; }
    .lead { font-size: 17px; }
    .hero-actions, .proxy-actions, .card-actions { align-items: stretch; }
    .hero-actions .btn, .proxy-actions .btn, .card-actions .btn { width: 100%; }
    .cards, .updates-grid { grid-template-columns: 1fr; }
    .support-card, .footer-grid { flex-direction: column; align-items: flex-start; }
    .proxy-toolbar { flex-direction: column; }
    .proxy-item { grid-template-columns: 1fr; }
    .tariff-row { align-items: flex-start; flex-direction: column; }
    .mini-dashboard div { align-items: flex-start; flex-direction: column; }
    .mini-link { width: 100%; }
}



.btn:disabled {
    cursor: wait;
    opacity: .7;
}

/* Выравнивание кнопок в карточках сервисов по нижней грани */
.service-cards { align-items: stretch; }
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card .check-list {
    margin-bottom: 22px;
}
.service-card .card-actions {
    margin-top: auto;
    padding-top: 4px;
}

/* Рандомный показатель пользователей онлайн */
.mini-dashboard .mini-stat strong {
    color: var(--accent-2);
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -.02em;
    white-space: nowrap;
}

/* Плавное обновление показателя пользователей онлайн */
#onlineUsersCounter {
    transition: opacity .18s ease, transform .18s ease;
}
#onlineUsersCounter.is-updating {
    opacity: .82;
    transform: translateY(-1px);
}


/* Блок тарифов DNS и ROUTER */
.tariffs-section .section-head { margin-bottom: 28px; }
.tariff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.tariff-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.tariff-card h3 { font-size: 28px; letter-spacing: -.025em; }
.tariff-card .muted { min-height: 54px; }
.tariff-actions {
    margin-top: auto;
    padding-top: 22px;
}
.locations-strip {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.locations-strip h3 { margin-bottom: 0; }
.locations-strip .chips { margin-top: 0; justify-content: flex-end; }

@media (max-width: 980px) {
    .tariff-grid { grid-template-columns: 1fr; }
    .locations-strip { flex-direction: column; align-items: flex-start; }
    .locations-strip .chips { justify-content: flex-start; }
}
