/* EngineXpress. Дизайн-система 3: широкая сетка и спокойная типографика.
   Подключается последним на всех страницах.

   Сетка
   - Контент 1328 px при экране 1440 px: поля по 56 px, максимум 1568 px на больших мониторах.
   - Между карточками 16 px. Между блоками 128 px (по 64 px сверху и снизу).
   - Карточки крупные: в два ряда по половине ширины, четверти или трети, высота 520 до 640 px.
   - Скругление карточек 12 px, кнопок 8 px.

   Типографика
   - Заголовки средней жирности (500) с плотным межбуквенным расстоянием.
   - Под заголовком крупный серый подзаголовок 22 px.
   - Надзаголовок моноширинным шрифтом прописными: → РАЗДЕЛ.
   - Цифры в плитках крупные и тонкие (400). */

:root {
  --gutter: 56px;
  --container: 1680px;
  --ink: #171717;
  --ink-2: rgba(23, 23, 23, .64);
  --ink-3: rgba(23, 23, 23, .46);
  --line: rgba(23, 23, 23, .1);
  --line-strong: rgba(23, 23, 23, .28);
  --mute: #737373;
  --t-blue: #d7e6fa;
  --t-faint: #eff6ff;
  --t-faint-line: #dfeafb;
  --t-grey: #f3f3f3;
  --t-dark: #171717;
  --t-black: #0d0d0d;
  --r-card: 12px;
  --r-btn: 8px;
  --gap: 16px;
  --sec-y: 64px;
  --head-gap: 56px;
}
@media (max-width: 1280px) { :root { --gutter: 40px; } }
@media (max-width: 860px) { :root { --gutter: 20px; --sec-y: 44px; --head-gap: 32px; } }
@media (max-width: 480px) { :root { --gutter: 16px; } }

