@font-face {
    font-family: "Sora";
    src: url("../fonts/sora-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --canvas: #eef2f3;
    --paper: #ffffff;
    --glass: rgba(255, 255, 255, .7);
    --glass-strong: rgba(255, 255, 255, .88);
    --ink: #102a43;
    --navy: #173f61;
    --navy-hover: #0f324f;
    --blue: #2f6fa8;
    --coral: #df765e;
    --coral-soft: #f8e6e1;
    --teal: #2f857a;
    --muted: #687786;
    --soft: #8a96a3;
    --line: rgba(16, 42, 67, .12);
    --line-strong: rgba(16, 42, 67, .2);
    --danger: #b94256;
    --warning: #9a6822;
    --success: #237c68;
    --radius: 26px;
    --shadow: 0 24px 60px rgba(30, 54, 72, .13), 0 3px 12px rgba(30, 54, 72, .05);
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input { font: inherit; }

.ambient {
    position: fixed;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(105px);
    pointer-events: none;
    opacity: .38;
}

.ambient-one {
    top: -150px;
    left: -170px;
    background: #bed4e4;
}

.ambient-two {
    right: -190px;
    bottom: -170px;
    background: #efc9bd;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 0 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(23, 63, 97, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 22px rgba(30, 54, 72, .1);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.brand-mark::before {
    width: 6px;
    height: 6px;
    left: 9px;
    top: 9px;
    background: var(--navy);
}

.brand-mark::after {
    width: 7px;
    height: 7px;
    right: 8px;
    bottom: 8px;
    background: var(--coral);
}

.brand-mark i {
    width: 5px;
    height: 5px;
    left: 10px;
    bottom: 9px;
    background: var(--blue);
}

.brand strong,
.brand small { display: block; }

.brand strong {
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: -.01em;
}

.brand small {
    margin-top: 3px;
    color: var(--soft);
    font-size: .61rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .46);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 500;
}

.secure-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.checkout-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 520px);
    gap: 28px 72px;
    align-items: center;
    padding: 28px 0 44px;
}

.intro { align-self: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.eyebrow i {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--coral);
}

.intro h1,
.state-card h1 {
    margin: 18px 0 16px;
    color: var(--ink);
    font-size: clamp(2.55rem, 5vw, 4.35rem);
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: -.052em;
}

.intro h1 span {
    position: relative;
    display: inline-block;
    color: var(--ink);
}

.intro h1 span::after {
    content: "";
    position: absolute;
    left: 3px;
    bottom: -6px;
    width: 64px;
    height: 5px;
    border-radius: 99px;
    background: var(--coral);
}

.intro > p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.78;
}

.trust-line {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 30px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 500;
}

.trust-line span {
    position: relative;
    padding-left: 13px;
}

.trust-line span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--coral);
    transform: translateY(-50%);
}

.glass-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--radius);
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px) saturate(115%);
    -webkit-backdrop-filter: blur(24px) saturate(115%);
}

.payment-card {
    overflow: hidden;
    padding: 27px;
}

.payment-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(16, 42, 67, .06);
    border-radius: inherit;
}

.price-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line);
}

.price-row div > span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: .74rem;
}

.price-row strong {
    color: var(--ink);
    font-size: 2.1rem;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.045em;
}

.one-time {
    padding: 7px 11px;
    border: 1px solid rgba(223, 118, 94, .22);
    border-radius: 999px;
    background: var(--coral-soft);
    color: #9e4c3b;
    font-size: .61rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid rgba(185, 66, 86, .16);
    border-radius: 13px;
    background: rgba(255, 244, 246, .82);
    color: var(--danger);
    font-size: .75rem;
    line-height: 1.5;
}

.alert i,
.warning-note i {
    display: grid;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: rgba(185, 66, 86, .1);
    font-style: normal;
    font-weight: 700;
}

.payment-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    padding-top: 23px;
}

.field {
    display: grid;
    gap: 7px;
}

.field > span:first-child {
    color: var(--ink);
    font-size: .73rem;
    font-weight: 550;
}

.input-wrap {
    position: relative;
    display: block;
}

.input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 14px 0 43px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, .66);
    color: var(--ink);
    font-size: .85rem;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}

.input-wrap input::placeholder { color: #a0aab4; }
.input-wrap input:hover { border-color: var(--line-strong); }

.input-wrap input:focus {
    border-color: rgba(47, 111, 168, .62);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 0 0 4px rgba(47, 111, 168, .1);
}

.input-icon {
    position: absolute;
    z-index: 1;
    left: 16px;
    top: 50%;
    width: 14px;
    height: 14px;
    opacity: .58;
    transform: translateY(-50%);
}

.input-icon.person {
    left: 19px;
    top: 17px;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--navy);
    border-radius: 50%;
    transform: none;
}

.input-icon.person::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 9px;
    width: 13px;
    height: 7px;
    border: 1.5px solid var(--navy);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}

.input-icon.phone {
    width: 9px;
    height: 14px;
    border: 1.5px solid var(--navy);
    border-radius: 3px;
}

