*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light dark; }
img, svg { display: block; max-width: 100%; }
button, input { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; }

:root {
    --bg: #fafafa;
    --bg-elev: #ffffff;
    --bg-subtle: #f4f4f5;
    --text: #18181b;
    --text-muted: #71717a;
    --text-dim: #a1a1aa;
    --border: #e4e4e7;
    --border-strong: #d4d4d8;

    --accent: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --accent-soft: #eef2ff;
    --accent-soft-2: #faf5ff;

    --success: #10b981;
    --success-soft: #ecfdf5;
    --danger: #ef4444;
    --danger-soft: #fef2f2;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.12);
    --shadow-accent: 0 24px 60px -20px rgba(99, 102, 241, 0.35);

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0a0a0b;
        --bg-elev: #16161a;
        --bg-subtle: #1f1f24;
        --text: #fafafa;
        --text-muted: #a1a1aa;
        --text-dim: #71717a;
        --border: #27272a;
        --border-strong: #3f3f46;
        --accent-soft: #1e1b4b;
        --accent-soft-2: #2e1065;
        --success-soft: #052e2b;
        --danger-soft: #450a0a;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
        --shadow-accent: 0 24px 60px -20px rgba(99, 102, 241, 0.5);
    }
}

[data-theme="dark"] {
    --bg: #0a0a0b;
    --bg-elev: #16161a;
    --bg-subtle: #1f1f24;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --border: #27272a;
    --border-strong: #3f3f46;
    --accent-soft: #1e1b4b;
    --accent-soft-2: #2e1065;
    --success-soft: #052e2b;
    --danger-soft: #450a0a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
    --shadow-accent: 0 24px 60px -20px rgba(99, 102, 241, 0.5);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
    position: relative;
    z-index: 2;
}

.bg-mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; animation: float 20s ease-in-out infinite; }
.bg-orb--1 { width: 500px; height: 500px; background: var(--accent); top: -200px; left: -100px; }
.bg-orb--2 { width: 400px; height: 400px; background: var(--accent-2); top: 100px; right: -100px; animation-delay: -7s; }
.bg-orb--3 { width: 350px; height: 350px; background: #06b6d4; bottom: -100px; left: 40%; animation-delay: -14s; }
@media (prefers-color-scheme: dark) { .bg-orb { opacity: 0.18; } }

.bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(to right, var(--border) 1px, transparent 1px), linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    opacity: 0.5;
}

@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -30px) scale(1.05); } 66% { transform: translate(-20px, 20px) scale(0.95); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: var(--r-full); text-decoration: none; transition: all 0.2s var(--ease); white-space: nowrap; position: relative; overflow: hidden; border: 1px solid transparent; user-select: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; box-shadow: 0 4px 16px -4px rgba(99, 102, 241, 0.5); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); opacity: 0; transition: opacity 0.3s var(--ease); z-index: -1; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.6); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 24px; font-size: 15px; min-height: 52px; }
.btn-block { width: 100%; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent); position: relative; }
.badge i { font-size: 11px; }
@media (prefers-color-scheme: dark) { .badge { color: #c7d2fe; border-color: rgba(99, 102, 241, 0.3); } }
[data-theme="dark"] .badge { color: #c7d2fe; border-color: rgba(99, 102, 241, 0.3); }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: #22c55e; flex-shrink: 0; position: relative; transition: background-color 0.3s var(--ease); }
.status-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background-color: #22c55e; animation: status-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes status-pulse { 0% { transform: scale(1); opacity: 0.6; } 70% { transform: scale(2.5); opacity: 0; } 100% { transform: scale(2.5); opacity: 0; } }
@media (prefers-color-scheme: dark) { .status-dot, .status-dot::after { background-color: #4ade80; } }
@media (prefers-reduced-motion: reduce) { .status-dot::after { animation: none; opacity: 0; } }

.gradient-text { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-style: normal; }

.header { position: sticky; top: 0; z-index: 100; padding-top: env(safe-area-inset-top); transition: all 0.3s var(--ease); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; }
.header.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 85%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.5); transition: transform 0.4s var(--ease-out); }
.logo:hover .logo-mark { transform: rotate(90deg) scale(1.05); }
.logo-text { letter-spacing: -0.03em; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 16px; }
.nav-links a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; border-radius: var(--r-full); transition: all 0.2s var(--ease); }
.nav-links a:hover { color: var(--text); background: var(--bg-subtle); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; padding: 8px 16px; border-radius: var(--r-full); background: var(--bg-subtle); transition: all 0.2s var(--ease); margin-right: 8px; }
.header-phone i { color: var(--accent); font-size: 13px; }
.header-phone:hover { background: var(--accent-soft); color: var(--accent); }

.header-socials { display: flex; align-items: center; gap: 8px; margin-right: 28px; }
.header-social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #ffffff; font-size: 18px; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.header-social:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); opacity: 0.95; }
.header-social--tg { background-color: #229ED9; }
.header-social--wa { background-color: #25D366; }

.mobile-phone-link { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--text) !important; background: var(--bg-subtle); margin-bottom: 8px; }
.mobile-phone-link i { color: var(--accent); }

.inline-phone { color: var(--accent); font-weight: 700; text-decoration: none; transition: opacity 0.2s; white-space: nowrap; }
.inline-phone:hover { opacity: 0.8; }

.footer-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text) !important; text-decoration: none; padding: 8px 16px; border-radius: var(--r-full); background: var(--bg-subtle); transition: all 0.2s var(--ease); }
.footer-phone i { color: var(--accent); font-size: 13px; }
.footer-phone:hover { color: var(--accent) !important; background: var(--accent-soft); }

.burger { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); align-items: center; justify-content: center; flex-direction: column; gap: 5px; transition: background 0.2s; }
.burger:hover { background: var(--bg-subtle); }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; top: 68px; background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 4px; z-index: 99; transform: translateY(-105%); transition: transform 0.4s var(--ease-out); overflow-y: auto; }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; border-radius: var(--r-md); transition: background 0.2s; }
.mobile-menu a:hover { background: var(--bg-subtle); }
.mobile-menu .btn { margin-top: 8px; justify-content: center; padding: 14px; }
body.menu-open { overflow: hidden; }