/* ---------- Сетка: шире на компьютере ---------- */
.wrap, .ex-header__in, .ex-topbar__in { max-width: var(--container); padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.ex-footer__in { max-width: var(--container); padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Типографика ---------- */
.hero__title { font-size: 60px !important; line-height: 62px !important; font-weight: 500 !important; letter-spacing: -.035em !important; }
.sec__title, .finder__title, .warranty__title, .cat__title, .doc h1, .page-title { font-size: 44px !important; line-height: 48px !important; font-weight: 500 !important; letter-spacing: -.03em !important; text-wrap: balance; }
.cat__title, .doc h1, .page-title { font-size: 40px !important; line-height: 44px !important; }
.pinfo__title { font-weight: 500; letter-spacing: -.02em; }
.psec__title, .cat__seo h2, .doc h2, .pabout__head h2 { font-weight: 500 !important; letter-spacing: -.015em; }
.sec__lead { margin-top: 16px !important; max-width: 680px; font-size: 22px !important; line-height: 30px !important; color: var(--mute); }
.sec__lead a { color: var(--ink); text-underline-offset: 4px; }

.eyebrow { margin: 0 0 28px; font: 500 14px/20px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.ds-head { max-width: 820px; margin-bottom: var(--head-gap); }
.ds-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; }
.ds-head--row > div { max-width: 820px; }

/* Кнопки */
.ex-btn { border-radius: var(--r-btn); font-weight: 600; }
.ex-btn--lg { height: 52px; padding: 0 24px; font-size: 16px; }

/* Общий ритм блоков */
.sec { padding: var(--sec-y) 0; }

/* ---------- Первый экран ---------- */
.hero3 { padding-top: 48px; }
.hero3__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.hero3__lead { max-width: 600px; font-size: 22px; line-height: 30px; color: var(--mute); }
.hero3__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero3__call { display: inline-flex; flex-direction: column; margin-left: 12px; color: var(--ink); font: 600 16px/20px var(--font-sans); text-decoration: none; white-space: nowrap; }
.hero3__call span { font-weight: 400; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.hero3__call:hover { color: var(--brand); }
.hero3__band { border-radius: var(--r-card); }
.hero3__band:not(.hs--photo) { aspect-ratio: 12 / 5; }
.hero3 .hero__brands { padding-top: 48px; padding-bottom: 16px; }

/* ---------- Подбор ---------- */
.finder { padding-top: 48px; }
.finder__box { padding: 56px; border-radius: var(--r-card); background: var(--t-black); }
.finder__top { margin-bottom: 40px; }
.finder__title { font-size: 40px !important; line-height: 44px !important; }
.finder__lead { margin-top: 16px; max-width: 640px; font-size: 20px !important; line-height: 28px !important; color: rgba(255, 255, 255, .58); }
.finder .eyebrow { margin-bottom: 20px; color: rgba(255, 255, 255, .5); }
.finder__field .ex-input { border-radius: var(--r-btn); }

/* ---------- Наличие ---------- */
.stock { padding-top: 112px; }
.stock__grid { gap: 40px var(--gap); }
.stock__all { flex: none; }

/* ---------- Плитки с цифрами ---------- */
.facts3__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 520px; padding: 40px; border-radius: var(--r-card); color: var(--ink); text-decoration: none; overflow: hidden; transition: background-color .4s var(--ease), transform .5s var(--ease); }
.tile--half { grid-column: span 2; }
.tile--blue { background: var(--t-blue); }
.tile--faint { background: var(--t-faint); }
.tile--grey { background: var(--t-grey); }
.tile--dark { background: var(--t-dark); color: #fff; }
.tile__num { font-size: 112px; line-height: .95; font-weight: 400; letter-spacing: -.055em; white-space: nowrap; }
.tile__num--sm { font-size: 72px; }
.tile__text { max-width: 480px; font-size: 22px; line-height: 30px; color: var(--ink-2); }
.tile--dark .tile__text { color: rgba(255, 255, 255, .62); }
.tile__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font: 500 16px/20px var(--font-sans); }
.tile__more .ex-ic, .scard__more .ex-ic { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.tile--object { display: grid; place-items: center; justify-content: stretch; padding: 24px; }
.tile--object .obj { max-height: 320px; }
.tile--object .obj--empty { min-height: 280px; }

/* ---------- Сравнение ---------- */
.cmp3__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cmp3__card { display: flex; flex-direction: column; gap: 40px; min-height: 560px; padding: 40px; border-radius: var(--r-card); background: var(--t-grey); transition: transform .5s var(--ease); }
.cmp3__card--ours { background: var(--brand); color: #fff; }
.cmp3__tag { font: 500 13px/18px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.cmp3__card--ours .cmp3__tag { color: rgba(255, 255, 255, .6); }
.cmp3__name { margin-top: 12px; font-size: 32px; line-height: 36px; font-weight: 500; letter-spacing: -.025em; }
.cmp3__list { display: grid; gap: 0; margin: 0; }
.cmp3__list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.cmp3__card--ours .cmp3__list > div { border-top-color: rgba(255, 255, 255, .16); }
.cmp3__list dt { font: 500 12px/16px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.cmp3__card--ours .cmp3__list dt { color: rgba(255, 255, 255, .55); }
.cmp3__list dd { margin: 6px 0 0; font-size: 19px; line-height: 26px; font-weight: 500; }
.cmp3__btn { align-self: flex-start; margin-top: auto; }

/* ---------- Гарантия: тёмная полоса ---------- */
.warranty3 { padding: 128px 0; background: var(--t-black); color: #fff; }
.warranty3 .eyebrow { color: rgba(255, 255, 255, .5); }
.warranty3__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.warranty3 .sec__lead { color: rgba(255, 255, 255, .6); }
.warranty3__text .ex-btn { margin-top: 40px; }
.warranty3__panel { display: grid; grid-template-rows: 1fr auto; gap: 24px; min-height: 520px; padding: 40px; border-radius: var(--r-card); background: var(--t-dark); }
.warranty3__obj { display: grid; place-items: center; }
.warranty3__obj .obj { max-height: 260px; }
.warranty3__obj .obj--empty { color: #fff; min-height: 220px; }
.warranty3__obj .obj__brief { background: rgba(255, 255, 255, .92); }
.warranty3 .odo { font-size: clamp(56px, 6.4vw, 104px); }
.warranty3 .odo__d { border-radius: 8px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.warranty3 .odo__d::after { background: linear-gradient(var(--t-dark) 0%, transparent 22%, transparent 78%, var(--t-dark) 100%); }
.warranty3 .odo__unit { color: rgba(255, 255, 255, .55); }
.warranty3__or { margin-top: 12px; color: rgba(255, 255, 255, .55); font-size: 16px; line-height: 22px; }
.warranty3__terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 72px 0 0; }
.warranty3__terms > div { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.warranty3__terms dt { font: 500 13px/18px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.warranty3__terms dd { margin: 12px 0 0; max-width: 400px; font-size: 20px; line-height: 28px; color: rgba(255, 255, 255, .86); }

/* ---------- Качество: карточки 2 x 2 ---------- */
.quality__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.qcard { display: flex; flex-direction: column; gap: 32px; min-height: 620px; padding: 40px; border-radius: var(--r-card); overflow: hidden; transition: transform .5s var(--ease); }
.qcard--faint { background: var(--t-faint); }
.qcard--grey { background: var(--t-grey); }
.qcard--line { box-shadow: inset 0 0 0 1px var(--t-faint-line); }
.qcard__num { font: 500 14px/20px var(--font-mono); color: var(--mute); }
.qcard__title { margin-top: 16px; font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -.02em; }
.qcard__lead { margin-top: 12px; max-width: 540px; font-size: 22px; line-height: 30px; color: var(--mute); }
.qcard__vis { flex: 1; display: grid; place-items: center; }
.qcard__vis .obj { max-height: 340px; }
.qcard__vis .obj--empty { min-height: 280px; }
.qcard__mfr { margin: auto 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qcard__mfr li { display: grid; place-items: center; height: 72px; padding: 0 8px; border-radius: var(--r-btn); background: #fff; font-size: 15px; line-height: 18px; font-weight: 500; text-align: center; transition: transform .4s var(--ease), color .3s var(--ease); }

/* ---------- Шаги ---------- */
.steps3 { padding: var(--sec-y) 0; }
.steps3__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.steps3__list li { padding-top: 24px; border-top: 1px solid var(--line-strong); transition: border-color .4s var(--ease); }
.steps3__num { font: 500 14px/20px var(--font-mono); color: var(--mute); transition: color .4s var(--ease); }
.steps3__list h3 { margin-top: 48px; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -.015em; }
.steps3__list p { margin-top: 10px; max-width: 300px; font-size: 18px; line-height: 26px; color: var(--mute); }

/* ---------- Сервис ---------- */
.svc3__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.scard { display: flex; flex-direction: column; min-height: 560px; padding: 32px; border-radius: var(--r-card); background: rgba(229, 241, 255, .6); overflow: hidden; transition: transform .5s var(--ease), background-color .4s var(--ease); }
.scard__title { font-size: 22px; line-height: 26px; font-weight: 500; letter-spacing: -.015em; }
.scard__text { margin-top: 10px; font-size: 18px; line-height: 25px; color: var(--mute); }
.scard__vis { flex: 1; display: grid; place-items: center; padding: 24px 0; }
.scard__vis .obj { max-height: 220px; }
.scard__vis .obj--empty { min-height: 200px; }
.scard__more { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: 500 16px/20px var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }

/* ---------- О компании ---------- */
.about3__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.about3__big { font-size: 26px; line-height: 34px; letter-spacing: -.01em; color: var(--ink); }
.about3__text p + p { margin-top: 20px; }
.about3__text p:not(.about3__big) { font-size: 18px; line-height: 28px; color: var(--ink-2); }
.about3__photo { margin-top: 64px; border-radius: var(--r-card); }

/* ---------- Вопросы ---------- */
.faq3 { background: transparent; }
.faq3__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 64px; align-items: start; }
.faq3 .ex-faq { max-width: none; border-top-color: var(--line-strong); }
.faq3 .ex-faq summary { padding: 24px 0; font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -.01em; }
.faq3 .ex-faq summary .ex-ic { color: var(--ink); }
.faq3 .ex-faq p { padding-bottom: 24px; font-size: 18px; line-height: 28px; color: var(--mute); }

/* ---------- Финальная форма ---------- */
.final3 { padding: var(--sec-y) 0 128px; }
.final3__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; padding: 56px; border-radius: var(--r-card); background: var(--t-blue); }
.final3__title { font-size: 44px; line-height: 48px; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.final3__lead { margin-top: 16px; max-width: 560px; font-size: 22px; line-height: 30px; color: var(--ink-2); }
.final3__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 48px 0 0; padding: 0; list-style: none; }
.final3__facts li { padding-top: 16px; border-top: 1px solid rgba(23, 23, 23, .16); }
.final3__facts b { display: block; font-size: 20px; line-height: 26px; font-weight: 500; }
.final3__facts span { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.final3 .ex-lead__form { padding: 32px; border-radius: var(--r-card); }
.final3 .final__done { border-radius: var(--r-card); }

/* ---------- Наведение ---------- */
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-4px); }
  .tile--blue:hover { background: #cddff7; }
  .tile--grey:hover, .cmp3__card:not(.cmp3__card--ours):hover { background: #ececee; }
  .tile--dark:hover { background: #222; }
  .tile:hover .tile__more .ex-ic, .scard:hover .scard__more .ex-ic { transform: translateX(5px); }
  .tile--object:hover .obj, .qcard:hover .obj, .scard:hover .obj { transform: scale(1.05) rotate(-1.5deg); }
  .cmp3__card:hover, .qcard:hover, .scard:hover { transform: translateY(-4px); }
  .scard:hover { background: rgba(219, 234, 254, .9); }
  .qcard__mfr li:hover { transform: scale(1.04); color: var(--brand); }
  .steps3__list li:hover { border-top-color: var(--brand); }
  .steps3__list li:hover .steps3__num { color: var(--brand); }
}

/* ---------- Появление блоков при прокрутке ---------- */
.rise-on .rise { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.rise-on .rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise-on .rise { opacity: 1; transform: none; transition: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .facts3__grid, .svc3__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 420px; }
  .tile__num { font-size: 88px; }
  .tile__num--sm { font-size: 64px; }
  .qcard { min-height: 540px; }
  .qcard__mfr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp3__card { padding: 32px; }
  .final3__box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hero__title { font-size: 40px !important; line-height: 42px !important; }
  .sec__title, .finder__title, .warranty__title, .cat__title, .doc h1, .page-title, .final3__title { font-size: 30px !important; line-height: 34px !important; }
  .sec__lead, .hero3__lead, .finder__lead, .tile__text, .qcard__lead, .final3__lead, .about3__big { font-size: 18px !important; line-height: 26px !important; }
  .eyebrow { margin-bottom: 16px; font-size: 12px; line-height: 16px; }
  .ds-head--row { flex-direction: column; align-items: flex-start; }
  .hero3 { padding-top: 24px; }
  .hero3__top { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
  .hero3__actions .ex-btn { flex: 1 1 auto; }
  .hero3__call { margin: 8px 0 0; }
  .hero3__band { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .hero3__band:not(.hs--photo) { aspect-ratio: 4 / 3; }
  .finder { padding-top: 32px; }
  .finder__box { padding: 28px 20px; }
  .stock { padding-top: 64px; }
  .stock__grid { gap: 28px 12px; }
  .cmp3__grid, .quality__grid, .warranty3__grid, .warranty3__terms, .about3__grid, .faq3__grid { grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
  .about3__grid, .faq3__grid { gap: 24px; }
  .cmp3__card { min-height: 0; padding: 28px 24px; }
  .warranty3 { padding: 72px 0; }
  .warranty3__grid { gap: 32px; }
  .warranty3__panel { min-height: 0; padding: 28px 20px; }
  .warranty3__terms { margin-top: 40px; }
  .warranty3__terms dd { font-size: 17px; line-height: 25px; }
  .qcard { min-height: 0; padding: 28px 24px; }
  .qcard__title { font-size: 24px; line-height: 28px; }
  .qcard__vis .obj--empty { min-height: 180px; }
  .steps3__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps3__list h3 { margin-top: 20px; font-size: 20px; line-height: 26px; }
  .steps3__list p { font-size: 16px; line-height: 23px; }
  .about3__photo { margin-top: 32px; }
  .faq3 .ex-faq summary { font-size: 17px; line-height: 23px; padding: 18px 0; }
  .faq3 .ex-faq p { font-size: 16px; line-height: 25px; }
  .final3 { padding-bottom: 64px; }
  .final3__box { margin: 0 calc(-1 * var(--gutter) + 8px); padding: 28px 20px; gap: 32px; }
  .final3__facts { margin-top: 28px; }
  .final3 .ex-lead__form { padding: 20px; }
}
@media (max-width: 640px) {
  .facts3__grid, .svc3__grid, .steps3__list { grid-template-columns: minmax(0, 1fr); }
  .tile--half { grid-column: auto; }
  .tile { min-height: 0; padding: 28px 24px; gap: 24px; }
  .tile__num { font-size: 64px; }
  .tile__num--sm { font-size: 56px; }
  .tile--object { min-height: 240px; }
  .tile--object .obj--empty { min-height: 200px; }
  .scard { min-height: 0; padding: 26px 22px; }
  .scard__vis .obj--empty { min-height: 150px; }
  .final3__facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ---------- Каталог и товар на широкой сетке ---------- */
.cat__grid, .prel__grid { gap: 40px var(--gap); }
@media (min-width: 1360px) { .cat__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .prod__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 340px; gap: 40px; } }

/* =====================================================================
   Скругления по системе референса.
   Шкала из четырёх значений, больше 12 px не бывает:
     12 px  большие карточки и панели (шире 400 px): плитки, сравнение, качество, баннер, формы
      8 px  узкие карточки и всплывающие списки: сервис, превью товара, меню, чат-сообщения
      6 px  элементы управления: кнопки, поля, поиск, плашки, переключатели
      4 px  то, что лежит внутри элемента управления или мелкие метки: пункты списка, бейджи, цифры счётчика
   Приёмы:
   1. Вложенный элемент скруглён меньше родителя (внутренний = внешний минус отступ, минимум 4 px).
   2. Картинка внутри карточки не скругляется сама: она прижата к краям карточки, а угол обрезает карточка.
   3. Детали, стоящие рядом (кнопка у поля, плашка у панели), не склеиваются, а стоят с зазором и у каждой свой угол.
   4. Всё, что во всю ширину экрана, без скругления. Капсул нет: метки и кнопки прямоугольные с мягким углом.
   ===================================================================== */
:root {
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 12px;
  --r-card: 12px; --r-btn: 6px;
}

/* 12: крупные карточки и панели */
.hs, .hero3__band, .finder__box, .tile, .cmp3__card, .qcard, .warranty3__panel, .final3__box, .about3__photo,
.ex-lead, .lead-block, .cat__vin, .cat__empty, .buy__box, .buy__deliv, .gal__stage, .info__hero, .info__map, .modal__box { border-radius: var(--r-lg) !important; }

/* 8: узкие карточки, превью, вложенные панели и всплывающие окна */
.scard, .pcard__media, .ex-lead__form, .final3 .ex-lead__form, .final__done, .final3 .final__done, .lead-block__done, .info__card, .fmatch,
.dd__list, .ex-search__list, .chat__teaser-body, .cookie, .ptable-wrap, .psec__note, .ex-compat, .modal__item, .cmsg, .cmsg__img, .chat__drop, .ph, .ex-card, .ex-brand { border-radius: var(--r-md) !important; }

/* 6: кнопки, поля и плашки */
.ex-btn, .ex-btn--sm, .ex-btn--lg, .ex-input, .ex-search__bar, .finder__tabs, .finder__field .ex-input, .hact__a, .pvar__tile, .buy__cheaper,
.cat__next-a, .pager__a, .ex-chip, .ex-msg, .tree__a, .tree__b, .tree__m, .info__nav a, .mega__sections a, .chat__q, .chat__ch, .chat__send,
.chat__input textarea, .chat__attach, .chat__phone input, .chat__phone button, .zoom__close, .burger, .cat__side-close, .modal__close,
.qcard__mfr li, .gal__thumb, .gal--thumbs .gal__thumb, .ex-sugg, .form__error, .ph__brief, .obj__brief, .ex-mbar a, .skip, .cookie__ok { border-radius: var(--r-sm) !important; }

/* 4: внутри элементов управления и мелкие метки */
.finder__ink, .finder__tabs button, .dd__opt, .site-head .hsearch__go, .ex-search__quick button, .tag, .ex-badge, .stock__all span,
.odo__d, .warranty3 .odo__d, .gal__num, .poems span, .ex-sugg__img, .ex-check input, .chat__badge, .chat__dots, .doc ol.info__steps li::before { border-radius: var(--r-xs) !important; }

/* Чат: панель прижата к низу экрана, поэтому скруглены только верхние углы */
.chat__panel { border-radius: var(--r-lg) var(--r-lg) 0 0 !important; }
@media (max-width: 860px) { .modal__box { border-radius: var(--r-lg) var(--r-lg) 0 0 !important; } }

/* Во всю ширину экрана без скругления */
.warranty3, .ex-footer { border-radius: 0; }
@media (max-width: 860px) { .hero3__band { border-radius: 0 !important; } }

/* Приём 2: изображение прижато к краям карточки, угол обрезает сама карточка */
.qcard { padding-bottom: 0; }
.qcard__vis { position: relative; flex: 1 0 300px; margin: 0 -40px; background: rgba(255, 255, 255, .55); align-items: end; overflow: hidden; }
.qcard--grey .qcard__vis { background: rgba(255, 255, 255, .6); }
.qcard__vis .obj { max-height: 320px; margin-bottom: 0; }
.qcard__vis .obj--empty { min-height: 300px; align-self: stretch; }
.qcard--line { padding-bottom: 40px; }
.scard { padding-bottom: 0; }
.scard__more { margin-top: 18px; padding-top: 0; border-top: 0; justify-content: flex-start; gap: 8px; color: var(--brand); }
.scard__vis { flex: 1 0 240px; margin: 28px -32px 0; padding: 0; background: rgba(255, 255, 255, .6); overflow: hidden; }
.scard__vis .obj--empty { align-self: stretch; }
.obj__brief { left: 12px; right: 12px; bottom: 12px; }
@media (max-width: 860px) {
  .qcard__vis { flex-basis: 220px; margin: 0 -24px; }
  .qcard__vis .obj--empty { min-height: 220px; }
}
@media (max-width: 640px) {
  .scard { padding-bottom: 0; }
  .scard__vis { flex-basis: 180px; margin: 22px -22px 0; }
}
/* панели с предметами в сервисных карточках начинаются на одной высоте */
@media (min-width: 1081px) { .scard > div:first-child { min-height: 176px; } }

/* ---------- Первый экран: три фото в ряд, без переключения и анимаций ---------- */
.hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.hgrid__item { position: relative; aspect-ratio: var(--hg-ratio, 1 / 1); border-radius: var(--r-lg); background: var(--t-grey); overflow: hidden; }
.hgrid__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hgrid__item .ph__brief { left: 12px; right: 12px; bottom: 12px; }
.hero3__top { align-items: start; }
.hero3 .hero__brands { padding-top: 40px; }
/* на телефоне фото листаются пальцем по горизонтали, следующее видно краем */
@media (max-width: 860px) {
  .hgrid { display: flex; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .hgrid::-webkit-scrollbar { display: none; }
  .hgrid__item { flex: 0 0 82%; scroll-snap-align: start; }
}

/* =====================================================================
   Шрифты: Onest для текста, описаний и мелких подписей, Unbounded для заголовков.
   Оба лежат на сайте (latin + кириллица, переменная жирность), внешние запросы не нужны.
   Unbounded широкий, поэтому заголовки на нём меньше по кеглю, чем были на Helvetica.
   ===================================================================== */

body { font-family: var(--font-sans); }

/* Заголовки на Unbounded */
.hero__title, .sec__title, .finder__title, .warranty__title, .cat__title, .doc h1, .doc h2, .page-title, .pinfo__title, .psec__title, .psec2__title,
.final3__title, .ex-lead__title, .modal__title, .tile__num, .cmp3__name, .qcard__title, .scard__title, .steps3__list h3, .pterm__big,
.finder__done-t, .cat__vin h2, .cat__empty h2, .nf h1, .info__hero b, .about3__big {
  font-family: var(--font-head) !important;
}
.hero__title { font-size: 46px !important; line-height: 54px !important; font-weight: 500 !important; letter-spacing: -.025em !important; }
.sec__title, .finder__title, .warranty__title { font-size: 34px !important; line-height: 42px !important; font-weight: 500 !important; letter-spacing: -.02em !important; }
.cat__title, .doc h1, .page-title { font-size: 30px !important; line-height: 38px !important; font-weight: 500 !important; letter-spacing: -.02em !important; }
.finder__title, .final3__title { font-size: 30px !important; line-height: 38px !important; letter-spacing: -.02em; font-weight: 500; }
.pinfo__title { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.015em; }
.psec__title, .psec2__title, .doc h2 { font-size: 22px !important; line-height: 30px !important; font-weight: 500 !important; letter-spacing: -.015em; }
.ex-lead__title { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.015em; }
.tile__num { font-size: 76px; line-height: 1; font-weight: 300; letter-spacing: -.04em; }
.tile__num--sm { font-size: 52px; }
.cmp3__name { font-size: 24px; line-height: 30px; letter-spacing: -.02em; }
.qcard__title { font-size: 22px; line-height: 28px; letter-spacing: -.015em; }
.scard__title, .steps3__list h3 { font-size: 18px; line-height: 24px; letter-spacing: -.01em; }
.pterm__big { font-size: 20px; line-height: 26px; letter-spacing: -.015em; }
.about3__big { font-size: 22px; line-height: 32px; font-weight: 400; letter-spacing: -.01em; }
.finder__done-t { font-weight: 500; }

/* Текст на Onest: обычная жирность, кнопки и навигация средняя */
.ex-btn { font-weight: 600; letter-spacing: 0; }
.ex-price { font-weight: 700; }

@media (max-width: 1080px) {
  .tile__num { font-size: 64px; }
}
@media (max-width: 860px) {
  .hero__title { font-size: 32px !important; line-height: 40px !important; }
  .sec__title, .finder__title, .warranty__title, .cat__title, .doc h1, .page-title, .final3__title { font-size: 24px !important; line-height: 32px !important; }
  .pinfo__title { font-size: 20px; line-height: 28px; }
  .psec__title, .psec2__title, .doc h2 { font-size: 19px !important; line-height: 26px !important; }
  .about3__big { font-size: 18px !important; line-height: 27px !important; }
}
@media (max-width: 640px) {
  .tile__num { font-size: 52px; }
  .tile__num--sm { font-size: 44px; }
}
/* крупные цифры в плитках: Unbounded широкий, «20 000 км» должно помещаться в одну строку */
.tile__num { font-size: 64px; }
.tile__num--sm { font-size: 48px; }
@media (max-width: 1080px) { .tile__num { font-size: 56px; } }
@media (max-width: 640px) { .tile__num { font-size: 40px; } .tile__num--sm { font-size: 40px; } }

/* =====================================================================
   Роли шрифтов. На сайте только Onest и Unbounded.
   Unbounded: заголовки, крупные цифры, номера шагов, цены, коды моторов на превью.
   Onest: текст, кнопки, поля, меню, метки. Мелкие подписи прописными: Onest 600 с разрядкой.
   Кнопки на Onest: Unbounded слишком широкий для коротких надписей на кнопках и плохо читается мелко.
   ===================================================================== */
.eyebrow, .cmp3__tag, .cmp3__list dt, .warranty3__terms dt, .pspec2__label, .ptable th, .pterm__title {
  font-family: var(--font-sans) !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase;
}
.eyebrow { font-size: 13px; line-height: 18px; }
.qcard__num, .steps3__num, .psec2__num, .ex-step::before {
  font-family: var(--font-head) !important; font-weight: 500 !important; font-size: 13px !important; line-height: 18px !important; letter-spacing: 0 !important;
}
.odo { font-family: var(--font-head) !important; font-weight: 400 !important; letter-spacing: -.02em; }
.odo__unit { font-family: var(--font-sans) !important; }
.ex-input--vin { font-family: var(--font-sans) !important; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.code, .ex-code, .ex-card__oem { font-family: var(--font-sans) !important; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ex-price { font-family: var(--font-head) !important; font-weight: 500 !important; letter-spacing: -.02em !important; }
.pcard .ex-price { font-size: 18px !important; line-height: 24px !important; }
.buy__price .ex-price--lg { font-size: 30px !important; line-height: 36px !important; }
.pvar__tile small, .buy__cheaper b { font-family: var(--font-sans); }
.pcard__code, .gal__code { font-family: var(--font-head) !important; font-weight: 500 !important; letter-spacing: -.02em !important; }
.pcard__code { font-size: 24px; }
.ex-btn, .cookie__ok, .chat__send, .a-btn, button, input, select, textarea { font-family: var(--font-sans); }
.ex-btn { font-weight: 600; }
.tag, .ex-badge { font-family: var(--font-sans) !important; font-weight: 600 !important; }
.ex-footer h4 { font-family: var(--font-sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; line-height: 16px; }
@media (max-width: 860px) { .pcard__code { font-size: 18px; } .buy__price .ex-price--lg { font-size: 26px !important; line-height: 32px !important; } }

/* =====================================================================
   Предметы и фото: единый размер и спокойное поведение.
   - Фон карточки один, без светлой подложки под предметом.
   - Предмет всегда по центру своей области и вписан в одну и ту же рамку, поэтому
     вытянутые (ключ, манометр) и компактные (ящик, двигатель) выглядят одного «веса».
   - Ни у предметов, ни у фото нет приближения при наведении.
   ===================================================================== */
.qcard__vis, .scard__vis { background: transparent !important; }
.qcard--grey .qcard__vis { background: transparent !important; }
.qcard { padding-bottom: 40px; }
.qcard__vis { flex: 1 0 320px; margin: 8px 0 0; align-items: center; justify-items: center; }
.qcard__vis .obj { width: auto; height: auto; max-width: 56%; max-height: 260px; margin: 0; }
.scard { padding-bottom: 32px; }
.scard__vis { flex: 1 0 220px; margin: 24px 0 0; padding: 0; align-items: center; justify-items: center; }
.scard__vis .obj { width: auto; height: auto; max-width: 72%; max-height: 150px; margin: 0; }
.tile--object .obj { width: auto; height: auto; max-width: 70%; max-height: 220px; }
.warranty3__obj .obj { width: auto; height: auto; max-width: 60%; max-height: 220px; }

/* без приближения и поворота */
.obj, .ph img, .hs__slide img, .about3__photo img { transition: none !important; }
@media (hover: hover) and (pointer: fine) {
  .tile--object:hover .obj, .qcard:hover .obj, .scard:hover .obj, .svc__card:hover .obj, .fcard--object:hover .obj,
  .ph:hover img, .hs:hover .hs__slide.is-active img, .about3__photo:hover img { transform: none !important; }
}

@media (max-width: 860px) {
  .qcard { padding-bottom: 24px; }
  .qcard__vis { flex-basis: 220px; margin: 0; }
  .qcard__vis .obj { max-height: 190px; max-width: 64%; }
}
@media (max-width: 640px) {
  .scard { padding-bottom: 22px; }
  .scard__vis { flex-basis: 170px; margin-top: 16px; }
  .scard__vis .obj { max-height: 130px; }
}

/* ---------- Вопросы: заголовок сверху, список на всю ширину ---------- */
.faq3__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: var(--head-gap); }
.faq3__head .sec__lead { margin-top: 0 !important; justify-self: end; max-width: 520px; text-align: right; }
.faq3 .ex-faq { max-width: none; }
.faq3 .ex-faq .faq__a p { max-width: 900px; }
@media (max-width: 860px) {
  .faq3__head { grid-template-columns: minmax(0, 1fr); }
  .faq3__head .sec__lead { justify-self: start; text-align: left; }
}
.faq3__head .sec__lead a { white-space: nowrap; }

/* ---------- Уведомление о файлах cookie: карточка в стиле сайта ---------- */
.cookie { left: 24px; bottom: 24px; display: block; max-width: 400px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg) !important; background: #fff; box-shadow: 0 12px 32px rgba(23, 23, 23, .12); }
.cookie__title { font: 500 15px/20px var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.cookie__text { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.cookie__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.cookie__ok { height: 40px; padding: 0 20px; font-size: 14px; }
.cookie__link { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--brand); text-decoration: none; }
.cookie__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .cookie { left: 12px; right: 12px; max-width: none; padding: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Подвал: документы и оговорка об оферте ---------- */
.ex-footer__docs { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ex-footer__docs a { color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; }
.ex-footer__docs a:hover { color: #fff; }
.ex-footer__docs + .ex-footer__legal { margin-top: 16px; padding-top: 0; border-top: 0; }
.ex-footer__note { margin-top: 12px; max-width: 900px; font-size: 12px; line-height: 18px; color: rgba(255, 255, 255, .5); }

/* ---------- Правовые документы ---------- */
.legal .doc h2 { margin-top: 36px; }
.legal .doc h3 { margin: 20px 0 8px; font: 600 17px/24px var(--font-sans); color: var(--ink); }
.legal .doc p, .legal .doc li { font-size: 16px; line-height: 26px; }
.legal__meta { margin: -8px 0 24px; font-size: 14px; line-height: 20px; color: var(--ink-3) !important; }
.legal-table { margin: 12px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.legal-table th { padding: 10px 14px; text-align: left; background: var(--bg-alt); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.legal-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.legal__index { max-width: 820px; }
.legal__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.legal__list li { padding: 0 !important; }
.legal__list li::before { display: none !important; }
.legal__list a { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink) !important; text-decoration: none; }
.legal__list a:hover { border-color: var(--brand); }
.legal__list b { display: block; font: 500 17px/24px var(--font-head); letter-spacing: -.01em; }
.legal__list span { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); }

/* текст согласия у формы: ссылки видны, но не спорят с кнопкой */
.ex-check span, .finder__agree span, .chat__agree span { font-size: 13px; line-height: 18px; }

/* ---------- Поиск в шапке: одна лупа на кнопке, длинная подсказка обрезается многоточием ---------- */
.site-head .ex-search__bar { padding-left: 16px; }
.ex-search__input { -webkit-appearance: none; appearance: none; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.ex-search__input::placeholder { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

/* ---------- Согласие у форм: спокойные ссылки без ярко-синего ---------- */
.ex-check a, .finder__agree a, .chat__agree a, .ex-check .ex-link { color: inherit !important; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: currentColor; text-underline-offset: 3px; }
.ex-check span, .chat__agree span { color: var(--ink-2); }
.finder__agree span { color: rgba(255, 255, 255, .7); }
.ex-check a:hover, .chat__agree a:hover { color: var(--brand) !important; }
.finder__agree a:hover { color: #fff !important; }
