﻿:root {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --surface: #161616;
    --border: #2a2a2a;
    --text: #f5f5f5;
    --muted: #888888;
    --accent: #ffffff;
    --radius: 14px;
    --radius-lg: 18px;
    --transition: 0.25s ease;
    --font: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    --text-base: 0.9375rem;
    --leading: 1.55;
    --leading-tight: 1.25;
    --tracking: -0.011em;
    --tracking-tight: -0.025em;
    --card-bg: linear-gradient(160deg, rgba(24, 24, 24, 0.98) 0%, rgba(12, 12, 12, 0.99) 100%);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 255, 255, 0.18);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.45);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: var(--leading);
    letter-spacing: var(--tracking);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 600;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--text);
}

h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.95rem; }

p {
    line-height: var(--leading);
}

strong, b {
    font-weight: 600;
}

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: inherit;
}

code, kbd, samp, pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
    font-feature-settings: normal;
}

a { color: var(--text); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.container--narrow { max-width: 420px; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.12) 70%, transparent);
    pointer-events: none;
}

.header .container.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    min-height: 76px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    flex-shrink: 0;
    color: var(--text);
    opacity: 1;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}
.logo:hover {
    opacity: 0.8;
}
.logo__name {
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.logo__tld {
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-left: auto;
}
.nav__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}
.nav__divider {
    width: 1px;
    height: 1.75rem;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.nav__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.nav__actions .btn--ghost {
    background: transparent;
}
.nav__actions .btn--sm.btn--glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--muted);
    opacity: 1;
    border: 1px solid transparent;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}
.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    opacity: 1;
}
.nav-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
.nav-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}
.nav-link:hover .nav-link__icon { color: rgba(255, 255, 255, 0.9); }
.nav-link__label { white-space: nowrap; }
.nav-link__badge {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(42, 171, 238, 0.14);
    color: #7ec8f7;
    white-space: nowrap;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 0;
    overflow: visible;
}

/* Способ оплаты — сегментированный переключатель */
.pay-toggle-wrap {
    width: 100%;
}

.pay-toggle__head {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777;
}

.pay-toggle {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 0.28rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pay-toggle__thumb {
    position: absolute;
    top: 0.28rem;
    bottom: 0.28rem;
    left: 0.28rem;
    width: calc((100% - 0.28rem - 0.25rem) / 2);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.07) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.pay-toggle:has(.pay-toggle__opt:nth-child(3) input:checked) .pay-toggle__thumb {
    transform: translateX(calc(100% + 0.25rem));
}

.pay-toggle__opt {
    position: relative;
    z-index: 1;
    margin: 0;
    cursor: pointer;
}

.pay-toggle__opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pay-toggle__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.65rem;
    padding: 0.45rem 0.55rem;
    text-align: left;
    border-radius: 9px;
    border: 1px solid transparent;
    color: #888;
    transition: color 0.18s ease;
}

.pay-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: #aaa;
    transition: background 0.18s ease, color 0.18s ease;
}