.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); flex: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-content > * + * { margin-top: clamp(16px, 2vw, 24px); }
.hero-content h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.hero-lead { font-size: clamp(15px, 1.5vw, 17px); color: var(--text-muted); max-width: 520px; line-height: 1.65; text-wrap: pretty; }
.hero-features { list-style: none; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.hero-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-muted); font-weight: 500; }
.hero-features i { color: var(--success); font-size: 14px; flex-shrink: 0; }
.hero-stats { display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--border); margin-top: 32px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.form-card { background: var(--bg-elev); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 36px); border: 1px solid var(--border); box-shadow: var(--shadow-lg), var(--shadow-accent); position: relative; isolation: isolate; }
.form-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(168,85,247,0.1) 50%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: -1; }

.form-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.form-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.5); flex-shrink: 0; }
.form-header h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.form-subhead { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.form-subhead i { color: var(--success); font-size: 11px; }

.alert { padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.alert i { flex-shrink: 0; margin-top: 2px; font-size: 14px; }
.alert ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in oklab, var(--danger) 25%, transparent); }
@media (prefers-color-scheme: dark) { .alert-error { color: #fca5a5; } }
[data-theme="dark"] .alert-error { color: #fca5a5; }

.form-group { margin-bottom: 16px; }
.form-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group label i { color: var(--text-muted); font-size: 12px; }
.req { color: var(--danger); font-weight: 500; }

.form-control { width: 100%; font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--bg-subtle); color: var(--text); transition: all 0.2s var(--ease); -webkit-appearance: none; appearance: none; outline: none; }
.form-control:hover { border-color: var(--border-strong); }
.form-control:focus { background: var(--bg-elev); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 15%, transparent); }
.form-control::placeholder { color: var(--text-dim); font-weight: 400; }

.vin-input-wrapper { position: relative; }
.vin-input-wrapper input { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; padding-right: 60px; }
.vin-input-wrapper input::placeholder { font-family: var(--font); letter-spacing: 0; text-transform: none; }
.input-counter { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; font-family: var(--font-mono); color: var(--text-dim); background: var(--bg-elev); padding: 2px 6px; border-radius: 4px; pointer-events: none; font-weight: 500; }
.input-counter.valid { color: var(--success); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.parts-head { display: flex; gap: 8px; margin-bottom: 6px; padding-right: 50px; font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.parts-head span:first-child { flex: 1; }
.parts-head span:last-child { width: 80px; text-align: center; flex-shrink: 0; }

.parts-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.part-row { display: flex; gap: 8px; align-items: center; }
.part-name-input { flex: 1; min-width: 0; }
.part-qty-input { width: 80px; flex-shrink: 0; text-align: center; font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.part-qty-input::-webkit-outer-spin-button, .part-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.part-qty-input { -moz-appearance: textfield; appearance: textfield; }

.btn-remove { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--bg-subtle); color: var(--text-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s var(--ease); font-size: 13px; }
.btn-remove:hover { background: var(--danger-soft); color: var(--danger); }
.btn-remove:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-add-row { width: 100%; padding: 11px; border-radius: var(--r-md); border: 1.5px dashed var(--border-strong); background: transparent; color: var(--text-muted); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s var(--ease); }
.btn-add-row:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
@media (prefers-color-scheme: dark) { .btn-add-row:hover { color: #c7d2fe; } }
[data-theme="dark"] .btn-add-row:hover { color: #c7d2fe; }

.form-footer { text-align: center; font-size: 11px; color: var(--text-dim); margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.form-footer i { font-size: 10px; }

.form-consent { margin: 4px 0 16px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; line-height: 1.45; color: var(--text-muted); user-select: none; position: relative; }
.consent-label input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.consent-checkmark { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border: 2px solid var(--border-strong); border-radius: 4px; background: var(--bg-elev); position: relative; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.consent-label input[type="checkbox"]:invalid + .consent-checkmark { border-color: var(--border-strong); }
.consent-label input[type="checkbox"]:checked + .consent-checkmark { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%); border-color: transparent; }
.consent-label input[type="checkbox"]:checked + .consent-checkmark::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent-label input[type="checkbox"]:focus-visible + .consent-checkmark { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent-text a:hover { opacity: 0.8; }
.consent-text .req { color: var(--danger); }

.hp-field { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }

.results-section { padding: 0 0 clamp(40px, 6vw, 80px); }
.results { background: var(--bg-elev); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--border); box-shadow: var(--shadow-md); animation: slideIn 0.6s var(--ease-out); }
@keyframes slideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.results-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.results-title { display: flex; align-items: center; gap: 14px; }
.results-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.results-header h2 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2px; }
.results-header p { font-size: 13px; color: var(--text-muted); }
.results-vin { font-family: var(--font-mono); font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 8px 14px; border-radius: var(--r-full); font-size: 13px; letter-spacing: 0.06em; border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent); }
@media (prefers-color-scheme: dark) { .results-vin { color: #c7d2fe; } }

.results-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 32px; }
.info-card { background: var(--bg-subtle); border-radius: var(--r-md); padding: 14px 16px; border: 1px solid var(--border); }
.info-card--wide { grid-column: span 2; }
@media (max-width: 640px) { .info-card--wide { grid-column: auto; } }
.info-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 6px; }
.info-value { font-size: 14px; font-weight: 600; color: var(--text); }
.info-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-full); font-size: 12px; font-weight: 500; color: var(--text); }
.tag-qty { color: var(--accent); font-weight: 700; font-size: 11px; }

.results-subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-subhead h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.results-subhead .muted { color: var(--text-dim); font-weight: 500; }
.count-badge { padding: 4px 12px; background: var(--accent-soft); color: var(--accent); border-radius: var(--r-full); font-size: 12px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .count-badge { color: #c7d2fe; } }

.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.part-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: all 0.25s var(--ease); position: relative; overflow: hidden; }
.part-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0; transition: opacity 0.3s var(--ease); }
.part-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.part-card:hover::before { opacity: 1; }
.part-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.part-brand-badge { padding: 3px 9px; background: var(--accent-soft); color: var(--accent); border-radius: var(--r-full); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
@media (prefers-color-scheme: dark) { .part-brand-badge { color: #c7d2fe; } }
.part-article { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); font-weight: 500; }
.part-name { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); flex: 1; }
.part-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--border); margin-top: auto; }
.part-price { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.part-currency { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-left: 1px; }
.part-stock { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 4px; }
.part-stock i { font-size: 5px; }
.part-stock.in { background: var(--success-soft); color: var(--success); }
.part-stock.out { background: var(--bg-subtle); color: var(--text-muted); }
@media (prefers-color-scheme: dark) { .part-stock.in { color: #6ee7b7; } }

.benefits { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 60px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 48px); }
.section-head .badge { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; text-wrap: balance; }
.section-head p { font-size: 15px; color: var(--text-muted); line-height: 1.6; text-wrap: pretty; }

.benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); transition: all 0.3s var(--ease); position: relative; overflow: hidden; }
.benefit-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none; }
.benefit-card:hover { border-color: color-mix(in oklab, var(--accent) 30%, var(--border)); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit-card:hover::after { opacity: 1; }
.benefit-icon { width: 48px; height: 48px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 20px; box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.5); position: relative; z-index: 1; }
.benefit-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; position: relative; z-index: 1; }
.benefit-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; position: relative; z-index: 1; text-wrap: pretty; }

