/* ============================================================
   Playa Cars — design system
   No build step. Tokens + components, light/dark, ~1 file.
   ============================================================ */

:root {
  /* palette */
  --brand-50:  #ecfdf8;
  --brand-100: #d1faee;
  --brand-300: #5eddc4;
  --brand-500: #10b5a0;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --sand-100:  #fdf6ec;
  --sand-300:  #f2d9b1;
  --sand-600:  #b8874a;

  /* semantic — light */
  --bg: #f7f8f9;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f4f5;
  --surface-3: #e8ebec;
  --border: #e2e6e8;
  --border-strong: #cfd5d8;
  --text: #10201f;
  --text-2: #4a5a59;
  --muted: #74858a;
  --accent: var(--brand-600);
  --accent-text: #ffffff;
  --accent-soft: var(--brand-50);
  --good: #0e8f5a;
  --good-soft: #e7f7ef;
  --bad: #c2410c;
  --bad-soft: #fdeee6;
  --info: #1d6fd0;
  --info-soft: #e9f2fd;

  --shadow-sm: 0 1px 2px rgba(16, 32, 31, .06), 0 1px 1px rgba(16, 32, 31, .04);
  --shadow-md: 0 4px 14px rgba(16, 32, 31, .08), 0 1px 3px rgba(16, 32, 31, .05);
  --shadow-lg: 0 18px 40px rgba(16, 32, 31, .14);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  --space: 4px;
  --maxw: 1360px;
  --header-h: 62px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="dark"] {
  --bg: #0c1413;
  --bg-alt: #0f1a19;
  --surface: #131f1e;
  --surface-2: #192826;
  --surface-3: #21332f;
  --border: #22322f;
  --border-strong: #31453f;
  --text: #e8f1ef;
  --text-2: #b0c2be;
  --muted: #7e9490;
  --accent: var(--brand-500);
  --accent-text: #05221e;
  --accent-soft: #0e2b28;
  --good: #35c48b;
  --good-soft: #0d2a20;
  --bad: #f08a5d;
  --bad-soft: #2d1a12;
  --info: #6aa9f0;
  --info-soft: #11243a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1413;
    --bg-alt: #0f1a19;
    --surface: #131f1e;
    --surface-2: #192826;
    --surface-3: #21332f;
    --border: #22322f;
    --border-strong: #31453f;
    --text: #e8f1ef;
    --text-2: #b0c2be;
    --muted: #7e9490;
    --accent: var(--brand-500);
    --accent-text: #05221e;
    --accent-soft: #0e2b28;
    --good: #35c48b;
    --good-soft: #0d2a20;
    --bad: #f08a5d;
    --bad-soft: #2d1a12;
    --info: #6aa9f0;
    --info-soft: #11243a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, .55);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg-alt) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.02em; font-size: 1.02rem; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700) 70%, #0b5f63);
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-600) 40%, transparent);
}
.logo-mark svg { width: 17px; height: 17px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 7px 12px; border-radius: var(--r-full);
  font-size: .89rem; font-weight: 500; color: var(--text-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.lang-switch button {
  padding: 5px 9px; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); transition: background .16s var(--ease), color .16s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 380px at 12% -10%, color-mix(in srgb, var(--brand-500) 20%, transparent), transparent 60%),
    radial-gradient(800px 320px at 88% 0%, color-mix(in srgb, var(--sand-600) 16%, transparent), transparent 62%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: clamp(28px, 5vw, 56px) 0 clamp(22px, 3vw, 34px);
}
.hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.1; letter-spacing: -.035em; font-weight: 750;
  max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { color: var(--text-2); max-width: 54ch; margin-top: 10px; font-size: 1rem; }

.stat-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stat {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px; min-width: 116px;
  backdrop-filter: blur(6px);
}
.stat b { display: block; font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }

/* ---------- search ---------- */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  padding: 7px 7px 7px 16px;
  box-shadow: var(--shadow-md);
  margin-top: 24px; max-width: 620px;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.searchbar svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.searchbar input { flex: 1; border: none; background: none; outline: none; font-size: .96rem; min-width: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-full);
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .12s var(--ease), background .16s var(--ease),
              border-color .16s var(--ease), color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: .8rem; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-full);
  font-size: .78rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid transparent;
}
.chip button { display: grid; place-items: center; color: var(--muted); }
.chip button:hover { color: var(--text); }
.chip svg { width: 12px; height: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--r-xs);
  font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; flex: none; }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-bad  { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: var(--surface-2); color: var(--muted); }

/* ---------- main grid ---------- */
.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 26px; padding: 26px 0 64px; align-items: start; }
@media (max-width: 960px) { .shell { grid-template-columns: 1fr; } }

/* ---------- filters ---------- */
.filters {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 6px 16px 16px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100svh - var(--header-h) - 40px);
  overflow-y: auto; scrollbar-width: thin;
}
@media (max-width: 960px) {
  .filters {
    position: fixed; inset: 0; z-index: 90; border-radius: 0; max-height: none;
    transform: translateX(-100%); transition: transform .26s var(--ease);
    padding: 48px 16px 96px;
  }
  .filters.open { transform: none; }
  .filters-close { display: grid !important; }
}
.filters-close { display: none; position: absolute; top: 14px; right: 14px; }

