:root {
  color-scheme: dark;
  --bg: #111112; --panel: #19191b; --line: #313133; --text: #f3f1eb;
  --muted: #b9b8b2; --orange: #fc7637; --dark: #15100e;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .upload:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(1192px, calc(100% - 48px)); margin-inline: auto; }
.bar { background: #111112f2; border-bottom: 1px solid #272729; position: sticky; top: 0; z-index: 4; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 69px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 950; letter-spacing: -.035em; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #fc76378a; border-radius: 9px; color: var(--orange); font-size: .85rem; }
.accent { color: var(--orange); }
nav, .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
nav { flex-wrap: nowrap; gap: 22px; }
.navlink { background: none; border: 0; padding: 0; color: var(--muted); font-size: .875rem; }
.navlink:hover, .secondary-link:hover { color: var(--orange); }
.cart-button { white-space: nowrap; padding: 8px 11px; background: #211d1b; border: 1px solid #514034; border-radius: 9px; font-weight: 700; font-size: .875rem; }
.cart-button span { display: inline-grid; place-items: center; min-width: 22px; margin-left: 3px; border-radius: 5px; background: var(--orange); color: var(--dark); padding: 1px 4px; }
.hero { position: relative; margin-top: 27px; min-height: 486px; display: grid; align-items: center; overflow: hidden; border: 1px solid #3c3632; border-radius: 18px; isolation: isolate; background: #201a17 url('assets/hero.jpg') center 52% / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#110e0df5 0%,#130f0dd9 25%,#140f0d48 54%,#140f0d00 76%); }
.hero-copy { padding: 44px 50px 60px; max-width: 570px; }
.eyebrow { margin: 0 0 .65rem; color: var(--orange); font-size: .8125rem; font-weight: 850; letter-spacing: .115em; }
.eyebrow span { display: inline-block; width: 23px; height: 2px; margin-right: 8px; vertical-align: middle; background: var(--orange); }
h1, h2, h3 { margin: 0; font-weight: 880; letter-spacing: -.035em; }
h1 { font-size: clamp(3.2rem, 7.4vw, 6rem); line-height: .91; }
h1 em { font-style: normal; color: var(--orange); }
.hero-copy > p:not(.eyebrow) { max-width: 350px; margin: 24px 0; color: #e1dcd3; line-height: 1.5; }
.hero-note { position: absolute; right: 23px; bottom: 20px; background: #111112b8; border: 1px solid #eeeeee26; border-radius: 7px; color: #ede8dd; font-size: .8125rem; font-weight: 750; padding: 7px 10px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border-radius: 8px; padding: 9px 15px; font-weight: 760; border: 1px solid transparent; font-size: .9rem; text-align: center; }
.primary { background: var(--orange); color: var(--dark); border-color: var(--orange); }
.primary:hover { background: #ff925c; }
.ghost { background: #232325; border-color: #484548; }
.ghost:hover { border-color: #83766d; }
.section { padding: 28px 0 0; scroll-margin-top: 68px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
h2 { font-size: clamp(1.65rem,4vw,2.55rem); line-height: 1.08; }
.secondary-link { color: var(--muted); font-size: .875rem; text-align: right; }
.model-tabs { display: flex; gap: 7px; margin-bottom: 18px; }
.model-tab { min-height: 44px; padding: 7px 14px; border: 1px solid #37373a; border-radius: 8px; background: #1d1d1f; color: var(--text); font-size: .9rem; font-weight: 750; }
.model-tab[aria-selected="true"] { border-color: #a65330; background: #332116; color: #ffb18b; }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.other-model-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.other-model-grid strong { overflow-wrap: anywhere; }
.model-card { position: relative; min-height: 118px; display: grid; align-items: end; border: 1px solid #3b3b3f; border-radius: 10px; padding: 11px 13px; text-align: left; overflow: hidden; isolation: isolate; background: #202022; }
.model-card img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; inset: 0; z-index: -2; }
.model-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#101011ed,#12121322 78%); }
.model-card strong { font-size: 1.15rem; }
.model-card[aria-pressed="true"] { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.model-card[aria-pressed="true"] strong::before { content:''; display: inline-block; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; margin: 0 7px 2px 0; }
.products-section { padding-top: 35px; }
.search { width: min(261px,45%); }
input:not([type="range"]):not([type="file"]), textarea, select { width: 100%; min-height: 44px; padding: 9px 11px; border-radius: 8px; border: 1px solid #414144; background: #1e1e20; color: var(--text); }
textarea { resize: vertical; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 8px 12px; min-height: 38px; background: #1d1d1f; border: 1px solid #353538; border-radius: 7px; color: var(--muted); font-size: .875rem; }
.filter[aria-pressed="true"] { background: #332116; border-color: #a65330; color: #ffb18b; }
.catalog-meta, .muted { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.product { overflow: hidden; border-radius: 12px; background: var(--panel); border: 1px solid #353537; display: flex; flex-direction: column; }
.product-visual { position: relative; width: 100%; padding: 0; border: 0; display: block; background: #29292b; text-align: left; }
.product-visual img { display: block; width: 100%; aspect-ratio: 1.8; object-fit: cover; object-position: center; }
.product-visual span { position: absolute; bottom: 8px; left: 9px; padding: 5px 8px; font-weight: 700; font-size: .75rem; border-radius: 5px; background: #151515e8; }
.product-info { padding: 13px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.product h3 { font-size: 1.05rem; line-height: 1.25; }
.product-info p { margin: 0; }
.product-info .row { margin-top: auto; padding-top: 7px; gap: 7px; }
.product .button { min-height: 39px; padding-inline: 10px; }
.footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-block: 21px max(24px,env(safe-area-inset-bottom)); margin-top: 30px; color: var(--muted); font-size: .875rem; }
.footer span:first-child { font-weight: 800; }
dialog { max-height: min(91dvh, 880px); width: min(94vw,610px); color: var(--text); background: var(--panel); border: 1px solid #4b4440; border-radius: 15px; padding: 0; overflow: auto; }
dialog::backdrop { background: #000a; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 19px 18px 13px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; background: var(--panel); }
.dialog-body, .fit-body { padding: 16px 18px 20px; }
.close { min-width: 42px; min-height: 42px; background: #272729; border: 1px solid #464648; border-radius: 8px; font-size: 1.55rem; }
.detail-page { width: 100%; max-height: 54vh; object-fit: contain; display: block; border-radius: 7px; background: #222; }
.fit-dialog { width: min(95vw,850px); }
.fit-actions { margin-bottom: 12px; }
.upload { position: relative; cursor: pointer; overflow: hidden; }
.upload input { opacity: 0; position: absolute; inset: 0; width: 100%; cursor: pointer; }
.preview { position: relative; margin-inline: auto; max-width: 100%; width: fit-content; background: #121212; line-height: 0; overflow: hidden; border-radius: 9px; }
.preview > img { display: block; max-width: 100%; max-height: 48dvh; margin: 0 auto; height: auto; }
#layers { position: absolute; inset: 0; pointer-events: none; }
.layer-img { display: block; width: 100%; user-select: none; pointer-events: none; }
.layer { position: absolute; background: none; border: 1px dashed transparent; padding: 0; transform: translate(-50%,-50%) rotate(var(--rotation)); cursor: grab; touch-action: none; pointer-events: auto; }
.layer[aria-pressed="true"] { border-color: var(--orange); }
.layer:active { cursor: grabbing; }
.fit-add { gap: 8px; }
.fit-add label { font-size: .9rem; }
.fit-add select { flex: 1 1 220px; min-width: 0; }
.layer-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.layer-item { display: inline-flex; background: #262627; border: 1px solid #3e3e42; border-radius: 7px; }
.layer-item button { min-height: 36px; border: 0; background: transparent; padding: 5px 8px; }
.layer-item button[aria-pressed="true"] { color: #ffad86; }
.layer-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 12px; align-items: end; padding: 9px 0; }
.layer-controls label, #quote-form label { display: grid; gap: 5px; font-size: .875rem; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--orange); }
#quote-form { display: grid; gap: 12px; margin-top: 15px; }
#quote-form p { margin: 0; }
.cart-line { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line small { display: block; margin-bottom: 4px; color: #fab295; }
.toast { z-index: 10; position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; background: #f0ddd1; color: #281a15; padding: 10px 16px; border-radius: 8px; font-weight: 700; width: max-content; max-width: 90vw; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 725px) {
  .shell { width: calc(100% - 30px); }
  nav { gap: 12px; }
  nav a { display: none; }
  .hero { margin-top: 14px; min-height: 435px; background-position: 70% 40%; align-items: end; }
  .hero::before { background: linear-gradient(0deg,#130f0df8 0%,#130f0dbb 45%,#140f0d0a 92%); }
  .hero-copy { padding: 30px 23px 48px; }
  .hero-copy > p:not(.eyebrow) { margin: 15px 0; }
  .hero-note { left: 23px; right: auto; bottom: 13px; padding: 3px 5px; font-size: .7rem; }
  .model-grid, .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .model-card { min-height: 86px; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 24px); }
  .bar-inner { min-height: 55px; }
  .brand { font-size: .95rem; gap: 5px; }
  .mark { width: 30px; height: 30px; }
  nav { gap: 8px; }
  .navlink { font-size: .79rem; }
  .hero { min-height: 410px; }
  .hero-copy { padding-inline: 16px; }
  .hero-note { left: 16px; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { padding-inline: 10px; }
  .product-info { padding: 9px; }
  .product-heading { align-items: start; flex-direction: column; }
  .search { width: 100%; }
  .layer-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