.footer { border-top: 1px solid var(--border); padding: 40px 0 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); background: var(--bg-elev); margin-top: auto; position: relative; z-index: 2; transition: background-color 0.3s var(--ease); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-brand .logo-mark { width: 28px; height: 28px; font-size: 12px; }
.footer-brand .logo-text { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.footer-tagline { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.footer-legal a { font-size: 13px; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }
.footer-socials { display: flex; gap: 12px; align-items: center; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; text-decoration: none; background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); transition: all 0.3s var(--ease); }
.footer-social:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.footer-social--tg:hover { background-color: #229ED9; box-shadow: 0 6px 16px -4px rgba(34, 158, 217, 0.4); }
.footer-social--wa:hover { background-color: #25D366; box-shadow: 0 6px 16px -4px rgba(37, 211, 102, 0.4); }
.footer-copy { font-size: 12px; color: var(--text-dim); text-align: right; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; } .footer-brand { align-items: center; } .footer-links { justify-content: center; flex-direction: column; } .footer-legal { align-items: center; text-align: center; } .footer-copy { text-align: center; } }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-lead { max-width: 100%; }
    .hero-stats { gap: 24px; justify-content: center; }
    .stat { align-items: center; text-align: center; }
    .nav-links { display: none; }
    .header-actions .btn-ghost { display: none; }
    .burger { display: inline-flex; }
    .benefits-grid { grid-template-columns: 1fr; }
    .hide-mobile { display: none !important; }
}

@media (max-width: 640px) {
    .header-inner { height: 60px; }
    .mobile-menu { top: 60px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 20px; border-radius: var(--r-lg); }
    .hero-stats { gap: 20px; justify-content: center; }
    .stat-value { font-size: 20px; }
    .parts-grid { grid-template-columns: 1fr; }
    .results-info { grid-template-columns: 1fr; }
    .info-card--wide { grid-column: auto; }
    .footer-links { gap: 12px; }
}

@media (max-width: 480px) {
    .part-row { gap: 4px; }
    .part-qty-input { width: 44px; padding-left: 4px; padding-right: 4px; font-size: 13px; }
    .btn-remove { width: 36px; }
}

@media (max-width: 400px) {
    .hero-stats { flex-wrap: wrap; gap: 16px 24px; justify-content: center; }
    .btn-ghost.btn-sm { padding: 8px 12px; font-size: 12px; }
    .parts-head { display: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 24px 0; }
    .hero-content h1 { font-size: 28px; }
    .hero-stats { display: none; }
}

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .bg-orb { animation: none; }
    [data-reveal] { opacity: 1; transform: none; }
}