.pay-toggle__text {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.pay-toggle__title {
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
}

.pay-toggle__meta {
    font-size: 0.64rem;
    line-height: 1.25;
    color: #666;
}

.pay-toggle__opt:hover .pay-toggle__label {
    color: #bbb;
}

.pay-toggle__opt:hover .pay-toggle__icon {
    color: #ccc;
    background: rgba(255, 255, 255, 0.07);
}

.pay-toggle__opt input:checked + .pay-toggle__label {
    color: #f2f2f2;
}

.pay-toggle__opt input:checked + .pay-toggle__label .pay-toggle__icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.pay-toggle__opt input:checked + .pay-toggle__label .pay-toggle__meta {
    color: #999;
}

.pay-toggle__opt input:focus-visible + .pay-toggle__label {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 1px;
}

/* Компактный — в карточках тарифов и продлении (как раньше) */
.pay-toggle--simple {
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.pay-toggle--simple .pay-toggle__label {
    display: block;
    min-height: 0;
    padding: 0.5rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
    color: #888;
    background: transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pay-toggle--simple .pay-toggle__opt:hover .pay-toggle__label {
    color: #bbb;
}

.pay-toggle--simple .pay-toggle__opt input:checked + .pay-toggle__label {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

@media (max-width: 520px) {
    .pay-toggle-wrap:not(.pay-toggle-wrap--compact) .pay-toggle__label {
        flex-direction: column;
        gap: 0.25rem;
        min-height: 3.1rem;
        padding: 0.4rem 0.35rem;
        text-align: center;
    }

    .pay-toggle-wrap:not(.pay-toggle-wrap--compact) .pay-toggle__text {
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pay-toggle__thumb {
        transition: none;
    }
}

/* Tariff builder — custom checkboxes (не нативные белые квадраты) */
.tariff-builder__check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.tariff-builder__check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.1rem 0 0;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tariff-builder__check input[type="checkbox"]:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.06);
}

.tariff-builder__check input[type="checkbox"]:checked {
    border-color: rgba(255, 255, 255, 0.65);
    background-color: #ececec;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2 5.1 8.8 9.8 3.5' stroke='%23121212' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 0.7rem;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tariff-builder__check input[type="checkbox"]:checked:hover {
    background-color: #fff;
    border-color: #fff;
}

.tariff-builder__check:has(input:checked) {
    color: #c8c8c8;
}

.tariff-builder__check input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

/* Tariff builder — layout (главная + кабинет) */
.tariff-builder {
    padding: 1.35rem 1.5rem 1.5rem;
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(10, 10, 10, 0.98) 100%);
}

.tariff-builder--cabinet {
    margin-top: 1.25rem;
}

.tariff-builder--cabinet.tariff-builder--collapsed {
    display: none;
}

.cabinet-builder-entry {
    margin-top: 1.15rem;
}

.cabinet-builder-entry[hidden] {
    display: none;
}

.cabinet-builder-entry__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    padding: 1.1rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.cabinet-builder-entry__btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
}

.cabinet-builder-entry__btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.cabinet-builder-entry__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: #ddd;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cabinet-builder-entry__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #eee;
}

.cabinet-builder-entry__desc {
    font-size: 0.72rem;
    color: #666;
    line-height: 1.4;
    text-align: center;
    max-width: 22rem;
}

.tariff-builder__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.35rem;
}

.tariff-builder__head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem 1rem;
    margin-left: auto;
}

.tariff-builder__close {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tariff-builder__close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.tariff-builder__close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.tariff-builder__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
}

.tariff-builder__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.tariff-builder__lead {
    margin: 0;
    max-width: 32rem;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
}

