@font-face { font-family: "Anton"; src: url("/fonts/anton.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/fonts/fira-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/fonts/fira-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/fonts/fira-semibold.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  /* асфальт ночью + фиолетовый неон бренда + белые гоночные номера */
  --bg: #16131d;
  --surface: #1f1b29;
  --surface-2: #29243a;
  --line: #2f2942;
  --text: #f1eef7;
  --muted: #9c95ad;
  --accent: #8b5cf6;
  --accent-light: #b49cff;
  --accent-dark: #6d3ff0;
  --plate: #f4f2f8;
  --ok: #4ade80;
  --bad: #f87171;
  --radius: 10px;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--body); font-size: 17px; background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-light); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px;
  border-radius: var(--radius); font-weight: 600; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s; color: #fff; line-height: 1.2; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: #4a4260; background: transparent; }
.btn-outline:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }

/* Header */
header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(22,19,29,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
nav { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo { font-family: var(--display); font-size: 1.6rem; letter-spacing: .01em; color: #fff; line-height: 1; }
.logo span { color: var(--accent-light); }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--accent-light); }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 70px; position: relative; overflow: hidden; }
.hero::after { /* неоновая подсветка под машиной */
  content: ""; position: absolute; right: -10%; top: 18%; width: 70%; height: 70%;
  background: radial-gradient(closest-side, rgba(139,92,246,.32), transparent); pointer-events: none; }
.hero > .container { width: 100%; }
.hero-inner { position: relative; width: 100%; }
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.2rem, 6.4vw, 5.6rem); line-height: .94; text-wrap: balance; letter-spacing: .005em; margin-bottom: 26px; }
.hero h1 .thin { display: block; -webkit-text-stroke: 1.5px var(--text); color: transparent; }
.hero p { font-size: 1.18rem; color: var(--muted); max-width: 27em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.car-wrap { position: absolute; right: -22%; top: 46%; transform: translateY(-50%); width: 66%; max-width: 940px; z-index: 1;
  animation: roll-in 1.1s cubic-bezier(.2,.8,.2,1) both; }
.car-wrap img { width: 100%; height: auto; filter: drop-shadow(-14px 10px 22px rgba(0,0,0,.75)); }
@keyframes roll-in { from { transform: translate(14%, -50%); opacity: 0; } to { transform: translate(0, -50%); opacity: 1; } }
@media (max-width: 1240px) and (min-width: 901px) { .hero-content { max-width: 560px; } .car-wrap { right: -30%; } }
.facts { position: relative; z-index: 2; display: flex; gap: 28px 40px; flex-wrap: wrap; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 640px; }
.facts div { font-size: .95rem; color: var(--muted); }
.facts b { display: block; color: var(--text); font-weight: 600; font-size: 1.02rem; }

/* Sections */
section { padding: 100px 0; }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: .01em; margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 36em; margin-bottom: 40px; font-size: 1.08rem; }

