:root {
  color-scheme: dark;
  --background: #050505;
  --panel: #1a1a1a;
  --line: #303030;
  --muted: #bdbdbd;
  --ink: #fff;
  --accent: #febd12;
  --brand-red: #ea1c24;
  --brand-gradient: linear-gradient(135deg, var(--accent), var(--brand-red));
  font-family: "Outfit", "Open Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(1260px, calc(100% - 96px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { min-height: 74px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; width: 154px; height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; color: var(--muted); font-size: .95rem; }
nav a:hover, .footer a:hover { color: var(--accent); }
.hero { min-height: 560px; isolation: isolate; position: relative; display: flex; align-items: center; padding-block: 76px; }
.hero-media { margin: 0; position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--background), transparent 63%), linear-gradient(0deg, var(--background), transparent 18%, transparent 85%, var(--background)); }
.hero-copy { max-width: 750px; }
.hero h1 { font-size: clamp(2.55rem, 6.15vw, 5.65rem); text-transform: uppercase; line-height: 1.04; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font: 700 .875rem/1.4 "Outfit", "Open Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.eyebrow span { width: 16px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: .99; letter-spacing: -.05em; font-weight: 800; }
h1 { font-size: clamp(3rem, 7.4vw, 7.25rem); }
.hero-tagline {
  display: inline-block;
  padding: .035em .12em .065em 0;
  color: var(--accent);
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: .88em;
  line-height: 1.08;
}
.hero-brand { white-space: nowrap; }
.hero-brand small { color: var(--accent); font-size: .48em; text-transform: none; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4.15vw, 4rem); }
h3 { font: 400 2.6rem/.98 "Bebas Neue", "Outfit", sans-serif; letter-spacing: .02em; }
.intro { color: var(--muted); max-width: 365px; line-height: 1.6; margin: 24px 0 26px; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px; font-weight: 750; }
.primary { background: var(--accent); color: var(--background); border-color: var(--accent); }
.primary:hover { background: #ffd270; }
.secondary { background: var(--background); }
.secondary:hover, .filter:hover { border-color: var(--accent); }
.catalog, .compare, .docs, .contact { padding-block: 55px; border-top: 1px solid var(--line); }
.section-top { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { color: var(--muted); min-height: 40px; padding: 6px 13px; border: 1px solid var(--line); background: transparent; border-radius: 4px; font-size: .875rem; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--background); font-weight: 750; }
.price-note { color: var(--muted); margin: 21px 0 22px; font-size: .9rem; line-height: 1.55; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; }
.card:hover { border-color: var(--accent); }
.product-photo-link { display: block; }
.product-photo-link:focus-visible { outline-offset: -4px; }
.product-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #101010; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card-description { color: var(--muted); line-height: 1.5; margin: 14px 0 21px; flex: 1; }
.spec-list { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); font-size: .875rem; }
.spec-list strong { color: var(--ink); }
.card-bottom { margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.card-bottom dl { margin: 0; }
.card-bottom dt { color: var(--muted); font-size: .875rem; }
.card-bottom dd { margin: 2px 0; font: 750 1.18rem/1.4 ui-monospace, monospace; }
.card-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.card-links .button { margin-inline-start: auto; }
.text-link { display: inline-block; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: .9rem; }
.text-link:hover { color: #ffdb82; }
.table-box { overflow: auto; margin: 24px 0 18px; border: 1px solid var(--line); border-radius: 5px; }
table { width: 100%; min-width: 675px; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 20px; border-bottom: 1px solid var(--line); }
thead th { background: var(--panel); color: var(--muted); font-size: .875rem; }
.table-box td small { display: block; color: var(--muted); white-space: nowrap; font-size: .875rem; }
.wideband { color: #fa6262; font-size: 1.25rem; font-weight: 750; }
.wideband.available { color: #a0d78f; }
.comparison-note { color: var(--muted); font-size: .9rem; margin: 0 0 12px; line-height: 1.5; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th a:hover { color: var(--accent); }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.doc-links { display: grid; gap: 9px; }
.doc-links a { display: grid; gap: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 15px 18px; }
.doc-links a:hover { border-color: var(--accent); }
.doc-links span { color: var(--muted); font-size: .9rem; }
.footer p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0; text-align: center; white-space: nowrap; }
.contact-actions { margin-top: 20px; }
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-block: 22px;
}
.footer .logo { justify-self: start; width: min(160px, 100%); }
.footer .logo img { width: 100%; transform: translateY(5px); }
.topspeed-logo { justify-self: end; width: min(180px, 100%); }
.topspeed-logo img { display: block; width: 100%; height: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; left: 15px; top: 10px; padding: 10px; background: var(--background); }
@media (max-width: 930px) {
  .shell { width: calc(100% - 56px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 490px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .top-inner { min-height: 0; padding-block: 10px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .logo img { width: 134px; }
  nav { gap: 7px 14px; font-size: .875rem; }
  .hero { align-items: end; min-height: 520px; padding: 202px 0 39px; }
  .hero-media { inset: 0 -16px 24% -16px; }
  .hero-media img { object-position: 78% 56%; }
  .hero-media::after { background: linear-gradient(0deg, var(--background) 1%, transparent 56%); }
  .intro { margin-block: 17px 20px; }
  .catalog, .compare, .docs, .contact { padding-block: 38px; }
  .cards, .docs { grid-template-columns: 1fr; }
  .card-body { padding: 20px; }
  th, td { padding: 11px 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.detail { padding-block: 38px 60px; }
.back-link { margin-bottom: 24px; }
.detail-title { font-size: clamp(2.5rem, 5.7vw, 5.4rem); }
.detail p { color: var(--muted); line-height: 1.6; }
.detail-section { margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); }
.detail-section h2 { font-size: clamp(1.75rem, 3.7vw, 3rem); }
.model-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.model-photo { width: 100%; height: auto; display: block; border-radius: 6px; }
.model-specs { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.model-specs dt { color: var(--muted); }
.model-specs dd { margin: 4px 0 0; font-size: 1.4rem; font-weight: 750; }
.kit-list, .link-list { padding: 0; margin: 20px 0; list-style: none; }
.kit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kit-list li {
  display: grid;
  grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}
.kit-list img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 138px;
  object-fit: contain;
  background: #fff;
}
.kit-copy {
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.kit-copy h3 { font: 750 1.1rem/1.25 "Outfit", "Open Sans", system-ui, sans-serif; letter-spacing: 0; }
.kit-copy p { margin: 5px 0 12px; }
.kit-copy dl { margin: auto 0 0; }
.kit-copy dt { color: var(--muted); font-size: .875rem; }
.kit-copy dd { margin: 2px 0 0; color: var(--accent); font-size: 1.24rem; font-weight: 750; }
.link-list li { scroll-margin-top: 2rem; }
.link-list li:target a { border-color: var(--accent); }
@media (max-width: 620px) {
  .model-overview, .kit-list { grid-template-columns: 1fr; }
}

@media (max-width: 930px) {
  .footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer p { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .footer .logo { width: min(140px, 100%); }
  .topspeed-logo { width: min(150px, 100%); }
}

.card-links .button, .kit-actions .button { min-height: 42px; padding-inline: 13px; }
.kit-actions { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; }
.kit-copy .kit-actions dl { margin: 0; }
.request-page > p { max-width: 42rem; }
.request-form {
  display: grid;
  gap: 15px;
  max-width: 43rem;
  padding: clamp(15px, 3vw, 25px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.request-form[hidden] { display: none; }
.request-field { display: grid; gap: 6px; min-width: 0; }
.request-field label { font-weight: 700; }
.request-field input, .request-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--background);
  color: var(--ink);
  border: 1px solid #666;
  border-radius: 4px;
  font: inherit;
}
.request-field textarea { resize: vertical; }
.request-contacts { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.request-form .button { justify-self: start; }
.request-form .button:disabled { opacity: .55; cursor: default; }
.request-status { margin: 0; }
.request-status:empty, #request-check:empty { display: none; }
.request-trap { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.order-summary {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  max-width: 43rem;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--panel);
}
.order-summary img { display: block; width: 100%; height: auto; border-radius: 4px; }
.order-summary h2 { font-size: 1.25rem; }
.order-summary p { margin: 4px 0; }
.order-summary strong { color: var(--accent); }
.order-summary > p { grid-column: 1 / -1; }
@media (max-width: 540px) {
  .request-contacts { grid-template-columns: 1fr; }
}