.account-hero { padding-top: 40px; padding-bottom: 60px; }
.account-header-title h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.account-parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.account-order-link { text-decoration: none; cursor: pointer; display: flex; flex-direction: column; }

.order-details-hero { padding-top: 40px; padding-bottom: 60px; }
.order-layout { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.order-card { background: var(--bg-elev); border-radius: var(--r-xl); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-md); margin-bottom: 20px; }
.order-card h1 { font-size: 22px; margin-bottom: 10px; }
.order-card h2 { font-size: 15px; margin: 24px 0 12px; }
.order-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 16px; background: var(--bg-subtle); border-radius: var(--r-md); }
.order-grid > div { display: flex; flex-direction: column; gap: 4px; }
.order-grid .lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.order-grid code { background: var(--bg-elev); padding: 4px 8px; font-weight: 600; border-radius: 4px; word-break: break-all; }
.parts-table { width: 100%; border-collapse: collapse; }
.parts-table th, .parts-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
.parts-table th { background: var(--bg-subtle); font-weight: 600; font-size: 12px; color: var(--text-muted); }

.chat-box { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; height: 500px; box-shadow: var(--shadow-lg); position: relative; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--bg-subtle); }
.chat-header-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.chat-header p { font-size: 12px; color: var(--text-muted); margin: 0; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.4; position: relative; word-break: break-word; }
.msg-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-admin { align-self: flex-start; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.msg-time { font-size: 10px; opacity: 0.7; margin-top: 4px; display: block; text-align: right; }
.chat-input { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--bg-elev); position: relative; }
.chat-input input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: var(--r-full); border: 1.5px solid var(--border); background: var(--bg-subtle); color: var(--text); outline: none; font-size: 16px; }
.chat-input input:focus { border-color: var(--accent); }
.chat-input button[type="submit"] { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: transform 0.2s; flex-shrink: 0; }
.chat-input button[type="submit"]:hover { transform: scale(1.05); }

.emoji-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-subtle); color: var(--text-muted); display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); cursor: pointer; transition: all 0.2s; flex-shrink: 0; font-size: 20px; }
.emoji-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
emoji-picker { position: absolute; bottom: 80px; right: 70px; z-index: 100; display: none; border-radius: var(--r-md); box-shadow: var(--shadow-lg); border: 1px solid var(--border); --background: var(--bg-elev); --border-color: var(--border); --indicator-color: var(--accent); --input-border-color: var(--border); --input-font-color: var(--text); --category-font-color: var(--text-muted); --emoji-size: 1.5rem; width: 300px; height: 350px; }
emoji-picker.open { display: block; }

@media (max-width: 992px) {
    .order-details-hero { padding-top: 20px; }
    .order-layout { grid-template-columns: 1fr; gap: 16px; }
    .order-card { padding: 16px; border-radius: var(--r-lg); }
    .order-card h1 { font-size: 20px; }
    .order-grid { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
    .chat-box { height: 400px; border-radius: var(--r-lg); }
    .chat-messages { padding: 12px; }
    emoji-picker { right: 10px; left: 10px; width: auto; bottom: 70px; height: 300px; }
}

@media (max-width: 768px) {
    .account-hero { padding-top: 20px; padding-bottom: 40px; }
    .account-header-title h1 { font-size: 24px; }
    .account-parts-grid { grid-template-columns: 1fr; }
    .header-actions .btn-sm { padding: 6px 12px; font-size: 12px; }
    .part-card { padding: 16px; }
}

.garage-empty-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--bg-subtle); border: 1px dashed var(--border); border-radius: var(--r-md); padding: 10px 14px; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.garage-empty-btn { white-space: nowrap; text-decoration: none !important; padding: 6px 12px; font-size: 12px; flex-shrink: 0; }

.order-pay-wrapper { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border); display: flex; justify-content: center; }
.order-pay-btn { min-width: 220px; }
@media (max-width: 640px) { .order-pay-wrapper { justify-content: center; } .order-pay-btn { width: 100%; } }

