/* ══════════════════════════════════════════════════════════════
   SOLITON — soliton.studio (апекс). Лендинг-калькулятор.
   Самостоятельная страница: не зависит от стилей ru/en версий.
   CSP: без inline-стилей. Всё здесь.
   ══════════════════════════════════════════════════════════════ */

:root {
    --bg:         #030304;
    --bg2:        #0e0e12;
    --bg3:        #15151a;
    --primary:    #00f0ff;
    --secondary:  #7000ff;
    --text:       #ffffff;
    --muted:      #8b9bb4;
    --border:     rgba(0, 240, 255, .15);
    --border-soft:rgba(255, 255, 255, .08);
    --ok:         #35d07f;
    --warn:       #ffb648;
    --ease:       cubic-bezier(.23, 1, .32, 1);
    --maxw:       1080px;
    --r:          18px;
}

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

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: none; background: none; }
ul { list-style: none; }
img, svg { max-width: 100%; }

::selection { background: rgba(0, 240, 255, .25); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--primary); color: #001014; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.glow-text {
    background: linear-gradient(120deg, var(--primary), #6fa8ff 45%, var(--secondary));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ─────────── фон ─────────── */

.bg-aura {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(60% 50% at 12% -6%, rgba(0, 240, 255, .22), transparent 62%),
        radial-gradient(55% 45% at 92% 8%, rgba(112, 0, 255, .24), transparent 60%),
        radial-gradient(70% 60% at 50% 108%, rgba(112, 0, 255, .14), transparent 60%);
}
.bg-grid {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(75% 60% at 50% 20%, #000 0%, transparent 85%);
            mask-image: radial-gradient(75% 60% at 50% 20%, #000 0%, transparent 85%);
}

/* декоративные пятна света за героем — тот же приём, что и на основном сайте */
.hero-orb {
    position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
    filter: blur(60px); opacity: .55;
    animation: orbit 14s ease-in-out infinite;
}
.hero-orb-a {
    width: 380px; height: 380px; left: -120px; top: -60px;
    background: radial-gradient(circle, rgba(0, 240, 255, .35), transparent 70%);
}
.hero-orb-b {
    width: 320px; height: 320px; right: -100px; top: 40px;
    background: radial-gradient(circle, rgba(112, 0, 255, .32), transparent 70%);
    animation-delay: -7s; animation-direction: reverse;
}
@keyframes orbit {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -18px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }

/* ─────────── шапка ─────────── */

.hd {
    position: sticky; top: 0; z-index: 60;
    background: rgba(3, 3, 4, .72);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 1px 0 rgba(0, 240, 255, .06);
}
.hd-in {
    display: flex; align-items: center; gap: 16px;
    min-height: 64px;
}
.hd-logo { display: flex; align-items: center; flex: 0 0 auto; }
.hd-logo img { display: block; width: 138px; height: auto; }
.hd-sp { flex: 1 1 auto; }

.mkt {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 3px; border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .03);
}
.mkt button {
    padding: 6px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
    color: var(--muted); cursor: pointer;
    transition: color .2s, background-color .2s;
    white-space: nowrap;
}
.mkt button:hover { color: #fff; }
.mkt button[aria-pressed="true"] {
    color: #001014;
    background: linear-gradient(120deg, var(--primary), #59c8ff);
}

.hd-full {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: #fff;
    padding: 10px 20px; border-radius: 999px;
    border: 1.5px solid var(--primary);
    background: rgba(0, 240, 255, .06);
    box-shadow: 0 0 18px rgba(0, 240, 255, .12);
    transition: transform .3s var(--ease), box-shadow .3s, background-color .3s, color .3s;
    white-space: nowrap; position: relative; overflow: hidden;
}
.hd-full::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-18deg); transition: left .5s;
}
.hd-full:hover::before { left: 150%; }
.hd-full:hover {
    background: var(--primary); color: #001014;
    box-shadow: 0 0 34px rgba(0, 240, 255, .45);
    transform: translateY(-2px);
}
.hd-full svg { flex: 0 0 auto; transition: transform .3s var(--ease); }
.hd-full:hover svg { transform: translateX(3px); }

/* ─────────── герой ─────────── */

.hero { padding: 54px 0 12px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--primary);
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0, 240, 255, .05);
    margin-bottom: 20px;
}
.eyebrow i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

h1 {
    font-size: clamp(30px, 5.2vw, 52px);
    line-height: 1.1; font-weight: 800; letter-spacing: -.02em;
    margin-bottom: 16px;
    text-shadow: 0 0 46px rgba(0, 240, 255, .18);
}
.hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--muted); max-width: 640px; margin-bottom: 26px;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.hero-pills span {
    font-size: 13px; color: var(--muted);
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .02);
}

/* ─────────── карточка калькулятора ─────────── */