.input-icon.phone::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 1px;
    bottom: 2px;
    left: 2px;
    background: var(--navy);
}

.input-icon.mail {
    width: 15px;
    height: 11px;
    border: 1.5px solid var(--navy);
    border-radius: 3px;
}

.input-icon.mail::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 1px;
    width: 8px;
    height: 8px;
    border-left: 1.5px solid var(--navy);
    border-bottom: 1.5px solid var(--navy);
    transform: rotate(-45deg);
}

.field-error {
    color: var(--danger);
    font-size: .68rem;
    line-height: 1.4;
}

.terms {
    position: relative;
    display: grid;
    grid-template-columns: 19px 1fr;
    gap: 10px;
    align-items: start;
    margin-top: 1px;
    color: var(--muted);
    font-size: .69rem;
    line-height: 1.6;
    cursor: pointer;
}

.terms input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: rgba(255, 255, 255, .7);
    transition: .2s;
}

.terms input:focus-visible + .checkmark {
    box-shadow: 0 0 0 4px rgba(47, 111, 168, .12);
}

.terms input:checked + .checkmark {
    border-color: var(--navy);
    background: var(--navy);
}

.terms input:checked + .checkmark::after {
    content: "";
    display: block;
    width: 7px;
    height: 4px;
    margin: 4px 0 0 4px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

.terms a {
    color: var(--navy);
    font-weight: 550;
    text-underline-offset: 3px;
}

.terms-error {
    margin-top: -9px;
    padding-left: 29px;
}

.primary-button,
.secondary-button {
    min-height: 54px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
}

.primary-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    padding: 0 18px;
    border: 0;
    color: white;
    background: var(--navy);
    box-shadow: 0 12px 24px rgba(23, 63, 97, .2);
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .18s;
}

.primary-button:hover {
    background: var(--navy-hover);
    box-shadow: 0 16px 30px rgba(23, 63, 97, .24);
    transform: translateY(-2px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible {
    outline: 3px solid rgba(47, 111, 168, .2);
    outline-offset: 3px;
}

.primary-button:active { transform: translateY(0); }

.primary-button:disabled {
    opacity: .72;
    cursor: wait;
    transform: none;
}

.primary-button b {
    position: absolute;
    right: 18px;
    font-size: 1.05rem;
    font-weight: 500;
}

.button-loading {
    display: none;
    align-items: center;
    gap: 9px;
}

.button-loading i {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.payment-form.is-loading .button-copy,
.payment-form.is-loading .primary-button b { display: none; }
.payment-form.is-loading .button-loading { display: inline-flex; }

.payment-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--soft);
    font-size: .64rem;
    line-height: 1.5;
}

.payment-note strong {
    color: var(--muted);
    font-weight: 600;
}

.lock {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 13px;
    border: 1px solid var(--muted);
    border-radius: 3px;
}

.lock::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -8px;
    width: 8px;
    height: 8px;
    border: 1px solid var(--muted);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.privacy-card {
    grid-column: 1 / -1;
    max-width: 570px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 16px;
    background: rgba(255, 255, 255, .38);
    color: var(--muted);
    font-size: .69rem;
    line-height: 1.65;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.privacy-card strong {
    color: var(--ink);
    font-weight: 600;
}

.privacy-card p { margin: 5px 0 0; }

.state-wrap {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 48px 0 72px;
}

.state-card {
    width: min(100%, 560px);
    padding: clamp(28px, 5vw, 44px);
    text-align: center;
}

.state-card h1 {
    margin-top: 16px;
    font-size: clamp(2.1rem, 7vw, 3.35rem);
}

.state-lead {
    max-width: 430px;
    margin: 0 auto 25px;
    color: var(--muted);
    line-height: 1.72;
}

.success-icon {
    position: relative;
    width: 76px;
    height: 76px;
    margin: -80px auto 28px;
    border: 1px solid rgba(35, 124, 104, .2);
    border-radius: 50%;
    background: rgba(231, 246, 241, .95);
    box-shadow: 0 12px 30px rgba(35, 124, 104, .13);
    animation: success-in .65s cubic-bezier(.2, .8, .25, 1.2) both;
}

.success-icon span {
    position: absolute;
    left: 24px;
    top: 27px;
    width: 29px;
    height: 15px;
    border-left: 4px solid var(--success);
    border-bottom: 4px solid var(--success);
    transform: rotate(-45deg);
}

.success-label { color: var(--success); }
.success-label i { background: var(--success); }

.receipt {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1px;
    overflow: hidden;
    margin: 26px 0 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
    text-align: left;
}

.receipt div {
    padding: 16px;
    background: rgba(255, 255, 255, .8);
}

.receipt span,
.reference-line span,
.countdown-panel > span {
    display: block;
    margin-bottom: 6px;
    color: var(--soft);
    font-size: .63rem;
    font-weight: 550;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.receipt strong {
    color: var(--ink);
    font-size: 1.25rem;
}

code {
    color: var(--navy);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .72rem;
    word-break: break-all;
}

.countdown-panel {
    padding: 17px;
    border: 1px solid rgba(47, 111, 168, .12);
    border-radius: 16px;
    background: rgba(240, 247, 252, .72);
}

.countdown-panel strong {
    display: block;
    color: var(--navy);
    font-size: 2rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.countdown-track {
    overflow: hidden;
    height: 3px;
    margin-top: 12px;
    border-radius: 99px;
    background: rgba(16, 42, 67, .08);
}

.countdown-track i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--blue);
    transition: width 1s linear;
}

.telegram-button { margin-top: 18px; }
.telegram-mark { font-size: 1.05rem; transform: rotate(-12deg); }

.warning-note {
    display: flex;
    gap: 11px;
    margin-top: 19px;
    padding: 13px;
    border: 1px solid rgba(154, 104, 34, .14);
    border-radius: 13px;
    background: rgba(255, 248, 235, .76);
    color: #7f6746;
    font-size: .69rem;
    line-height: 1.6;
    text-align: left;
}

.warning-note i {
    color: var(--warning);
    background: rgba(154, 104, 34, .09);
}

.warning-note strong { color: #664d2d; }

.support-copy {
    margin: 17px 0 0;
    color: var(--soft);
    font-size: .68rem;
    line-height: 1.6;
}

.state-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: -66px auto 27px;
    place-items: center;
    border-radius: 50%;
    font-size: 1.45rem;
    font-weight: 500;
}

.failed-icon {
    border: 1px solid rgba(185, 66, 86, .18);
    background: rgba(255, 239, 242, .92);
    color: var(--danger);
    box-shadow: 0 12px 28px rgba(185, 66, 86, .1);
}

.expired-icon {
    border: 1px solid rgba(154, 104, 34, .16);
    background: rgba(255, 248, 235, .92);
    color: var(--warning);
}

.danger-label { color: var(--danger); }
.danger-label i { background: var(--danger); }
.warning-label { color: var(--warning); }

.reference-line {
    margin: 21px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .6);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .55);
    color: var(--navy);
    transition: .2s;
}

