/* Шрифт заголовков Russo One — лежит на нашем сайте (fonts/, лицензия SIL OFL — fonts/OFL.txt), а не грузится с серверов Google */
@font-face { font-family: "Russo One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/russo-one-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Russo One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/russo-one-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Russo One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/russo-one-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Тёмный «звуковой» стиль: графит + янтарный, как подсветка магнитолы */
:root {
  --bg: #1b1f27;
  --surface: #252b35;
  --surface-2: #2f3642;
  --border: #414a58;
  --text: #eef0f3;
  --muted: #b6bec9;
  --accent: #ffb020;
  --accent-hover: #ffc24d;
  --accent-ink: #1a1200;
  --ok: #46c97a;
  --radius: 14px;
  --display: "Russo One", "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; }

.container { max-width: 1160px; margin: 0 auto; padding-inline: 16px; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn--big { padding: 15px 26px; font-size: 1.05rem; }
.btn--max { background: #4f46e5; color: #fff; }
.btn--max:hover { background: #6366f1; }
.btn--2gis { background: #15803d; color: #fff; }
.btn--2gis:hover { background: #166534; }
.modal__max { margin-top: 10px; }
.btn--wide { width: 100%; }
.btn:focus-visible, .card:focus-visible, .direction:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 16, 19, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__row { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.1rem; }
.logo__text b { font-weight: 400; color: var(--accent); }
.logo__eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.logo__eq i { width: 4px; background: var(--accent); border-radius: 1px; animation: eq 1.1s ease-in-out infinite; }
.logo__eq i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.logo__eq i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.logo__eq i:nth-child(3) { height: 60%; animation-delay: -.8s; }
.logo__eq i:nth-child(4) { height: 75%; animation-delay: -.35s; }
@keyframes eq { 50% { transform: scaleY(.45); } }
.logo__eq i { transform-origin: bottom; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.header__max { padding: 10px 14px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }

/* Первый экран */
.hero {
  background:
    linear-gradient(90deg, rgba(27,31,39,.92) 0%, rgba(27,31,39,.6) 45%, rgba(27,31,39,.05) 100%),
    url("images/hero.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero__inner { padding-block: 64px 56px; }
.hero__eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); max-width: 760px; }
.hero__sub { color: #c5cbd3; font-size: 1.1rem; max-width: 600px; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}
.facts li { display: flex; flex-direction: column; }
.facts b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--accent); }
.facts span { color: var(--muted); font-size: .9rem; }

/* Направления */
.directions { padding-block: 40px 8px; }
.directions__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .directions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; } .directions__grid > :nth-child(2) { grid-column: span 2; aspect-ratio: 8 / 3; } }
.direction {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
}
.direction img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.direction:hover img { transform: scale(1.05); }
.direction__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.direction__title { font-family: var(--display); font-size: 1.15rem; }
.direction__text { color: #c5cbd3; font-size: .9rem; }

/* Заголовки секций */
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head p { margin: 0; color: var(--muted); max-width: 640px; }

/* Каталог */
.catalog { padding-block: 48px 24px; scroll-margin-top: 64px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card__img { aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--surface-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Официальные фото производителя — целиком на белом фоне, как в магазинах */
img[src*="images/oem/"] { object-fit: contain !important; background: #fff; padding: 6%; }
.thumbs__item img[src*="images/oem/"] { padding: 2px; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { font-size: .8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card__name { font-size: 1.02rem; font-weight: 700; margin: 0; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .8125rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.badge--ok { color: var(--ok); }
.card__price { margin-top: auto; padding-top: 8px; font-family: var(--display); font-size: 1.3rem; color: var(--accent); }

.card__icon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent);
  background: radial-gradient(circle at 50% 40%, rgba(255,176,32,.12), transparent 65%), var(--surface-2); }
.card__icon svg { width: 56px; height: 56px; }
.card--plain .card__img { aspect-ratio: 16 / 9; }

/* Поиск и фильтры */
.search { position: relative; max-width: 560px; margin-bottom: 16px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 1.05rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px 13px 44px; outline: none; }
.search input:focus { border-color: var(--accent); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font: inherit; font-weight: 700; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 14px; cursor: pointer; }
.tab small { font-weight: 600; opacity: .7; margin-left: 4px; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.chips__label { color: var(--muted); font-size: .9rem; margin-right: 2px; }
.chip { min-height: 40px; font: inherit; font-size: .9rem; color: var(--text); background: transparent; border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.is-active { border-color: var(--accent); color: var(--accent); background: rgba(255,176,32,.1); }
.catalog__count { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.catalog__count .reset { display: flex; margin-top: 10px; width: fit-content; }
.more { display: flex; margin: 20px auto 0; }
.tab:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card--more {
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-decoration: none;
  background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px);
  border-style: dashed;
}
.card--more__title { font-family: var(--display); font-size: 1.3rem; }
.card--more__text { color: var(--muted); }
.card--more__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Услуги */
.services { padding-block: 40px; scroll-margin-top: 64px; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.service h3 { font-size: 1.1rem; }
.service p { margin: 0; color: var(--muted); }
.service .service__price { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 700; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 16px; padding-block: 8px 48px; }
.reviews__score { display: flex; align-items: center; gap: 14px; padding-right: 8px; }
.reviews__score b { font-family: var(--display); font-weight: 400; font-size: 2.6rem; color: var(--ok); line-height: 1; }
.reviews__score span { color: var(--muted); font-size: .9rem; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; font-size: 1.02rem; }
.reviews__link { grid-column: 1 / -1; padding-block: 10px; justify-self: start; color: var(--accent); font-weight: 700; text-decoration: none; }
.reviews__link:hover { text-decoration: underline; }

/* Контакты */
.contacts { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); scroll-margin-top: 64px; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; padding-block: 48px; }
.contacts__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.contacts__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contacts__info h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.info { margin: 0 0 20px; display: grid; gap: 10px; }
.info div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.info dt { color: var(--muted); }
.info dd { margin: 0; min-width: 0; }
.info a { display: inline-block; padding-block: 10px; margin-block: -10px; color: var(--accent); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Подвал */
.footer { padding-block: 24px; color: var(--muted); font-size: .9rem; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { display: inline-block; padding-block: 11px; margin-block: -11px; color: var(--muted); }
.footer a:hover { color: var(--accent); }

/* Кнопка звонка на телефоне */
.call-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  place-items: center;
  box-shadow: 0 6px 20px rgba(255, 176, 32, .35);
  z-index: 20;
}
.call-fab svg { width: 26px; height: 26px; fill: currentColor; }

/* Окно товара */
.modal {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  background: var(--surface);
  color: var(--text);
}
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.modal__img { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; }
.modal__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__img--plain { aspect-ratio: 16 / 6; }
.gallery { position: relative; background: #000; outline: none; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; display: block; }
.gallery__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 2px solid rgba(0,0,0,.35);
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 2rem; font-weight: 700; line-height: 1;
  padding-bottom: 4px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.gallery__btn:hover { background: var(--accent-hover); }
.gallery__btn--prev { left: 10px; }
.gallery__btn--next { right: 10px; }
.gallery__count { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff;
  font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs__item { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px;
  overflow: hidden; background: #000; cursor: pointer; opacity: .6; }
.thumbs__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs__item.is-active { border-color: var(--accent); opacity: 1; }
.card__img { position: relative; }
.card__photos { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .8125rem;
  font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.modal__img--plain svg { width: 64px; height: 64px; }
.modal__farpost { margin-top: 10px; }
.modal__body { padding: 20px 24px 24px; }
.modal__body h2 { font-size: 1.35rem; margin-top: 4px; }
.modal__body p { color: #c5cbd3; }
.specs { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.specs td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 38%; padding-right: 12px; }
.modal__price { font-family: var(--display); font-size: 1.6rem; color: var(--accent); margin-bottom: 14px; }

/* Яркость: неоновое янтарное свечение, как подсветка магнитолы ночью */
body {
  background:
    radial-gradient(1000px 600px at 90% -5%, rgba(255, 176, 32, .22), transparent 60%),
    radial-gradient(800px 700px at -5% 40%, rgba(255, 110, 40, .16), transparent 60%),
    radial-gradient(900px 700px at 105% 75%, rgba(255, 176, 32, .14), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(255, 90, 60, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.header { border-bottom: 1px solid rgba(255, 176, 32, .55); box-shadow: 0 1px 18px rgba(255, 176, 32, .25); background: rgba(27, 31, 39, .9); }
.hero { box-shadow: inset 0 -2px 0 rgba(255, 176, 32, .7), 0 2px 30px rgba(255, 176, 32, .25); }
.hero h1 { text-shadow: 0 0 40px rgba(255, 176, 32, .25); }
.hero__eyebrow { text-shadow: 0 0 12px rgba(255, 176, 32, .7); }
.section-head h2::after {
  content: ""; display: block; width: 72px; height: 4px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #ff7a29);
  box-shadow: 0 0 18px rgba(255, 176, 32, .9);
}
.card, .direction, .service, .review { border-color: rgba(255, 176, 32, .22); }
.card:hover, .direction:hover { box-shadow: 0 12px 34px rgba(255, 176, 32, .3), 0 0 0 1px rgba(255, 176, 32, .8); }
.direction:hover { border-color: var(--accent); }
.direction__title { text-shadow: 0 0 16px rgba(255, 176, 32, .5); }
.card__price { text-shadow: 0 0 18px rgba(255, 176, 32, .6); }
.facts b { text-shadow: 0 0 22px rgba(255, 176, 32, .8); }
.btn--accent { box-shadow: 0 6px 26px rgba(255, 176, 32, .55); }
.btn--accent:hover { box-shadow: 0 8px 34px rgba(255, 176, 32, .75); }
.btn--max { box-shadow: 0 6px 24px rgba(99, 102, 241, .5); }
.tab.is-active { box-shadow: 0 4px 20px rgba(255, 176, 32, .55); }
.chip.is-active { box-shadow: 0 0 14px rgba(255, 176, 32, .45); }
.service { border-top: 3px solid var(--accent); box-shadow: 0 -6px 20px -10px rgba(255, 176, 32, .8); }
.reviews__score b { text-shadow: 0 0 22px rgba(70, 201, 122, .7); }
.contacts { background: linear-gradient(180deg, rgba(255, 176, 32, .07), transparent 60%), var(--surface); border-color: rgba(255, 176, 32, .4); }
.call-fab { box-shadow: 0 6px 26px rgba(255, 176, 32, .7); }
.logo__eq i { box-shadow: 0 0 8px rgba(255, 176, 32, .8); }

/* На сенсорных экранах — кнопки фильтров под палец */
@media (pointer: coarse) {
  .chip, .tab { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo__eq i { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header__call span { display: none; }
  .header__call { min-width: 44px; min-height: 44px; padding: 10px 12px; }
  .header__max { margin-left: auto; min-width: 44px; min-height: 44px; padding: 10px 12px; }
  .header__max span { display: none; }
  .header__max:not([hidden]) + .header__call { margin-left: 0; }
  .header__max[hidden] + .header__call { margin-left: auto; }
  .directions__grid, .services__grid, .contacts__grid, .reviews { grid-template-columns: 1fr; }
  .directions__grid { gap: 12px; }
  .directions__grid > :nth-child(2) { grid-column: auto; aspect-ratio: 16 / 7; }
  .direction { aspect-ratio: 16 / 7; }
  .call-fab { display: grid; }
  .hero { background:
    linear-gradient(180deg, rgba(27,31,39,.5) 0%, rgba(27,31,39,.9) 70%),
    url("images/hero-960.jpg") center / cover no-repeat; }
}
@media (max-width: 520px) {
  .hero__inner { padding-block: 40px 36px; }
  .hero__actions .btn { flex: 1; }
  .facts { gap: 12px 24px; }
  .facts b { font-size: 1.2rem; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .logo { font-size: .95rem; white-space: nowrap; }
  .header__row { gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px 12px 12px; }
  .card__name { font-size: .9rem; }
  .card__price { font-size: 1.1rem; }
  .card__icon svg { width: 40px; height: 40px; }
  .card--more { grid-column: 1 / -1; padding: 18px; }
}

/* Заметная ссылка на мамин сайт в подвале */
.footer .footer__partner {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 44px; margin-block: 0;
  background: #e32b2b; color: #fff; border-radius: 10px; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 18px rgba(227, 43, 43, .4); transition: transform .15s, box-shadow .15s;
}
.footer__partner-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: #fff; color: #e32b2b; font-size: .75rem; font-weight: 900; flex: none; }
.footer .footer__partner b { transition: transform .15s; }
.footer .footer__partner:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(227, 43, 43, .55); }
.footer .footer__partner:hover b { transform: translateX(3px); }
.footer__row { align-items: center; }
@media (max-width: 860px) { .footer { padding-bottom: 96px; } }

/* Поделиться ссылкой на товар */
.modal__share { margin-top: 10px; }
.share__tip { margin: 8px 0 0; font-size: 14px; color: var(--muted, #9aa3b2); word-break: break-all; }

/* ===== Анимации ===== */
/* Первый экран: текст и кнопки выезжают по очереди при открытии сайта */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__inner > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__inner > :nth-child(2) { animation-delay: .1s; }
.hero__inner > :nth-child(3) { animation-delay: .2s; }
.hero__inner > :nth-child(4) { animation-delay: .3s; }
.hero__inner > :nth-child(5) { animation-delay: .4s; }

/* Карточки каталога появляются по очереди после фильтра и поиска */
.grid > .card { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.grid > .card:nth-child(2) { animation-delay: .04s; } .grid > .card:nth-child(3) { animation-delay: .08s; }
.grid > .card:nth-child(4) { animation-delay: .12s; } .grid > .card:nth-child(5) { animation-delay: .16s; }
.grid > .card:nth-child(6) { animation-delay: .2s; } .grid > .card:nth-child(n+7) { animation-delay: .24s; }

/* Блоки ниже — плавно при прокрутке */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__inner > *, .grid > .card { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Правовая строка в подвале */
.footer__legal { margin-top: 16px; margin-bottom: 0; font-size: .78rem; }
.footer .footer__legal a { display: inline; padding: 0; margin: 0; text-decoration: underline; }

/* TEYES под заказ: срок и варианты (экран, память) */
.badge--order { color: var(--accent); }
.variants { margin: 16px 0 6px; }
.variants h3 { margin: 0 0 8px; font-size: 1rem; }
.variants__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.variants__table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.variants__table td:last-child { text-align: right; font-weight: 700; color: var(--accent); white-space: nowrap; padding-left: 12px; }
.variants__memo { margin: 10px 0 0; font-size: .875rem; color: var(--muted); }

/* Выбор марки и модели в каталоге */
.chip--select { max-width: 100%; padding-right: 8px; background: var(--surface); }
.chip--select option { background: var(--surface); color: var(--text); }
.chip.chip--select.is-active { background: var(--surface); }
.empty-tip { display: block; margin-top: 10px; color: var(--text); }

/* Комплект к магнитоле в окне товара */
.kit { margin: 22px 0 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.kit h3 { margin: 0 0 12px; font-size: 1.05rem; }
.kit h4 { margin: 14px 0 6px; font-size: .95rem; color: var(--muted); }
.kit__selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kit__selects select { width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.kit__selects select:disabled { opacity: .55; }
.kit__item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 0; font: inherit; font-size: .95rem; text-align: left; color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.kit__item:hover span { color: var(--accent); }
.kit__item b { flex: none; color: var(--accent); }
.kit__item--static { margin-top: 10px; cursor: default; }
.kit__item--static:hover span { color: inherit; }
.kit__all { padding: 10px 0 2px; font: inherit; font-size: .92rem; font-weight: 700; color: var(--accent); background: none; border: 0; cursor: pointer; }
.kit__total { margin: 14px 0 6px; font-size: 1.05rem; }
.kit__total b { color: var(--accent); }
.kit__hint { margin: 10px 0 0; font-size: .875rem; color: var(--muted); }

/* Страницы для поисковиков */
.seo-main { padding-block: 22px 40px; }
.seo-crumbs { margin-bottom: 14px; font-size: .88rem; color: var(--muted); }
.seo-crumbs a { color: var(--muted); }
.seo-crumbs span { margin: 0 4px; }
.seo-main h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.seo-intro { max-width: 760px; font-size: 1.05rem; color: var(--muted); }
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.seo-h2 { margin: 22px 0 10px; font-size: 1.15rem; }
.seo-chips a { display: inline-flex; align-items: center; text-decoration: none; }
.seo-chips small { margin-left: 5px; color: var(--muted); }
.seo-card { display: block; color: inherit; text-decoration: none; }
.seo-more { margin: 24px 0 8px; text-align: center; }
.seo-note { margin: 22px 0; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); color: var(--text); font-size: .92rem; }
.seo-others { margin-top: 22px; }
.seo-others h2 { font-size: 1.05rem; }
.seo-others__list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.seo-others__list a { color: var(--accent); font-weight: 600; text-decoration: none; }
.seo-others__list a:hover { text-decoration: underline; }
.seo-prices { width: 100%; max-width: 620px; border-collapse: collapse; }
.seo-prices td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.seo-prices td:last-child { padding-left: 12px; text-align: right; font-weight: 700; color: var(--accent); white-space: nowrap; }
.seo-links { padding: 28px 0 34px; background: var(--surface); color: var(--muted); }
.seo-links h2 { margin: 0 0 10px; font-size: 1.05rem; color: var(--text); }
.seo-links h2 + div { margin-bottom: 18px; }
.seo-links a { display: inline-block; margin: 0 14px 8px 0; font-size: .92rem; color: var(--text); text-decoration: none; }
.seo-links a:hover { color: var(--accent); }

/* Длинные надписи на кнопках переносятся и не раздвигают узкий экран */
.catalog__count .btn, .seo-more .btn, .seo-cta .btn { max-width: 100%; white-space: normal; text-align: center; }
.ask__tip { word-break: normal; overflow-wrap: anywhere; }

/* Телефон: до первого товара короче (проверка 12.11.2026, П11) */
@media (max-width: 520px) {
  .hero__inner { padding-block: 26px 22px; }
  .hero__sub { font-size: 1rem; margin-bottom: 16px; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero__actions .btn--big { padding: 12px 8px; font-size: .95rem; }
  .facts { flex-wrap: nowrap; overflow-x: auto; gap: 20px; margin-top: 18px; padding-bottom: 4px; scrollbar-width: none; }
  .facts::-webkit-scrollbar { display: none; }
  .facts li { flex: none; }
  .directions { padding-block: 18px 2px; }
  .directions__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .directions__grid > :nth-child(1) { grid-column: span 2; }
  .direction, .directions__grid > :nth-child(2) { aspect-ratio: 16 / 9; }
  .directions__grid > :nth-child(1) { aspect-ratio: 16 / 7; }
  .direction__body { padding: 24px 10px 8px; }
  .direction__title { font-size: .95rem; line-height: 1.2; }
  .direction__text { display: none; }
  #carChips, #condChips, #modelChips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  #carChips::-webkit-scrollbar, #condChips::-webkit-scrollbar { display: none; }
  #carChips > *, #condChips > *, #modelChips > * { flex: none; }
}
