/* === RESET & CUSTOM PROPERTIES === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
th { text-align: left; font-weight: inherit; }

:root {
  --color-bg:       #F5F5F5;
  --color-surface:  #FFFFFF;
  --color-card:     #FFFFFF;
  --color-primary:  #1A9BD7;
  --color-primary-dark: #1585b8;
  --color-text:     #1A1A1A;
  --color-muted:    #757575;
  --color-border:   #E0E0E0;
  --color-link:     #1A9BD7;
  --color-accent:   #CC1E1E;
  --color-accent-hov: #b01919;
  --radius:         12px;
  --radius-sm:      6px;
  --shadow:         0 1px 4px rgba(0,0,0,.08);
  --shadow-md:      0 4px 14px rgba(0,0,0,.10);
  --max-w:          1140px;
  --hdr:            60px;
}

/* Dark vars als mixin — gebruikt door zowel media query als data-theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg:       #1A1A1A;
    --color-surface:  #2C2C2C;
    --color-card:     #252525;
    --color-primary:  #1A9BD7;
    --color-primary-dark: #1585b8;
    --color-text:     #FFFFFF;
    --color-muted:    #B0B0B0;
    --color-border:   #3D3D3D;
    --color-link:     #64B5F6;
    --color-accent:   #E53935;
    --color-accent-hov: #c62828;
    --shadow:         0 1px 4px rgba(0,0,0,.25);
    --shadow-md:      0 4px 14px rgba(0,0,0,.35);
  }
}

/* Expliciete dark-voorkeur via knop */
:root[data-theme="dark"] {
  --color-bg:       #1A1A1A;
  --color-surface:  #2C2C2C;
  --color-card:     #252525;
  --color-primary:  #1A9BD7;
  --color-primary-dark: #1585b8;
  --color-text:     #FFFFFF;
  --color-muted:    #B0B0B0;
  --color-border:   #3D3D3D;
  --color-link:     #64B5F6;
  --color-accent:   #E53935;
  --color-accent-hov: #c62828;
  --shadow:         0 1px 4px rgba(0,0,0,.25);
  --shadow-md:      0 4px 14px rgba(0,0,0,.35);
}

/* === BASE === */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.25; color: var(--color-text); }

/* === CONTAINER === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

main { flex: 1; padding: 1.5rem 0 2.5rem; }

/* === HEADER === */
.site-header {
  background: var(--color-primary);
  height: var(--hdr);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
}

.site-header .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 100%;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.site-logo:hover { text-decoration: none; }

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.site-logo__name {
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.site-nav a {
  color: rgba(255,255,255,.85);
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  transition: background .15s, color .15s;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  padding: .35rem;
  border-radius: var(--radius-sm);
  line-height: 1;
  display: flex;
  align-items: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
/* Standaard (light): maan zichtbaar, zon verborgen.
   Specificiteit bewust hoger dan .theme-toggle svg (die regel is verwijderd). */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

/* System dark zonder expliciete voorkeur: zon zichtbaar */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
}

/* Expliciete dark: zon zichtbaar */
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: .5rem;
  padding-left: .75rem;
  border-left: 1px solid rgba(255,255,255,.2);
}

.lang-switcher a {
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  padding: .25rem .4rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.lang-switcher a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}
.lang-switcher a.active {
  color: #fff;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
  padding: .4rem;
  line-height: 1;
}
.nav-toggle svg { display: block; }

/* === NAV DROPDOWN === */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown__toggle:hover,
.nav-dropdown__toggle[aria-expanded="true"] {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.nav-dropdown__caret {
  transition: transform .2s;
  flex-shrink: 0;
}
.nav-dropdown__toggle[aria-expanded="true"] .nav-dropdown__caret {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  min-width: 210px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  list-style: none;
  padding: .35rem 0;
  z-index: 200;
}
.nav-dropdown__menu.open {
  display: block;
}

.nav-dropdown__menu a {
  display: block;
  padding: .5rem 1rem;
  color: var(--color-text);
  font-size: .9rem;
  text-decoration: none;
  transition: background .12s;
}
.nav-dropdown__menu a:hover {
  background: var(--color-surface-alt);
  color: var(--color-accent);
}

/* === AD ZONES === */
.ad-leaderboard {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  padding: .5rem 0;
  min-height: 52px;
}

.ad-in-content  { margin: 2rem 0; text-align: center; min-height: 90px; }
.ad-footer       { margin-top: 2rem; text-align: center; }

/* === HERO === */
.hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2.25rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.hero p {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* === SEARCH === */
.search-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: .5rem;
}

.search-input {
  flex: 1;
  padding: .65rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color .15s;
  min-width: 0;
}
.search-input:focus { border-color: var(--color-primary); }

.search-btn {
  padding: .65rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.search-btn:hover { background: var(--color-primary-dark); }

/* === SECTION TITLE === */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: .45rem;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* === MERKFILTER === */
.brand-filter-wrap {
  margin-bottom: 1.25rem;
}

.brand-filter-input {
  max-width: 360px;
}

/* === BRAND GRID === */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: .875rem;
}

.brand-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem .75rem .875rem;
  text-align: center;
  color: var(--color-text);
  font-weight: 500;
  font-size: .9rem;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s, color .15s;
}