.tariff-builder__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tariff-builder__preset {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tariff-builder__preset:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.tariff-builder__form > .pay-toggle-wrap {
    margin-bottom: 1.15rem;
}

.tariff-builder__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

.tariff-builder__field {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0.85rem 0.9rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.tariff-builder__field-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 2.35rem;
    margin-bottom: 0.65rem;
}

.tariff-builder__field-head label {
    min-width: 0;
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.tariff-builder__field-foot {
    margin-top: auto;
    min-height: 2.85rem;
    padding-top: 0.55rem;
}

.tariff-builder__field-foot .tariff-builder__check {
    margin: 0;
}

.tariff-builder__field-foot .tariff-builder__hint {
    margin: 0;
}

.tariff-builder__value {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ddd;
    line-height: 1.35;
    padding-top: 0.05rem;
}

.tariff-builder__range {
    --range-fill: 0%;
    --range-track: rgba(255, 255, 255, 0.14);
    --range-fill-color: #fff;
    --range-thumb: #fff;
    --range-track-h: 6px;
    --range-thumb-size: 18px;

    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: var(--range-thumb-size);
    margin: 0 0 0.65rem;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.tariff-builder__range:focus {
    outline: none;
}

.tariff-builder__range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.tariff-builder__range:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tariff-builder__range::-webkit-slider-runnable-track {
    height: var(--range-track-h);
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--range-fill-color) 0%,
        var(--range-fill-color) var(--range-fill),
        var(--range-track) var(--range-fill),
        var(--range-track) 100%
    );
}

.tariff-builder__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: var(--range-thumb-size);
    height: var(--range-thumb-size);
    margin-top: calc((var(--range-track-h) - var(--range-thumb-size)) / 2);
    border: none;
    border-radius: 50%;
    background: var(--range-thumb);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.tariff-builder__range::-moz-range-track {
    height: var(--range-track-h);
    border: none;
    border-radius: 999px;
    background: var(--range-track);
}

.tariff-builder__range::-moz-range-progress {
    height: var(--range-track-h);
    border-radius: 999px 0 0 999px;
    background: var(--range-fill-color);
}

.tariff-builder__range::-moz-range-thumb {
    width: var(--range-thumb-size);
    height: var(--range-thumb-size);
    border: none;
    border-radius: 50%;
    background: var(--range-thumb);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.tariff-builder__hint {
    margin: 0;
    font-size: 0.72rem;
    color: #666;
    line-height: 1.45;
}

.tariff-builder__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tariff-builder__summary-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    flex: 1 1 14rem;
    min-width: 0;
}

.tariff-builder__summary-lines span {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
}

.tariff-builder__price-wrap {
    flex: 0 0 auto;
    text-align: right;
}

.tariff-builder__price-label {
    display: block;
    font-size: 0.72rem;
    color: #666;
    margin-bottom: 0.15rem;
}

.tariff-builder__price {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.tariff-builder__form .btn--block,
.tariff-builder__summary > .btn--block,
.tariff-builder__summary > a.btn--block {
    flex: 1 1 100%;
    width: 100%;
    min-width: 12rem;
}

.tariff-builder__note {
    margin: 0.65rem 0 0;
    font-size: 0.72rem;
    color: #666;
    text-align: center;
    width: 100%;
}

@media (max-width: 900px) {
    .tariff-builder__grid {
        grid-template-columns: 1fr;
    }

    .tariff-builder__field-head {
        min-height: 0;
    }

    .tariff-builder__field-foot {
        min-height: 0;
    }

    .tariff-builder__price-wrap {
        text-align: left;
        width: 100%;
    }
}

/* Tariff builder — блок «Генерация нового ключа» (новая опция) */
.tariff-builder__field--new {
    position: relative;
    border-color: rgba(126, 200, 247, 0.28);
    background:
        linear-gradient(145deg, rgba(42, 171, 238, 0.1) 0%, rgba(42, 171, 238, 0.02) 55%, transparent 100%);
    box-shadow:
        inset 0 1px 0 rgba(126, 200, 247, 0.12),
        0 0 0 1px rgba(42, 171, 238, 0.06);
}

.tariff-builder__field-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    cursor: pointer;
}

.tariff-builder__field-title {
    font-size: 0.82rem;
    font-weight: 600;
}

.tariff-builder__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.45rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0a1620;
    background: linear-gradient(135deg, #9edcff 0%, #5eb8f0 100%);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(42, 171, 238, 0.35);
    animation: tariff-builder-badge-pulse 2.8s ease-in-out infinite;
}

@keyframes tariff-builder-badge-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(42, 171, 238, 0.28); }
    50% { box-shadow: 0 0 16px rgba(42, 171, 238, 0.5); }
}

.tariff-builder__field--new .tariff-builder__range {
    --range-fill-color: #7ec8f7;
    --range-thumb: #7ec8f7;
}

.tariff-builder__field--new .tariff-builder__range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(126, 200, 247, 0.35);
}

.tariff-builder__field--new .tariff-builder__hint {
    color: #8ab4c8;
}

@media (prefers-reduced-motion: reduce) {
    .tariff-builder__badge {
        animation: none;
    }
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.burger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}
.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger.is-active .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.is-active .burger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.is-active .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
    opacity: 1;
}
.btn--outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
    transition:
        transform 0.22s cubic-bezier(0.33, 1, 0.68, 1),
        box-shadow 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}
.btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 1;
}
.btn--outline:active {
    transform: translateY(0);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
}
.btn--outline:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}
.btn--outline.btn--sm {
    padding: 0.52rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.btn--outline.btn--sm.btn--block {
    min-height: 2.5rem;
    border-radius: 10px;
}
.btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}
.btn--ghost:hover { color: var(--text); background: var(--surface); }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn--icon span { white-space: nowrap; }
.btn--icon .icon { opacity: 0.9; }
.btn--block { width: 100%; }
.btn--lg { padding: 0.9rem 1.75rem; font-size: 0.95rem; }
.btn--glow {
    box-shadow: 0 0 0 1px #fff, 0 4px 24px rgba(255,255,255,0.15);
}
.btn--glow:hover {
    box-shadow: 0 0 0 1px #fff, 0 8px 32px rgba(255,255,255,0.22);
}

/* ─── Card system ─── */
.card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition:
        border-color 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
    z-index: 1;
}
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.04), transparent 55%);
    pointer-events: none;
}
.card--interactive:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.card__padding {
    padding: 1.75rem;
    position: relative;
    z-index: 2;
}
.card > h1,
.card > h2,
.card > h3,
.card > p,
.card > form,
.card > dl,
.card > .buy-form,
.card > .proxy-actions,
.card > .muted:not(.card__foot *) {
    position: relative;
    z-index: 2;
}
.card > h2,
.card > h3,
.card > h1 { padding: 1.75rem 1.75rem 0; margin-bottom: 0; font-size: 1.05rem; font-weight: 600; }
.card > h2 + p,
.card > h3 + p { padding: 0.35rem 1.75rem 0; }
.card > form,
.card > .form-inline,
.card > .buy-form,
.card > dl,
.card > p.muted,
.card > .proxy-details { padding-left: 1.75rem; padding-right: 1.75rem; }
.card > form:last-child,
.card > .buy-form:last-of-type,
.card > .proxy-actions:last-child { padding-bottom: 1.75rem; }
.card > .buy-form { margin-left: 1.75rem; margin-right: 1.75rem; padding-left: 0; padding-right: 0; }
.card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
}
.card__head h3 { font-size: 1.05rem; font-weight: 600; margin: 0; padding: 0; }
.card__body {
    padding: 1.5rem 1.75rem;
    position: relative;
    z-index: 2;
}
.card__foot {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}
.card__label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.card__price { font-size: 2rem; font-weight: 700; margin: 0.5rem 0; letter-spacing: -0.03em; }
.card__meta { color: var(--muted); font-size: 0.85rem; }

/* Status pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.pill::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.pill--active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.pill--active::before { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.pill--expired { color: var(--muted); border-color: var(--border); }
.pill--pending { color: #aaa; border-color: #333; }
.pill--pending::before { background: #fbbf24; animation: pulse-dot 1.5s ease infinite; }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Data rows inside cards */
.data-rows { margin: 0; }
.data-rows dt {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 1rem;
}
.data-rows dt:first-child { margin-top: 0; }
.data-rows dd { margin: 0.35rem 0 0; }
.data-rows dd code {
    display: block;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.78rem;
    word-break: break-all;
    line-height: 1.45;
}
.data-rows dd .btn { margin-top: 0.5rem; }

/* Card variants */
.card--stat {
    padding: 1.5rem 1.75rem;
    text-align: left;
}
.card--stat:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.card--stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: 0.5rem;
    line-height: 1.1;
}
.card--stat .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.card--panel {
    padding: 1.75rem;
}
.card--panel h2 {
    padding: 0 !important;
    margin-bottom: 1.25rem !important;
    font-size: 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card--panel h2::before {
    content: '';
    width: 3px;
    height: 1em;
    background: #fff;
    border-radius: 2px;
    flex-shrink: 0;
}
.card--panel > .form-inline,
.card--panel > .buy-form {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.card--panel > .form-inline { padding-bottom: 0; }

.card--proxy { margin-bottom: 1rem; }
.card--proxy .card__head { padding-top: 1.35rem; }
.card--empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--muted);
}