.secondary-button:hover {
    border-color: var(--navy);
    background: rgba(255, 255, 255, .9);
    transform: translateY(-1px);
}

.processing-ring {
    width: 58px;
    height: 58px;
    margin: -64px auto 27px;
    border: 3px solid rgba(47, 111, 168, .13);
    border-top-color: var(--blue);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(47, 111, 168, .1);
    animation: spin .9s linear infinite;
}

.footer {
    padding: 20px 0 26px;
    color: var(--soft);
    font-size: .61rem;
    text-align: center;
}

.footer span { margin-right: 4px; }

.footer a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(23, 63, 97, .22);
    transition: color .18s, border-color .18s;
}

.footer a:hover {
    color: var(--coral);
    border-color: var(--coral);
}

.footer a:focus-visible {
    outline: 3px solid rgba(47, 111, 168, .18);
    outline-offset: 4px;
    border-radius: 3px;
}

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

@keyframes success-in {
    from { opacity: 0; transform: scale(.65) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 820px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 31px;
        padding-top: 24px;
    }

    .intro { text-align: center; }
    .intro > p { margin-inline: auto; }
    .intro h1 span::after { left: 50%; transform: translateX(-50%); }
    .trust-line { justify-content: center; }

    .payment-card {
        width: min(100%, 560px);
        margin-inline: auto;
    }

    .privacy-card {
        grid-column: 1;
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 520px) {
    .shell { width: min(100% - 22px, 1120px); }
    .brandbar { padding-top: 16px; }

    .secure-pill {
        width: 10px;
        height: 10px;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 0;
    }

    .secure-pill i {
        width: 9px;
        height: 9px;
    }

    .checkout-grid {
        gap: 30px;
        padding-top: 19px;
    }

    .eyebrow {
        font-size: .64rem;
        letter-spacing: .045em;
    }

    .intro h1 {
        margin-top: 16px;
        font-size: clamp(2.4rem, 12vw, 3.05rem);
        line-height: 1.08;
    }

    .intro h1 span::after {
        bottom: -7px;
        width: 52px;
        height: 4px;
    }

    .intro > p {
        max-width: 350px;
        font-size: .84rem;
        line-height: 1.7;
    }

    .trust-line { display: none; }

    .payment-card {
        padding: 21px 16px 18px;
        border-radius: 22px;
    }

    .price-row { padding-inline: 2px; }
    .price-row strong { font-size: 1.85rem; }

    .input-wrap input {
        height: 52px;
        font-size: 16px;
    }

    .primary-button {
        min-height: 55px;
        font-size: .79rem;
    }

    .primary-button b { display: none; }
    .privacy-card { margin-top: -9px; }

    .state-wrap { padding: 68px 0 60px; }

    .state-card {
        padding: 27px 17px 22px;
        border-radius: 23px;
    }

    .state-card h1 { font-size: 2.15rem; }
    .success-icon { margin-top: -67px; }
    .receipt { grid-template-columns: 1fr; }
    .state-icon, .processing-ring { margin-top: -60px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