.fgroup { border-top: 1px solid var(--border); padding: 14px 0 4px; }
.fgroup:first-of-type { border-top: none; }
.fgroup > h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; margin-bottom: 10px;
}
.check-list { display: flex; flex-direction: column; gap: 2px; max-height: 208px; overflow-y: auto; margin-inline: -8px; padding-inline: 8px; }
.check {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 8px; border-radius: var(--r-sm);
  font-size: .87rem; cursor: pointer;
  transition: background .14s var(--ease);
}
.check:hover { background: var(--surface-2); }
.check input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.check .n { margin-left: auto; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .75rem; color: var(--muted); font-weight: 600; }
.input, select.input {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-alt); outline: none; font-size: .87rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.input { appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374858a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 14px;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.result-count { font-size: .92rem; color: var(--text-2); }
.result-count b { color: var(--text); font-variant-numeric: tabular-nums; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }

/* ---------- card grid ---------- */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.detail .grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.card-media .noimg svg { width: 40px; height: 40px; opacity: .45; }
.card-flags { position: absolute; top: 9px; left: 9px; display: flex; gap: 5px; flex-wrap: wrap; }
.card-flags .badge { box-shadow: var(--shadow-sm); }
.card-fav {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(6px); color: var(--muted);
  border: 1px solid var(--border);
  transition: color .16s var(--ease), transform .16s var(--ease);
}
.card-fav:hover { color: var(--bad); transform: scale(1.08); }
.card-fav[aria-pressed="true"] { color: #e0475b; }
.card-fav[aria-pressed="true"] svg { fill: currentColor; }
.card-fav svg { width: 15px; height: 15px; }

.card-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: .96rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.card-title .yr { color: var(--muted); font-weight: 600; }
.card-sub { font-size: .79rem; color: var(--muted); }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.card-price .amount { font-size: 1.18rem; font-weight: 720; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.card-price .cur { font-size: .72rem; color: var(--muted); font-weight: 600; }
.card-meta { display: flex; gap: 12px; font-size: .78rem; color: var(--text-2); flex-wrap: wrap; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta svg { width: 13px; height: 13px; color: var(--muted); }
.card-foot {
  border-top: 1px solid var(--border); padding-top: 9px; margin-top: 2px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .76rem; color: var(--muted);
}
.dealer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- skeleton ---------- */
.sk { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.sk-media { aspect-ratio: 4/3; }
.sk-line { height: 11px; border-radius: 4px; margin: 10px 14px; }
.sk-media, .sk-line {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- empty / error ---------- */
.empty {
  border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
  padding: 56px 24px; text-align: center; color: var(--muted);
  background: var(--surface);
}
.empty svg { width: 42px; height: 42px; margin: 0 auto 14px; opacity: .5; }
.empty h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 34px; flex-wrap: wrap; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 11px;
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--text-2);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager button[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- detail page ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 30px; padding: 26px 0 70px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }

.gallery { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.gallery-main { aspect-ratio: 16 / 10; background: var(--surface-2); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px); display: grid; place-items: center;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-nav svg { width: 17px; height: 17px; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs button {
  width: 76px; aspect-ratio: 4/3; border-radius: var(--r-sm); overflow: hidden;
  border: 2px solid transparent; flex: none; background: var(--surface-2);
}
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.price-big { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 760; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.spec { background: var(--surface); padding: 12px 14px; }
.spec dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.spec dd { font-size: .95rem; font-weight: 600; margin-top: 3px; overflow-wrap: anywhere; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 14px 1fr auto; gap: 11px; padding: 9px 0; align-items: baseline; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); margin-top: 6px; }
.tl-item:first-child .tl-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-price { font-variant-numeric: tabular-nums; font-weight: 650; }

/* ---------- dealers ---------- */
.dealer-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.dealer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 17px;
  display: flex; flex-direction: column; gap: 11px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.dealer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.dealer-head { display: flex; gap: 12px; align-items: flex-start; }
.dealer-avatar {
  width: 42px; height: 42px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; font-weight: 750; font-size: .95rem;
  background: var(--accent-soft); color: var(--accent);
  letter-spacing: -.02em;
}
.dealer-name { font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.brand-chips .chip { font-size: .71rem; padding: 3px 8px; }
.dealer-stats { display: flex; gap: 18px; padding-top: 11px; border-top: 1px solid var(--border); margin-top: auto; }
.dealer-stats div b { display: block; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dealer-stats div span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

/* ---------- misc ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 34px 0 15px; }
.section-head h2 { font-size: 1.2rem; letter-spacing: -.025em; font-weight: 700; }
.breadcrumb { display: flex; gap: 7px; align-items: center; font-size: .82rem; color: var(--muted); padding-top: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 26px 0; font-size: .82rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }

@media (max-width: 620px) {
  .wrap { padding-inline: 14px; }
  .site-header .wrap { gap: 10px; }
  .nav a { padding: 6px 9px; font-size: .82rem; }
  .logo { font-size: .95rem; gap: 7px; }
  .logo-mark { width: 27px; height: 27px; border-radius: 8px; }
  .lang-switch button { padding: 5px 7px; font-size: .7rem; }
  .icon-btn { width: 31px; height: 31px; }
}
@media (max-width: 400px) {
  .logo span:last-child { display: none; }
}

.fab-filters {
  display: none;
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 960px) { .fab-filters { display: inline-flex; } }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 85; opacity: 0; pointer-events: none; transition: opacity .22s var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }

.toast {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  background: var(--text); color: var(--bg-alt);
  padding: 11px 16px; border-radius: var(--r-sm); font-size: .86rem; font-weight: 550;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: transform .26s var(--ease), opacity .26s var(--ease);
}
.toast.show { transform: none; opacity: 1; }
