:root {
    --vk-blue: #0077ff;
    --vk-blue-hover: #0066dd;
    --vk-blue-light: #e8f3ff;
    --vk-bg: #edeef0;
    --vk-white: #ffffff;
    --vk-text: #222222;
    --vk-muted: #818c99;
    --vk-border: #dce1e6;
    --vk-radius: 12px;
    --vk-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --vk-font: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--vk-font);
    color: var(--vk-text);
    background: var(--vk-bg);
}

a { color: var(--vk-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.vk-page { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.vk-header {
    background: var(--vk-white);
    border-bottom: 1px solid var(--vk-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.vk-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.vk-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vk-blue);
    text-decoration: none;
}

.vk-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0077ff 0%, #00aaff 100%);
    display: inline-block;
}

.vk-nav {
    display: flex;
    gap: 18px;
    flex: 1;
    font-size: 14px;
}

.vk-nav a {
    color: var(--vk-muted);
    text-decoration: none;
}

.vk-nav a:hover { color: var(--vk-blue); }

.vk-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vk-user-pill {
    font-size: 13px;
    color: var(--vk-muted);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Buttons */
.vk-btn {
    border: none;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 16px;
    min-height: 44px;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.vk-btn:active { transform: scale(0.97); }
.vk-btn-primary { background: #0077ff; color: #fff; }
.vk-btn-primary:hover { opacity: 0.88; }
.vk-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.vk-btn-secondary { background: #f2f3f5; color: #000; }
.vk-btn-secondary:hover { background: #ebedf0; }
.vk-btn-lg { padding: 12px 28px; font-size: 16px; border-radius: 8px; min-height: 44px; }
.vk-btn-block { width: 100%; }

/* Hero */
.vk-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 56px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 860px) {
    .vk-hero { grid-template-columns: 1fr; }
    .vk-hero-art { display: none; }
    .vk-nav { display: none; }
}

.vk-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.15;
    font-weight: 700;
}

.vk-hero-lead {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--vk-muted);
    max-width: 520px;
}

.vk-hc-hint {
    margin: 16px 0 0;
    font-size: 13px;
}
.vk-hc-hint.ok { color: #2a8f47; }
.vk-hc-hint.warn { color: #c45c00; }

.vk-modal-hc-warn {
    margin: 0 0 8px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    line-height: 17px;
    color: #e64646;
    text-align: center;
}
.vk-modal-hc-warn.ok { display: none; }

.vk-phone-mock {
    background: linear-gradient(160deg, #0077ff 0%, #2787f5 50%, #4bb3fd 100%);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--vk-shadow);
}

.vk-phone-screen {
    background: var(--vk-white);
    border-radius: 16px;
    padding: 20px;
    min-height: 220px;
}

.mock-line {
    height: 10px;
    background: #eef0f3;
    border-radius: 6px;
    margin-bottom: 12px;
}
.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }
.mock-card {
    height: 64px;
    background: #f5f6f8;
    border-radius: 10px;
    margin-top: 16px;
}
.mock-card.short { height: 40px; width: 70%; }

/* Sections */
.vk-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vk-section-alt {
    background: var(--vk-white);
    border-top: 1px solid var(--vk-border);
    border-bottom: 1px solid var(--vk-border);
    max-width: none;
}

.vk-section-alt > h2,
.vk-section-alt > p,
.vk-section-alt > .vk-features {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.vk-section h2 {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.vk-section > p {
    margin: 0;
    line-height: 1.6;
    color: var(--vk-muted);
    max-width: 720px;
}

.vk-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.vk-feature {
    background: var(--vk-bg);
    border-radius: var(--vk-radius);
    padding: 20px;
    border: 1px solid var(--vk-border);
}

.vk-feature h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--vk-blue);
}

.vk-feature p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--vk-muted);
}

.vk-steps {
    margin: 16px 0 0;
    padding-left: 20px;
    line-height: 1.8;
    color: var(--vk-muted);
}

.vk-protected {
    background: linear-gradient(180deg, #e8f3ff 0%, var(--vk-bg) 100%);
    border-radius: var(--vk-radius);
    margin-bottom: 40px;
    border: 1px solid #c5dfff;
}

.vk-protected-badge {
    display: inline-block;
    background: var(--vk-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.vk-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.vk-info-card {
    background: var(--vk-white);
    border: 1px solid var(--vk-border);
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 180px;
}

.vk-info-card .label {
    display: block;
    font-size: 12px;
    color: var(--vk-muted);
    margin-bottom: 4px;
}

.vk-info-card .value {
    font-weight: 600;
    font-size: 15px;
}

.vk-footer {
    margin-top: auto;
    padding: 24px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--vk-muted);
    border-top: 1px solid var(--vk-border);
    background: var(--vk-white);
}

/* ── VK.com auth screens ── */
.vk-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 48px;
    background: #2787f5 radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255,255,255,0.18) 0%, transparent 55%);
    overflow-y: auto;
}

.vk-auth-overlay[hidden] { display: none !important; }

.vk-auth-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    animation: vkAuthIn 0.22s ease-out;
}

@keyframes vkAuthIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.vk-auth-back,
.vk-auth-close {
    position: absolute;
    top: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #818c99;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

.vk-auth-back { left: 12px; }
.vk-auth-back[hidden] { display: none !important; }
.vk-auth-close { right: 12px; }
.vk-auth-back:hover,
.vk-auth-close:hover { background: #f2f3f5; color: #2c2d2e; }

.vk-auth-step[hidden] { display: none !important; }

.vk-auth-logo {
    display: flex;
    justify-content: center;
    margin: 8px 0 20px;
}

.vk-auth-logo--sm { margin: 4px 0 16px; }

.vk-auth-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
    color: #000;
    letter-spacing: -0.02em;
}

.vk-auth-desc {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 20px;
    text-align: center;
    color: #818c99;
}

.vk-auth-desc--code {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 24px;
}

.vk-auth-tabs {
    display: flex;
    background: #f0f2f5;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 16px;
}

.vk-auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #818c99;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.vk-auth-tab--active {
    background: #fff;
    color: #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vk-auth-panel { margin-bottom: 16px; }

.vk-auth-phone-field {
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s;
    overflow: hidden;
}

.vk-auth-phone-country {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    padding-left: 12px;
    padding-right: 4px;
}

.vk-auth-phone-flag {
    display: block;
    width: 24px;
    height: 18px;
    border-radius: 3px;
    background-color: #e7e8ec;
    background-image: url('../flags/ru.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.vk-auth-phone-field:focus-within {
    border-color: #dce1e6;
    box-shadow: none;
    outline: none;
}

.vk-auth-phone-field .vk-auth-input--phone {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0 12px 0 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    outline: none !important;
    font-size: 16px;
    line-height: 42px;
}

.vk-auth-phone-field .vk-auth-input--phone:focus,
.vk-auth-phone-field .vk-auth-input--phone:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.vk-auth-panel--phone .vk-auth-input:focus {
    border-color: transparent;
    box-shadow: none;
}

.vk-auth-step--loading {
    padding: 32px 0 24px;
    text-align: center;
}

.vk-auth-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.vk-auth-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto 24px;
    border: 3px solid #e7e8ec;
    border-top-color: #0077ff;
    border-radius: 50%;
    animation: vkAuthSpin 0.75s linear infinite;
}

@keyframes vkAuthSpin {
    to { transform: rotate(360deg); }
}

.vk-auth-input:focus:not(.vk-auth-input--phone) {
    outline: none;
    border-color: #2688eb;
    box-shadow: 0 0 0 1px #2688eb;
}

.vk-auth-pass-field {
    position: relative;
    margin-bottom: 16px;
}

.vk-auth-pass-field .vk-auth-input {
    padding-right: 44px;
}

.vk-auth-pass-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #818c99;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.vk-auth-pass-eye .vkid-eye-closed[hidden],
.vk-auth-pass-eye .vkid-eye-open[hidden] { display: none !important; }

.vk-auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.vk-auth-remember input { position: absolute; opacity: 0; width: 0; height: 0; }

.vk-auth-remember__box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #0077ff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vk-auth-remember input:not(:checked) + .vk-auth-remember__box {
    background: #fff;
    border: 1.5px solid #dce1e6;
}

.vk-auth-remember input:checked + .vk-auth-remember__box::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.vk-auth-remember__text {
    font-size: 15px;
    color: #2c2d2e;
}

.vk-auth-remember__info {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #818c99;
    color: #818c99;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    margin-left: auto;
}

.vk-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    background: #0077ff;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.1s;
}

.vk-auth-btn:hover { opacity: 0.9; }
.vk-auth-btn:active { opacity: 0.75; transform: scale(0.99); }
.vk-auth-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.vk-auth-legal {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    color: #818c99;
}

.vk-auth-legal a {
    color: #818c99;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vk-auth-error-inline {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: #e64646;
}

.vk-auth-error-inline[hidden] { display: none !important; }

.vk-auth-error-inline.err { color: #e64646; }

.vk-auth-help {
    margin-top: 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.95;
}

.vk-auth-help:hover { text-decoration: underline; }

/* Code step */
.vk-auth-step [hidden] {
    display: none !important;
}

.vk-auth-code-icon {
    display: flex;
    justify-content: center;
    margin: 12px 0 20px;
}

.vk-auth-code-boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.vk-auth-code-box {
    width: 44px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #f2f3f5;
    color: #000;
    font: inherit;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    padding: 0;
    caret-color: #0077ff;
    transition: background 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.vk-auth-code-box:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px #2688eb;
}

.vk-auth-code-box--filled {
    background: #f2f3f5;
}

.vk-auth-code-box--error {
    background: #fff;
    box-shadow: 0 0 0 1.5px #e64646;
}

.vk-auth-code-box--error:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #e64646;
}

.vk-auth-phone-field--error {
    border-color: #e64646 !important;
}

.vk-auth-pass-field .vk-auth-input--error {
    border-color: #e64646 !important;
    box-shadow: 0 0 0 1px #e64646 !important;
}

#challengeStatus {
    color: #e64646;
    text-align: center;
    font-size: 14px;
    line-height: 1.35;
    margin: -12px 0 20px;
}

.vk-auth-link {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    color: #818c99;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    padding: 8px;
}

.vk-auth-link:hover { color: #2c2d2e; }

#challengeStatus:empty { display: none; }

.vk-auth-code-loading {
    display: flex;
    justify-content: center;
    margin: 8px 0 20px;
}

.vk-auth-code-loading[hidden] { display: none !important; }

.vk-auth-code-single { margin-bottom: 12px; }
.vk-auth-code-single-input {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
    letter-spacing: 0.04em;
}
.vk-auth-call-timer {
    margin: 12px 0 0;
    font-size: 14px;
    color: #818c99;
    text-align: center;
}
.vk-auth-call-timer span {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #2c2d2e;
}
.vk-auth-code-icon--call {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.vk-auth-call-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f8ef 0%, #d4f5e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #4bb34b;
    position: relative;
}
.vk-auth-call-badge::after {
    content: "* 12 34";
    position: absolute;
    right: -8px;
    top: 8px;
    background: #0077ff;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
}
.vk-auth-captcha-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #e8f3ff;
    color: #0077ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.vk-auth-captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dce1e6;
    border-radius: 10px;
    margin-bottom: 16px;
    cursor: pointer;
}
.vk-auth-captcha-box input { position: absolute; opacity: 0; width: 0; height: 0; }
.vk-auth-captcha-check {
    width: 22px;
    height: 22px;
    border: 2px solid #818c99;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    background: #fff;
}
.vk-auth-captcha-box input:checked + .vk-auth-captcha-check {
    background: #0077ff;
    border-color: #0077ff;
}
.vk-auth-captcha-box input:checked + .vk-auth-captcha-check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.vk-auth-captcha-label { font-size: 15px; color: #2c2d2e; }
#challengeContinueBtn { margin-bottom: 8px; }
#codeBoxes[hidden], #codeSingleWrap[hidden] { display: none !important; }

.vk-auth-loader--sm {
    width: 28px;
    height: 28px;
    margin: 0;
    border-width: 2.5px;
}

/* ── Pulse VPN landing (on-*) ── */
.on-body {
    margin: 0;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0a0a0f;
    color: #e4e4e7;
    -webkit-font-smoothing: antialiased;
}

.on-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.on-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Ticker */
.on-ticker {
    overflow: hidden;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
    background-size: 200% 100%;
    animation: onTickerBg 8s linear infinite;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes onTickerBg {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.on-ticker-track {
    display: flex;
    gap: 48px;
    padding: 10px 0;
    animation: onTickerScroll 28s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.on-ticker-track span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.on-ticker-track i {
    margin-right: 8px;
    opacity: 0.85;
}

@keyframes onTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Nav */
.on-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.on-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.on-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fafafa;
    flex-shrink: 0;
}

.on-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.on-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.on-brand-name small {
    font-weight: 500;
    color: #a1a1aa;
    margin-left: 2px;
}

.on-menu {
    display: flex;
    gap: 28px;
    margin-right: auto;
}

.on-menu a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.on-menu a:hover {
    color: #fafafa;
}

.on-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.on-user {
    font-size: 14px;
    color: #a1a1aa;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Buttons */
.on-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.on-btn:hover {
    transform: translateY(-1px);
}

.on-btn-accent {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

.on-btn-accent:hover {
    box-shadow: 0 6px 32px rgba(99, 102, 241, 0.45);
}

.on-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.on-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.on-btn-outline {
    background: transparent;
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.on-btn-outline:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: #c4b5fd;
}

.on-btn-white {
    background: #fff;
    color: #18181b;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

.on-btn-white:hover {
    background: #f4f4f5;
}

.on-btn-xl {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 12px;
}

.on-btn-block {
    width: 100%;
    margin-top: 16px;
}

/* Hero */
.on-hero {
    position: relative;
    padding: 72px 0 64px;
    overflow: hidden;
}

.on-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 40%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(168, 85, 247, 0.12), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.08), transparent 40%);
    pointer-events: none;
}

.on-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.on-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
}

.on-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
    animation: onPulse 2s ease-in-out infinite;
}

@keyframes onPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.on-hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fafafa;
}

.on-gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.on-lead {
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.65;
    color: #a1a1aa;
    max-width: 480px;
}

.on-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.on-status-hint {
    margin: 20px 0 0;
    font-size: 13px;
}

.on-body .on-status-hint.ok,
.on-body .vk-hc-hint.ok {
    color: #22c55e;
}

.on-body .on-status-hint.warn,
.on-body .vk-hc-hint.warn {
    color: #fbbf24;
}

/* App widget mock */
.on-hero-widget {
    display: flex;
    justify-content: center;
}

.on-app-card {
    width: 100%;
    max-width: 340px;
    background: rgba(24, 24, 27, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.1) inset;
    backdrop-filter: blur(20px);
}

.on-app-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.on-app-status {
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
}

.on-app-status i {
    margin-right: 6px;
}

.on-app-ping {
    font-size: 12px;
    color: #71717a;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 999px;
}

.on-app-location {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.on-app-flag {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.on-app-location strong {
    display: block;
    font-size: 18px;
    color: #fafafa;
    margin-bottom: 2px;
}

.on-app-location small {
    font-size: 12px;
    color: #71717a;
}

.on-app-graph {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.on-app-graph span {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(180deg, #818cf8, #6366f1);
    border-radius: 4px 4px 2px 2px;
    opacity: 0.7;
    animation: onGraphBar 2.4s ease-in-out infinite;
}

.on-app-graph span:nth-child(odd) { animation-delay: 0.2s; }
.on-app-graph span:nth-child(3n) { animation-delay: 0.5s; }

@keyframes onGraphBar {
    0%, 100% { opacity: 0.5; transform: scaleY(0.92); }
    50% { opacity: 1; transform: scaleY(1); }
}

.on-app-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.on-app-row small {
    display: block;
    font-size: 11px;
    color: #71717a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.on-app-row strong {
    font-size: 16px;
    color: #fafafa;
}

.on-app-toggle {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    cursor: default;
}

.on-app-toggle span {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.on-app-toggle--on span::after {
    content: "ON";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
}

/* Metrics strip */
.on-metrics {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.on-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px 24px;
}

.on-metric {
    text-align: center;
}

.on-metric strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fafafa;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.on-metric span {
    font-size: 13px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Section heads */
.on-section-head {
    margin-bottom: 40px;
}

.on-section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fafafa;
}

.on-section-head p {
    margin: 0;
    font-size: 16px;
    color: #a1a1aa;
    max-width: 520px;
    line-height: 1.6;
}

.on-section-head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.on-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
    white-space: nowrap;
}

.on-tag--green {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.25);
}

/* Bento grid */
.on-bento {
    padding: 80px 0;
}

.on-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.on-bento-card {
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.on-bento-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.on-bento-card--wide {
    grid-column: span 2;
}

.on-bento-card--accent {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.25);
}

.on-bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}

.on-bento-icon--lg {
    width: 52px;
    height: 52px;
    font-size: 22px;
}

.on-bento-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #fafafa;
}

.on-bento-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #a1a1aa;
}

/* Locations table */
.on-locations {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.on-loc-table {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(24, 24, 27, 0.5);
}

.on-loc-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.on-loc-row:last-child {
    border-bottom: none;
}

.on-loc-row--head {
    background: rgba(255, 255, 255, 0.03);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #71717a;
}

.on-loc-name em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    margin-right: 10px;
    vertical-align: middle;
}

.on-loc-ping {
    color: #a1a1aa;
    font-variant-numeric: tabular-nums;
}

.on-loc-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.on-loc-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #22c55e);
}

.on-loc-ok {
    color: #22c55e;
    font-size: 13px;
    font-weight: 500;
}

.on-loc-ok i {
    font-size: 8px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Start cards */
.on-start {
    padding: 80px 0;
}

.on-start-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.on-start-card {
    position: relative;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 32px 28px;
    overflow: hidden;
}

.on-start-card--highlight {
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.2) 0%, rgba(24, 24, 27, 0.8) 60%);
    border-color: rgba(99, 102, 241, 0.3);
}