.card--message {
    padding: 2.5rem 2rem;
    text-align: center;
}
.card--message h1 { padding: 0 !important; margin-bottom: 0.75rem !important; font-size: 1.5rem !important; }
.card--message p { padding: 0 !important; color: var(--muted); margin-bottom: 1.5rem; }
.card--message .btn { margin-top: 0.5rem; }
.card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 700;
    border: 1px solid var(--border);
}
.card__icon--success {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}
.card__icon--error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
}
.card--balance {
    padding: 1rem 1.5rem;
    min-width: 160px;
}
.card--balance strong { font-size: 1.5rem; }
.section__title--left { text-align: left; }

.buy-form {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.buy-form:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.buy-form__label { font-weight: 500; }
.buy-form__price {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
}
@media (max-width: 600px) {
    .buy-form { grid-template-columns: 1fr 1fr; }
    .buy-form .btn { grid-column: 1 / -1; }
}

/* Sections (база; детали лендинга — home.css) */
.section {
    padding: clamp(3.25rem, 7vw, 5rem) 0;
    scroll-margin-top: 88px;
}
.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.section__title {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0;
    text-align: center;
}


.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* FAQ */
.faq { max-width: 700px; margin: 0 auto; }
.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq__item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    float: right;
    font-weight: 300;
    color: var(--muted);
    transition: transform var(--transition);
}
.faq__item[open] summary::after { content: '−'; }
.faq__item[open] summary { border-bottom: 1px solid var(--border); }
.faq__item p { padding: 1rem 1.25rem; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* Forms */
.field { display: block; margin-bottom: 1rem; }
.field > .field__label,
.field > span:not(.field__wrap) {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.field input, input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}
.field input:focus, input:focus, select:focus {
    outline: none;
    border-color: #666;
}
.form-inline { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.form-inline input { flex: 1; min-width: 120px; }
.inline-form { display: inline-flex; gap: 0.25rem; align-items: center; }

/* Auth pages (login, register) */
.auth-login {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 3.5rem;
}
.auth-login__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 50%, rgba(90, 130, 255, 0.05), transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #080808 100%);
    pointer-events: none;
}
.auth-login__backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.35;
}
.auth-login__frame {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
}
.auth-login__panel {
    padding: 2rem 2rem 1.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(22, 22, 22, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 32px 64px rgba(0, 0, 0, 0.55);
}
.auth-login__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.auth-login__home {
    font-size: 0.8rem;
    color: var(--muted);
    opacity: 1;
    transition: color 0.2s ease;
}
.auth-login__home:hover { color: var(--text); opacity: 1; }
.auth-login__brand {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 1;
    text-decoration: none;
}
.auth-login__brand span { color: var(--muted); }
.auth-login__brand:hover { opacity: 0.85; }
.auth-login__intro { margin-bottom: 1.75rem; }
.auth-login__intro h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.auth-login__intro p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.55;
}
.auth-login__form { display: flex; flex-direction: column; gap: 1.15rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.45rem; }
.auth-field__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #aaa;
}
.auth-field__box {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.auth-field__box:focus-within {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.auth-field__icon {
    display: inline-flex;
    padding: 0 0 0 1rem;
    color: #555;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.auth-field__box:focus-within .auth-field__icon { color: #999; }
.auth-field__input {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 0.75rem 0.9rem 0.25rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    border-radius: 0;
}
.auth-field__input::placeholder { color: #555; }
.auth-field__input:focus { outline: none; }
.auth-field__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    border: none;
    background: none;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease;
}
.auth-field__toggle:hover { color: var(--text); }
.auth-login__submit {
    margin-top: 0.35rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    font-size: 1rem;
    border-radius: 12px;
}
.auth-login__footer {
    margin-top: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.auth-login__footer-primary {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
}
.auth-login__footer-text {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-align: center;
}
.auth-login__footer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.auth-login__footer-action:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    opacity: 1;
}
.auth-login__footer-action .icon {
    flex-shrink: 0;
    opacity: 0.88;
}
.auth-login__footer-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    align-self: center;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}
.auth-login__footer-secondary:hover {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    opacity: 1;
}
.auth-login__footer-secondary .icon {
    flex-shrink: 0;
    opacity: 0.75;
}

.auth-field__hint {
    font-size: 0.72rem;
    color: #555;
    margin-top: 0.35rem;
}
.auth-field__rules {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.auth-field__rules li {
    font-size: 0.7rem;
    color: #555;
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.4;
}
.auth-field__rules li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: #444;
    font-size: 0.65rem;
}
.auth-field__rules li.is-ok {
    color: #8a8;
}
.auth-field__rules li.is-ok::before {
    content: '✓';
    color: #6a6;
}
.auth-field--invalid .auth-field__box {
    border-color: rgba(255, 100, 100, 0.45);
}
.auth-field--invalid .auth-field__label {
    color: #c88;
}
.auth-login--register .auth-login__frame {
    width: min(100%, 520px);
}
.auth-login__steps {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
}
.auth-login__steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
    line-height: 1.3;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-login__steps li:first-child {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}
.auth-login__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}
.auth-login__steps li:first-child .auth-login__step-num {
    background: #fff;
    color: #0a0a0a;
}
.auth-login__agreements {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-login__legal {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.55;
    color: #777;
    text-align: left;
}
.auth-login__legal a {
    color: #aaa;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 1;
}
.auth-login__legal a:hover { color: var(--text); opacity: 1; }
.auth-login--register .legal-notice--auth {
    margin: 0.65rem 0 0;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.68rem;
    color: #555;
}

.page-auth .header {
    border-bottom-color: transparent;
    background: transparent;
    backdrop-filter: none;
}
.page-auth .header--scrolled,
.page-auth .header {
    background: rgba(8, 8, 8, 0.6);
    backdrop-filter: blur(12px);
}

@media (max-width: 480px) {
    .auth-login__panel { padding: 1.5rem 1.25rem 1.35rem; border-radius: 16px; }
    .auth-login__intro h1 { font-size: 1.5rem; }
    .auth-login__top { margin-bottom: 1.5rem; }
    .auth-login__steps { flex-direction: column; }
    .auth-login__steps li {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 0.5rem 0.75rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal--delay { --reveal-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.dashboard-header h1 { margin-bottom: 0.25rem; }
.balance { color: var(--muted); }
.balance strong { color: var(--text); font-size: 1.25rem; }
.proxy-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.proxy-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.card__foot .proxy-actions { margin: 0; }
.card__foot .buy-form {
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}
.card__foot .buy-form:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.muted { color: var(--muted); }

/* Alerts — toast stack справа сверху */
.site-alerts {
    display: contents;
}

.alerts-toast-root,
.cabinet-alerts {
    position: fixed;
    top: calc(4.75rem + env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: min(calc(100vw - 2rem), 22.5rem);
    max-width: 360px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.alerts-toast-root .alert,
.cabinet-alerts .alert {
    pointer-events: auto;
    width: 100%;
}

.cabinet-alerts {
    margin-bottom: 0;
}

.alert {
    --alert-accent: rgba(255, 255, 255, 0.45);
    --alert-glow: rgba(255, 255, 255, 0.06);
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0 0.85rem;
    padding: 0.95rem 0.85rem 0.95rem 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
        rgba(14, 14, 14, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 10px 32px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    animation: alert-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--alert-index, 0) * 60ms);
    transition:
        opacity 0.32s ease,
        transform 0.32s ease,
        border-color 0.2s ease;
}

.alert.is-hiding {
    opacity: 0;
    transform: translateX(14px) scale(0.98);
    pointer-events: none;
}

.alert__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--alert-accent);
    box-shadow: 0 0 18px var(--alert-glow);
}

.alert__icon {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-left: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.alert__body {
    grid-column: 2;
    grid-row: 1;
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}

.alert__title {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
}

.alert__text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #a8a8a8;
}

.alert__link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #d4d4d4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.alert__link:hover {
    color: #fff;
}

.alert__close {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-top: 0.15rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        color 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.alert__close:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.alert__progress {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    height: 2px;
    margin: 0.75rem 1rem 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.alert__progress::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    background: var(--alert-accent);
    transform-origin: left center;
    animation: alert-progress var(--alert-duration, 6s) linear forwards;
}

.alert--success {
    --alert-accent: #4ade80;
    --alert-glow: rgba(74, 222, 128, 0.35);
    border-color: rgba(74, 222, 128, 0.22);
    background:
        linear-gradient(120deg, rgba(74, 222, 128, 0.1) 0%, transparent 48%),
        rgba(10, 18, 12, 0.95);
}

.alert--success .alert__icon {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.22);
    background: rgba(74, 222, 128, 0.1);
}

.alert--success .alert__title { color: #d7f7e0; }
.alert--success .alert__text { color: #94c9a4; }

.alert--error {
    --alert-accent: #f87171;
    --alert-glow: rgba(248, 113, 113, 0.35);
    border-color: rgba(248, 113, 113, 0.24);
    background:
        linear-gradient(120deg, rgba(248, 113, 113, 0.11) 0%, transparent 48%),
        rgba(20, 10, 10, 0.95);
}

.alert--error .alert__icon {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(248, 113, 113, 0.1);
}

.alert--error .alert__title { color: #ffd6d6; }
.alert--error .alert__text { color: #d4a0a0; }

.alert--warning {
    --alert-accent: #fbbf24;
    --alert-glow: rgba(251, 191, 36, 0.35);
    border-color: rgba(251, 191, 36, 0.24);
    background:
        linear-gradient(120deg, rgba(251, 191, 36, 0.11) 0%, transparent 48%),
        rgba(18, 15, 8, 0.95);
}

.alert--warning .alert__icon {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.24);
    background: rgba(251, 191, 36, 0.1);
}

.alert--warning .alert__title { color: #ffecc2; }
.alert--warning .alert__text { color: #c9b37a; }

.alert--info {
    --alert-accent: #a3a3a3;
    --alert-glow: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.11);
}

.alert--info .alert__icon {
    color: #d4d4d4;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.alert--info .alert__title { color: #ececec; }
.alert--info .alert__text { color: #a3a3a3; }

.alert--telegram {
    --alert-accent: #38bdf8;
    --alert-glow: rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 0.26);
    background:
        linear-gradient(120deg, rgba(56, 189, 248, 0.12) 0%, transparent 48%),
        rgba(8, 14, 20, 0.95);
}

.alert--telegram .alert__icon {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(56, 189, 248, 0.1);
}

.alert--telegram .alert__title { color: #c8ecff; }
.alert--telegram .alert__text { color: #8ec0dc; }
.alert--telegram .alert__link { color: #7dd3fc; }
.alert--telegram .alert__link:hover { color: #bae6fd; }

@keyframes alert-in {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .alerts-toast-root,
    .cabinet-alerts {
        top: calc(4.25rem + env(safe-area-inset-top, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        width: auto;
        max-width: none;
    }
}

@keyframes alert-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .alert {
        animation: none;
    }

    .alert__progress::after {
        animation: none;
        transform: scaleX(0);
    }
}

.page-auth .site-alerts {
    display: contents;
}

/* Telegram channel */
.tg-channel {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), opacity var(--transition);
}
.tg-channel:hover { color: var(--text); }
.tg-channel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2aabee;
    flex-shrink: 0;
}
.tg-channel__icon--sm svg { display: block; }
.tg-channel--link {
    font-size: 0.88rem;
    color: var(--muted);
}
.tg-channel--link:hover { color: #2aabee; }
.tg-channel__badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(42, 171, 238, 0.12);
    color: #7ec8f7;
    font-weight: 500;
    white-space: nowrap;
}
.tg-channel--compact {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.35rem;
}
.tg-channel--compact:hover { color: #2aabee; }
.tg-channel__count { color: #7ec8f7; }
.dashboard__tg { margin-top: 0.5rem; }
/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
    padding: 2rem 0 1.5rem;
}
.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.footer__logo .logo__name,
.footer__logo .logo__tld {
    font-size: 0.88rem;
}
.footer__logo:hover {
    opacity: 0.8;
}
.footer__email {
    font-size: 0.76rem;
    color: var(--muted);
    transition: color var(--transition);
}
.footer__email:hover {
    color: var(--text);
}
.footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0;
}
.footer__nav a {
    font-size: 0.82rem;
    color: var(--muted);
    padding: 0.15rem 0;
    transition: color var(--transition);
}
.footer__nav a + a::before {
    content: '·';
    margin: 0 0.65rem;
    color: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}
.footer__nav a:hover {
    color: var(--text);
}
.footer__nav-tg:hover {
    color: #7ec8f7;
}
.footer__legal {
    padding: 1.1rem 0;
    scroll-margin-top: 88px;
}
.footer__docs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}
.footer__doc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.footer__doc-link:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}
.footer__doc-name {
    font-size: 0.74rem;
    line-height: 1.35;
    color: rgba(220, 220, 220, 0.92);
}
.footer__doc-hint {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    transition: color var(--transition);
}
.footer__doc-link:hover .footer__doc-hint {
    color: #aaa;
}
.footer__legal-note {
    margin: 0.75rem 0 0;
    font-size: 0.68rem;
    line-height: 1.45;
    text-align: center;
    color: #555;
}
.legal-notice {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #666;
    max-width: 52rem;
}
.legal-notice--footer {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.legal-notice--auth {
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    color: #777;
}
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer__copy {
    font-size: 0.72rem;
    color: #555;
    letter-spacing: 0.03em;
}
.footer__note {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
}

@media (max-width: 600px) {
    .footer__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer__nav {
        justify-content: center;
    }
    .footer__nav a + a::before {
        margin: 0 0.45rem;
    }
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer__docs-list {
        grid-template-columns: 1fr;
    }
}

main { flex: 1; }

@media (max-width: 960px) {
    .nav__divider { display: none; }
    .nav-link__badge { display: none; }
}

@media (max-width: 768px) {
    .header .container.header__inner {
        min-height: 64px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .logo__name,
    .logo__tld {
        font-size: 0.82rem;
        letter-spacing: 0.1em;
    }
    .nav__actions {
        background: transparent;
        border: none;
        padding: 0;
    }
    .burger { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 0.75rem;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    }
    .nav.open { display: flex; }
    .nav__links,
    .nav__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
    }
    .nav__actions {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-link {
        width: 100%;
        padding: 0.65rem 0.85rem;
    }
    .nav-link__badge { display: inline-block; max-width: none; }
    .nav .btn {
        width: 100%;
        justify-content: center;
    }
    .nav .inline-form { width: 100%; }
    .nav .inline-form .btn { width: 100%; }
    .header { position: sticky; }
}

/* 404 */
.page-404 main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.not-found {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    overflow: hidden;
}

.not-found__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(ellipse 45% 40% at 85% 75%, rgba(42, 171, 238, 0.06), transparent 55%),
        radial-gradient(ellipse 40% 35% at 10% 80%, rgba(255, 255, 255, 0.03), transparent 50%);
}

.not-found__inner {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
}

.not-found__hero {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.not-found__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
}

.not-found__code-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.not-found__code {
    display: block;
    font-size: clamp(4.5rem, 18vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.not-found__code-glow {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 70%;
    height: 40%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.not-found__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.not-found__lead {
    margin: 0 auto 1.75rem;
    max-width: 28rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted);
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.not-found__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.not-found__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.15rem 1.2rem;
    text-align: left;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.not-found__card:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.not-found__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.15rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.not-found__card-icon--tg {
    color: #2aabee;
    border-color: rgba(42, 171, 238, 0.25);
    background: rgba(42, 171, 238, 0.08);
}

.not-found__card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.not-found__card-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (max-width: 520px) {
    .not-found__grid {
        grid-template-columns: 1fr;
    }

    .not-found__actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .not-found__card:hover {
        transform: none;
    }
}
