:root {
    --bg: #0e1116;
    --surface: #171b22;
    --surface-high: #222833;
    --outline: #3a4250;
    --yellow: #ffc107;
    --yellow-dim: #c79100;
    --green: #3ddc97;
    --red: #ff6b6b;
    --blue: #6ea8fe;
    --text: #f4f6fa;
    --muted: #a8b0bd;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(255, 193, 7, 0.16), transparent 60%),
        radial-gradient(700px 380px at -10% 20%, rgba(110, 168, 254, 0.08), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { color: #ffd54f; }

.wrap {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(16px);
    background: rgba(14, 17, 22, 0.86);
    border-bottom: 1px solid rgba(58, 66, 80, 0.7);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--yellow);
    color: #1a1400;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.brand small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.site-nav a { color: var(--muted); font-size: 15px; }
.site-nav a:hover { color: var(--text); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--outline);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    padding: 64px 0 36px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow);
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

h1 {
    margin: 16px 0 12px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.lede {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 18px;
    max-width: 540px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 750;
    border: 0;
}

.btn-red { background: var(--red); color: #2a0d0d; }
.btn-red:hover { background: #ff8585; color: #2a0d0d; }
.btn-rustore {
    gap: 10px;
    background: #0077ff;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 119, 255, 0.28);
}
.btn-rustore:hover {
    background: #1a85ff;
    color: #ffffff;
}
.rustore-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background:
        linear-gradient(#fff, #fff) 5px 12px / 3.5px 6px no-repeat,
        linear-gradient(#fff, #fff) 9.5px 8px / 3.5px 10px no-repeat,
        linear-gradient(#fff, #fff) 14px 5px / 3.5px 13px no-repeat,
        #0077ff;
    box-shadow: inset 0 0 0 1.5px #ffffff;
    flex: 0 0 auto;
}
.store-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    max-width: 42ch;
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--outline);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--text); }

.btn-apk {
    gap: 12px;
    min-height: 56px;
    padding: 10px 20px 10px 16px;
    background: linear-gradient(180deg, #1a1f27 0%, #12161c 100%);
    color: var(--text);
    border: 1px solid #2a323d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.btn-apk:hover {
    border-color: #3a4452;
    background: linear-gradient(180deg, #202632 0%, #161b22 100%);
    color: var(--text);
}
.apk-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(255, 193, 7, 0.12);
    color: var(--yellow);
    box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.28);
}
.apk-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.apk-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.15;
    text-align: left;
}
.apk-copy strong {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.01em;
}
.apk-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 550;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.panel-top strong { font-size: 18px; }
.panel-top span { color: var(--muted); font-size: 13px; }

.car-card {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 8px;
    align-items: center;
    background: var(--surface-high);
    border-radius: 20px;
    padding: 8px 8px 8px 18px;
    margin-bottom: 12px;
}

.car-card img { width: 150px; height: 96px; object-fit: contain; }

.plate { color: var(--muted); font-size: 14px; margin-top: 4px; }

.chip {
    display: inline-block;
    margin-top: 10px;
    background: #2a3140;
    color: var(--text);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 13px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat {
    background: var(--surface-high);
    border-radius: 16px;
    padding: 14px;
}

.stat b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.stat em { display: block; margin-top: 6px; font-style: normal; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.green { color: var(--green); }
.blue { color: var(--blue); }
.yellow { color: var(--yellow); }
.red { color: var(--red); }

.note {
    margin: 10px 2px 0;
    color: var(--muted);
    font-size: 12px;
}

section { padding: 28px 0; }

h2 {
    margin: 0 0 8px;
    font-size: 32px;
    letter-spacing: -0.03em;
}

.sub { margin: 0 0 22px; color: var(--muted); }

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 20px;
    padding: 20px;
}

.card h3 { margin: 10px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.ico {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.steps { display: grid; gap: 12px; }

.step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 18px;
    padding: 16px;
}

.num {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--yellow);
    color: #1a1400;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
}

.step h3 { margin: 4px 0 4px; }
.step p { margin: 0; color: var(--muted); }

.garage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.garage figure {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 20px;
    padding: 12px 12px 16px;
    text-align: center;
}

.garage img { width: 100%; height: 120px; object-fit: contain; }
.garage figcaption { color: var(--muted); font-size: 14px; }

.faq-list { display: grid; gap: 10px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 16px;
    padding: 4px 16px;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    font-weight: 700;
    font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--yellow);
    font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
    margin: 0 0 14px;
    color: var(--muted);
}

.legal {
    max-width: 760px;
    padding-bottom: 48px;
}

.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 18px; }

.feedback {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feedback label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.feedback label.full { grid-column: 1 / -1; }

.feedback .optional {
    color: var(--outline);
    font-weight: 500;
}

.feedback input,
.feedback textarea {
    width: 100%;
    border: 1px solid var(--outline);
    border-radius: 14px;
    background: var(--surface-high);
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
}

.feedback input:focus,
.feedback textarea:focus {
    outline: 2px solid rgba(255, 193, 7, 0.35);
    border-color: var(--yellow);
}

.feedback textarea { resize: vertical; min-height: 140px; }

.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.feedback-status { margin: 0; color: var(--muted); }
.feedback-status.ok { color: var(--green); }
.feedback-status.bad { color: var(--red); }

.feedback .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.screens { scroll-margin-top: 84px; }

.screen-rail { position: relative; }

.screen-nav {
    position: absolute;
    top: 42%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid var(--outline);
    border-radius: 50%;
    background: rgba(23, 27, 34, 0.94);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: border-color .2s ease, color .2s ease, background .2s ease, opacity .2s ease;
}

.screen-nav svg {
    width: 18px;
    height: 18px;
}

.screen-nav:hover:not(:disabled) {
    border-color: rgba(255, 193, 7, 0.55);
    color: var(--yellow);
    background: rgba(34, 40, 51, 0.98);
}

.screen-nav:disabled {
    opacity: 0.28;
    cursor: default;
}

.screen-nav.prev { left: -4px; }
.screen-nav.next { right: -4px; }

.screen-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 228px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-inline: 8px;
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
}

.screen-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}

.screen-track::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.screen-track figure {
    margin: 0;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    pointer-events: none;
}

.screen-track:not(.is-dragging) figure { pointer-events: auto; }

.screen-track figure:hover {
    border-color: rgba(255, 193, 7, 0.45);
    transform: translateY(-4px);
}

.screen-track img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    object-position: top;
    display: block;
}

.screen-track figcaption {
    padding: 11px 14px 13px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

footer {
    border-top: 1px solid var(--outline);
    padding: 22px 0 32px;
    color: var(--muted);
}

.foot {
    display: grid;
    gap: 14px;
}

.foot strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.foot p { margin: 0; font-size: 14px; }

.foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--yellow); }

@media (max-width: 860px) {
    .hero, .grid, .garage, .feedback-grid { grid-template-columns: 1fr; }
    .screen-nav { display: none; }
    .screen-track {
        grid-auto-columns: minmax(170px, 210px);
        cursor: auto;
        mask-image: none;
        -webkit-mask-image: none;
        padding-inline: 0;
    }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--outline);
        border-radius: 16px;
        background: rgba(23, 27, 34, 0.98);
        box-shadow: var(--shadow);
    }
    body.nav-open .site-nav { display: flex; }
    .site-nav a {
        padding: 14px 16px;
        border-radius: 12px;
        color: var(--text);
    }
    .site-nav a:hover { background: var(--surface-high); color: var(--yellow); }
    .bar { position: relative; }
    .car-card { grid-template-columns: 1fr; }
    .car-card img { width: 100%; height: auto; }
}