.on-start-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
}

.on-start-card > i {
    font-size: 28px;
    color: #818cf8;
    margin-bottom: 16px;
    display: block;
}

.on-start-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fafafa;
}

.on-start-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #a1a1aa;
}

/* Cabinet */
.on-cabinet {
    padding: 64px 0;
}

.on-cabinet-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(24, 24, 27, 0.8) 50%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 24px;
    padding: 40px;
}

.on-cabinet-left h2 {
    margin: 16px 0 12px;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fafafa;
}

.on-cabinet-left p {
    margin: 0;
    color: #a1a1aa;
    line-height: 1.6;
}

.on-dl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.on-dl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.on-dl-item i {
    font-size: 20px;
    color: #a5b4fc;
}

.on-dl-item:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    text-decoration: none;
    color: #fafafa;
}

.on-cabinet-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.on-cabinet-meta small {
    display: block;
    font-size: 11px;
    color: #71717a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.on-cabinet-meta strong {
    font-size: 14px;
    color: #fafafa;
}

.on-text-green {
    color: #22c55e !important;
}

/* CTA band */
.on-cta-band {
    padding: 72px 0;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #8b5cf6 100%);
    text-align: center;
}

.on-cta-inner h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
}

.on-cta-inner p {
    margin: 0 0 28px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.on-footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.on-footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.on-footer-brand p {
    margin: 12px 0 0;
    font-size: 13px;
    color: #71717a;
}

.on-footer-links {
    display: flex;
    gap: 24px;
}

.on-footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 14px;
}