.cookie-banner { position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 900px; margin: 0 auto; background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-lg), 0 10px 40px -10px rgba(0,0,0,0.2); border-radius: var(--r-lg); padding: 16px 24px; display: none; align-items: center; justify-content: space-between; gap: 24px; z-index: 9999; transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-banner.show { display: flex; transform: translateY(0); }
.cookie-banner-content { flex: 1; }
.cookie-banner-content p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cookie-banner-content strong { color: var(--text); }
.cookie-banner .btn { flex-shrink: 0; padding: 10px 24px; }
@media (max-width: 768px) { .cookie-banner { bottom: 12px; left: 12px; right: 12px; padding: 16px; flex-direction: column; align-items: stretch; gap: 16px; text-align: center; } .cookie-banner .btn { width: 100%; padding: 12px; font-size: 15px; } }

.exploded-section { padding: clamp(40px, 6vw, 80px) 0 0; overflow: hidden; position: relative; z-index: 1; }
.exploded-wrap { max-width: 1100px; margin: 0 auto; position: relative; }
.exploded-img { width: 100%; height: auto; display: block; opacity: 1; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 94%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, black 7%, black 94%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%); mask-composite: intersect; }
@media (prefers-color-scheme: dark) { .exploded-img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) contrast(1.1); } }
[data-theme="dark"] .exploded-img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) contrast(1.1); }
@media (max-width: 900px) { .exploded-section { display: none !important; } }

.theme-dropdown { position: relative; display: inline-flex; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); transition: all 0.2s var(--ease); cursor: pointer; flex-shrink: 0; }
.theme-toggle:hover { background: var(--border); color: var(--text); transform: scale(1.05); }
.theme-toggle i { font-size: 16px; pointer-events: none; }
.theme-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; min-width: 160px; display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s var(--ease); z-index: 110; }
.theme-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--text-muted); text-align: left; transition: all 0.15s var(--ease); }
.theme-menu-item i { font-size: 14px; width: 16px; text-align: center; }
.theme-menu-item:hover { background: var(--bg-subtle); color: var(--text); }
.theme-menu-item.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
[data-theme="dark"] .theme-menu-item.active, @media (prefers-color-scheme: dark) { .theme-menu-item.active { color: #c7d2fe; } }

.mobile-theme-switcher { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 12px 16px; background: var(--bg-subtle); border-radius: var(--r-md); }
.mobile-theme-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.mobile-theme-options { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: var(--r-full); border: 1px solid var(--border); }
.mobile-theme-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: var(--r-full); font-size: 13px; font-weight: 500; color: var(--text-muted); transition: all 0.2s; cursor: pointer; }
.mobile-theme-btn.active { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.mobile-theme-btn i { font-size: 14px; }
@media (max-width: 640px) { .theme-dropdown { display: none !important; } }

.privacy-card { background: var(--bg-elev); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--border); box-shadow: var(--shadow-md); max-width: 900px; margin: 0 auto; }
.privacy-content { line-height: 1.7; color: var(--text); font-size: 15px; }
.privacy-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: var(--text); letter-spacing: -0.02em; }
.privacy-date { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; display: block; }
.privacy-content h2 { font-size: 20px; font-weight: 700; margin: 32px 0 16px; color: var(--text); }
.privacy-content h3 { font-size: 16px; font-weight: 600; margin: 24px 0 12px; color: var(--text); }
.privacy-content p { margin-bottom: 16px; color: var(--text-muted); }
.privacy-content ul { list-style: none; padding: 0; margin: 0 0 16px 0; }
.privacy-content ul li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--text-muted); }
.privacy-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }
.privacy-content a { color: var(--accent); text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
.privacy-content a:hover { opacity: 0.8; text-decoration: underline; }
.privacy-highlight { background: var(--bg-subtle); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 24px 0; color: var(--text); font-weight: 500; }
.privacy-back-wrapper { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; }
.privacy-back-wrapper .btn, .privacy-back-wrapper .btn i { color: #ffffff !important; text-decoration: none !important; }
@media (max-width: 640px) { .privacy-card { border-radius: var(--r-lg); } .privacy-content h1 { font-size: 24px; } .privacy-content h2 { font-size: 18px; } .privacy-content { font-size: 14px; } .privacy-back-wrapper .btn { width: 100%; } }

/* ═══════════════════════════════════════════════════════════
   ЛИЧНЫЙ КАБИНЕТ (account.php, garage.php)
   ═══════════════════════════════════════════════════════════ */
.account-tabs { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.account-tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--r-full); font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.2s var(--ease); }
.account-tab-btn.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.4); border: none; }
.account-tab-btn.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -2px rgba(99, 102, 241, 0.5); }
.account-tab-btn.btn-ghost { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); }
.account-tab-btn.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.account-tab-btn .count { opacity: 0.8; font-weight: 500; font-size: 14px; }
.account-tab-btn.btn-new { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.account-tab-btn.btn-new:hover { background: var(--accent-soft); color: var(--accent); }

.account-table-card { background: var(--bg-elev); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); margin-bottom: 24px; width: 100%; }
.account-table { width: 100%; border-collapse: collapse; }
.account-table th, .account-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.account-table th { background: var(--bg-subtle); font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.account-table tr:last-child td { border-bottom: none; }
.account-table tr:hover td { background: var(--bg-subtle); }
.account-table .vin-code { font-family: var(--font-mono); font-size: 13px; font-weight: 600; background: var(--bg-subtle); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); display: inline-block; }
.account-table .status-badge { background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; white-space: nowrap; display: inline-block; }

