:root {
    color-scheme: dark;
    --background: #07090f;
    --background-soft: #0c111d;
    --surface: rgba(20, 26, 42, 0.72);
    --surface-strong: #151b2b;
    --border: rgba(188, 203, 255, 0.16);
    --text: #f4f7ff;
    --muted: #aeb8ce;
    --accent: #caff4a;
    --accent-strong: #aee82c;
    --accent-ink: #111708;
    --violet: #8666ff;
    --blue: #57b8ff;
    --danger: #ff9d9d;
    --focus: #d9ff75;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 10%, rgba(134, 102, 255, 0.17), transparent 30rem),
        radial-gradient(circle at 92% 34%, rgba(87, 184, 255, 0.12), transparent 34rem),
        var(--background);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
    color: var(--accent);
    text-underline-offset: 0.2em;
}

a:hover {
    color: #dcff8a;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

button,
input {
    font: inherit;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
}

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

.site-header,
.section-shell,
.site-footer {
    width: min(100% - 40px, 1160px);
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.wordmark {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.section-shell {
    padding-block: clamp(64px, 9vw, 118px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    min-height: min(760px, calc(100vh - 84px));
    gap: clamp(42px, 8vw, 110px);
    padding-top: clamp(48px, 8vw, 96px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.08;
    text-wrap: balance;
}

h1 {
    max-width: 850px;
    margin-bottom: 24px;
    font-size: clamp(2.75rem, 7vw, 6.5rem);
    letter-spacing: -0.065em;
}

h2 {
    max-width: 760px;
    margin-bottom: 36px;
    font-size: clamp(2rem, 4.5vw, 4.3rem);
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-lead,
.section-lead {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-lead {
    margin: 0 0 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.button-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 12px 36px rgba(202, 255, 74, 0.13);
}

.button-primary:hover {
    background: var(--accent-strong);
    color: var(--accent-ink);
}

.connection-visual {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(87, 184, 255, 0.18), transparent 15%),
        radial-gradient(circle, transparent 48%, rgba(134, 102, 255, 0.14) 49%, transparent 50%);
    box-shadow: inset 0 0 70px rgba(87, 184, 255, 0.06), 0 0 90px rgba(134, 102, 255, 0.12);
}

.connection-visual::before,
.connection-visual::after {
    position: absolute;
    border: 1px solid rgba(188, 203, 255, 0.12);
    border-radius: inherit;
    content: "";
}

.connection-visual::before {
    inset: 12%;
}

.connection-visual::after {
    inset: 28%;
}

.connection-line {
    width: 54%;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--blue), var(--accent));
    box-shadow: 0 0 22px rgba(87, 184, 255, 0.8);
    transform: rotate(-18deg);
}

.connection-node {
    position: absolute;
    z-index: 1;
    width: 20px;
    height: 20px;
    border: 5px solid var(--surface-strong);
    border-radius: 50%;
    box-shadow: 0 0 28px currentColor;
}

.connection-node-start {
    top: 58%;
    left: 20%;
    background: var(--violet);
    color: var(--violet);
}

.connection-node-end {
    top: 38%;
    right: 20%;
    background: var(--accent);
    color: var(--accent);
}

.card-grid {
    display: grid;
    gap: 18px;
}

.benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card,
.steps-list li,
.faq-list details,
.selected-tariff {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(25, 32, 52, 0.78), rgba(11, 15, 26, 0.72));
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.glass-card {
    min-width: 0;
    border-radius: 22px;
    padding: clamp(24px, 4vw, 38px);
}

.glass-card p,
.steps-list p,
.faq-list p {
    margin-bottom: 0;
    color: var(--muted);
}

.card-index {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 850;
}

.steps-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps-list li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    border-radius: 18px;
    padding: 24px;
}

.steps-list li > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(202, 255, 74, 0.1);
    color: var(--accent);
    font-weight: 900;
}

.steps-list h3,
.steps-list p {
    margin-bottom: 0;
}

.tariff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.tariff-card {
    display: flex;
    flex-direction: column;
}

.tariff-period {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.tariff-price {
    margin: 10px 0 20px;
    color: var(--text);
    font-size: 1.5rem;
}

.tariff-price strong {
    font-size: clamp(2.7rem, 5vw, 4.25rem);
    letter-spacing: -0.06em;
}

.tariff-action {
    width: 100%;
    margin-top: auto;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    border-radius: 16px;
    padding: 4px 22px;
}

.faq-list summary {
    min-height: 60px;
    padding: 17px 36px 15px 0;
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    margin: 0;
    padding: 0 0 20px;
}

.contact-section .details {
    max-width: 800px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.details dl {
    display: grid;
    grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
    gap: 10px 28px;
}

.details dt {
    color: var(--muted);
    font-weight: 650;
}

.details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.legal-section {
    border-top: 1px solid var(--border);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-links a,
.legal-nav a {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
}

.legal-links a:hover,
.legal-nav a:hover {
    border-color: rgba(202, 255, 74, 0.5);
    color: var(--accent);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 30px 54px;
    color: var(--muted);
}

.payment-dialog {
    width: min(92vw, 620px);
    max-height: min(90vh, 900px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0;
    overflow: auto;
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.68);
}

.payment-dialog::backdrop {
    background: rgba(2, 4, 9, 0.76);
    backdrop-filter: blur(8px);
}

.dialog-content {
    position: relative;
    padding: clamp(24px, 5vw, 44px);
}

.dialog-content h2 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.dialog-content > p:not(.eyebrow) {
    color: var(--muted);
}

.dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    font-size: 1.7rem;
}

.selected-tariff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-radius: 16px;
    margin: 24px 0;
    padding: 18px;
}

.selected-tariff div {
    min-width: 0;
}

.selected-tariff dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.selected-tariff dd {
    margin: 2px 0 0;
    font-size: 1.2rem;
    font-weight: 850;
}

.confirmations-title {
    margin: 22px 0 12px;
    font-weight: 800;
}

.confirmations {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.confirmations label {
    color: var(--muted);
}

.confirmations input {
    width: 19px;
    height: 19px;
    margin: 0 7px 0 0;
    accent-color: var(--accent);
    vertical-align: -4px;
}

.dialog-action {
    width: 100%;
}

.dialog-action:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.dialog-status {
    min-height: 1.6em;
    margin: 0 0 12px;
    color: var(--accent) !important;
    font-weight: 750;
}

.stub-note {
    margin: 10px 0 0;
    font-size: 0.84rem;
    text-align: center;
}

.legal-page {
    background: var(--background);
}

.legal-shell {
    width: min(100% - 32px, 900px);
    margin: 0 auto;
    padding: 32px 0 72px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.legal-nav a {
    padding: 7px 12px;
    font-size: 0.86rem;
}

.legal-article {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(22px, 6vw, 56px);
    background: rgba(16, 21, 35, 0.9);
    box-shadow: var(--shadow);
}

.legal-article h1 {
    font-size: clamp(2rem, 6vw, 3.8rem);
}

.legal-article h2 {
    margin: 2.2rem 0 0.8rem;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    letter-spacing: -0.025em;
}

.legal-article p,
.legal-article li {
    color: #ced5e6;
}

.legal-meta {
    color: var(--muted) !important;
}

.legal-article .details {
    margin-top: 46px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .connection-visual {
        width: min(84vw, 440px);
        margin-inline: auto;
    }

    .tariff-grid {
        grid-template-columns: 1fr;
    }

    .tariff-card {
        min-height: 340px;
    }
}

@media (max-width: 620px) {
    .site-header,
    .section-shell,
    .site-footer {
        width: min(100% - 28px, 1160px);
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        min-height: 112px;
        padding-block: 18px;
    }

    .site-nav {
        gap: 8px 18px;
    }

    .section-shell {
        padding-block: 62px;
    }

    .hero {
        padding-top: 48px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .steps-list li {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 16px;
    }

    .steps-list li > span {
        width: 40px;
        height: 40px;
    }

    .details dl {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .details dd {
        margin-bottom: 10px;
    }

    .payment-dialog {
        width: 100%;
        max-width: none;
        max-height: 92vh;
        margin: auto 0 0;
        border-radius: 24px 24px 0 0;
    }

    .selected-tariff {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    :root {
        color-scheme: light;
    }

    body,
    .legal-page {
        background: #fff;
        color: #111;
    }

    .legal-nav {
        display: none;
    }

    .legal-article {
        border: 0;
        padding: 0;
        background: #fff;
        box-shadow: none;
    }

    .legal-article h1,
    .legal-article h2,
    .legal-article p,
    .legal-article li,
    .legal-article dt,
    .legal-article dd,
    .legal-meta {
        color: #111 !important;
    }
}