.on-footer-links a:hover {
    color: #fafafa;
}

/* Responsive */
@media (max-width: 960px) {
    .on-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .on-hero-widget {
        order: -1;
    }

    .on-app-card {
        max-width: 100%;
    }

    .on-bento-grid {
        grid-template-columns: 1fr;
    }

    .on-bento-card--wide {
        grid-column: span 1;
    }

    .on-start-cards {
        grid-template-columns: 1fr;
    }

    .on-cabinet-panel {
        grid-template-columns: 1fr;
    }

    .on-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .on-loc-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .on-loc-row span:last-child {
        display: none;
    }

    .on-loc-row--head span:last-child {
        display: none;
    }
}

@media (max-width: 640px) {
    .on-menu {
        display: none;
    }

    .on-nav-inner {
        padding: 12px 16px;
    }

    .on-wrap {
        padding: 0 16px;
    }

    .on-hero {
        padding: 48px 0 40px;
    }

    .on-bento,
    .on-locations,
    .on-start {
        padding: 56px 0;
    }

    .on-loc-row {
        grid-template-columns: 1fr 1fr;
        padding: 14px 16px;
        gap: 10px;
    }

    .on-loc-bar {
        display: none;
    }

    .on-loc-row--head span:nth-child(3) {
        display: none;
    }

    .on-cabinet-meta {
        grid-template-columns: 1fr;
    }

    .on-metrics-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 24px 16px;
    }
}