.account-flash { display: flex; align-items: flex-start; gap: 10px; background: var(--success-soft); color: var(--success); border: 1px solid color-mix(in oklab, var(--success) 25%, transparent); border-radius: var(--r-md); padding: 14px 18px; font-size: 14px; font-weight: 500; line-height: 1.5; margin-bottom: 24px; animation: flashSlide 0.4s var(--ease-out); }
.account-flash i { font-size: 16px; margin-top: 2px; flex-shrink: 0; }
@keyframes flashSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.account-management { margin-top: 32px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.account-management summary { padding: 16px 20px; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; transition: background 0.2s, color 0.2s; list-style: none; }
.account-management summary::-webkit-details-marker { display: none; }
.account-management summary:hover { background: var(--bg-subtle); color: var(--text); }
.account-management summary .summary-title { display: flex; align-items: center; gap: 8px; }
.account-management summary i.fa-chevron-down { font-size: 12px; transition: transform 0.3s var(--ease); }
.account-management[open] summary i.fa-chevron-down { transform: rotate(180deg); }
.account-management[open] summary { border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.account-management-content { padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; animation: slideDown 0.3s var(--ease-out); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.danger-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.danger-text strong { color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; border: none; padding: 10px 20px; border-radius: var(--r-md); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; align-self: flex-start; }
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2); }

@media (max-width: 768px) {
    .account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .account-tab-btn { justify-content: center; padding: 12px; font-size: 14px; width: 100%; }
    .account-table-card { background: transparent; box-shadow: none; border: none; overflow: visible; }
    .account-table { display: block; }
    .account-table thead { display: none; }
    .account-table tbody { display: flex; flex-direction: column; gap: 16px; }
    .account-table tr { display: flex; flex-direction: column; background: var(--bg-elev); border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 16px; gap: 12px; }
    .account-table td { display: flex; justify-content: space-between; align-items: center; padding: 0; border: none; font-size: 14px; }
    .account-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; margin-right: 16px; }
    .account-table td:first-child { font-size: 18px; font-weight: 800; margin-bottom: 4px; border-bottom: 1px solid var(--border); padding-bottom: 12px; display: block; }
    .account-table td:first-child::before { display: none; }
    .account-table td:last-child { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--border); }
    .account-table td:last-child::before { display: none; }
    .account-table .btn { width: 100%; text-align: center; padding: 12px; font-size: 15px; }
    .vin-code { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .btn-danger { width: 100%; padding: 12px; }
    .account-flash { font-size: 13px; padding: 12px 14px; }
}

/* ═══════════════════════════════════════════════════════════
   ГАРАЖ (garage.php)
   ═══════════════════════════════════════════════════════════ */
.back-btn-wrapper { margin-bottom: 20px; display: flex; }
.back-btn-wrapper .btn { border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 8px; }

.garage-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.garage-car-item { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); gap: 12px; }
.garage-car-title { font-weight: 600; font-size: 16px; margin-bottom: 6px; word-break: break-word; }
.garage-car-vin { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); background: var(--bg-subtle); padding: 4px 8px; border-radius: 4px; display: inline-block; word-break: break-all; border: 1px solid var(--border); }
.garage-delete-btn { color: var(--danger); border: 1px solid var(--border); background: var(--bg-subtle); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: 0.2s; cursor: pointer; }
.garage-delete-btn:hover { background: var(--danger-soft); border-color: var(--danger); }
.garage-limit-notice { background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent); border-radius: var(--r-md); padding: 12px 16px; font-size: 13px; line-height: 1.5; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.garage-limit-notice i { font-size: 16px; flex-shrink: 0; }

@media (max-width: 768px) {
    .garage-layout { grid-template-columns: 1fr; gap: 24px; }
    .garage-car-item { padding: 12px; }
    .garage-car-title { font-size: 15px; }
    .garage-car-vin { font-size: 12px; }
    .back-btn-wrapper .btn { width: 100%; justify-content: center; padding: 12px; font-size: 15px; background: var(--bg-elev); border: 1px solid var(--border); }
}

/* ═══════════════════════════════════════════════════════════
   ДЕТАЛИ ЗАКАЗА (order_details.php)
   ═══════════════════════════════════════════════════════════ */
.order-grid a { text-decoration: none; color: var(--text); transition: color 0.2s; font-weight: 500; }
.order-grid a:hover { color: var(--accent); }

.order-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid color-mix(in oklab, var(--success) 25%, transparent);
    border-radius: var(--r-md);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
    animation: flashSlide 0.4s var(--ease-out);
}
.order-flash i { font-size: 16px; margin-top: 2px; flex-shrink: 0; }

