:root {
    --bg: #07080d;
    --panel: rgba(17, 18, 26, .86);
    --line: rgba(255,255,255,.11);
    --text: #f7f7fb;
    --muted: rgba(255,255,255,.62);
    --violet: #8b5cf6;
    --violet2: #a855f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: radial-gradient(circle at 78% 8%, rgba(139,92,246,.24), transparent 32%), var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 6vw;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 14, .88);
    backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 8px; background: var(--violet); font-weight: 950; font-size: 24px;
    box-shadow: 0 0 34px rgba(139,92,246,.45);
}
.brand strong { display: block; font-size: 22px; line-height: 1; }
.brand em { color: #a98cff; font-style: normal; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font-weight: 800; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 900; text-transform: uppercase; }
.nav-links a:hover { color: #c4a7ff; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-link, .cart-link { position: relative; font-size: 23px; }
.cart-link span {
    position: absolute; right: -11px; top: -12px; min-width: 20px; height: 20px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 999px; background: var(--violet); font-size: 12px; font-weight: 900;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--line); border-radius: 7px; padding: 13px 20px; font-weight: 950;
    transition: .2s ease;
}
.btn-primary { background: linear-gradient(135deg, #7c3aed, #9333ea); border-color: transparent; box-shadow: 0 0 34px rgba(139,92,246,.32); }
.btn-ghost { background: rgba(255,255,255,.07); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); }

.hero {
    min-height: 710px;
    padding: 70px 6vw 30px;
    background-image:
        linear-gradient(90deg, rgba(7,8,13,.98) 0%, rgba(7,8,13,.74) 42%, rgba(7,8,13,.25) 100%),
        linear-gradient(180deg, rgba(7,8,13,.1), rgba(7,8,13,1)),
        url("https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=1800&q=90");
    background-size: cover;
    background-position: center;
}
.hero-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr); gap: 56px; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(139,92,246,.7);
    background: rgba(139,92,246,.12); color: #d8c7ff; border-radius: 999px; padding: 9px 14px;
    font-size: 12px; font-weight: 950; text-transform: uppercase;
}
h1 { margin: 24px 0 0; font-size: clamp(46px, 6vw, 82px); line-height: .98; letter-spacing: 0; }
.accent { color: #9f78ff; }
.lead { max-width: 650px; margin-top: 24px; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.rating { display: flex; align-items: center; gap: 18px; margin-top: 30px; color: var(--muted); font-weight: 800; }
.stars { color: #facc15; letter-spacing: 2px; }
.hero-car {
    min-height: 380px; border: 1px solid rgba(139,92,246,.22); border-radius: 12px;
    background-image: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.18)), url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1300&q=90");
    background-size: cover; background-position: center;
    box-shadow: 0 0 50px rgba(139,92,246,.24);
}
.benefits {
    max-width: 1280px; margin: 42px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border: 1px solid var(--line); border-radius: 9px; background: var(--panel); backdrop-filter: blur(18px);
}
.benefit { padding: 28px; display: flex; gap: 16px; border-right: 1px solid var(--line); }
.benefit:last-child { border-right: 0; }
.benefit i { color: #a98cff; font-size: 35px; font-style: normal; }
.benefit h3 { margin: 0 0 7px; }
.benefit p { margin: 0; color: var(--muted); line-height: 1.45; }

.section { max-width: 1280px; margin: 0 auto; padding: 58px 6vw; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.eyebrow { color: #b89cff; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 950; }
h2 { margin: 8px 0 0; font-size: 36px; }
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card, .panel {
    border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
    box-shadow: 0 18px 60px rgba(0,0,0,.32); overflow: hidden;
}
.card:hover { border-color: rgba(139,92,246,.65); box-shadow: 0 0 38px rgba(139,92,246,.25); transform: translateY(-3px); }
.card-image { position: relative; aspect-ratio: 1.85 / 1; background-size: cover; background-position: center; }
.card-image:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,13,.9), transparent); }
.badge { position: absolute; left: 14px; top: 14px; z-index: 1; background: #7c3aed; border-radius: 5px; padding: 6px 10px; font-size: 11px; font-weight: 950; }
.card-title { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 1; font-size: 25px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.card-body { padding: 18px; }
.muted { color: var(--muted); }
.price-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.price { color: #b188ff; font-size: 21px; font-weight: 950; }
.form-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 12px; margin-bottom: 26px; }
input, select, textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 7px; background: rgba(0,0,0,.3);
    color: var(--text); padding: 14px 15px; outline: none;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px; text-align: center; }
.stat strong { display: block; font-size: 34px; }
.auth-card { max-width: 440px; margin: 70px auto; padding: 28px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 16px; text-align: left; }
.footer { border-top: 1px solid var(--line); padding: 34px 6vw; display: flex; justify-content: center; gap: 16px; color: var(--muted); }

@media (max-width: 1000px) {
    .nav { height: auto; padding: 18px 4vw; flex-wrap: wrap; }
    .nav-links { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-top: 10px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-car { min-height: 280px; }
    .benefits, .grid-products, .stats { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .brand small, .nav-actions .icon-link { display: none; }
    .nav-actions { width: 100%; justify-content: space-between; }
    .hero { padding-top: 42px; }
    .benefits, .grid-products, .stats, .form-grid { grid-template-columns: 1fr; }
    .benefit { border-right: 0; border-bottom: 1px solid var(--line); }
    .footer { flex-direction: column; text-align: center; }
}
