/* ═══════════════════════════════════════════════════════════════
   landing.css — стили публичных SEO-лендингов (/part, /city, /brand)
   Живут в autofindparts-web; backend отдаёт только разметку.
   Токены повторяют src/styles/variables.css (dark theme).
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg: #0b1220;
    --surface: rgba(36, 46, 68, 0.92);
    --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), rgba(36, 46, 68, 0.92);
    --border: rgba(255, 255, 255, 0.07);
    --text: #f8fafc;
    --text-2: #d6deea;
    --muted: #94a3b8;
    --dim: #64748b;
    --amber: #f59e0b;
    --amber-2: #fbbf24;
    --orange: #ea580c;
    --green: #22c55e;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: url('/assets/bg-mobile.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
}

@media (min-width: 768px) {
    body::before { background-image: url('/assets/bg-desktop.webp'); }
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.14), transparent 34%),
        radial-gradient(circle at 12% 22%, rgba(251, 191, 36, 0.06), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(234, 88, 12, 0.06), transparent 30%),
        linear-gradient(180deg, rgba(8, 14, 25, 0.15), rgba(8, 14, 25, 0.55));
}

/* ── Header ───────────────────────────────────────────────────── */

.hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 980px;
    margin: 14px auto 0;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(36, 46, 68, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: sticky;
    top: 8px;
    z-index: 20;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    text-decoration: none;
    background: linear-gradient(to right, #f59e0b, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-2);
    margin-left: 4px;
    -webkit-text-fill-color: var(--text-2);
}

.city {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    font-size: 12.5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 7px 12px;
    text-decoration: none;
}

/* ── Layout ───────────────────────────────────────────────────── */

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.crumbs {
    font-size: 12px;
    color: var(--dim);
    margin: 14px 2px 10px;
}

.crumbs a { color: var(--dim); text-decoration: none; }

.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
    padding: 22px 22px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12), transparent 40%);
}

.hero h1 {
    font-size: 26px;
    line-height: 1.22;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
    position: relative;
}

.hero h1 .accent { color: var(--amber-2); }

.lead {
    color: var(--text-2);
    font-size: 14px;
    margin: 0 0 16px;
    position: relative;
}

.stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    position: relative;
}

.stat {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px 16px;
    min-width: 120px;
}

.stat .v { display: block; font-size: 20px; font-weight: 800; color: #fff; }
.stat .v.amber { color: var(--amber-2); }
.stat .v.green { color: #4ade80; }
.stat .l { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

.cta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.btn-ghost {
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
}

/* ── Sections ─────────────────────────────────────────────────── */

.section { margin-top: 14px; padding: 18px 20px; }
.section h2 { font-size: 15px; margin: 0 0 10px; }

.offer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.offer .big { font-size: 24px; font-weight: 800; color: var(--amber-2); }
.offer .mini { font-size: 12px; color: var(--muted); }
.offer .btn { margin-left: auto; }

.pill {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 700;
}

/* ── Similar parts ────────────────────────────────────────────── */

.similar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.similar a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 13px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.18);
}

.similar .name { font-size: 13.5px; font-weight: 700; color: #fff; }
.similar .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.similar .price { color: var(--amber-2); font-weight: 700; }

/* ── Hub lists ────────────────────────────────────────────────── */

.items { list-style: none; padding: 0; margin: 0; }

.items li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13.5px;
}

.items li:last-child { border-bottom: none; }
.items a { color: #fff; text-decoration: none; font-weight: 600; }
.items .muted { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ── Footer ───────────────────────────────────────────────────── */

.ftr {
    text-align: center;
    color: var(--dim);
    font-size: 12px;
    margin: 18px 0 0;
}

.ftr a { color: var(--muted); }

/* ── Hub brand picker ─────────────────────────────────────────── */

.hint {
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
    position: relative;
}

.hint a {
    color: var(--amber-2);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.brands a {
    position: relative;
    padding-right: 40px;
}

.brands a::after {
    content: "→";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--amber-2);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.brands a:hover {
    border-color: rgba(251, 191, 36, 0.35);
}

#brands { scroll-margin-top: 90px; }

@media (max-width: 640px) {
    .hdr { margin: 10px 12px 0; }
    .wrap { padding: 0 12px 32px; }
    .hero h1 { font-size: 22px; }
    .similar { grid-template-columns: 1fr; }
    .offer .btn { margin-left: 0; }
}
