:root {
    --bg: #0a0c11;
    --panel: #13161e;
    --panel2: #171b24;
    --card: #181c26;
    --line: #272d3b;
    --line2: #343c4e;
    --text: #eef0f4;
    --muted: #98a0b2;
    --dim: #69728a;
    --orange: #ff8a1f;
    --orange-d: #e0670a;
    --price: #5fe070;
    --err: #ff6b5e;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 36px 20px;
    overflow-x: hidden;
}

/* фон: свечение + гекс-сетка */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(680px 420px at 22% 12%, rgba(255, 138, 31, .16), transparent 60%),
        radial-gradient(720px 520px at 88% 92%, rgba(255, 138, 31, .08), transparent 60%);
}
.bg::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0L56 16v34L28 66 0 50V16z' fill='none' stroke='%23ff8a1f' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 66px;
}

/* контейнер из двух панелей */
.shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    width: 100%;
    max-width: 820px;
    background: linear-gradient(180deg, rgba(24, 28, 38, .9), rgba(20, 24, 33, .9));
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(4px);
}

/* левая панель */
.side {
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    background:
        radial-gradient(420px 220px at 50% -10%, rgba(255, 138, 31, .14), transparent 65%),
        linear-gradient(180deg, var(--panel), var(--panel2));
    border-right: 1px solid var(--line);
}
.side-top { text-align: center; }
.logo {
    display: block;
    margin: 0 auto 14px;
    filter: drop-shadow(0 10px 26px rgba(255, 138, 31, .4));
}
.logo-text {
    display: block;
    width: 100%;
    max-width: 232px;
    height: auto;
    margin: 0 auto 12px;
    filter: drop-shadow(0 8px 20px rgba(255, 138, 31, .25));
}
.card.center .logo-text { max-width: 260px; margin-bottom: 6px; }
.title { font-weight: 800; font-size: 24px; letter-spacing: .3px; }
.title span { color: var(--orange); }
.tag {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--dim);
}

.steps {
    list-style: none;
    margin: 30px 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.steps li { display: flex; gap: 13px; align-items: flex-start; }
.steps b {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255, 138, 31, .14);
    border: 1px solid rgba(255, 138, 31, .35);
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps span { display: block; font-size: 14px; font-weight: 600; }
.steps i { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }

.pay-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    opacity: .92;
}

/* правая панель — форма */
.card { padding: 36px 34px 30px; }
h1 { font-size: 24px; margin: 0 0 7px; }
.sub {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 22px;
}

.field { display: block; margin-bottom: 16px; }
.field > span {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 7px;
    font-weight: 600;
}
.field > span i { color: var(--dim); font-style: normal; font-weight: 400; }

input, textarea {
    width: 100%;
    padding: 13px 14px;
    background: #0c0f15;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 48px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #586070; }
input:focus, textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 138, 31, .16);
}
.field.invalid input, .field.invalid textarea { border-color: rgba(255, 107, 94, .6); }

.amount-wrap { position: relative; }
.amount-wrap .cur {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
}
.amount-wrap input { padding-right: 34px; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
    flex: 1 1 auto;
    min-width: 54px;
    padding: 9px 0;
    background: #11151d;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .12s, background .12s, color .12s;
}
.chip:hover { border-color: var(--line2); }
.chip.on { border-color: var(--orange); background: rgba(255, 138, 31, .12); color: var(--orange); }

/* блок «к зачислению» */
.getbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 18px;
    padding: 13px 16px;
    background: linear-gradient(180deg, rgba(95, 224, 112, .08), rgba(95, 224, 112, .03));
    border: 1px solid rgba(95, 224, 112, .28);
    border-radius: 13px;
}
.getbox span { font-size: 13px; color: var(--muted); }
.getbox b { font-size: 17px; font-weight: 700; color: var(--text); }
.getbox b i { font-style: normal; color: var(--price); }

.hint { display: block; color: var(--err); font-size: 12.5px; font-style: normal; margin-top: 7px; }

.pay {
    width: 100%;
    padding: 15px;
    margin-top: 4px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(180deg, var(--orange), var(--orange-d));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 138, 31, .32);
    transition: filter .15s, transform .05s, box-shadow .15s;
}
.pay:hover { filter: brightness(1.07); }
.pay:active { transform: translateY(1px); box-shadow: 0 6px 16px rgba(255, 138, 31, .25); }

.secure { text-align: center; color: var(--muted); font-size: 11.5px; margin: 14px 0 0; }

.alert {
    background: rgba(255, 107, 94, .12);
    border: 1px solid rgba(255, 107, 94, .4);
    color: #ffb4ac;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    text-align: center;
}

/* success */
.card.center { text-align: center; max-width: 460px; margin: 0 auto; }
.check {
    width: 66px; height: 66px;
    margin: 8px auto 16px;
    border-radius: 50%;
    background: rgba(95, 224, 112, .14);
    border: 1px solid rgba(95, 224, 112, .5);
    color: var(--price);
    font-size: 34px; line-height: 66px;
}
.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.btn-back:hover { text-decoration: underline; }

/* чекбокс согласия */
.agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 14px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
    cursor: pointer;
}
.agree input {
    width: 17px; height: 17px;
    margin: 1px 0 0;
    flex: 0 0 17px;
    accent-color: var(--orange);
    cursor: pointer;
}
.agree a { color: var(--orange); text-decoration: none; }
.agree a:hover { text-decoration: underline; }
.agree.invalid span { color: #ffb4ac; }
.hint-agree { margin: -8px 0 12px; }

/* подвал */
.site-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-bottom: 12px;
}
.site-footer a { color: var(--muted); text-decoration: none; font-size: 12.5px; }
.site-footer a:hover { color: var(--orange); }
.disclaimer { font-size: 11px; color: var(--dim); line-height: 1.5; margin: 0; }

/* страница документа */
.doc {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--card), var(--panel2));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px 34px 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.doc-back {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--orange);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
}
.doc-back:hover { text-decoration: underline; }
.doc h1 { font-size: 25px; margin: 0 0 18px; }
.doc-body { color: #cfd4de; font-size: 14px; line-height: 1.65; }
.doc-body h2 {
    font-size: 16px;
    color: var(--text);
    margin: 24px 0 8px;
}
.doc-body p { margin: 0 0 10px; }
.doc-body a { color: var(--orange); }
.doc-body .req {
    background: #0e1117;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 6px 0 14px;
    line-height: 1.9;
    font-size: 13.5px;
}
.doc-body .muted { color: var(--muted); font-size: 12.5px; margin-top: 16px; }
.doc .site-footer { text-align: center; }

/* адаптив */
@media (max-width: 720px) {
    body { padding: 22px 14px; }
    .shell { grid-template-columns: 1fr; max-width: 440px; }
    .side {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 28px 24px 22px;
    }
    .steps { margin: 22px 0 0; }
    .pay-row { justify-content: center; }
    .card { padding: 26px 22px 24px; }
}