/* Products */
.toolbar { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; max-width: 380px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: #fff; font-size: 1rem; }
.search:focus { border-color: var(--accent); outline: none; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.product-card { background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; transition: border-color .15s; }
.product-card:hover { border-color: #5b4d86; }
.product-card .cover { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; position: relative; }
.product-card .cover img { width: 100%; height: 100%; object-fit: cover; }
/* ценник = гоночный номер */
.plate { position: absolute; left: 14px; bottom: 14px; background: var(--plate); color: #120f18; border-radius: 6px;
  padding: 4px 10px 2px; font-family: var(--display); font-size: 1.9rem; line-height: 1; display: flex; align-items: baseline; gap: 5px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.plate small { font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.plate.free { background: var(--ok); }
.product-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.22rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.product-card .desc { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-family: var(--display); font-size: 2rem; line-height: 1; }
.price small { font-family: var(--body); font-size: .9rem; color: var(--muted); font-weight: 500; }
.empty { grid-column: 1 / -1; padding: 56px 28px; border: 1px dashed #3d3556; border-radius: 14px; }
.empty h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shine 1.4s infinite; border-radius: 14px; height: 380px; }
@keyframes shine { to { background-position: -200% 0; } }

/* Custom */
.custom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; border-left: 4px solid var(--accent); padding: 8px 0 8px 36px; }
.checks { list-style: none; margin: 20px 0 0; color: var(--muted); columns: 2; column-gap: 28px; }
.checks li { padding: 4px 0 4px 22px; position: relative; break-inside: avoid; }
.checks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 2px; background: var(--accent-light); }
.custom-cta { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.big-price { font-family: var(--display); font-size: 3.6rem; line-height: 1; margin-bottom: 8px; }
.big-price span { font-family: var(--body); font-size: 1rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 26px 26px 10px 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent-light); margin-bottom: 12px; }
.step h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .96rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-light); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 40em; }

footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(8,6,12,.8); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; padding: 28px; position: relative; }
.modal-box.wide { max-width: 880px; }
.modal-box h3 { font-size: 1.3rem; font-weight: 600; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(16,13,22,.7); border: none; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; z-index: 3; display: grid; place-items: center; padding-bottom: 3px; }
.modal-close:hover { color: #fff; }
.gallery-main { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.gallery-main { position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(16,13,22,.62); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.gal-nav:hover { background: rgba(16,13,22,.85); }
.gal-nav.prev { left: 12px; }
.gal-nav.next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(16,13,22,.7); color: #fff; font-size: .82rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; }
.thumbs img { width: 84px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .55; border: 2px solid transparent; }
.thumbs img.on { opacity: 1; border-color: var(--accent); }
.full-desc { color: var(--muted); white-space: pre-line; margin: 10px 0 20px; max-width: 46em; }

/* Checkout */
.pay-field { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.pay-field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.pay-row { display: flex; gap: 10px; align-items: center; }
.pay-row code { flex: 1; font-size: .92rem; word-break: break-all; color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; }
.pay-row .amount { font-family: var(--display); font-size: 2.2rem; line-height: 1.05; flex: 1; }
.pay-row .amount small { font-family: var(--body); font-size: .9rem; color: var(--muted); }
.copy { background: var(--surface-2); color: var(--accent-light); border: none; border-radius: 6px; padding: 7px 12px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.copy:hover { background: #352e4b; }
.warn { border-left: 3px solid #fbbf24; background: rgba(251,191,36,.06); color: #f3dfa3; border-radius: 4px; padding: 10px 14px; font-size: .9rem; margin: 12px 0; }
.status { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 14px; border-radius: 10px; background: var(--bg); margin-top: 8px; font-weight: 500; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(139,92,246,.3); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#qr { display: flex; justify-content: center; margin: 6px 0 14px; }
#qr img, #qr canvas { background: #fff; padding: 8px; border-radius: 8px; }
.ok-box { text-align: center; }
.ok-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(74,222,128,.14); color: var(--ok); display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto 14px; }
.progress { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 14px 0 6px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--surface-2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 10px; z-index: 2000; transition: transform .25s; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Small text, fields */
.small { font-size: .86rem; }
.field { width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: .98rem; }
.field:focus { border-color: var(--accent); outline: none; }
textarea.field { min-height: 92px; resize: vertical; }
.btn.disabled { opacity: .45; pointer-events: none; }

/* Friend discount note in hero */
.ref-banner { display: inline-block; margin-bottom: 22px !important; padding: 7px 14px; border-radius: 6px; background: var(--plate); color: #120f18 !important;
  font-size: .95rem !important; font-weight: 600; max-width: none !important; }

/* Rating */
.rating { font-size: .9rem; margin-bottom: 6px; }
.stars { color: #fbbf24; letter-spacing: .06em; }

/* All-access pass */
.pass { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; padding: 22px 26px; background: var(--surface); }
.pass h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin-bottom: 6px; }
.pass p { max-width: 38em; }

/* Bring a friend */
.friends { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.split div { padding: 22px 22px 0 0; }
.split div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.split b { display: block; font-family: var(--display); font-weight: 400; font-size: 4.4rem; line-height: 1; margin-bottom: 8px; }
.split div:first-child b { color: var(--plate); }
.split div + div b { color: transparent; -webkit-text-stroke: 1.5px var(--accent-light); }
.split span { color: var(--muted); font-size: .98rem; }
.ref-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.ref-card > label, .key-box > label, .key-form > label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.ref-card .pay-row, .key-box .pay-row { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ref-empty { font-size: 1.05rem; margin-bottom: 18px; }
.ref-stats, .acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 12px; }
.ref-stats div, .acct-stats div { background: var(--bg); border-radius: 10px; padding: 12px; }
.ref-stats b, .acct-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.ref-stats span, .acct-stats span { font-size: .8rem; color: var(--muted); }

/* Mod modal: buy row + reviews */
.mod-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.reviews { padding-top: 20px; }
.reviews h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.reviews h4 .muted { font-weight: 400; font-size: .95rem; margin-left: 6px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.review p { color: var(--muted); white-space: pre-line; }
.verified { font-size: .74rem; font-weight: 600; color: var(--ok); border: 1px solid rgba(74,222,128,.35); border-radius: 4px; padding: 1px 6px; }
.review-form { display: grid; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.star-pick { display: flex; gap: 2px; }
.star-pick button { background: none; border: none; font-size: 1.7rem; color: #4a4260; cursor: pointer; line-height: 1; padding: 0 2px; }
.star-pick button.on { color: #fbbf24; }
.review-form .btn { justify-self: start; }

/* Checkout extras */
.price-lines { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: .93rem; }
.price-lines div { display: flex; justify-content: space-between; padding: 3px 0; }
.price-lines .minus { color: var(--ok); }
.key-box { margin: 16px 0 12px; }
.key-box code { font-size: .95rem; letter-spacing: .02em; }
.key-box p { margin-top: 8px; }

/* My purchases */
.buys-h { font-size: .92rem; color: var(--muted); font-weight: 500; margin: 18px 0 4px; }
.buy-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.key-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.key-form .pay-row .field { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }

.contact-steps { padding-left: 20px; display: grid; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: .95rem; }
.contact-steps b { color: var(--text); }
.contact-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.5; }
footer .legal { max-width: 46em; display: grid; gap: 6px; }

@media (max-width: 980px) { .friends { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) {
  .split b { font-size: 3.2rem; }
  .ref-stats, .acct-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .ref-stats b, .acct-stats b { font-size: 1.25rem; }
  .pass { padding: 20px; }
}

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: none; }
  .custom { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 92px 0 56px; }
  .hero::after { right: -30%; top: 0; width: 120%; height: 50%; }
  .car-wrap { position: relative; right: auto; top: auto; transform: none; width: 112%; max-width: 560px; margin: 0 -6% 8px auto; animation: none; }
  .facts { gap: 22px; margin-top: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  section { padding: 72px 0; }
  .custom { padding-left: 20px; }
  .checks { columns: 1; }
  .modal-box { padding: 22px 18px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0 6px; border-left: none; border-top: 1px solid var(--line); }
  .step:first-child { border-top: none; }
}