.part-name-client { font-weight: 600; font-size: 15px; color: var(--text); }
.part-note-text {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; color: var(--success); font-weight: 500;
    background: var(--success-soft); padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid color-mix(in oklab, var(--success) 25%, transparent);
}
.part-note-text i { font-size: 10px; }
.part-note-empty { color: var(--text-dim); font-size: 13px; font-style: italic; }

.order-summary-block {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-subtle); padding: 20px; border-radius: var(--r-md);
    margin-top: 20px; border: 1px dashed var(--border-strong);
}
.order-summary-label { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.order-summary-value { font-size: 28px; font-weight: 800; color: var(--accent); }

.chat-messages { background-color: var(--bg-subtle); background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 20px 20px; padding: 30px 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1; }

.btn-load-more { align-self: center; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted); padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; margin-bottom: 16px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-load-more:hover { background: var(--bg-subtle); color: var(--accent); border-color: var(--accent); }

.msg { max-width: 85%; padding: 8px 12px; font-size: 14px; line-height: 1.4; position: relative; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-user { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 12px 12px 2px 12px; }
.msg-admin { align-self: flex-start; background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 12px 12px 12px 2px; }
.msg-text { margin-bottom: 4px; }
.msg-time { font-size: 10px; align-self: flex-end; opacity: 0.7; margin-top: 2px; display: flex; align-items: center; gap: 4px; }

.chat-input { padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg-elev); border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; position: relative; flex-shrink: 0; }
.chat-input input { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--bg-subtle); color: var(--text); outline: none; font-size: 16px; font-family: inherit; transition: border-color 0.2s; min-height: 44px; }
.chat-input input:focus { border-color: var(--accent); }
.chat-input button[type="submit"] { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; flex-shrink: 0; transition: transform 0.2s; }
.chat-input button[type="submit"]:hover { transform: scale(1.05); }

.emoji-btn { width: 44px; height: 44px; border-radius: 50%; background: transparent; color: var(--text-muted); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; font-size: 20px; flex-shrink: 0; transition: color 0.2s; }
.emoji-btn:hover { color: var(--accent); }

emoji-picker { position: absolute; bottom: 76px; right: 10px; z-index: 100; display: none; border-radius: var(--r-md); box-shadow: var(--shadow-lg); border: 1px solid var(--border); --background: var(--bg-elev); --border-color: var(--border); --indicator-color: var(--accent); --input-border-color: var(--border); --input-font-color: var(--text); --category-font-color: var(--text-muted); --emoji-size: 1.5rem; width: 300px; height: 350px; max-width: calc(100vw - 20px); max-height: calc(100vh - 140px); }
emoji-picker.open { display: block; }

.pay-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); overflow: hidden; }
.pay-modal-overlay.active { opacity: 1; pointer-events: auto; }
.pay-modal-content { background: var(--bg-elev); border-radius: var(--r-xl); width: 100%; max-width: 480px; position: relative; box-shadow: var(--shadow-lg), var(--shadow-accent); border: 1px solid var(--border); transform: translateY(20px) scale(0.98); transition: transform 0.3s var(--ease); overflow: hidden; max-height: 95vh; display: flex; flex-direction: column; }
.pay-modal-overlay.active .pay-modal-content { transform: translateY(0) scale(1); }
.pay-modal-body { padding: 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pay-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-subtle); color: var(--text-muted); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.2s; z-index: 10; }
.pay-modal-close:hover { background: var(--danger-soft); color: var(--danger); }
.pay-modal-body .form-header, .pay-modal-body .form-header h2, .pay-modal-body .form-subhead { user-select: none; -webkit-user-select: none; }
.pay-modal-body .form-header { margin-bottom: 20px; }
.pay-modal-body .form-header h2 { font-size: 20px; font-weight: 700; }
.pay-modal-body .form-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.pay-modal-steps { font-size: 12px; color: var(--text-muted); line-height: 1.5; padding-left: 16px; margin: 10px 0; }
.pay-modal-confirm-btn { width: 100%; }
.pay-modal-footer-text { text-align: center; font-size: 11px; color: var(--text-dim); margin-top: 16px; line-height: 1.5; }
.modal-phone-box { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-subtle); border-radius: var(--r-md); margin-bottom: 12px; border: 1.5px solid var(--border); }
.modal-phone-num { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; user-select: all; font-family: var(--font-mono); line-height: 1.2; }
.modal-btn-copy { padding: 10px 14px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--accent); font-size: 13px; border-radius: var(--r-sm); font-weight: 600; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.modal-btn-copy:hover { background: var(--accent-soft); border-color: var(--accent); }
.modal-toast { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--success); color: #fff; padding: 10px 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; opacity: 0; transition: all 0.3s; pointer-events: none; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.modal-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.modal-open { overflow: hidden; position: fixed; width: 100%; }

@media (max-width: 992px) {
    .order-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .chat-box { height: 70vh; height: 70dvh; min-height: 420px; max-height: 720px; border-radius: var(--r-lg); }
    .chat-messages { padding: 20px 16px; }
    emoji-picker { left: 10px; right: 10px; width: auto; height: 300px; bottom: 68px; }
}