.calc {
    margin: 30px 0 18px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(14, 14, 18, .96), rgba(3, 3, 4, .96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 240, 255, .05),
                0 0 60px rgba(0, 240, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .04);
    overflow: hidden;
    scroll-margin-top: 80px;
    position: relative;
}
.calc::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(120deg, rgba(0, 240, 255, .35), transparent 30%, transparent 70%, rgba(112, 0, 255, .3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.calc-top { padding: 22px 26px 0; }

.bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i {
    display: block; height: 100%; width: 20%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width .5s var(--ease);
}
.calc-meta {
    display: flex; align-items: center; gap: 12px;
    margin-top: 12px; min-height: 30px;
}
.calc-step {
    font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted);
}
.calc-back {
    margin-left: auto; font-size: 14px; color: var(--muted);
    padding: 5px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid transparent; transition: color .2s, border-color .2s;
}
.calc-back:hover { color: #fff; border-color: var(--border-soft); }
.calc-back[hidden] { display: none; }

.calc-body { padding: 18px 26px 26px; }

.step { display: none; animation: fade .45s var(--ease); }
.step.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q {
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px;
}
.q-hint { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }

/* варианты */

.opts { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.one { grid-template-columns: 1fr; }

.opt {
    display: flex; align-items: flex-start; gap: 13px; text-align: left;
    padding: 17px 18px; cursor: pointer;
    border: 1px solid var(--border-soft); border-radius: var(--r);
    background: rgba(255, 255, 255, .02);
    transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.opt:hover { border-color: var(--border); background: rgba(0, 240, 255, .04); transform: translateY(-2px); }
.opt[aria-pressed="true"] {
    border-color: var(--primary);
    background: rgba(0, 240, 255, .08);
    box-shadow: 0 0 0 1px rgba(0, 240, 255, .35), 0 12px 34px rgba(0, 240, 255, .10);
}
.opt-mark {
    flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
    border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 7px;
    position: relative; transition: border-color .25s, background-color .25s;
}
.opt[aria-pressed="true"] .opt-mark { border-color: var(--primary); background: var(--primary); }
.opt-mark::after {
    content: ''; position: absolute; left: 6px; top: 2px;
    width: 5px; height: 10px; border: solid #001014; border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0); transition: transform .25s var(--ease);
}
.opt[aria-pressed="true"] .opt-mark::after { transform: rotate(45deg) scale(1); }
.opt-tx b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.opt-tx small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border-radius: 999px; cursor: pointer;
    font-size: 15px; font-weight: 700; letter-spacing: .01em;
    transition: transform .3s var(--ease), box-shadow .3s, opacity .2s;
}
.btn-main {
    color: #001014;
    background: linear-gradient(120deg, var(--primary), #59c8ff 55%, #9d7bff);
    box-shadow: 0 12px 34px rgba(0, 240, 255, .22);
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0, 240, 255, .32); }
.btn-main:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
    border: 1px solid var(--border); color: #fff;
    background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-plain { color: var(--muted); font-weight: 500; padding: 14px 6px; cursor: pointer; }
.btn-plain:hover { color: #fff; }

/* ─────────── результат ─────────── */

.res-head { margin-bottom: 20px; }
.res-kicker {
    font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 10px;
}

.res-nums {
    display: grid; gap: 12px; grid-template-columns: 1.4fr 1fr;
    margin-bottom: 18px;
}
.res-box {
    padding: 20px 22px; border-radius: var(--r);
    border: 1px solid var(--border);
    background: linear-gradient(140deg, rgba(0, 240, 255, .07), rgba(112, 0, 255, .05));
}
.res-box small {
    display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 7px;
}
.res-val { font-size: clamp(24px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.res-val span { font-size: .55em; font-weight: 600; color: var(--muted); }

.res-cols { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.res-card {
    padding: 18px 20px; border-radius: var(--r);
    border: 1px solid var(--border-soft); background: rgba(255, 255, 255, .02);
}
.res-card h3 {
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 11px;
}
.res-card li {
    position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55;
    margin-bottom: 6px; color: rgba(255, 255, 255, .88);
}
.res-card li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.res-card li:last-child { margin-bottom: 0; }

.res-case {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 16px 20px; border-radius: var(--r);
    border: 1px solid var(--border-soft); background: rgba(255, 255, 255, .02);
    margin-bottom: 18px;
}
.res-case p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1 1 260px; }
.res-case b { color: #fff; font-weight: 600; }
.res-case a { font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.res-case a:hover { text-decoration: underline; }

.note {
    font-size: 13.5px; line-height: 1.6; color: var(--muted);
    padding: 14px 18px; border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .015);
    margin-bottom: 20px;
}

/* ─────────── форма ─────────── */

.lead { margin-top: 4px; border-top: 1px solid var(--border-soft); padding-top: 22px; }
.lead[hidden] { display: none; }
.lead h2 { font-size: 20px; font-weight: 700; margin-bottom: 5px; }
.lead > p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

.f-row { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.f-row.one { grid-template-columns: 1fr; }

.field label {
    display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.field input, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 13px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .03);
    color: #fff; font-size: 15px; font-family: inherit;
    transition: border-color .25s, background-color .25s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(139, 155, 180, .55); }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); background: rgba(0, 240, 255, .04);
}
.field.bad input, .field.bad textarea { border-color: #ff5b6e; }

.f-err { display: none; font-size: 13.5px; color: #ff8a97; margin: -4px 0 12px; }
.f-err.on { display: block; }

.consent {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: 13.5px; line-height: 1.55; color: var(--muted);
    margin: 14px 0 18px; cursor: pointer;
}
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.consent.bad { color: #ff8a97; }

.f-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.done { display: none; text-align: center; padding: 28px 10px 10px; }
.done.on { display: block; }
.done-ic {
    width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(53, 208, 127, .12); border: 1px solid rgba(53, 208, 127, .4);
    color: var(--ok);
}
.done h2 { font-size: 22px; margin-bottom: 8px; }
.done p { color: var(--muted); font-size: 15px; max-width: 460px; margin: 0 auto 18px; }

.msg {
    display: none; font-size: 14px; line-height: 1.55;
    padding: 13px 16px; border-radius: 13px; margin-bottom: 14px;
}
.msg.on { display: block; }
.msg.err { color: #ff9aa5; border: 1px solid rgba(255, 91, 110, .35); background: rgba(255, 91, 110, .08); }
.msg.warn { color: #ffd08a; border: 1px solid rgba(255, 182, 72, .35); background: rgba(255, 182, 72, .08); }

/* ─────────── сцена с кубом ─────────── */
/* Тот же куб, что в шапке страницы разработки. Рисуется на обычном
   canvas, three.js не нужен — отсюда и вес в 15 КБ вместо 600.
   Цвета задаются data-атрибутами прямо в разметке. */

.scene { padding: 44px 0 20px; }
.scene-in { display: flex; justify-content: center; }

.nc-stage {
    position: relative; width: 100%;
    max-width: clamp(260px, 42vw, 420px);
    aspect-ratio: 1 / 1;
}
@supports not (aspect-ratio: 1 / 1) {
    .nc-stage { height: clamp(260px, 42vw, 420px); }
}
.nc-stage canvas {
    display: block; width: 100%; height: 100%;
    touch-action: none; cursor: grab; border-radius: 4px;
}
.nc-stage canvas:active { cursor: grabbing; }
.nc-stage canvas:focus-visible { outline: 1px solid var(--primary); outline-offset: 8px; }
.nc-stage::before {
    content: ''; position: absolute; inset: -8%; pointer-events: none;
    background: radial-gradient(circle at 50% 48%, rgba(0, 240, 255, .16), transparent 72%);
}

@media (max-width: 768px) {
    .nc-stage canvas { touch-action: pan-y; }
}


/* ─────────── подвал ─────────── */

.ft {
    margin-top: 44px; padding: 27px 0 40px; position: relative;
}
.ft::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, .35), rgba(112, 0, 255, .3), transparent);
}
.ft-in { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-start; }
.ft-col { flex: 1 1 240px; }
.ft-col h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.ft-col p, .ft-col li { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.ft-col a:hover { color: #fff; }
.ft-legal { margin-top: 20px; font-size: 12.5px; color: rgba(139, 155, 180, .75); line-height: 1.7; }

/* ─────────── cookie ─────────── */

.ck {
    position: fixed; left: 50%; bottom: 16px; z-index: 90;
    width: min(760px, calc(100% - 28px));
    transform: translateX(-50%);
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: rgba(14, 14, 18, .96);
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.ck[hidden] { display: none; }
.ck-in {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    padding: 16px 20px;
}
.ck-in p { flex: 1 1 320px; font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.ck-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.ck-btns button {
    padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform .25s var(--ease), border-color .25s, color .25s;
    white-space: nowrap;
}
.ck-no { border: 1px solid var(--border-soft); color: var(--muted); }
.ck-no:hover { color: #fff; border-color: var(--border); }
.ck-ok { color: #001014; background: linear-gradient(120deg, var(--primary), #59c8ff); }
.ck-ok:hover { transform: translateY(-2px); }

/* ─────────── адаптив ─────────── */

@media (max-width: 860px) {
    .res-nums, .res-cols { grid-template-columns: 1fr; }
    .f-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .wrap { padding: 0 16px; }
    .hero { padding: 34px 0 8px; }
    .hd-full { padding: 9px 11px; }
    #hdFullTx { display: none; }
    .hd-logo img { width: 116px; }
    .calc { border-radius: 20px; }
    .calc-top { padding: 18px 16px 0; }
    .calc-body { padding: 16px 16px 22px; }
    .opts { grid-template-columns: 1fr; }
    .opt { padding: 15px 16px; }
    .btn { width: 100%; }
    .acts { gap: 8px; }
    .btn-plain { width: 100%; }
}

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

@media (max-width: 620px) {
    .ck { bottom: 10px; }
    .ck-in { padding: 14px 16px; }
    .ck-btns { width: 100%; }
    .ck-btns button { flex: 1 1 auto; }
}
