:root {
  color-scheme: dark;
  --bg: #03070c;
  --bg-soft: #07101a;
  --panel: #09121d;
  --panel-2: #0b1622;
  --panel-3: #0d1926;
  --line: #1d2a38;
  --line-light: #26384a;
  --text: #f4f7fb;
  --muted: #929eab;
  --muted-2: #6d7b8a;
  --blue: #0d80f2;
  --blue-bright: #2b9bff;
  --blue-soft: #0c2d50;
  --red: #e12235;
  --green: #31d6aa;
  --max: 1380px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; overflow-x: hidden; background: radial-gradient(1000px 500px at 85% -10%, rgba(17, 86, 153, .16), transparent 62%), var(--bg); color: var(--text); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #74bdff; outline-offset: 2px; }
img, video { max-width: 100%; }
.hidden { display: none !important; }
.wrap { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 9999; left: 12px; top: 12px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: #fff; color: #000; font-weight: 800; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 100; top: 0; height: 72px; border-bottom: 1px solid #17212d; background: rgba(2, 5, 9, .94); backdrop-filter: blur(18px); }
.header-inner { width: min(1660px, calc(100% - 34px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand, .config-brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { position: relative; display: inline-flex; align-items: center; width: 78px; height: 42px; font-size: 2.2rem; font-style: italic; font-weight: 950; line-height: 1; letter-spacing: -.17em; transform: skew(-8deg); }
.brand-mark:after { content: ""; position: absolute; left: 1px; bottom: 1px; width: 22px; height: 4px; background: var(--blue); box-shadow: 25px 0 0 #d9dde3; }
.brand-mark i { color: #087af2; font-style: inherit; }
.brand-mark b { color: #e9edf2; }
.brand-mark.small { width: 63px; height: 34px; font-size: 1.75rem; }
.brand-mark.small:after { width: 18px; bottom: -1px; }
.brand-copy { display: grid; min-width: 0; line-height: 1.05; }
.brand-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; letter-spacing: .01em; }
.brand-copy small { margin-top: 6px; color: var(--blue-bright); font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; color: #c1c7cf; font-size: .86rem; }
.main-nav a { position: relative; padding: 27px 0 25px; }
.main-nav a:after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--blue); transition: right .2s ease; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover:after, .main-nav a.active:after, .main-nav .nav-feature:after { right: 0; }
.main-nav .nav-feature { color: var(--blue-bright); }
.menu-btn { display: none; border: 1px solid var(--line-light); border-radius: 8px; background: var(--panel); color: #fff; padding: 9px 12px; font-weight: 750; }

.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid #101b26; }
.hero-art { position: absolute; inset: 0; background: url('/og-rb-automotive-v31.png') center right / cover no-repeat; opacity: .7; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #03070c 0%, rgba(3, 7, 12, .94) 35%, rgba(3, 7, 12, .48) 65%, rgba(3, 7, 12, .16) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 100px 0; }
.hero-copy { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-bright); font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 24px; height: 2px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.hero h1 { max-width: 900px; margin: 18px 0 24px; font-size: clamp(3.5rem, 6.5vw, 6.8rem); line-height: .92; letter-spacing: -.06em; }
.hero h1 em { color: transparent; background: linear-gradient(90deg, #fff, #66baff); -webkit-background-clip: text; background-clip: text; font-style: normal; }
.hero-copy > p { max-width: 680px; color: #b1bbc7; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 24px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 7px; padding: 0 20px; color: #fff; font-weight: 820; letter-spacing: .01em; transition: filter .18s ease, transform .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.primary { background: linear-gradient(180deg, #168df9, #0867d4); border-color: #299cff; box-shadow: 0 12px 35px rgba(4, 112, 231, .22); }
.btn.secondary { border-color: #2a3948; background: #0b121b; color: #dce3eb; }
.btn.compact { min-height: 41px; padding: 0 15px; font-size: .82rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; }
.trust-row span { padding: 7px 10px; border: 1px solid #24303d; border-radius: 999px; background: rgba(5, 12, 19, .75); color: #8f9aa7; font-size: .78rem; }
.trust-row b { color: #fff; }

.price-strip { border-block: 1px solid #141e29; background: #070c13; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.price-grid div { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 14px 24px; border-right: 1px solid #161f29; }
.price-grid div:last-child { border-right: 0; }
.price-grid span { color: #9ca7b3; }
.price-grid strong { color: #62b5ff; white-space: nowrap; }

.section { padding: 104px 0; }
.section-head { max-width: 850px; margin-bottom: 36px; }
.section-head h2 { margin: 12px 0 16px; font-size: clamp(2.25rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.section-head p { max-width: 760px; color: var(--muted); font-size: 1.03rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { position: relative; min-height: 285px; padding: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(155deg, #0b151f, #070d14); box-shadow: 0 16px 48px rgba(0, 0, 0, .18); }
.service-card:after { content: ""; position: absolute; inset: auto -80px -110px auto; width: 210px; height: 210px; border: 1px solid rgba(22, 137, 240, .15); border-radius: 50%; }
.service-no { color: #65717e; font-size: .72rem; font-weight: 900; }
.service-icon { position: absolute; right: 22px; top: 19px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #24425e; border-radius: 8px; color: var(--blue-bright); font-weight: 900; }
.service-card h3 { margin: 52px 0 6px; font-size: 1.25rem; }
.service-card strong { color: #5eaff7; }
.service-card p { position: relative; z-index: 1; max-width: 390px; margin-top: 18px; color: #919daa; }
.price-note { margin: 20px 0 0; color: #7f8b98; font-size: .88rem; }

.config-section { scroll-margin-top: 72px; border-block: 1px solid #17212c; background: #050a10; }
.config-headbar { width: min(1680px, calc(100% - 32px)); min-height: 62px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #161f2a; }
.config-brand > span:last-child { display: grid; }
.config-brand b { font-size: .95rem; }
.config-brand small { color: var(--blue-bright); font-size: .68rem; }
.config-links { display: flex; gap: 26px; color: #b8c0c9; font-size: .8rem; }
.config-wrap { width: min(1680px, calc(100% - 32px)); margin: auto; padding: 18px 0 24px; }
.config-titlebar { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.config-titlebar h2 { margin: 7px 0 0; font-size: clamp(1.35rem, 2.4vw, 2.25rem); letter-spacing: -.035em; }
.progress { width: min(720px, 54vw); display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.progress li { position: relative; display: flex; align-items: center; gap: 10px; color: #687582; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.progress li:not(:last-child):after { content: ""; height: 1px; flex: 1; margin: 0 10px; background: #303a45; }
.progress b { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #333a43; color: #fff; }
.progress .active { color: var(--blue-bright); }
.progress .active b { background: var(--blue); box-shadow: 0 0 24px rgba(21, 139, 250, .28); }
.system-alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 13px; border: 1px solid #285983; border-radius: 9px; background: #0b2339; }
.system-alert div { display: grid; }
.system-alert span { color: #a9bdcf; font-size: .84rem; }

.config-editor { display: grid; grid-template-columns: minmax(540px, .82fr) minmax(760px, 1.18fr); gap: 12px; align-items: start; }
.selection-panel, .configuration-panel { min-width: 0; }
.selection-panel { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #070c12; }
.selection-row { min-height: 61px; display: grid; grid-template-columns: 28px 164px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #1b242e; }
.selection-row:last-of-type { border-bottom: 0; }
.selection-row.brand-row, .selection-row.generation-row { min-height: 70px; }
.step-no { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 3px; background: #0878e8; color: #fff; font-size: .8rem; font-weight: 900; }
.selection-row > label { color: #eef2f6; font-size: .88rem; font-weight: 760; }
.control-stack { min-width: 0; display: grid; gap: 7px; }
select, input[type="text"], input[type="number"], textarea { width: 100%; min-height: 39px; border: 1px solid #26303b; border-radius: 5px; background: #0a1017; color: #eff3f7; padding: 8px 11px; outline: 0; }
select:disabled { opacity: .5; cursor: not-allowed; }
select:focus, input:focus, textarea:focus { border-color: #178cf4; box-shadow: 0 0 0 2px rgba(23, 140, 244, .12); }
.quick-chips { min-width: 0; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: thin; }
.quick-chips:empty { display: none; }
.quick-chips button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid #29333e; border-radius: 4px; background: #0b1118; color: #c2c8ce; font-size: .76rem; }
.quick-chips button:hover, .quick-chips button.active { border-color: #147edc; background: #0a2540; color: #fff; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 44px; }
.input-suffix span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: #6f7b87; font-size: .76rem; }
.selection-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 14px 18px; }
.selection-actions .primary { min-width: 270px; }

.configuration-panel { display: grid; gap: 9px; }
.panel-block { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #080e15; }
.panel-block > h3, .option-block legend { margin: 0; padding: 8px 11px 0; color: #168cf7; font-size: .76rem; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.vehicle-preview { padding: 0 8px 8px; }
.vehicle-preview-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(250px, .85fr); gap: 10px; align-items: center; min-height: 195px; }
.vehicle-art, .result-car-art { min-height: 175px; background-image: linear-gradient(90deg, #080e15 0%, transparent 20%, transparent 78%, #080e15 100%), url('/og-rb-automotive-v31.png'); background-size: auto, 245% auto; background-position: center, 88% 66%; background-repeat: no-repeat; filter: saturate(.78) contrast(1.08); }
.vehicle-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; padding: 10px 12px; font-size: .76rem; }
.vehicle-specs dt { color: #82909e; }
.vehicle-specs dd { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; color: #e2e7ec; font-weight: 700; white-space: nowrap; }
.vehicle-specs dt:before { content: "›"; margin-right: 7px; color: #178cf4; font-weight: 900; }
.power-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.power-card { min-height: 91px; display: grid; align-content: center; gap: 5px; border: 1px solid #252f3a; border-radius: 5px; background: #0b1118; color: #e7ebef; padding: 10px; text-align: center; }
.power-card span { color: #f0f2f4; font-size: .76rem; font-weight: 750; }
.power-card b { color: #fff; font-size: .95rem; line-height: 1.35; }
.power-card small { color: #9099a4; font-size: .72rem; line-height: 1.3; }
.power-card.active { border-color: #168cf4; background: linear-gradient(180deg, #0c1d2d, #0b131c); box-shadow: inset 0 0 0 1px rgba(22, 140, 244, .14); }
.power-card.active b, .power-card.active small { color: #319cff; }
.option-block { min-inline-size: 0; margin: 0; padding: 0 8px 8px; }
.option-block legend { float: left; width: 100%; margin-bottom: 8px; }
.option-grid { clear: both; display: grid; gap: 4px; }
.hardware-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.toggle-option { position: relative; min-width: 0; min-height: 42px; display: grid; grid-template-columns: 26px minmax(0, 1fr) 31px; align-items: center; gap: 8px; padding: 6px 7px; border: 1px solid #242e39; border-radius: 5px; background: linear-gradient(180deg, #101720, #0b1118); color: #d5dbe1; font-size: .72rem; }
.toggle-option:has(input:checked) { border-color: #176fae; background: #0b2133; }
.option-icon { width: 24px; height: 24px; display: grid; place-items: center; color: #b8c2cc; font-weight: 800; }
.toggle-option input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-option i { position: relative; width: 29px; height: 16px; justify-self: end; border-radius: 999px; background: #3a424c; transition: background .18s ease; }
.toggle-option i:after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #b8c0c9; transition: transform .18s ease; }
.toggle-option input:checked + i { background: #117edc; }
.toggle-option input:checked + i:after { transform: translateX(13px); background: #fff; }
.toggle-option.detailed { min-height: 53px; }
.toggle-option.detailed > span:nth-child(2) { min-width: 0; display: grid; line-height: 1.2; }
.toggle-option.detailed b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.toggle-option.detailed small { overflow: hidden; margin-top: 3px; color: #818b96; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.toggle-option.disabled { opacity: .42; pointer-events: none; }
.availability-note { clear: both; display: flex; align-items: center; gap: 9px; margin: 9px 0 0; padding: 9px 10px; border: 1px solid #173b5c; border-radius: 5px; background: #0b1b2b; color: #b1bdc9; font-size: .68rem; }
.availability-note span { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #168cf4; border-radius: 50%; color: #168cf4; font-weight: 900; }
.customer-block { padding: 9px; }
.customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.customer-block label { display: grid; gap: 5px; color: #1590ff; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.customer-block label select, .customer-block label input, .customer-block label textarea { color: #e7eaee; font-size: .78rem; font-weight: 500; text-transform: none; }
.customer-block textarea { min-height: 64px; resize: vertical; }

.result-view { min-width: 0; }
.result-vehicle-head { min-height: 160px; display: grid; grid-template-columns: 350px minmax(260px, 1fr) minmax(420px, auto); align-items: center; gap: 22px; margin-bottom: 10px; padding: 10px 24px; border: 1px solid var(--line); border-radius: 8px; background: #080e15; }
.result-car-art { min-height: 135px; background-color: #080e15; }
.result-identity h3 { margin: 7px 0 4px; font-size: 2rem; }
.result-identity p { margin: 0; color: #9aa5b1; }
.result-head-metrics { display: grid; grid-template-columns: 1fr 1fr; }
.result-head-metrics > div { min-width: 200px; padding: 14px 24px; border-left: 1px solid #2a333e; }
.result-head-metrics small { display: block; color: #9aa5b0; }
.result-head-metrics b { display: block; margin-top: 6px; font-size: 1.3rem; }
.result-head-metrics .blue b { color: #2e9eff; }
.result-dashboard { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr) minmax(320px, .95fr); gap: 10px; }
.dash-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #080e15; }
.dash-card > header { min-height: 45px; display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 10px 14px 0; }
.dash-card h4 { margin: 0; font-size: .86rem; text-transform: uppercase; }
.dash-card header p, .dash-card header span { margin: 2px 0 0; color: #8995a1; font-size: .67rem; }
.chart-card { grid-row: span 2; }
.chart-card canvas { display: block; width: calc(100% - 22px); height: 310px; margin: 8px 11px 0; border: 1px solid #182838; background: linear-gradient(rgba(36, 74, 108, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 74, 108, .12) 1px, transparent 1px), #07101a; background-size: 50px 50px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 14px 2px; color: #9aa5b0; font-size: .65rem; }
.chart-legend span:before { content: ""; display: inline-block; width: 20px; height: 2px; margin: 0 6px 3px 0; background: #aeb6be; }
.chart-legend .stage-line:before, .chart-legend .stage-dash:before { background: var(--blue); }
.chart-legend .stock-dash:before, .chart-legend .stage-dash:before { background-image: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px); }
.card-note { margin: 10px 13px 13px; padding-top: 10px; border-top: 1px solid #202b36; color: #7f8b97; font-size: .66rem; }
.compare-card { min-height: 295px; }
.compare-group { padding: 11px 14px 4px; }
.compare-group > b { color: #188ff5; font-size: .72rem; text-transform: uppercase; }
.compare-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 98px; gap: 8px; align-items: center; margin-top: 9px; }
.compare-row > span { color: #a6b0ba; font-size: .68rem; }
.compare-row > i { height: 22px; display: block; background: #0c141d; }
.compare-row em { display: block; width: 50%; height: 100%; background: #a9afb5; transition: width .45s ease; }
.compare-row em.blue { background: linear-gradient(90deg, #0869ce, #168df7); }
.compare-row strong { font-size: .71rem; white-space: nowrap; }
.blue-text, .target-marker { color: #2499ff; }
.target-marker { display: block; margin: 4px 0 0 64px; font-size: .63rem; }
.summary-card dl { margin: 0; padding: 0 13px 12px; }
.summary-card dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1b2631; }
.summary-card dt { color: #b5bdc5; font-size: .7rem; }
.summary-card dd { margin: 0; font-size: .72rem; font-weight: 750; text-align: right; }
.summary-card .blue-value { color: #2198ff; }
.gearbox-card { min-height: 160px; }
.gear-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 9px; }
.gear-choice > div { display: grid; grid-template-columns: 42px 1fr; gap: 0 10px; align-items: center; min-height: 85px; padding: 9px; border: 1px solid #283440; border-radius: 6px; opacity: .48; }
.gear-choice > div.active { border-color: #168cf4; background: #0b2032; opacity: 1; }
.gear-icon { width: 42px; height: 42px; grid-row: span 2; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; color: #bfc6ce; font-size: 1.05rem; font-weight: 900; }
.gear-choice .active .gear-icon { color: #168cf4; }
.gear-choice b { font-size: .8rem; text-transform: uppercase; }
.gear-choice small { color: #8995a0; font-size: .64rem; }
.selected-card, .stage-info-card { min-height: 160px; }
.selected-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 13px 13px; }
.selected-list span { padding: 5px 8px; border: 1px solid #25394c; border-radius: 4px; background: #0b1926; color: #b8c4cf; font-size: .65rem; }
.selected-list .empty { border-style: dashed; color: #6f7b87; }
.selected-list.two-col { display: grid; grid-template-columns: 1fr 1fr; }
.stage-info-card p:not(.card-note) { margin: 5px 13px; color: #9ca8b3; font-size: .69rem; }
.result-actions { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0 0; }
.wide-action { min-width: 390px; }

.gallery-section { border-top: 1px solid #141f2a; background: linear-gradient(180deg, #060c13, #04080d); }
.gallery-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 14px; scrollbar-width: thin; }
.gallery-tab { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1px solid #263442; border-radius: 5px; background: #0a1118; color: #aab4be; font-weight: 750; }
.gallery-tab:hover, .gallery-tab.active { border-color: #168cf4; background: #0b2741; color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.gallery-item { position: relative; min-width: 0; min-height: 260px; margin: 0; overflow: hidden; border: 1px solid #1e2b38; border-radius: 8px; background: #080e15; }
.gallery-item.full { grid-column: 1 / -1; }
.gallery-item button { width: 100%; height: 100%; min-height: 260px; display: block; border: 0; background: transparent; padding: 0; text-align: left; }
.gallery-item img { width: 100%; height: 300px; display: block; object-fit: cover; transition: transform .35s ease; }
.gallery-item.full img { height: 510px; }
.gallery-item:hover img { transform: scale(1.015); }
.gallery-item figcaption { position: absolute; inset: auto 0 0; padding: 34px 18px 16px; background: linear-gradient(transparent, rgba(2, 5, 8, .92)); pointer-events: none; }
.gallery-item figcaption strong { display: block; }
.gallery-item figcaption span { display: block; margin-top: 3px; color: #aab4be; font-size: .8rem; }
.gallery-empty { grid-column: 1 / -1; padding: 30px; border: 1px dashed #2a3b4b; border-radius: 8px; color: #85919d; }
.compact-head { margin-top: 65px; }
.media-carousel { position: relative; }
.reels-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #167ed9 #08111a; }
.reels-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; padding: 2px; }
.reel-card { min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid #1f2c39; border-radius: 8px; background: #080e15; }
.reel-open { width: 100%; display: block; border: 0; background: transparent; padding: 0; color: inherit; text-align: left; }
.reel-preview { position: relative; display: block; overflow: hidden; }
.reel-card video { width: 100%; aspect-ratio: 9 / 16; display: block; object-fit: cover; background: #020407; transition: transform .3s ease; pointer-events: none; }
.reel-open:hover video { transform: scale(1.02); }
.play-badge { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(2,7,12,.72); color: #fff; padding-left: 3px; }
.reel-copy { min-height: 72px; display: block; padding: 13px; }
.reel-copy strong, .reel-copy small { display: block; }
.reel-copy small { margin-top: 4px; color: #8f9aa6; font-size: .72rem; }
.carousel-nav { position: absolute; z-index: 3; top: 42%; width: 42px; height: 56px; display: grid; place-items: center; border: 1px solid #3c5268; border-radius: 6px; background: rgba(3,8,13,.88); color: #fff; font-size: 2rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.carousel-nav.previous { left: -20px; }
.carousel-nav.next { right: -20px; }
.carousel-nav:hover { border-color: #168cf4; background: #0b2741; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.process-grid article { min-height: 190px; padding: 20px; border-top: 2px solid #147bd7; background: #080f17; }
.process-grid b { color: #2599ff; font-size: 1.45rem; }
.process-grid h3 { margin: 24px 0 7px; }
.process-grid p { color: #8e9aa6; }
.contact { padding: 86px 0; border-top: 1px solid #15202b; background: radial-gradient(700px 300px at 15% 50%, rgba(12, 111, 205, .18), transparent 70%), #060b11; }
.contact-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.contact h2 { margin: 9px 0; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.04em; }
.contact p { max-width: 790px; color: #9aa6b2; }
.contact-actions { min-width: 220px; display: grid; gap: 9px; }
.footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid #141e29; color: #7f8b97; background: #03070c; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-inner > div { display: grid; }
.footer-inner strong { color: #d6dce2; }
.footer-inner span { font-size: .74rem; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; font-size: .76rem; }
.footer button { border: 0; background: transparent; color: inherit; padding: 0; }
.studio-login { padding: 6px 10px; border: 1px solid rgba(178, 196, 213, .28); border-radius: 5px; background: transparent; color: rgba(219, 228, 237, .58); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.studio-login:hover, .studio-login:focus-visible { border-color: rgba(37, 153, 255, .85); color: #fff; background: rgba(22, 140, 244, .08); }
.mobile-cta { display: none; }

dialog { color: #fff; }
dialog::backdrop { background: rgba(0, 0, 0, .84); backdrop-filter: blur(5px); }
.media-viewer { width: min(1160px, calc(100% - 28px)); max-height: calc(100vh - 28px); overflow: hidden; border: 1px solid #2b3b4b; border-radius: 10px; background: #070c12; padding: 10px; }
.viewer-stage { width: 100%; height: min(72vh, 760px); display: grid; place-items: center; overflow: hidden; background: #020407; touch-action: pan-y; }
.viewer-stage img, .viewer-stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #020407; }
.viewer-close, .viewer-nav, .dialog-close { position: absolute; z-index: 5; display: grid; place-items: center; border: 1px solid #45515e; background: rgba(3, 7, 12, .88); color: #fff; }
.viewer-close, .dialog-close { right: 14px; top: 14px; width: 39px; height: 39px; border-radius: 50%; font-size: 1.5rem; }
.viewer-nav { top: 50%; width: 46px; height: 64px; transform: translateY(-50%); border-radius: 6px; font-size: 2.2rem; }
.viewer-nav.previous { left: 22px; }
.viewer-nav.next { right: 22px; }
.viewer-nav:hover, .viewer-close:hover { border-color: #168cf4; background: rgba(11, 39, 65, .95); }
.viewer-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 13px 7px 4px; }
.viewer-footer p { margin: 4px 0; color: #9aa6b2; }
.viewer-footer > span { color: #8ea0b1; font-size: .78rem; white-space: nowrap; }
.viewer-fullscreen { min-height: 35px; padding: 0 12px; border: 1px solid #35495c; border-radius: 5px; background: transparent; color: #cbd5df; }
.viewer-fullscreen:hover { border-color: #168cf4; color: #fff; }
.viewer-stage:fullscreen { background: #000; }
.viewer-stage:fullscreen img, .viewer-stage:fullscreen video { width: 100vw; height: 100vh; }
.cookie-dialog { width: min(520px, calc(100% - 28px)); border: 1px solid #2a3a4a; border-radius: 10px; background: #08111a; padding: 28px; }
.cookie-dialog h2 { margin-top: 0; }
.cookie-dialog p { color: #9aa6b2; }

@media (max-width: 1250px) {
  .main-nav { gap: 18px; }
  .config-editor { grid-template-columns: minmax(440px, .85fr) minmax(610px, 1.15fr); }
  .selection-row { grid-template-columns: 28px 135px minmax(0, 1fr); }
  .hardware-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-preview-grid { grid-template-columns: 1fr 1fr; }
  .result-dashboard { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .chart-card { grid-row: auto; }
  .summary-card, .stage-info-card { grid-column: auto; }
  .result-vehicle-head { grid-template-columns: 290px 1fr; }
  .result-head-metrics { grid-column: 1 / -1; }
  .result-head-metrics > div { border: 1px solid #2a333e; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reels-grid { grid-auto-columns: calc((100% - 24px) / 3); }
}

@media (max-width: 1020px) {
  .site-header { height: 66px; }
  .header-inner { width: calc(100% - 24px); }
  .menu-btn { display: block; }
  .main-nav { position: absolute; top: 65px; left: 12px; right: 12px; display: none; gap: 0; padding: 8px; border: 1px solid #253545; border-radius: 8px; background: #070e16; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 12px; }
  .main-nav a:after { display: none; }
  .config-section { scroll-margin-top: 66px; }
  .config-titlebar { display: grid; }
  .progress { width: 100%; }
  .config-editor { grid-template-columns: 1fr; }
  .selection-row { grid-template-columns: 28px 180px minmax(0, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid div:nth-child(2) { border-right: 0; }
  .price-grid div:nth-child(-n + 2) { border-bottom: 1px solid #161f29; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .result-dashboard { grid-template-columns: 1fr; }
  .result-vehicle-head { grid-template-columns: 260px 1fr; }
  .chart-card canvas { height: 340px; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .wrap, .config-wrap, .config-headbar { width: calc(100% - 18px); }
  .brand-mark { width: 60px; font-size: 1.8rem; }
  .brand-copy strong { max-width: 190px; font-size: .86rem; }
  .brand-copy small { font-size: .48rem; }
  .hero { min-height: 690px; align-items: end; }
  .hero-art { background-position: 66% center; opacity: .6; }
  .hero-shade { background: linear-gradient(180deg, rgba(3, 7, 12, .2) 0%, rgba(3, 7, 12, .82) 47%, #03070c 78%); }
  .hero-inner { padding: 300px 0 60px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .trust-row { display: grid; grid-template-columns: 1fr; }
  .section { padding: 74px 0; }
  .service-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reels-grid { grid-auto-columns: min(72vw, 320px); }
  .service-card { min-height: 240px; }
  .gallery-item.full { grid-column: auto; }
  .gallery-item img, .gallery-item.full img { height: 290px; }
  .config-links { display: none; }
  .config-titlebar { margin-top: 4px; }
  .progress { overflow-x: auto; grid-template-columns: repeat(4, minmax(120px, 1fr)); padding-bottom: 5px; }
  .progress li:not(:last-child):after { margin: 0 6px; }
  .selection-row, .selection-row.brand-row, .selection-row.generation-row { min-height: auto; grid-template-columns: 28px minmax(0, 1fr); gap: 6px 10px; padding: 11px; }
  .selection-row > label { align-self: center; }
  .selection-row > select, .selection-row > .control-stack, .selection-row > .input-suffix { grid-column: 1 / -1; }
  .quick-chips { margin-top: 3px; }
  .selection-actions { display: grid; grid-template-columns: 1fr; }
  .selection-actions .primary { min-width: 0; }
  .vehicle-preview-grid { grid-template-columns: 1fr; }
  .vehicle-art { min-height: 160px; }
  .vehicle-specs { grid-template-columns: minmax(90px, auto) minmax(0, 1fr); }
  .power-levels { grid-template-columns: repeat(2, 1fr); }
  .power-card:first-child { grid-column: 1 / -1; }
  .hardware-grid, .feature-grid, .customer-grid { grid-template-columns: 1fr; }
  .toggle-option.detailed small { white-space: normal; }
  .result-vehicle-head { grid-template-columns: 1fr; padding: 10px; }
  .result-car-art { min-height: 150px; }
  .result-head-metrics { grid-template-columns: 1fr; }
  .result-head-metrics > div { min-width: 0; }
  .result-dashboard { gap: 8px; }
  .chart-card canvas { height: 270px; }
  .chart-legend { gap: 8px; }
  .compare-row { grid-template-columns: 48px minmax(0, 1fr) 90px; }
  .gear-choice { grid-template-columns: 1fr; }
  .selected-list.two-col { grid-template-columns: 1fr; }
  .result-actions { display: grid; grid-template-columns: 1fr; }
  .wide-action { min-width: 0; }
  .contact-actions { min-width: 0; width: 100%; }
  .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .footer-inner { display: grid; }
  .footer nav { gap: 13px; }
  .media-viewer { width: calc(100% - 12px); max-height: calc(100vh - 12px); padding: 6px; }
  .viewer-stage { height: 70vh; }
  .viewer-nav { width: 40px; height: 56px; }
  .viewer-nav.previous { left: 12px; }
  .viewer-nav.next { right: 12px; }
  .viewer-footer { grid-template-columns: 1fr auto; }
  .viewer-footer > div { grid-column: 1 / -1; }
  .carousel-nav.previous { left: 4px; }
  .carousel-nav.next { right: 4px; }
  .mobile-cta { position: fixed; z-index: 90; left: 9px; right: 9px; bottom: calc(9px + env(safe-area-inset-bottom)); min-height: 52px; display: flex; align-items: center; justify-content: center; border: 1px solid #319dfd; border-radius: 8px; background: linear-gradient(180deg, #178ef8, #0765d1); color: #fff; font-weight: 900; box-shadow: 0 14px 40px #000b; }
}

@media (max-width: 430px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-grid div { border-right: 0; border-bottom: 1px solid #161f29; }
  .price-grid div:last-child { border-bottom: 0; }
  .config-brand > span:last-child { display: none; }
  .progress { grid-template-columns: repeat(4, minmax(105px, 1fr)); }
  .power-levels { grid-template-columns: 1fr; }
  .power-card:first-child { grid-column: auto; }
  .chart-card canvas { height: 230px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .reels-grid { grid-auto-columns: 84vw; }
}

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