/* Аномера23 — site.css
   Стили серверного (PHP) фронта. Дополняет tokens.css.
   Заменяет инлайновые стили из assets/*.jsx после перехода на SSR.
   Знак номера отрисован на container-query единицах (cqi), поэтому
   масштабируется по своей ширине без JavaScript, сохраняя ГОСТ-пропорции. */

/* ── Кнопки ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600;
  border-radius: var(--r-md); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  text-decoration: none; transition: filter .15s, box-shadow .15s, background .15s, transform .12s;
  height: 48px; padding: 0 22px; font-size: 15px;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.10); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn[disabled]:hover { transform: none; box-shadow: none; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { flex: 0 0 auto; }

/* ── Шапка ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.site-header.is-scrolled {
  background: rgba(247,246,242,0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header__inner {
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.brand__name b { color: var(--gold); font-weight: 700; }
.brand__sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: 0.1em; line-height: 1; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }

.nav-desktop { display: flex; gap: 30px; align-items: center; }
.nav-link {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; cursor: pointer;
  border-bottom: 2px solid transparent; padding-bottom: 4px; transition: color .15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { font-weight: 600; color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap;
}
.nav-mobile-btn {
  display: none; width: 44px; height: 44px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-mobile-btn .icon-close { display: none; }
.nav-mobile-btn.is-open .icon-open { display: none; }
.nav-mobile-btn.is-open .icon-close { display: block; }
.nav-mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.nav-mobile-menu.is-open { display: block; }
.nav-mobile-menu .wrap { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-link { padding: 13px 8px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.nav-mobile-phone { padding: 14px 8px; font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 920px) {
  .nav-desktop { display: none !important; }
  .nav-mobile-btn { display: flex; }
}

/* ── Госномер (ГОСТ 50577) — cqi-пропорции ──────────────────────────── */
/* ── Шрифт госномера (ГОСТ 50577) ──────────────────────────────────── */
@font-face {
  font-family: 'Motor4F';
  src: url('fonts/Motor4F.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.plate {
  container-type: inline-size;
  width: 300px; max-width: 100%;
  aspect-ratio: 4.6 / 1;
  background: #fff; border: 2px solid #111;
  border-radius: max(4px, 1.3cqi);
  display: flex; align-items: stretch; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 20px rgba(0,0,0,0.06);
  font-family: 'Oswald','Roboto Condensed','Arial Narrow',sans-serif; color: #111;
}
.plate__main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 2.83cqi; font-weight: 500; font-size: 12.6cqi; letter-spacing: 0.01em;
  padding-left: 2.6cqi; padding-right: 1.3cqi; line-height: 1;
}
.plate__main .grp { display: inline-flex; }
.plate__main .digits { letter-spacing: 0.02em; }
.plate__right {
  width: 22.83cqi; border-left: 1.5px solid #111;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.3cqi 0;
}
.plate__region { font-size: 9.13cqi; font-weight: 500; line-height: 1; letter-spacing: 0.02em; }
.plate__rus { display: flex; align-items: center; gap: 1.3cqi; margin-top: 0.87cqi; }
.plate__rus span { font-size: 3.9cqi; font-weight: 600; letter-spacing: 0.06em; }
.plate__flag { width: 3.9cqi; height: 2.6cqi; display: block; }

