:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --panel: #ffffff;
  --canvas: #f5f6f8;
  --night: #0b1220;
  --night-soft: #162033;
  --accent: #f5a400;
  --accent-dark: #c97900;
  --good: #078c63;
  --warning: #b54708;
  --danger: #c4320a;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 36px rgba(16, 24, 40, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); }
body::selection { background: #ffe5a6; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; transform: translateY(-150%); background: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid rgba(255,255,255,.09); color: white; background: rgba(11,18,32,.94); backdrop-filter: blur(16px); }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 20px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px 10px 14px 14px; color: var(--night); background: var(--accent); font-size: 18px; font-weight: 900; box-shadow: inset 0 -3px 0 rgba(0,0,0,.13); }
.desktop-nav { display: flex; align-items: center; gap: 25px; margin-right: auto; }
.desktop-nav a { color: #d0d5dd; text-decoration: none; font-size: 14px; font-weight: 650; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: white; }
.desktop-nav a.is-active { color: white; }
.desktop-nav a.is-active::after { display: block; height: 2px; margin-top: 7px; border-radius: 999px; background: var(--accent); content: ''; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-picker { flex: 0 0 auto; }
.language-picker select { width: 72px; min-width: 72px; min-height: 38px; padding: 0 27px 0 10px; border: 1px solid #344054; border-radius: 10px; color: white; background: var(--night-soft); }
.avatar-button { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--night); background: var(--accent); text-decoration: none; font-weight: 850; }
.avatar-button.is-active { outline: 2px solid white; outline-offset: 3px; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; text-decoration: none; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(245,164,0,.35); outline-offset: 2px; }
.button-primary { color: #16120a; background: var(--accent); box-shadow: 0 7px 18px rgba(245,164,0,.22); }
.button-primary:hover { background: #ffb31f; }
.button-secondary { color: var(--ink); border-color: var(--line); background: white; }
.button-dark { color: white; background: var(--night); }
.button-danger { color: white; background: var(--danger); }
.button-compact { min-height: 38px; padding-inline: 14px; font-size: 14px; }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.page-shell { padding-block: 34px 96px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-context-nav { padding-top: 22px; }
.page-back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 750; }
.page-back-link:hover, .page-back-link:focus-visible { color: var(--ink); }
.eyebrow { margin: 0 0 8px; color: var(--accent-dark); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 5vw, 48px); line-height: 1.06; letter-spacing: -.045em; }
h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
h3 { font-size: 18px; letter-spacing: -.02em; }
.lede { max-width: 670px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.card-pad { padding: 22px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin-bottom: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 14px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.field { display: grid; gap: 7px; }
.field > span, .field > label { color: #344054; font-size: 13px; font-weight: 700; }
.input, .field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #d0d5dd; border-radius: 11px; color: var(--ink); background: white; outline: none; }
.field textarea { min-height: 108px; resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(245,164,0,.16); }
.field-note { color: var(--muted); font-size: 12px; line-height: 1.5; }

.badge { display: inline-flex; min-height: 27px; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; color: #344054; background: #f2f4f7; font-size: 12px; font-weight: 750; }
.badge-good { color: #05603f; background: #dff7eb; }
.badge-warning { color: #8a3c09; background: #fff0d5; }
.badge-danger { color: #9e2b0e; background: #fee4e2; }

.empty-state { padding: 52px 24px; text-align: center; color: var(--muted); }
.empty-state-mark { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 17px; border-radius: 18px; color: var(--night); background: #fff0c2; font-size: 25px; }
.empty-state h3 { margin-bottom: 8px; color: var(--ink); }

[hidden] { display: none !important; }
.modal-backdrop { position: fixed; z-index: 1500; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(11,18,32,.76); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none !important; }
.modal { width: min(560px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; border-radius: var(--radius-lg); background: white; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.modal-head { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: white; }
.modal-head h2 { margin: 0; font-size: 22px; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 10px; cursor: pointer; background: #f2f4f7; }
.modal-body { padding: 22px; }

.toast-region { position: fixed; z-index: 2000; right: 18px; bottom: 22px; display: grid; gap: 9px; width: min(360px, calc(100% - 36px)); }
.toast { padding: 13px 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: white; background: var(--night); box-shadow: var(--shadow); font-size: 14px; }
.toast-success { background: #05603f; }
.toast-error { background: #912018; }
.mobile-nav { display: none; }

.hero { overflow: hidden; color: white; background: radial-gradient(circle at 84% 12%, rgba(245,164,0,.22), transparent 25%), linear-gradient(145deg, #0b1220, #111c30 68%, #0a101c); }
.hero-grid { display: grid; min-height: 620px; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); align-items: center; gap: clamp(36px, 7vw, 92px); padding-block: 78px 88px; }
.hero .eyebrow, .dark-band .eyebrow { color: #ffc85c; }
.hero h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(44px, 6.4vw, 78px); }
.hero-lede { max-width: 680px; margin-bottom: 28px; color: #d0d5dd; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-telegram { color: white; border-color: #344054; background: rgba(255,255,255,.06); }
.hero-telegram:hover { background: rgba(255,255,255,.11); }
.auth-note { margin: 15px 0 0; color: #98a2b3; font-size: 12px; }
.hero-product { position: relative; padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; background: rgba(255,255,255,.08); box-shadow: 0 30px 80px rgba(0,0,0,.3); backdrop-filter: blur(16px); }
.hero-product::before { position: absolute; z-index: -1; inset: 14px -14px -14px 14px; border: 1px solid rgba(245,164,0,.24); border-radius: 28px; content: ''; }
.product-topline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; }
.product-topline strong, .product-topline small { display: block; }
.product-topline small { margin-top: 3px; color: #98a2b3; font-size: 12px; }
.product-car-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #0b1220; background: var(--accent); font-weight: 900; }
.product-road { display: grid; height: 88px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; margin-block: 18px 10px; }
.product-road::before, .product-road::after { height: 2px; background: linear-gradient(90deg, transparent, #475467); content: ''; }
.product-road::after { background: linear-gradient(90deg, #475467, transparent); }
.product-road span { display: none; }
.product-road span:first-child { display: grid; width: 88px; height: 48px; place-items: center; border: 2px solid var(--accent); border-radius: 20px 26px 14px 14px; box-shadow: inset 0 -9px 0 rgba(245,164,0,.12); }
.history-preview { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.history-preview li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; min-height: 70px; }
.history-preview li:not(:last-child)::before { position: absolute; top: 18px; bottom: -2px; left: 6px; width: 1px; background: #475467; content: ''; }
.history-preview strong, .history-preview small { display: block; }
.history-preview small { margin-top: 4px; color: #98a2b3; }
.history-dot { z-index: 1; width: 13px; height: 13px; margin-top: 3px; border: 3px solid #667085; border-radius: 50%; background: #172033; }
.history-dot-accent { border-color: var(--accent); }
.value-section { padding-block: 86px; }
.value-section > h2 { max-width: 690px; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 34px; }
.value-card { min-height: 245px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.value-card > span { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 34px; border-radius: 12px; color: #8a4b00; background: #fff1cf; font-size: 12px; font-weight: 850; }
.value-card p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.dark-band { color: white; background: var(--night); }
.dark-band-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 44px; padding-block: 72px; }
.dark-band h2 { max-width: 680px; }
.dark-band p:not(.eyebrow) { max-width: 640px; margin-bottom: 0; color: #98a2b3; line-height: 1.6; }
.site-footer { padding-block: 28px 100px; color: #667085; background: white; font-size: 13px; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-grid a { text-decoration: none; }
.auth-modal { max-width: 440px; }
.auth-provider-host { display: flex; min-height: 4px; justify-content: center; margin-block: 14px; }
.auth-state { min-height: 22px; margin-block: 12px; color: var(--muted); text-align: center; font-size: 13px; }
.auth-state[data-kind="error"] { color: var(--danger); }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.profile-grid h2 { margin-bottom: 18px; font-size: 21px; }
.profile-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.profile-identity strong, .profile-identity small { display: block; }
.profile-identity small { margin-top: 4px; color: var(--muted); }
.avatar-large { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; color: var(--night); background: var(--accent); font-size: 22px; font-weight: 900; }
.section-title-row p { margin: -10px 0 18px; color: var(--muted); }
.profile-restore-panel { margin-top: 20px; padding: 16px; border: 1px solid #d0e7de; border-radius: 14px; background: #eff9f5; }
.profile-restore-panel h3 { margin-bottom: 7px; color: #174b38; font-size: 16px; }
.profile-restore-panel p { margin-bottom: 14px; color: #245d48; font-size: 13px; line-height: 1.55; }
.profile-restore-panel .button { min-height: 42px; background: white; }
.telegram-account-link-widget,
.google-account-link-widget { min-height: 54px; margin-top: 14px; display: flex; align-items: center; justify-content: flex-start; }
.telegram-account-link-widget[hidden],
.google-account-link-widget[hidden] { display: none; }
.telegram-account-link-widget iframe,
.google-account-link-widget iframe { max-width: 100%; }
.profile-confirm-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 30px 80px rgba(11,18,32,.34); }
.profile-confirm-dialog::backdrop { background: rgba(11,18,32,.72); backdrop-filter: blur(5px); }
.profile-confirm-card { display: grid; gap: 22px; padding: 24px; }
.profile-confirm-copy h2 { margin-bottom: 10px; font-size: 23px; }
.profile-confirm-copy p { margin: 0; color: var(--muted); line-height: 1.65; }
.profile-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.profile-confirm-actions .button { min-width: 130px; }
.channel-list { display: grid; gap: 9px; margin-bottom: 18px; }
.channel-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.link-button { border: 0; color: var(--danger); background: none; cursor: pointer; font-size: 12px; font-weight: 700; }
.preference-list { display: grid; }
.preference-list label { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.preference-list label:last-child { border-bottom: 0; }
.preference-list strong, .preference-list small { display: block; }
.preference-list small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.preference-list input { width: 42px; height: 23px; accent-color: var(--good); }
.danger-zone { border-color: #fecdca; }
.danger-zone p { color: var(--muted); line-height: 1.6; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.vehicle-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 4px 18px rgba(16,24,40,.05); }
.vehicle-visual { display: grid; width: 100%; aspect-ratio: 16/10; place-items: center; overflow: hidden; border: 0; cursor: pointer; color: var(--night); background: linear-gradient(145deg,#e9edf3,#f8f9fb); font-size: 42px; font-weight: 900; }
.vehicle-visual img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card-body { display: grid; gap: 10px; padding: 20px; }
.vehicle-card h2 { margin: 0; font-size: 23px; }
.vehicle-meta { margin: -4px 0 0; color: var(--muted); }
.vehicle-card .button { margin-top: 5px; }
.vehicle-photo-card { overflow: hidden; }
.vehicle-photo-header { align-items: flex-start; }
.vehicle-photo-heading { display: grid; gap: 4px; }
.vehicle-photo-heading h2 { margin: 0; font-size: clamp(22px, 2.8vw, 30px); }
.vehicle-photo-heading .field-note { margin: 0; }
.photo-camera-action { display: none; }
.vehicle-photo-body { display: grid; gap: 14px; padding: 18px 22px 22px; border: 2px solid transparent; transition: border-color .15s ease, background .15s ease; }
.vehicle-photo-body.is-dragover { border-color: var(--accent); background: #fff8e8; }
.vehicle-photo-empty { display: grid; width: 100%; min-height: 230px; place-items: center; align-content: center; gap: 8px; padding: 28px; border: 2px dashed #cfd5df; border-radius: 16px; color: var(--muted); cursor: pointer; background: #f8fafc; text-align: center; }
.vehicle-photo-empty:hover { border-color: var(--accent-dark); background: #fffbf2; }
.vehicle-photo-empty:focus-visible, .vehicle-photo-preview:focus-visible, .vehicle-photo-delete:focus-visible { outline: 3px solid rgba(245,164,0,.38); outline-offset: 2px; }
.vehicle-photo-empty strong { color: var(--ink); font-size: 18px; }
.vehicle-photo-empty > span:last-child { max-width: 460px; line-height: 1.5; }
.vehicle-photo-empty-mark { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 5px; border-radius: 16px; color: #754500; background: #ffe7ad; font-size: 30px; font-weight: 500; }
.vehicle-photo-stage { position: relative; display: grid; width: 100%; aspect-ratio: 16/10; place-items: center; overflow: hidden; margin: 0; border-radius: 16px; background: var(--night); }
.vehicle-photo-stage img { width: 100%; height: 100%; object-fit: contain; }
.vehicle-photo-cover { position: absolute; top: 12px; left: 12px; margin: 0; padding: 6px 10px; border-radius: 999px; color: #241700; background: rgba(255,193,69,.95); box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: 12px; font-weight: 850; }
.vehicle-photo-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(68px, 1fr)); gap: 9px; }
.vehicle-photo-thumbnail { position: relative; min-width: 0; aspect-ratio: 4/3; }
.vehicle-photo-preview { width: 100%; height: 100%; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 11px; cursor: pointer; background: #e8edf2; }
.vehicle-photo-preview[aria-pressed="true"] { border-color: var(--accent-dark); box-shadow: 0 0 0 2px rgba(245,164,0,.18); }
.vehicle-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo-delete { position: absolute; z-index: 2; top: 5px; right: 5px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 9px; color: white; cursor: pointer; background: rgba(11,18,32,.82); box-shadow: 0 3px 9px rgba(0,0,0,.2); font-size: 20px; line-height: 1; }
.vehicle-photo-delete:hover { background: var(--danger); }
.vehicle-photo-delete:disabled { display: none; }
.vehicle-photo-cover-small { position: absolute; right: 4px; bottom: 4px; left: 4px; overflow: hidden; padding: 3px 5px; border-radius: 6px; color: #261900; background: rgba(255,201,91,.94); font-size: 9px; font-weight: 850; text-align: center; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.vehicle-photo-note { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.vehicle-photo-note p { max-width: 520px; margin: 0; }
.vehicle-photo-note p:nth-child(2) { color: #475467; }
.vehicle-photo-drop-hint { max-width: 210px; text-align: right; }
.vehicle-photo-upload-status { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.vehicle-photo-upload-status progress { width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 999px; accent-color: var(--accent-dark); }
.vehicle-detail-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; margin-bottom: 24px; }
.vehicle-detail-head .back-button { grid-column: 1/-1; }
.back-button { justify-self: start; padding: 0; border: 0; color: var(--muted); cursor: pointer; background: none; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,.65fr); gap: 18px; }
.timeline { padding: 4px 22px 20px; }
.legacy-oil-prompt { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 22px 4px; padding: 14px 16px; border: 1px solid #f0c879; border-radius: 14px; background: #fff8e8; }
.legacy-oil-prompt strong { display: block; }
.legacy-oil-prompt p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.timeline-item { position: relative; display: grid; min-height: 112px; grid-template-columns: 20px 1fr; gap: 14px; padding-top: 20px; }
.timeline-item:not(:last-child)::before { position: absolute; top: 34px; bottom: -8px; left: 6px; width: 1px; background: var(--line); content: ''; }
.timeline-dot { z-index: 1; width: 13px; height: 13px; margin-top: 4px; border: 3px solid #98a2b3; border-radius: 50%; background: white; }
.timeline-dot.verified { border-color: var(--good); }
.timeline-content { min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.timeline-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.timeline-head time { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.record-place, .record-cost { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.record-map-link { display: inline-block; margin-top: 7px; color: #175cd3; font-size: 13px; }
.document-list { margin-top: 16px; }
.document-row { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.advanced-fields { padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.advanced-fields summary { cursor: pointer; font-weight: 700; }
.advanced-fields[open] summary { margin-bottom: 14px; }
.service-location-map { width: 100%; height: 230px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #e8edf2; }
.service-location-map.map-unavailable::before { display: grid; min-height: 100%; place-items: center; padding: 1rem; color: var(--muted); text-align: center; content: attr(data-unavailable-label); }
.inline-check { grid-template-columns: auto 1fr; align-items: center; }
.inline-check input { width: 20px; min-height: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { display: grid; gap: 4px; padding: 20px; }
.metric-card strong { font-size: 30px; letter-spacing: -.04em; }
.metric-card span { color: var(--muted); font-size: 13px; }
.admin-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.admin-list { padding: 4px 20px 18px; }
.admin-row { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.admin-row small { display: block; margin-top: 4px; color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { position: static; }
  .header-inner { min-height: 60px; }
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .page-shell { padding-block: 24px 92px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 1100; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 65px; padding: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; color: #d0d5dd; background: rgba(11,18,32,.97); box-shadow: 0 14px 40px rgba(11,18,32,.32); backdrop-filter: blur(16px); }
  .mobile-nav a { min-width: 0; display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; }
  .mobile-nav a > span { color: var(--accent); font-size: 20px; }
  .mobile-nav small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }
  .mobile-nav a.is-active { border-radius: 12px; color: white; background: rgba(255,255,255,.08); }
  .mobile-nav a.is-active > span { color: #ffc247; }
  .toast-region { bottom: 88px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding-block: 54px 70px; }
  .hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-product { padding: 19px; }
  .value-section { padding-block: 64px 100px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 0; }
  .dark-band-grid { grid-template-columns: 1fr; padding-block: 56px 94px; }
  .footer-grid { flex-direction: column; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-confirm-actions { display: grid; grid-template-columns: 1fr; }
  .profile-confirm-actions .button { width: 100%; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .vehicle-photo-header { align-items: stretch; flex-direction: column; }
  .vehicle-photo-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .vehicle-photo-actions .button { width: 100%; }
  .photo-camera-action { display: inline-flex; }
  .vehicle-photo-body { padding: 14px; }
  .vehicle-photo-empty { min-height: 210px; padding: 22px 16px; }
  .vehicle-photo-stage { aspect-ratio: 4/3; border-radius: 13px; }
  .vehicle-photo-thumbnails { display: grid; overflow-x: auto; grid-auto-columns: 92px; grid-auto-flow: column; grid-template-columns: none; padding: 3px 2px 7px; scroll-snap-type: x proximity; }
  .vehicle-photo-thumbnail { scroll-snap-align: start; }
  .vehicle-photo-delete { width: 44px; height: 44px; }
  .vehicle-photo-note { display: grid; gap: 5px; }
  .vehicle-photo-drop-hint { display: none; }
  .vehicle-detail-head { grid-template-columns: 1fr; align-items: start; }
  .detail-layout { grid-template-columns: 1fr; }
  .legacy-oil-prompt { align-items: stretch; flex-direction: column; margin-inline: 14px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-columns { grid-template-columns: 1fr; }
  .admin-row { align-items: flex-start; flex-direction: column; padding-block: 14px; }
}

@media (max-width: 380px) {
  .header-inner { gap: 12px; }
  .brand > span:last-child { display: none; }
  .header-actions { min-width: 0; gap: 6px; }
  .header-actions .button-compact { padding-inline: 10px; }
  .language-picker select { width: 72px; min-width: 72px; padding-inline: 8px 22px; }
}

@media (min-width:761px) and (max-width:1020px) {
  .vehicle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (hover: none) and (pointer: coarse) {
  .photo-camera-action { display: inline-flex; }
  .vehicle-photo-delete { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
