/* motorcyclesfreeride.net — dark garage theme */

:root {
  --bg: #0d0e10;
  --bg-2: #131518;
  --surface: #191c20;
  --surface-2: #21252a;
  --line: #2d3238;
  --line-2: #3a4047;
  --text: #ecebe7;
  --muted: #a4a9b1;
  --dim: #737a84;
  --accent: #ff6b1a;
  --accent-hi: #ff8a45;
  --accent-ink: #140900;
  --amber: #ffb020;
  --ok: #62d394;
  --bad: #ff6464;
  --road: #ff6b1a;
  --offroad: #b98a4e;
  --rally: #ffb020;
  --oval: #5aa9ff;
  --other: #c07bff;

  --font-head: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); text-transform: uppercase; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 900px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- hazard stripe ---------- */
.hazard {
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, #1a1a1a 10px 20px);
  opacity: .9;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid var(--accent); border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; margin-top: 40px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 14, 16, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-in { display: flex; align-items: center; gap: 20px; height: var(--header-h); max-width: 1360px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.05rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.logo b { color: var(--accent); font-weight: 700; margin-left: .3em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; color: var(--accent); transition: transform .6s; }
.logo:hover .logo-mark { transform: rotate(180deg); }

.main-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.main-nav ul { display: flex; list-style: none; gap: 2px; }
.main-nav ul a {
  display: block; padding: 8px 9px; border-radius: var(--radius-sm); white-space: nowrap;
  color: var(--muted); text-decoration: none;
  font: 500 .9rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .05em;
  transition: color .2s, background .2s;
}
.main-nav ul a:hover { color: var(--text); background: var(--surface); }
.main-nav ul a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { white-space: nowrap; }
.nav-cta[aria-current="page"] { background: transparent; color: var(--accent); }

.lang-switch { display: flex; align-items: center; gap: 4px; font: 600 .85rem/1 var(--font-head); letter-spacing: .06em; color: var(--dim); }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 6px 5px; border-radius: 4px; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: var(--accent-ink); background: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  .lang-switch { margin-left: auto; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 4px) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .nav-cta { min-height: 48px; }
}
@media (max-width: 420px) {
  .logo span { font-size: .9rem; }
  .logo-mark { width: 26px; height: 26px; }
  .header-in { gap: 10px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(82vh, 760px); display: flex; align-items: center;
  padding: 80px 0 90px;
  background:
    linear-gradient(90deg, rgba(13,14,16,.96) 0%, rgba(13,14,16,.82) 45%, rgba(13,14,16,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url('/assets/img/hero.jpg') center/cover no-repeat,
    radial-gradient(ellipse at 75% 40%, #3a1a08 0%, var(--bg) 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.03) 79px 80px), repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.03) 79px 80px);
}
.hero-in { max-width: var(--wrap); }
.hero h1 { max-width: 16ch; margin-bottom: .35em; }
.hero .lead { max-width: 58ch; }
.kicker { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-left: 3px solid var(--accent); background: rgba(255,107,26,.1); color: var(--accent-hi); font: 600 .85rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 70ch; }

.page-hero {
  position: relative; padding: 56px 0 48px; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(13,14,16,.97) 0%, rgba(13,14,16,.85) 55%, rgba(13,14,16,.55) 100%),
    var(--hero, none) center/cover no-repeat,
    radial-gradient(ellipse at 90% 0%, #2b1406 0%, var(--bg) 60%);
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.crumbs { display: flex; gap: 8px; margin-bottom: 14px; font-size: .85rem; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 14px; text-transform: uppercase; margin-bottom: 28px; }
.section-title::before { content: ""; flex: none; width: 6px; height: 1em; background: var(--accent); transform: skewX(-15deg); }

/* ---------- media / image placeholders ---------- */
.media {
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--surface-2), var(--bg-2));
}
.media::after {
  content: attr(data-ph); position: absolute; inset: auto 0 0 0; padding: 12px 14px;
  font: 600 .8rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.media::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 56px; height: 56px; translate: -50% -50%;
  border: 3px solid var(--line-2); border-radius: 50%;
  box-shadow: inset 0 0 0 12px var(--bg-2), inset 0 0 0 15px var(--line-2);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .5s ease; }

/* ---------- home: section cards ---------- */
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.section-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.section-card:hover { color: var(--text); border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.section-card:hover img { transform: scale(1.05); }
.section-card .media { aspect-ratio: 16 / 9; }
.section-card-body { position: relative; padding: 18px 20px 22px; flex: 1; }
.section-card h3 { text-transform: uppercase; margin-bottom: .35em; }
.section-card p { color: var(--muted); font-size: .95rem; margin: 0; padding-right: 22px; }
.section-card .arrow { position: absolute; right: 18px; bottom: 18px; color: var(--accent); font-size: 1.3rem; transition: transform .25s; }
.section-card:hover .arrow { transform: translateX(4px); }

.path { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: p; }
.path a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .2s; }
.path a:hover { border-color: var(--accent); color: var(--text); }
.path .num, .num { font: 700 2.2rem/1 var(--font-head); color: var(--accent); opacity: .9; }
.path strong { font: 600 1.2rem/1.2 var(--font-head); text-transform: uppercase; }
.path span:last-child { color: var(--muted); font-size: .95rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 28px 24px; background: var(--bg); }
.fact strong { display: block; font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--font-head); color: var(--accent); margin-bottom: 10px; }
.fact span { color: var(--muted); font-size: .95rem; }

/* ---------- chips / filters ---------- */
.chipbar { position: sticky; top: calc(var(--header-h) + 4px); z-index: 20; background: rgba(19,21,24,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; min-height: 36px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font: 500 .85rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"], .chip-accent { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cc { display: inline-block; min-width: 26px; padding: 2px 5px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 600 .72rem/1.2 var(--font-head); letter-spacing: .08em; text-align: center; }
.chip[aria-pressed="true"] .cc { background: rgba(0,0,0,.2); border-color: transparent; color: inherit; }

.search { margin-bottom: 18px; }
.search input {
  width: 100%; min-height: 50px; padding: 0 18px 0 46px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23a4a9b1' stroke-width='2'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='M13 13l5 5'/%3E%3C/svg%3E") 16px center no-repeat;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font: inherit;
}
.search input:focus { outline: none; border-color: var(--accent); }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- types ---------- */
.type-list { display: grid; gap: 28px; }
.type-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.type-card:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.type-media { aspect-ratio: auto; min-height: 320px; height: 100%; }
.type-body { padding: clamp(22px, 3vw, 36px); }
.type-body .num { margin: 0 0 4px; font-size: 1rem; letter-spacing: .15em; }
.type-body h2 { text-transform: uppercase; margin-bottom: .15em; }
.tagline { color: var(--amber); font-weight: 500; margin-bottom: 18px; }
@media (max-width: 860px) {
  .type-card { grid-template-columns: 1fr; }
  .type-media { min-height: 0; aspect-ratio: 16 / 9; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 22px; margin: 0 0 20px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.stat dd { margin: 0; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 20%); background: linear-gradient(90deg, var(--accent), var(--amber)); border-radius: 3px; }

.facts-list { display: grid; gap: 10px; margin: 0 0 20px; }
.facts-list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--muted); font-size: .9rem; }
.facts-list dd { margin: 0; }
@media (max-width: 520px) { .facts-list div { grid-template-columns: 1fr; gap: 2px; } }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.proscons h3, .proscons h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.pros-h { color: var(--ok); }
.cons-h { color: var(--bad); }
.pros, .cons, .checks { list-style: none; display: grid; gap: 6px; }
.pros li, .cons li, .checks li { position: relative; padding-left: 24px; font-size: .95rem; }
.pros li::before, .cons li::before, .checks li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pros li::before { content: "+"; color: var(--ok); }
.cons li::before { content: "−"; color: var(--bad); }
.checks li::before { content: "✓"; color: var(--accent); }
.proscons.compact li { font-size: .9rem; }
@media (max-width: 560px) { .proscons { grid-template-columns: 1fr; } }

.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: .9rem; }
.examples > span:first-child { color: var(--muted); margin-right: 4px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font: 600 .8rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
tbody tr:hover { background: var(--surface); }
tbody tr:last-child > * { border-bottom: 0; }
.compare th[scope="row"] a { color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.compare th[scope="row"] a:hover { color: var(--accent); }
.dots { display: inline-block; width: 80px; height: 10px; background: radial-gradient(circle, var(--line-2) 4px, transparent 4.5px) 0 0 / 16px 10px repeat-x; position: relative; }
.dots::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 16px); background: radial-gradient(circle, var(--accent) 4px, transparent 4.5px) 0 0 / 16px 10px repeat-x; }
.std th[scope="row"] { white-space: nowrap; color: var(--accent-hi); font-weight: 600; }

/* ---------- generic cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
@media (max-width: 380px) { .card-grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s; }
.card:hover { border-color: var(--line-2); }
.card:target { border-color: var(--accent); }
.card .media { aspect-ratio: 16 / 9; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h2, .card-body h3 { font-size: 1.4rem; text-transform: uppercase; }
.card-body > p { font-size: .95rem; }
.highlight { padding: 10px 14px; background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .92rem !important; }
.highlight strong { color: var(--accent-hi); }
.card .examples { margin-top: auto; padding-top: 6px; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .82rem; color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 .72rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--bg); background: var(--accent); }
.badge-offroad { background: var(--offroad); }
.badge-rally { background: var(--rally); }
.badge-oval { background: var(--oval); }
.badge-other { background: var(--other); }
.where, .legends { font-size: .9rem !important; color: var(--muted); }
.where strong, .legends strong { color: var(--text); font-weight: 600; }
.race-card[hidden], .brand-card[hidden], .brand-group[hidden], .g-term[hidden], .g-group[hidden] { display: none; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.info-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-sm); }
.info-card h3 { color: var(--text); text-transform: uppercase; font-size: 1.1rem; }
.info-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 20px; } }
.def-list { display: grid; gap: 12px; margin: 0; }
.def-list div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.def-list dt { font: 600 1.05rem/1.2 var(--font-head); text-transform: uppercase; color: var(--accent-hi); margin-bottom: 6px; }
.def-list dd { margin: 0; color: var(--muted); font-size: .95rem; }

.callout { margin-top: 40px; padding: 28px; border: 1px solid var(--accent); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,107,26,.12), transparent 60%); }
.callout h2 { font-size: 1.4rem; text-transform: uppercase; }
.callout p { margin: 0; color: var(--muted); }

/* ---------- brands ---------- */
.brand-group { margin-bottom: 36px; }
.group-title { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.group-title .cc { font-size: .85rem; padding: 4px 8px; background: var(--accent); color: var(--accent-ink); border: 0; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.brand-card { display: flex; flex-direction: column; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
.brand-card:hover { border-color: var(--line-2); }
.brand-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.brand-card h3 { margin: 0; font-size: 1.3rem; text-transform: uppercase; }
.founded { flex: none; font-size: .8rem; color: var(--amber); }
.brand-card > p:not(.examples) { font-size: .93rem; color: var(--muted); }
.brand-card .examples { margin-top: auto; }

/* ---------- beginner ---------- */
.steps { list-style: none; display: grid; gap: 0; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-bottom: 36px; }
.step::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: linear-gradient(var(--line-2), transparent); }
.step:last-child::before { display: none; }
.step-num { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--accent); border-radius: 50%; font: 700 1.4rem/1 var(--font-head); color: var(--accent); background: var(--bg); }
.step h2 { font-size: 1.5rem; text-transform: uppercase; margin-top: 14px; }
.step p { color: var(--muted); }
@media (max-width: 520px) {
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step-num { width: 44px; height: 44px; font-size: 1.05rem; }
  .step::before { left: 21px; top: 44px; }
  .step h2 { margin-top: 6px; font-size: 1.25rem; }
}
.tclocs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.myths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.myth { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.myth-q { font: 600 1.1rem/1.35 var(--font-head); color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(255,100,100,.5); }
.myth p:last-child { margin: 0; color: var(--muted); }

/* ---------- gear ---------- */
.banner { margin-bottom: 28px; padding: 18px 22px; background: var(--accent); color: var(--accent-ink); font: 600 clamp(1.05rem, 2vw, 1.35rem)/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .04em; border-radius: var(--radius-sm); }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 380px) { .gear-grid { grid-template-columns: 1fr; } }
.gear-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.gear-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.gear-card h2 { font-size: 1.45rem; text-transform: uppercase; margin: 0; }
.gear-card > p { color: var(--muted); font-size: .95rem; }
.gear-card h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 8px; }
.prio { flex: none; padding: 4px 10px; border-radius: 999px; font: 600 .72rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.prio-must { background: var(--accent); color: var(--accent-ink); }
.prio-rec { background: transparent; color: var(--amber); border: 1px solid var(--amber); }
.prio-nice { background: transparent; color: var(--muted); border: 1px solid var(--line-2); }

/* ---------- glossary ---------- */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; }
.az a { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font: 600 .95rem/1 var(--font-head); }
.az a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.g-group { margin-bottom: 26px; }
.g-letter { font-size: 2.2rem; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.g-group dl { margin: 0; display: grid; gap: 4px; }
.g-term { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.g-term dt { font-weight: 600; }
.g-term dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .g-term { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- quiz ---------- */
.quiz { padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 280px; }
.quiz-intro { display: grid; place-items: center; min-height: 200px; }
.quiz-progress { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.quiz-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.quiz-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--amber)); transition: width .35s ease; }
.quiz h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 20px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 18px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font: 500 1rem/1.35 var(--font-body); text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.quiz-opt::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 50%; transition: border-color .15s, box-shadow .15s; }
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,107,26,.1); }
.quiz-opt[aria-pressed="true"]::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg-2), inset 0 0 0 10px var(--accent); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-nav .btn[disabled] { opacity: .4; cursor: not-allowed; }
.quiz-results { display: grid; gap: 14px; margin: 20px 0 8px; }
.result {
  display: grid; grid-template-columns: 170px 1fr; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; transition: border-color .2s;
}
.result:hover { border-color: var(--accent); color: var(--text); }
.result:first-child { border-color: var(--accent); }
.result .media { aspect-ratio: auto; min-height: 120px; height: 100%; }
.result .media::before { width: 36px; height: 36px; box-shadow: inset 0 0 0 7px var(--bg-2), inset 0 0 0 9px var(--line-2); }
.result .media::after { display: none; }
.result-body { padding: 16px 18px; }
.result-body h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 4px; }
.result-body p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.result-match { font: 700 1.1rem/1 var(--font-head); color: var(--accent); }
.result-link { font-size: .85rem; color: var(--accent-hi); }
@media (max-width: 520px) { .result { grid-template-columns: 1fr; } .result .media { aspect-ratio: 16/9; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-in { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 40px; padding-block: 48px 32px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 16px; max-width: 48ch; }
.site-footer h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.footer-nav ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.site-footer ul a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { padding-block: 18px 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
@media (max-width: 860px) { .footer-in { grid-template-columns: 1fr; gap: 28px; } }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a, .linklike { color: var(--muted); text-decoration: none; font: inherit; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; }
.footer-legal a:hover, .linklike:hover { color: var(--accent); }

/* ---------- cookie consent ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 0 16px 16px; pointer-events: none;
}
.consent[hidden] { display: none; }
.consent-in {
  pointer-events: auto; max-width: 760px; margin: 0 auto; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line-2); border-top: 3px solid var(--accent);
  border-radius: var(--radius); box-shadow: 0 -6px 40px rgba(0,0,0,.6);
  max-height: calc(100dvh - 32px); overflow-y: auto;
}
.consent h2 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 8px; }
.consent p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.consent-opts { display: grid; gap: 10px; margin-bottom: 16px; }
.consent-opts[hidden] { display: none; }
.consent-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.consent-opt input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.consent-opt strong { display: block; font-size: .95rem; }
.consent-opt small { display: block; color: var(--muted); font-size: .85rem; }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.consent-actions [hidden] { display: none; }
@media (max-width: 520px) {
  .consent { padding: 0 8px 8px; }
  .consent-in { padding: 18px; }
  .consent-actions .btn { flex: 1 1 calc(50% - 5px); }
  .consent-actions [data-consent="settings"] { flex-basis: 100%; order: 3; }
}

/* ---------- legal page ---------- */
.legal h2 { font-size: 1.35rem; text-transform: uppercase; margin-top: 36px; }
.legal p { color: var(--muted); }
.legal p a { word-break: break-word; }
.updated { display: inline-block; padding: 6px 12px; border-left: 3px solid var(--accent); background: var(--surface); font-size: .9rem; }
.legal .table-wrap { margin-top: 12px; }
.legal .actions { margin-top: 28px; }

/* ---------- root language chooser & 404 ---------- */
.root-choose { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 16px; text-align: center;
  background: radial-gradient(ellipse at 50% 20%, #2b1406 0%, var(--bg) 60%); }
.logo.big { font-size: clamp(1.4rem, 5vw, 2.2rem); }
.logo.big .logo-mark { width: 52px; height: 52px; }
.lang-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lang-big { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 140px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.lang-big:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--text); }
.lang-big strong { font: 700 2rem/1 var(--font-head); color: var(--accent); }
.lang-big span { color: var(--muted); font-size: .9rem; }
.big-404 { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--font-head); color: var(--accent); margin: 0; }
.nf { max-width: 520px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.nf:last-child { border: 0; }
.nf h1 { font-size: 1.6rem; }
.nf p { color: var(--muted); }

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