/* Мотознак (ГОСТ тип 4) — квадратный, два ряда */
.plate-moto {
  container-type: inline-size;
  width: 168px; max-width: 100%;
  aspect-ratio: 1 / 0.72;
  background: #fff; border: 2px solid #111;
  border-radius: max(3px, 1.8cqi);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 20px rgba(0,0,0,0.06);
  font-family: 'Motor4F','Oswald','Roboto Condensed','Arial Narrow',sans-serif; color: #111;
}
.plate-moto__top {
  flex: 1 1 56%; display: flex; align-items: center; justify-content: center;
  font-size: 38.2cqi; font-weight: 400; line-height: 1;
}
.plate-moto__bottom { display: flex; flex: 1 1 44%; border-top: 1.5px solid #111; }
.plate-moto__letters {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 25.9cqi; font-weight: 400; line-height: 1;
}
.plate-moto__right {
  width: 53.3cqi; border-left: 1.5px solid #111; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.plate-moto__region { font-size: 21.6cqi; font-weight: 500; line-height: 1; }
.plate-moto__rus { display: flex; align-items: center; gap: 0.9cqi; margin-top: 0.5cqi; }
.plate-moto__rus span { font-size: 9.4cqi; font-weight: 600; letter-spacing: 0.06em; }
.plate-moto__flag { width: 9.4cqi; height: 6.3cqi; display: block; }

/* ── Бейджи (rarity / теги) ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  background: #F2F1EC; color: #3A3A3A; border: 1px solid #E5E3DD;
}
.badge--gold { background: #FBF3DF; color: #7A5A1E; border-color: #E9D8B0; }
.badge--neutral { background: #F2F1EC; color: #3A3A3A; border-color: #E5E3DD; }
.badge--accent { background: #1A1A1A; color: #fff; border-color: #1A1A1A; }
.badge--success { background: #E8F0EA; color: #2E5639; border-color: #CFE0D4; }
.badge--alert { background: #F6E3DD; color: #7A3622; border-color: #EBC9BD; }

/* ── Каталог: заголовок секции ──────────────────────────────────────── */
.catalog-head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.catalog-count { font-size: 14px; color: var(--muted); }
.catalog-count b { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
.catalog-count .pinned-n { color: #9C7B3C; font-weight: 600; }

/* Табы типов */
.catalog-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 28px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.catalog-tab {
  height: 44px; padding: 0 22px; border-radius: var(--r-md); border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  background: transparent; color: var(--muted); transition: background .15s, color .15s;
}
.catalog-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.catalog-layout { display: grid; grid-template-columns: 288px 1fr; gap: 32px; align-items: start; }
.catalog-pane[hidden] { display: none; }

/* Панель фильтра */
.filter-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; align-self: start; position: sticky; top: 88px;
}
.filter-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filter-panel__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.filter-reset-link { background: transparent; border: none; cursor: pointer; padding: 0; font-size: 13px; font-weight: 500; color: var(--accent); }
.filter-reset-link[hidden] { display: none; }
.filter-section-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.filter-divider { height: 1px; background: var(--line); margin: 20px 0; }
.filter-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Ячейки «Буква/цифры» в фильтре */
.pos-row { display: flex; gap: 4px; }
.pos-cell {
  position: relative; flex: 1; min-width: 0; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  transition: border-color .12s, box-shadow .12s;
}
.pos-cell.lead { margin-left: 6px; }
.pos-cell:focus-within { border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.pos-cell select {
  appearance: none; -webkit-appearance: none; border: none; background: transparent;
  width: 100%; height: 100%; text-align: center; text-align-last: center;
  font-family: 'Oswald','Roboto Condensed',sans-serif; font-weight: 500; font-size: 20px;
  color: var(--ink); outline: none; cursor: pointer; padding: 0;
}
.pos-cell select.empty { color: #BDBAB2; }
.pos-cell .caret { position: absolute; right: 3px; bottom: 2px; pointer-events: none; color: var(--muted-2); display: flex; }

/* Чекбоксы */
.chk { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.chk__box {
  flex: none; width: 18px; height: 18px; border-radius: var(--r-sm);
  background: var(--surface); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--accent-ink); font-size: 11px;
}
.chk input:checked + .chk__box { background: var(--accent); border-color: var(--accent); }
.chk input:checked + .chk__box::after { content: '✓'; }
.chk__label { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.chk--small .chk__box { margin-top: 1px; }
.chk--small .chk__label { font-size: 12px; color: var(--muted); }
.chk-list { display: flex; flex-direction: column; gap: 11px; }

/* Регион-чипы */
.region-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.region-chip {
  flex: 1; min-width: 40px; height: 40px; border-radius: var(--r-md); cursor: pointer;
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
}
.region-chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Select (общий) */
.select-wrap {
  position: relative; width: 100%; height: 48px; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s;
}
.select-wrap:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.select-wrap select {
  appearance: none; -webkit-appearance: none; border: none; background: transparent;
  width: 100%; height: 100%; padding: 0 38px 0 14px; font-size: 15px; color: var(--ink);
  font-family: var(--font-text); outline: none; cursor: pointer;
}
.select-wrap .caret { position: absolute; right: 12px; pointer-events: none; color: var(--muted); display: flex; }

/* Активные фильтры */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.active-filters[hidden] { display: none; }
.active-filters__label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 6px 0 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.filter-chip button {
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: var(--r-full); border: none; background: var(--surface-2); color: var(--muted); cursor: pointer; padding: 0;
}
.filter-chip button:hover { background: var(--ink); color: #fff; }
.reset-all-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  border-radius: var(--r-full); cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
}

/* Список строк / пусто / показать ещё */
.plate-rows { display: flex; flex-direction: column; gap: 12px; }
.pinned-block { margin-bottom: 28px; }
.pinned-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #9C7B3C; }
.pinned-head span { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.catalog-empty {
  padding: 64px 24px; text-align: center; background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.catalog-empty p { color: var(--muted); margin: 0 auto; max-width: 360px; }
.catalog-empty__actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.show-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.plate-row[hidden] { display: none; }

/* ── Hero: левая колонка ────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); margin-bottom: 22px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.quick-tag {
  padding: 9px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-full); font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: border-color .15s, color .15s; text-decoration: none;
}
.quick-tag:hover { border-color: var(--accent); color: var(--ink); }

/* ── Формы ──────────────────────────────────────────────────────────── */
.field-label { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; display: block; }
.input, .textarea {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 15px; color: var(--ink); font-family: var(--font-text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: clamp(24px, 3vw, 36px);
}
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-gap { height: 18px; }
.form-gap-lg { height: 20px; }
.form-hint { margin-top: 16px; font-size: 12px; color: var(--muted-2); line-height: 1.5; }

/* Мини-знак в формах */
.mini-plate {
  display: inline-flex; align-items: stretch; max-width: 100%; background: #fff;
  border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-1);
}
.mini-plate__cells { display: flex; align-items: center; gap: clamp(2px,1vw,4px); padding: 0 clamp(5px,1.6vw,8px); }
.mini-plate__grp { display: flex; }
.mini-plate select {
  appearance: none; -webkit-appearance: none; border: none; background: transparent; text-align: center; text-align-last: center;
  font-family: 'Motor4F','Oswald',sans-serif; font-weight: 500; color: var(--ink); outline: none; cursor: pointer;
  width: clamp(24px,6vw,42px); height: clamp(32px,8vw,56px); font-size: clamp(18px,4.8vw,32px);
}
.mini-plate select.empty { color: #BDBAB2; }
.mini-plate__region { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 clamp(7px,2vw,10px); border-left: 1.5px solid var(--ink); }
.mini-plate__region select { width: auto; height: auto; font-size: clamp(16px,4.4vw,22px); }
.mini-plate__rus { display: flex; align-items: center; gap: 4px; }
.mini-plate__rus span { font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.06em; }
.mini-plate__flag { width: 11px; height: 7.3px; display: block; }

/* Загрузка фото */
.filedrop {
  border: 1.5px dashed var(--line); border-radius: var(--r-md); background: var(--surface-2);
  padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.filedrop.is-over { border-color: var(--accent); background: var(--surface); }
.filedrop__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.filedrop__label { font-size: 13px; color: var(--muted); max-width: 240px; }
.filedrop__hint { font-size: 11px; color: var(--muted-2); }
.filedrop-preview { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 12px 14px; }
.filedrop-preview[hidden] { display: none; }
.filedrop-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.filedrop-preview__meta { flex: 1; min-width: 0; }
.filedrop-preview__name { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filedrop-preview__size { font-size: 12px; color: var(--muted); }
.filedrop-preview__x { background: transparent; border: none; cursor: pointer; color: var(--muted); padding: 4px; display: flex; }

/* ── Секции: заголовки ──────────────────────────────────────────────── */
.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; }
.section-head__sub { margin: 14px 0 0; max-width: 560px; color: var(--muted); }
.section-head.center .section-head__sub { margin-left: auto; margin-right: auto; }

/* ── Контакты ───────────────────────────────────────────────────────── */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.contact-card, .contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-1); }
.contact-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.contact-card__tg-icon { width: 44px; height: 44px; border-radius: 12px; background: #229ED9; display: flex; align-items: center; justify-content: center; }
.contact-card__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.contact-card__handle { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.contact-card__body { display: flex; gap: 20px; align-items: center; }
.contact-card__qr { border: 1px solid var(--line); padding: 8px; border-radius: 12px; background: #fff; }
.contact-card__qr svg { display: block; background: #fff; border-radius: 8px; }
.contact-card__text { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ── Футер ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer-copy { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ── Строка каталога: адаптация плашки под колонку ──────────────────── */
.plate-row__plate .plate,
.plate-row__plate .plate-moto { box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.05); }

/* ── Тост ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 300; display: flex; align-items: center; gap: 14px; max-width: min(440px, calc(100vw - 32px));
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.28); animation: toast-in .26s cubic-bezier(.2,.7,.3,1);
}
.toast[hidden] { display: none; }
.toast__icon { flex: none; width: 30px; height: 30px; border-radius: var(--r-full); background: var(--success); display: flex; align-items: center; justify-content: center; }
.toast__title { font-weight: 600; font-size: 14px; }
.toast__text { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.toast__x { margin-left: 6px; background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; padding: 4px; display: flex; }

/* ── Карточка похожего номера (PlateCard) ───────────────────────────── */
.plate-card {
  position: relative; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  color: inherit; width: 100%; text-decoration: none;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.plate-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: #DAD7CF; }
.plate-card__photo {
  position: relative; aspect-ratio: 4/3; background: linear-gradient(180deg, #ECEAE3 0%, #DDD9CF 100%);
  display: flex; align-items: center; justify-content: center; padding: 22px; overflow: hidden;
}
.plate-card__photo::before {
  content: ''; position: absolute; inset: 0; opacity: 0.25;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(0,0,0,0.04) 38px 40px);
}
.plate-card__photo .plate, .plate-card__photo .plate-moto { position: relative; }
.plate-card__badge { position: absolute; top: 12px; left: 12px; }
.plate-card__more {
  position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 600; font-family: var(--font-display);
  opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s;
}
.plate-card:hover .plate-card__more { opacity: 1; transform: translateY(0); }
.plate-card__info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.plate-card__code { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; display: flex; align-items: center; gap: 5px; }
.plate-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.plate-card__price { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 32px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.plate-card__city { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }

/* ── Страница номера (single) ───────────────────────────────────────── */
.price-tag { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.price-tag--xl { font-size: 44px; }
.sp-included { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.sp-included__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.sp-included__text { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.sp-form__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.sp-breadcrumb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 26px; }
.sp-breadcrumb a { color: var(--muted); text-decoration: none; }
.sp-breadcrumb .sep { color: var(--muted-2); }
.sp-breadcrumb .cur { font-family: var(--font-mono); color: var(--ink-2); font-weight: 600; }

@media (max-width: 1080px) { .catalog-layout { grid-template-columns: 1fr; } .filter-panel { position: static; } }
@media (max-width: 860px) { .contacts-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .form-2col, .form-3col { grid-template-columns: 1fr; }
  .catalog-head-row { flex-direction: column; align-items: flex-start; }
}

/* ── Полировка: микро-ховеры ────────────────────────────────────────── */
.quick-tag { transition: border-color .15s, color .15s, transform .12s, background .15s; }
.quick-tag:hover { transform: translateY(-1px); background: var(--surface); }
.catalog-tab { transition: background .15s, color .15s, transform .12s; }
.catalog-tab:active { transform: scale(0.97); }
.region-chip { transition: background .14s, color .14s, border-color .14s, transform .12s; }
.region-chip:hover { border-color: var(--accent); }
.region-chip:active { transform: scale(0.94); }
.plate-tag, .badge { transition: transform .12s; }
.plate-row { transition: box-shadow .18s, transform .18s, border-color .18s; }
.filter-chip button { transition: background .14s, color .14s, transform .12s; }
.filter-chip button:active { transform: scale(0.88); }
.nav-link { transition: color .15s, border-color .15s; }

/* ── Полировка: появление при скролле ───────────────────────────────── */
/* Прячем блоки ТОЛЬКО когда app.js жив (ставит .js-reveal на <html>).
   Без JS или при ошибке — контент видимый, ничего не «пропадает». */
.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .62s cubic-bezier(.2,.7,.3,1), transform .62s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Полировка: кнопка «наверх» ─────────────────────────────────────── */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 260;
  width: 48px; height: 48px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9);
  transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--accent); transform: translateY(-2px) scale(1.04); }
.to-top:active { transform: translateY(0) scale(0.95); }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ════════════════════════════════════════════════════════════════════ */
/*  SEO-блоки главной и посадочных (Д4/Д5/Д7-Д9) — v2.1                  */
/* ════════════════════════════════════════════════════════════════════ */

/* Блок «Как купить» — сетка из 3 карточек-шагов */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.how-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 22px;
}
.how-card__n {
  width: 36px; height: 36px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

/* Секция «Красивые номера»: чипы типов */
.quick-tag--accent {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.quick-tag--accent:hover { background: var(--ink); }

/* Таблица цен */
.price-table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}
.price-row:last-child { border-bottom: none; }
.price-row:nth-child(odd) { background: var(--surface-2); }
.price-row__type { font-weight: 600; font-size: 16px; color: var(--ink); }
.price-row__hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.price-row__val {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink);
  white-space: nowrap; letter-spacing: -0.01em;
}
@media (max-width: 640px) {
  .price-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* FAQ — нативные <details> с оформлением */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  overflow: hidden;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q {
  list-style: none; cursor: pointer; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq-item__q svg { flex: none; transition: transform .2s; color: var(--muted); }
.faq-item[open] .faq-item__q svg { transform: rotate(180deg); }
.faq-item__a { padding: 0 20px 20px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* Сворачиваемый SEO-текст (текст остаётся в HTML — индексируется) */
.seo-text__body p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.6; }
.seo-text__body h3 { margin: 24px 0 10px; }
/* Скрываем «лишний» хвост только когда JS жив (анти-FOUC): clamp включается
   кнопкой, без неё текст раскрыт полностью. */
.js-reveal [data-clamp].is-clamped [data-clamp-inner] {
  max-height: 220px; overflow: hidden; position: relative;
}
.js-reveal [data-clamp].is-clamped [data-clamp-inner]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(180deg, transparent, var(--surface));
}
.clamp-toggle {
  margin-top: 14px; background: transparent; border: none; cursor: pointer;
  color: var(--accent); font-weight: 600; font-size: 15px; padding: 6px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.clamp-toggle:hover { color: var(--ink); }


/* ── Полировка: уважение к prefers-reduced-motion ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .quick-tag:hover, .to-top:hover, .plate-card:hover { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ── ВЧ-ссылки: «нулевой» стиль (анкор = обычный текст) ──────────────── */
/* По методике «ВЧ в теге <a>» (Уровень 2): self/якорные ссылки с ВЧ-анкорами
   на главной. Выглядят как обычный текст — без подчёркивания, цвет и курсор
   наследуются. Не серое SEO (нет display:none/visibility:hidden), валидный HTML. */
.bare-link {
  color: inherit;
  text-decoration: none;
  cursor: text;
}
.bare-link:focus-visible { outline-offset: 1px; }

/* Плитка тегов (Уровень 3 методики «ВЧ в теге <a>») */
.tag-tile-summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
  list-style: none;
  display: inline-block;
}
.tag-tile-summary::-webkit-details-marker { display: none; }
.tag-tile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag-tile__item {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  background: var(--surface-2);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.tag-tile__item:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
@media (max-width: 600px) {
  .tag-tile__item { font-size: 12px; padding: 5px 11px; }
}