.brand-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-primary);
}

.brand-card img {
  height: 38px;
  width: auto;
  margin: 0 auto .6rem;
  object-fit: contain;
}

/* === HOME OPTIONS === */
.home-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.home-option-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: var(--color-text);
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}

.home-option-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--color-text);
}

.home-option-icon {
  font-size: 2.25rem;
  margin-bottom: .75rem;
  line-height: 1;
}

.home-option-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--color-primary);
}

.home-option-card p {
  font-size: .9rem;
  color: var(--color-muted);
  margin: 0;
}

/* === MODEL LIST === */
.model-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .75rem;
}

.model-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  color: var(--color-text);
  font-size: .93rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, color .15s;
}

.model-card:hover {
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  text-decoration: none;
}

.model-card .years {
  font-size: .8rem;
  color: var(--color-muted);
  font-weight: 400;
  display: block;
  margin-top: .1rem;
}

/* === GENERATIELIJST === */
.generations-intro {
  color: var(--color-muted);
  font-size: .93rem;
  margin: .4rem 0 1.25rem;
}

.generation-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}

.generation-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: .93rem;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, color .15s;
}

.generation-card:hover {
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  text-decoration: none;
}

/* === MODEL DETAIL === */
.model-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  margin: 1rem 0 1.5rem;
}

/* Afbeelding op ware grootte, nooit vergroot, wel verkleind op smalle schermen */
.model-detail__img img {
  display: block;
  max-width: min(100%, 560px);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Spec-tabel: 2 kolommen, label links — waarde rechts */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
}

.spec-table th {
  font-weight: 500;
  color: var(--color-muted);
  padding: .45rem 1.5rem .45rem 0;
  width: 44%;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.spec-table td {
  padding: .45rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.variant-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-muted);
  margin: 1.25rem 0 .5rem;
}

/* === GERELATEERDE AUTO'S === */
.related-cars {
  margin-top: 2.5rem;
}

.related-cars__sub {
  font-size: .88rem;
  color: var(--color-muted);
  margin: -.75rem 0 1rem;
}

.related-table td a {
  color: var(--color-text);
}
.related-table td a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .model-detail {
    grid-template-columns: 1fr;
  }
}

/* === MODEL AFBEELDING === */
.model-img {
  margin: 1rem 0 .5rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 560px;
}
.model-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* === BADGES === */
.badge-breedset {
  display: inline-block;
  background: rgba(26,155,215,.12);
  color: var(--color-primary);
  border: 1px solid rgba(26,155,215,.25);
  border-radius: 3px;
  font-size: .72rem;
  padding: .05rem .35rem;
  vertical-align: middle;
  margin-left: .3rem;
  font-weight: 600;
}

.nowrap { white-space: nowrap; }

/* === BREADCRUMB === */
.breadcrumb {
  font-size: .85rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .4rem;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: none; }
.breadcrumb-sep { color: var(--color-border); user-select: none; }
.breadcrumb-current { color: var(--color-text); }

/* === FITMENT TABLE === */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.fitment-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: .875rem;
  white-space: nowrap;
}

.fitment-table thead th {
  background: var(--color-primary);
  color: #fff;
  padding: .6rem .9rem;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  position: sticky;
  top: 0;
}

/* Sticky first column */
.fitment-table thead th:first-child,
.fitment-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.fitment-table thead th:first-child {
  z-index: 2;
}

.fitment-table tbody td:first-child {
  background: var(--color-surface);
}

.fitment-table tbody td {
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.fitment-table tbody tr:last-child td { border-bottom: none; }

.fitment-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--color-bg) 60%, var(--color-surface) 40%);
}

.fitment-table tbody tr:nth-child(even) td:first-child {
  background: color-mix(in srgb, var(--color-bg) 60%, var(--color-surface) 40%);
}

.fitment-table tbody tr:hover td {
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface) 92%);
}

.fitment-table tbody tr:hover td:first-child {
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface) 92%);
}

.fitment-table .tyre-list {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  white-space: normal;
}

.tyre-badge {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .1rem .4rem;
  font-size: .8rem;
  font-family: monospace;
}

