:root {
  color-scheme: dark;
  --black: #100d16;
  --panel: #17121f;
  --light: #f5f0fc;
  --muted: #c0b6cd;
  --accent: #c9a9ff;
  --line: #352b42;
  --display: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--light); font: 1rem/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; object-fit: cover; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--black); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(2.3rem, 5.5vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.wrap { width: min(100% - 6rem, 1240px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .75rem; left: .75rem; transform: translateY(-200%); background: var(--accent); color: var(--black); padding: .5rem 1rem; }
.skip:focus { transform: translateY(0); }
.site-header { background: #0e0b13; border-bottom: 1px solid #2a2136; }
.topbar { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { display: block; width: min(100%, 12.5rem); }
.brand img { width: 100%; height: auto; aspect-ratio: 4.25; object-fit: cover; mix-blend-mode: screen; }
nav { display: flex; gap: clamp(1rem, 3vw, 3rem); color: #d6cbe3; font-size: .91rem; }
nav a:hover, .site-footer > a:hover { color: var(--accent); }
nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .45em; text-decoration-thickness: 1px; }
.nav-contact { justify-self: end; border: 1px solid #56446b; padding: .48rem .92rem; color: var(--accent); font-size: .87rem; }
.nav-contact:hover { background: #21152d; }
.nav-contact span { margin-left: .23rem; }

.hero { position: relative; display: flex; align-items: center; isolation: isolate; min-height: clamp(560px, 48.5vw, 770px); background: #100b17; }
.hero-image, .hero-shade { position: absolute; inset: 0; height: 100%; z-index: -1; }
.hero-image { object-position: center; }
.hero-shade { background: linear-gradient(90deg, #100c17 0%, #100c17ec 16%, #100c1799 41%, transparent 72%), linear-gradient(0deg, #100d17bd, transparent 24%); }
.hero-inner { padding-block: 4.5rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--accent); font-size: .71rem; font-weight: 700; letter-spacing: .19em; }
.eyebrow span { display: inline-block; width: 1.8rem; height: 1px; background: currentColor; }
h1 { max-width: 780px; margin: 1.1rem 0 1.4rem; font-size: clamp(4.05rem, 8vw, 8.55rem); line-height: .92; letter-spacing: -.076em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-copy { color: #dfd5ea; max-width: 34ch; font-size: clamp(1rem, 1.8vw, 1.13rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.75rem; width: fit-content; min-height: 50px; padding: .7rem 1rem; font-size: .88rem; font-weight: 650; }
.primary { color: #160d24; background: var(--accent); }
.primary:hover { background: #e0ccff; }
.hero .button { margin-top: 1.8rem; }
.button span, .text-link span { font-size: 1.1rem; }
.hero-caption { position: absolute; right: max(3rem, calc((100% - 1240px) / 2)); bottom: 1.2rem; color: #ede1fb; font-size: .63rem; font-weight: 600; letter-spacing: .14em; }

.section { padding-block: clamp(4rem, 8vw, 7.8rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.section-head .eyebrow { margin-bottom: .8rem; }
.section-head > p { color: var(--muted); max-width: 38ch; }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.landing { padding-block: clamp(2.4rem, 5vw, 5rem); }
.landing-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.landing-intro h1, h1.page-title { margin: 0; font-size: clamp(3rem, 6.8vw, 6.6rem); line-height: .98; }
.landing-intro .button { flex: 0 0 auto; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.brand-category { display: grid; min-width: 0; align-items: end; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.55; border: 1px solid var(--line); background: var(--panel); }
.brand-category::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #100d16 0%, #100d16d9 18%, transparent 68%); z-index: -1; }
.brand-category img { position: absolute; inset: 0; height: 100%; object-position: 75% center; z-index: -2; transition: transform .25s ease; }
.brand-category:hover { border-color: var(--accent); }
.brand-category:hover img { transform: scale(1.035); }
.category-copy { display: grid; padding: clamp(1.1rem, 3vw, 2.3rem); color: #dfd5ea; }
.category-title { color: var(--light); font: 600 clamp(1.7rem, 3.3vw, 3rem)/1.12 var(--display); letter-spacing: -.035em; }
.car-figure { margin: 0; }
.car-figure img { aspect-ratio: 2.15; height: auto; border: 1px solid var(--line); object-position: center 57%; }
.car-figure figcaption { margin-top: .45rem; color: var(--muted); font-size: .82rem; }
.car-brands { margin-block: 2.3rem; padding-block: 1.5rem; border-block: 1px solid var(--line); }
.car-brands h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.car-brands ul { display: flex; flex-wrap: wrap; gap: .65rem; list-style: none; margin: 1.15rem 0 0; padding: 0; }
.car-brands li { padding: .5rem 1rem; border: 1px solid var(--line); background: var(--panel); color: var(--light); }
.car-models { margin-block: 2.3rem; }
.car-models h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.car-models > p { margin-top: .75rem; color: var(--muted); }
.car-code-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1px; margin: 1.15rem 0 0; border: 1px solid var(--line); background: var(--line); }
.car-code-list div { padding: 1rem 1.2rem; background: var(--panel); }
.car-code-list dt { color: var(--accent); font-weight: 650; }
.car-code-list dd { margin: .25rem 0 0; color: var(--muted); }
.demo-car { margin-block: 2.3rem; padding: clamp(1.15rem, 4vw, 2.4rem); background: var(--panel); border: 1px solid var(--line); }
.demo-car h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.demo-car p { max-width: 64ch; margin-top: .75rem; color: var(--muted); }
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.booking > div > p { max-width: 42ch; margin-top: 1.15rem; color: var(--muted); }
.booking-form { display: grid; gap: 1rem; padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid var(--line); background: var(--panel); }
.booking-form label { display: grid; gap: .3rem; }
.booking-form :is(input, select, textarea) { width: 100%; min-height: 44px; padding: .55rem .7rem; color: var(--light); background: var(--black); border: 1px solid #665478; font: inherit; }
.booking-form button { border: 0; }
.booking-form button:disabled { opacity: .6; cursor: wait; }
.booking-note { color: var(--muted); font-size: .9rem; }
.booking-status { color: var(--accent); }
.booking-status:empty { display: none; }
.appointment-list { display: grid; gap: 1rem; margin-top: 2rem; }
.appointment-list article { padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--panel); overflow-wrap: anywhere; }
.appointment-list p + p { margin-top: .25rem; }
.system { border: 1px solid var(--line); background: var(--panel); }
.system-image { background: #201725; overflow: hidden; }
.system-image img { aspect-ratio: 1.68; height: auto; transition: transform .25s ease; }
.system:hover img { transform: scale(1.025); }
.system-body { min-height: 108px; padding: 1rem clamp(1rem, 2.1vw, 1.7rem); display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.system h3 { font-size: clamp(1.5rem, 3.1vw, 2.65rem); line-height: 1.15; letter-spacing: -.04em; }
.system h3 span { color: var(--accent); }
.system p { color: var(--muted); margin-top: .2rem; font-size: .93rem; }
.circle { flex: 0 0 auto; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #6f5987; background: transparent; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.circle:hover { background: var(--accent); color: var(--black); }

.catalog-section { background: #15101d; border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.15rem; }
.filters button { border: 1px solid #514161; color: var(--muted); background: transparent; padding: .45rem .9rem; min-height: 44px; font-size: .88rem; }
.filters button:hover, .filters button[aria-pressed=true] { color: var(--light); border-color: #a27bd0; background: #342144; }
.catalog-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(1.1rem, 4vw, 3.5rem); align-items: start; }
.catalog-grid > img { height: auto; aspect-ratio: 1.6; border: 1px solid var(--line); background: #1e1625; }
.product-list { border-top: 1px solid var(--line); }
.product-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; text-align: left; padding: 1rem .25rem; color: var(--light); border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.product-row:hover { color: var(--accent); }
.product-row strong { display: block; font-size: 1.06rem; font-weight: 600; }
.product-row small { display: block; color: var(--muted); }
.product-row > span:last-child { font-size: 1.15rem; color: var(--accent); }
.materials { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: clamp(1.75rem, 6vw, 6rem); }
.materials img { height: auto; aspect-ratio: 1.4; border: 1px solid var(--line); }
.materials h2 { margin: .7rem 0 1rem; }
.materials-copy > p:not(.eyebrow) { color: var(--muted); margin-bottom: .65rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); border-bottom: 1px solid #9168c3; margin-top: .6rem; font-weight: 650; }
.text-link:hover { color: var(--light); }
.contact { background: linear-gradient(110deg, #201529, #281637 70%, #331947); border-block: 1px solid var(--line); }
.contact-inner { min-height: 210px; padding-block: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.contact h2 { font-size: clamp(2.1rem, 4.8vw, 4rem); }
.contact p { margin-top: .8rem; color: #dfd0ec; }
.contact a { flex-shrink: 0; }
.site-footer { min-height: 105px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .8rem; }
.site-footer .brand { width: min(100%, 10rem); }

dialog { width: min(calc(100% - 2rem), 540px); max-height: 90vh; padding: 2.2rem; color: var(--light); background: #1c1526; border: 1px solid #6d5087; }
dialog::backdrop { background: #08060ad9; }
dialog .close { position: absolute; top: 1rem; right: 1rem; }
dialog .eyebrow { padding-right: 2.4rem; }
dialog h2 { font-size: clamp(2rem, 7vw, 3.65rem); margin-top: .7rem; }
#detail-description { margin-top: .9rem; color: var(--muted); }
#detail-features { padding-left: 1.3rem; color: var(--muted); }
#detail-features li + li { margin-top: .4rem; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 3rem); }
  .hero-caption { right: 1.5rem; }
  .hero-image { object-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, #100c17 0%, #100c17d9 26%, #100c1760 65%, transparent), linear-gradient(0deg, #100d17ae, transparent 24%); }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 2rem); }
  .topbar { grid-template-columns: 1fr auto; min-height: 0; padding-top: .85rem; gap: .45rem .75rem; }
  nav { grid-row: 2; grid-column: 1 / -1; gap: 1.4rem; }
  nav a { padding-block: .45rem .6rem; }
  .nav-contact { padding: .34rem .65rem; }
  .hero { min-height: 630px; align-items: start; }
  .hero-inner { padding-block: 2.45rem; }
  .hero-image { object-position: 75% bottom; top: auto; height: 63%; }
  .hero-shade { background: linear-gradient(180deg, #100c17 0%, #100c17 33%, #100c17a6 53%, transparent 73%, #100c1777 100%); }
  h1 { font-size: clamp(2.95rem, 11.4vw, 4.45rem); margin-block: .8rem 1rem; }
  .hero-copy { max-width: 31ch; }
  .hero .button { margin-top: 1rem; }
  .hero-caption { right: 1rem; bottom: .65rem; font-size: .56rem; }
  .section-head { display: grid; gap: .75rem; margin-bottom: 1.35rem; }
  .system-grid, .catalog-grid, .materials, .brand-grid, .booking { grid-template-columns: 1fr; }
  .landing-intro { display: grid; gap: 1rem; margin-bottom: 1.35rem; }
  .car-figure img { aspect-ratio: 1.4; }
  .system-body { min-height: 82px; }
  .contact-inner { flex-wrap: wrap; align-content: center; }
  .site-footer { flex-wrap: wrap; align-content: center; }
  .site-footer p { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .system-image img, .brand-category img { transition: none; }
}