@media (max-width: 640px) {
    .order-layout { gap: 12px; }
    .order-card { padding: 16px; border-radius: var(--r-lg); }
    .chat-box { height: 65vh; height: 65dvh; min-height: 400px; max-height: 560px; border-radius: var(--r-md); }
    .chat-header { padding: 12px 14px; gap: 10px; }
    .chat-header-icon { width: 36px; height: 36px; font-size: 16px; }
    .chat-header h3 { font-size: 15px; }
    .chat-header p { font-size: 11px; }
    .chat-messages { padding: 14px 12px; gap: 8px; background-size: 16px 16px; }
    .msg { max-width: 88%; padding: 8px 10px; font-size: 14px; }
    .chat-input { padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
    .chat-input input { padding: 10px 14px; font-size: 16px; min-height: 44px; }
    .chat-input button[type="submit"], .emoji-btn { width: 44px; height: 44px; font-size: 18px; }
    emoji-picker { left: 8px; right: 8px; width: auto; height: 280px; bottom: 64px; max-height: calc(100dvh - 120px); }
    .pay-modal-overlay { padding: 10px; }
    .pay-modal-content { max-height: 95vh; border-radius: var(--r-lg); }
    .pay-modal-body { padding: 20px 16px; }
    .modal-phone-box { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
    .modal-phone-num { font-size: 20px; text-align: center; }
    .modal-btn-copy { width: 100%; padding: 12px; text-align: center; display: flex; justify-content: center; align-items: center; gap: 8px; }
    .pay-modal-close { top: 12px; right: 12px; }
    .pay-modal-body .form-header { padding-right: 30px; margin-bottom: 16px; }
    .pay-modal-body h2 { font-size: 18px !important; }
    
    .back-btn-wrapper .btn { width: 100%; justify-content: center; padding: 12px; font-size: 15px; background: var(--bg-elev); border: 1px solid var(--border); }

    .parts-table { display: block; margin-bottom: 16px; max-width: 100%; }
    .parts-table thead { display: none; }
    .parts-table tbody { display: flex; flex-direction: column; gap: 14px; max-width: 100%; }

    .parts-table tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: stretch;
        background: var(--bg-elev);
        padding: 14px 16px;
        border-radius: var(--r-md);
        border: 1.5px solid var(--border);
        box-shadow: var(--shadow-sm);
        max-width: 100%;
        min-width: 0;
    }

    .parts-table td { 
        padding: 0 !important; 
        border: none !important; 
        display: block; 
        font-size: 14px;
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }
    .parts-table td::before { display: none; }

    .parts-table td:nth-child(1) {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        font-weight: 700;
        color: var(--text);
        padding-bottom: 12px !important;
        border-bottom: 1px dashed var(--border) !important;
        text-align: left !important;
    }

    .parts-table td:nth-child(2) {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 12px 0 !important;
        border-bottom: 1px dashed var(--border) !important;
        font-size: 13px;
        text-align: left !important;
    }

    .parts-table td:nth-child(3) {
        flex: 0 0 auto;
        padding: 12px 0 !important;
        border-bottom: 1px dashed var(--border) !important;
        color: var(--text-muted);
        font-weight: 600;
        text-align: left !important;
        white-space: nowrap;
    }

    .parts-table td:nth-child(4) {
        flex: 1 1 auto;
        padding: 12px 0 !important;
        border-bottom: 1px dashed var(--border) !important;
        color: var(--text-muted);
        font-weight: 600;
        text-align: right !important;
        white-space: nowrap;
    }

    .parts-table td:nth-child(5) {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding-top: 14px !important;
        font-size: 18px;
        font-weight: 800;
        color: var(--accent);
        text-align: right !important;
    }

    .part-name-client {
        font-size: 16px;
        font-weight: 700;
        display: block;
        text-align: left !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }
    .part-note-text {
        font-size: 13px;
        padding: 4px 10px;
        display: inline-flex;
        flex-wrap: wrap;
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }
    .part-note-empty {
        font-size: 12px;
        display: block;
        text-align: left !important;
    }

    .order-summary-block {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 20px 16px;
        margin-top: 16px;
    }
    .order-summary-label { font-size: 14px; }
    .order-summary-value { font-size: 26px; }

    .order-flash { font-size: 13px; padding: 12px 14px; }
}

@media (max-width: 360px) {
    .msg { max-width: 90%; font-size: 13.5px; }
    .parts-table tr { padding: 12px 14px; }
    .parts-table td:nth-child(1) { font-size: 15px; }
    .parts-table td:nth-child(5) { font-size: 16px; }

    .parts-table td:nth-child(3) {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    .parts-table td:nth-child(4) {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding-top: 4px !important;
        border-bottom: 1px dashed var(--border) !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   ГЛАВНАЯ (index.php)
   ═══════════════════════════════════════════════════════════ */
.mono { font-family: monospace; }
.text-center-mt { text-align: center; margin-top: 24px; }
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; visibility: visible !important; }
#order-form { scroll-margin-top: 90px; }
@media (max-width: 640px) { .consent-label { font-size: 11px !important; } }