/* === ALERT / NOTICE === */
.notice {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  margin-bottom: 1rem;
}
.notice-info  { background: color-mix(in srgb, var(--color-primary) 10%, transparent); border-left: 4px solid var(--color-primary); }
.notice-warn  { background: #fef9e7; border-left: 4px solid #f39c12; }
.notice-error { background: #fdecea; border-left: 4px solid var(--color-accent); }

/* === KENTEKENPLAAT INPUT === */
.plate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

/* Buitenrand — zelfde proportie als een echte plaat */
.plate-field {
  display: flex;
  align-items: stretch;
  border: 3px solid #1A1A1A;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  max-width: 320px;
  width: 100%;
}

/* Blauwe EU-strip links */
.plate-field__nl {
  background: #003399;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .25rem .5rem;
  gap: .1rem;
  flex-shrink: 0;
  min-width: 36px;
  user-select: none;
}

.plate-field__stars {
  font-size: .45rem;
  letter-spacing: 1.5px;
  line-height: 1;
}

.plate-field__code {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1;
}

/* Geel invoerveld */
.plate-field__input {
  background: #F8D00D;
  border: none;
  outline: none;
  font-family: 'FE-Schrift', 'Arial Black', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1A1A1A;
  padding: .3rem .75rem;
  width: 100%;
  text-align: center;
  caret-color: #1A1A1A;
}

.plate-field__input::placeholder {
  color: rgba(0,0,0,.35);
  letter-spacing: .06em;
  font-size: 1.2rem;
}

/* === KENTEKENZOEKER === */
.reg-vehicle-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.reg-plate {
  font-family: 'FE-Schrift', 'Arial Black', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .08em;
  background: #F8D00D;
  color: #1A1A1A;
  border: 3px solid #1A1A1A;
  border-radius: 6px;
  padding: .2rem .75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.reg-vehicle-details {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.reg-vehicle-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.reg-vehicle-year {
  font-size: .9rem;
  color: var(--color-muted);
}

.reg-search-again {
  margin: 2rem 0 .5rem;
}

/* === PCD GRID === */
.pcd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
  margin-bottom: 2rem;
}

.pcd-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .85rem .5rem .7rem;
  text-align: center;
  color: var(--color-text);
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s, color .15s;
  gap: .2rem;
}

.pcd-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-primary);
  text-decoration: none;
}

.pcd-card__value {
  font-size: 1rem;
  font-weight: 600;
  font-family: monospace;
  letter-spacing: .02em;
}

.pcd-card__count {
  font-size: .75rem;
  color: var(--color-muted);
}

/* === FOOTER === */
.site-footer {
  background: #2C2C2C;
  color: rgba(255,255,255,.6);
  padding: 2rem 0 1.25rem;
  font-size: .875rem;
  margin-top: auto;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer {
    background: #1A1A1A;
  }
}

:root[data-theme="dark"] .site-footer {
  background: #1A1A1A;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .65rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.footer-col a {
  color: rgba(255,255,255,.55);
  display: block;
  margin-bottom: .3rem;
  font-size: .85rem;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--hdr);
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: stretch;
    padding: .5rem;
    box-shadow: 0 6px 12px rgba(0,0,0,.2);
    gap: .1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem 1rem; }

  /* Dropdown op mobiel: inline uitschuiven, geen absolute positionering */
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown__toggle {
    width: 100%;
    justify-content: space-between;
    padding: .7rem 1rem;
    border-radius: 0;
  }
  .nav-dropdown__menu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,.1);
    border-radius: 0;
    background: rgba(0,0,0,.15);
    min-width: 0;
    padding: .25rem 0;
  }
  .nav-dropdown__menu a {
    color: rgba(255,255,255,.85);
    padding: .55rem 1.5rem;
  }
  .nav-dropdown__menu a:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
  }

  .lang-switcher {
    display: none;
  }
  .site-nav.open + .lang-switcher,
  .site-nav.open ~ .lang-switcher {
    display: none;
  }

  .hero { padding: 1.5rem 0 1.25rem; }
  .hero h1 { font-size: 1.4rem; }
  .search-form { flex-direction: column; }
  .search-btn { width: 100%; }

  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .65rem; }
  .brand-card img { height: 32px; }
}

@media (max-width: 400px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === INFO PAGES === */
.info-page {
  max-width: 760px;
}
.info-page h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.info-page h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: .6rem;
  color: var(--color-accent);
}
.info-page p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.info-page ul,
.info-page ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.info-page li { margin-bottom: .35rem; }
.info-page code {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: .1em .35em;
  font-size: .9em;
  font-family: ui-monospace, monospace;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.info-table th,
.info-table td {
  padding: .55rem .75rem;
  border: 1px solid var(--color-border);
  vertical-align: top;
}
.info-table th {
  background: var(--color-surface-alt);
  font-weight: 600;
}
.info-table tr:nth-child(even) td {
  background: var(--color-surface-alt);
}

/* Links page */
.links-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.links-list li {
  border-bottom: 1px solid var(--color-border);
  padding: .55rem 0;
}
.links-list li:first-child { border-top: 1px solid var(--color-border); }
.links-list a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.links-list a:hover { text-decoration: underline; }

/* Button */
.btn {
  display: inline-block;
  padding: .55rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
