/* То, чего не было в макете: выбор страны у телефона, ловушка для ботов,
   отправка формы, текст из редактора. Цвета и радиусы из site.css. */

/* приманка для ботов: человек её не видит и не попадает в неё табом */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* телефон: кнопка страны слева от поля */
.tel { position: relative; display: flex; gap: 0; }
.form .tel input[type="tel"] { border-top-left-radius: 0; border-bottom-left-radius: 0; flex: 1 1 auto; }
.tel__cc { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 0 10px; min-height: 46px;
  border: 2px solid var(--line2); border-right: 0; border-radius: 12px 0 0 12px; background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.tel__cc:hover { background: var(--sky); }
.tel__cc:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tel__flag { display: inline-flex; width: 21px; height: 14px; border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: 0 0 auto; }
.tel__flag svg { display: block; width: 21px; height: 14px; }
.tel__list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 250px; max-height: 280px;
  overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(11, 58, 102, .45); }
.tel__list[hidden] { display: none; }
.tel__list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  color: var(--ink); font-size: 15px; }
.tel__list li b { min-width: 44px; }
.tel__list li:hover, .tel__list li:focus { background: var(--sky); outline: 0; }
.tel__list li[aria-selected="true"] { background: var(--yellow); }
.vhero__card--dark .tel__cc { background: rgba(255, 255, 255, .95); }

/* отправка идёт */
.form button[type="submit"].is-busy { opacity: .6; cursor: progress; }

/* подвал свой контекст наложения: выпадающий список формы выше него */
.foot { z-index: 0; }

/* текст из редактора: картинки, подписи, выравнивание, таблицы */
.rg img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.rg .alignleft { float: left; margin: 4px 20px 12px 0; }
.rg .alignright { float: right; margin: 4px 0 12px 20px; }
.rg .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.rg .wp-caption { max-width: 100%; }
.rg .wp-caption-text { font-size: 14px; color: var(--mute); margin-top: 6px; }
.rg table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; display: block; overflow-x: auto; }
.rg th, .rg td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.rg ol li::marker, .rg ul li::marker { color: var(--blue); font-weight: 800; }
.rg a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 560px) {
  .rg .alignleft, .rg .alignright { float: none; margin: 0 0 12px; }
  .tel__list { min-width: 0; right: 0; }
}

@media print {
  .ccbar, .tel__list, .totop, .head__cta, .burger, .ask__form { display: none !important; }
}

/* без скрипта кнопка страны не работает: прячем, номер пишут с кодом */
.no-js .tel__cc { display: none; }
.no-js .form .tel input[type="tel"] { border-radius: 12px; }

/* Телефон: короче страницы. Длинные стопки становятся лентами и двумя колонками. */
@media (max-width: 620px) {
  /* машины на «Продукции» в две колонки */
  .mach--all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mach--all .mcard__ph { height: 120px; }
  .mach--all .mcard__spec, .mach--all .mcard__badge { display: none; }
  .mach--all .mcard__name { font-size: 16px; }
  .mach--all .mcard__kind { font-size: 11px; }

  /* на главной по четыре машины и запчасти, остальное по ссылке «Весь каталог» */
  .mach--home > :nth-child(n+5), .parts .cat__grid--demo > :nth-child(n+5) { display: none; }

  /* хроника, снимки и награды лентой с листанием пальцем */
  .tl, .gal--about, .acert { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory;
    padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .tl::before, .tl::after { display: none; }
  .tl__i { flex: 0 0 82%; min-width: 82%; width: auto; margin: 0; scroll-snap-align: start; }
  .tl__i[data-reveal], .tl__i:nth-child(even)[data-reveal] { opacity: 1; transform: none; }
  .gal--about .gal__i, .acert .acert__i { flex: 0 0 70%; min-width: 70%; scroll-snap-align: start; }

  /* новости строкой: снимок слева, дата и заголовок справа */
  .news { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ncard { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; grid-row: auto;
    align-items: start; column-gap: 12px; padding: 10px; }
  .ncard .ncard__ph { grid-row: 1 / span 2; height: 84px; border-radius: 10px; }
  .ncard .mcard__badge, .ncard .ncard__go { display: none; }
  .ncard .ncard__d { padding: 2px 0 0; }
  .ncard .ncard__t { padding: 4px 0 0; font-size: 15px; }
}

/* Телефон, второй проход: подвал, блок заявки, ленты на главной */
@media (max-width: 620px) {
  /* первый экран не выше экрана телефона */
  .vhero { min-height: 0; max-height: none; }
  .vhero__in { padding-top: 28px; padding-bottom: 28px; }

  /* направления, техника на главной и «другие машины» лентой */
  .hcats, .mach--home, .mach--four { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory;
    padding-bottom: 8px; grid-auto-rows: auto; }
  .hcats > *, .mach--home > *, .mach--four > * { flex: 0 0 78%; min-width: 78%; max-width: 78%; scroll-snap-align: start; }
  .hcats > * { height: 190px; }
  .mach--home > :nth-child(n+5) { display: block; }

  /* плитки разделов и направлений в две колонки, без снимка-заглушки */
  .rlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rlist .rcard__ph--none { display: none; }
  .rlist .rcard__ph { height: 96px; }
  .rlist .rcard__x { display: none; }
  .rlist .rcard__t { font-size: 15px; }

  /* блок заявки: один телефон, остальные на странице контактов */
  .ask__ph > li:nth-child(n+2) { display: none; }

  /* подвал: знак, один телефон, почта, адрес; разделы есть в меню-шторке */
  .foot__map, .foot__tel ~ .foot__tel, .foot__tag { display: none; }
  .foot__row { gap: 16px; }
  .foot__bot { gap: 6px; }

  /* мелкие ссылки: зона нажатия не меньше 44 px */
  .tbl--deps a, .foot__legal a, .crumbs a { display: inline-block; padding-block: 10px; }
}

/* список стран открывается вверх, если внизу нет места */
.tel__list.is-up { top: auto; bottom: calc(100% + 6px); }

/* вкладки закладкой: по ширине кнопок, низ сливается с панелью */
.tabs__bar { display: inline-flex; margin-bottom: 0; border-bottom: 0; border-radius: 16px 16px 0 0;
  position: relative; z-index: 1; top: 1px; background: rgba(255, 255, 255, .96); max-width: 100%; }
.tabs__p { border-top-left-radius: 0; }

/* видео: обложка с кнопкой, плеер по нажатию */
.vids { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.vid { margin: 0; }
.vid__play, .vid video, .vid iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: 14px; overflow: hidden; background: #0b1b2b; padding: 0; cursor: pointer; }
.vid__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.vid__play:hover img { opacity: 1; }
.vid__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px;
  border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.vid figcaption { margin-top: 8px; font-weight: 700; }

/* текст страницы над сеткой снимков и таблиц: на всю ширину, ровно по левому краю блоков */
.sec--text { padding-top: 24px; padding-bottom: 44px; }
.sec--text .rg { max-width: none; margin: 0; }
.sec--text + .sec { padding-top: 28px; }

/* Телефон, главная: новости, преимущества и запчасти лентой с листанием пальцем */
@media (max-width: 620px) {
  .home .news, .band__in, .parts .cat__grid--demo { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px;
    scroll-snap-type: x mandatory; padding-bottom: 8px; grid-template-columns: none; }
  .home .news > *, .band__in > *, .parts .cat__grid--demo > * { flex: 0 0 78%; min-width: 78%; max-width: 78%; scroll-snap-align: start; }
  .parts .cat__grid--demo > :nth-child(n+5) { display: block; }
  /* на главной новость обычной карточкой со снимком, в ленте строка не нужна */
  .home .ncard { display: grid; grid-template-columns: none; grid-template-rows: subgrid; padding: 0; }
  .home .ncard .ncard__ph { grid-row: auto; height: 150px; border-radius: 0; }
  .home .ncard .ncard__d, .home .ncard .ncard__t { padding: 10px 14px 0; }
  .home .ncard .ncard__t { padding-bottom: 14px; }
}

/* Форма: поля выше и просторнее, стрелка списка с отступом от края */
.form input[type="text"], .form input[type="tel"], .form select, .tel__cc { min-height: 52px; font-size: 16px; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23295bb2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center; }
.vhero__card--dark .form select { background-color: rgba(255, 255, 255, .95); }
.tel__cc { padding: 0 14px; gap: 8px; }
/* на первом экране карточка узкая: имя и телефон друг под другом */
.form--short .form__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.form--short .form__row label { margin-top: 12px; }
.form--short .form__row > div:first-child label { margin-top: 0; }

/* текст в списке не режется на узком экране: короче шрифт и многоточие */
.form select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
@media (max-width: 420px) { .form select { font-size: 15px; padding-left: 12px; padding-right: 40px; background-position: right 14px center; } }
.form__ok-check a { display: inline; padding: 0; }

/* Шапка на 1201-1500 px (ноутбуки 1366): номер телефона виден, остальное компактнее */
@media (min-width: 1201px) {
  .head__tel .head__tel-t { display: block; }
  .head__tel-t i { display: none; }
  .head__tel-t b { font-size: 15px; white-space: nowrap; }
  .head__tel-i { width: 34px; height: 34px; }
  .head__in { gap: 12px; }
  .head__side { gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 9px 7px; font-size: 14px; }
  .brand { gap: 9px; }
  .brand__txt b { font-size: 17px; }
  .head .lang__btn { padding: 7px 10px; }
}
@media (min-width: 1201px) and (max-width: 1290px) {
  .nav a { padding: 9px 5px; font-size: 13.5px; }
  .brand__txt b { font-size: 16px; }
  .head .lang__btn span { display: none; }
}

/* согласие в одну строку, плитки направлений без лишних подписей */
.form__ok-check label { font-size: 13.5px; }
.hcat__in { gap: 0; }

/* наведение на телефон и почту: линия плавно выезжает слева направо, цвет не уходит в синий на тёмном фоне */
.ask__ph a b, .foot__ph a b, .foot--slim .foot__tel b, .head__tel-t b, .ask__mail, .foot__mail {
  width: fit-content; max-width: 100%;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .35s ease, color .25s ease; }
.ask__ph a:hover b, .foot__ph a:hover b, .foot--slim .foot__tel:hover b,
.head__tel:hover .head__tel-t b, .ask__mail:hover, .foot__mail:hover { background-size: 100% 1.5px; }
.ask__ph a:hover b, .foot__ph a:hover b, .ask__mail:hover { color: #fff; }
.ask__ph a:hover span { background-color: rgba(255, 255, 255, .22); }
@media (prefers-reduced-motion: reduce) { .ask__ph a b, .foot__ph a b, .head__tel-t b, .ask__mail, .foot__mail { transition: none; } }

/* подвал: длинные названия разделов переносятся, а не наезжают на контакты */
.foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.foot__nav a { white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.foot__grid > * { min-width: 0; }

/* телефон: ленты листаются с первой карточки, а не с середины (justify center прятал первую влево) */
@media (max-width: 620px) {
  .hcats, .mach--home, .mach--four, .tl, .gal--about, .acert, .home .news, .band__in, .parts .cat__grid--demo { justify-content: flex-start; }
}

/* телефон: разделы подвала двумя колонками, компактно */
@media (max-width: 620px) {
  .foot__col .foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
  .foot__col .foot__nav a { display: block; padding: 5px 0; font-size: 14px; }
}

/* каталог: список разделов слева плотнее */
.fl__list .fl__i, nav.fl__box .fl__i { min-height: 38px; padding: 6px 10px; font-size: 15.5px; }
.fl__list { gap: 0; }
.fl__type { margin: 12px 6px 2px; padding-top: 10px; }
.fl__box { padding: 14px 12px; }

/* документы: значок по центру плитки, а не в углу (правило .doc span делало плитку блоком) */
.doc .doc__ph { display: grid; place-items: center; margin: 0; height: 150px; background: linear-gradient(160deg, #fff, var(--tint)); border: 1px solid var(--line); }
.doc__ph .doc__ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 6px 16px rgba(10, 60, 110, .12); font-style: normal; }
.doc__ph .doc__ico svg { width: 34px; height: 34px; }
/* видео по внешней ссылке */
.vid--ext { grid-column: 1 / -1; }
.vid__ext { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .92); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.vid__ext:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(10, 60, 110, .1); }
.vid__ext > svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--blue); color: #fff; }
.vid__ext b { display: block; font-size: 17px; color: var(--ink); }
.vid__ext i { display: block; margin-top: 2px; font-style: normal; font-size: 14px; color: var(--mute); }

/* заголовок шапки страницы в одну строку, где хватает ширины */
.phead h1 { max-width: none; font-size: clamp(26px, 3.3vw, 42px); line-height: 1.15; }

/* стрелка на малых плитках меньше, чтобы не наезжать на название; на большой плитке прежняя */
.hcat:not(.hcat--main) .hcat__go { width: 32px; height: 32px; right: 14px; bottom: 14px; }
.hcat:not(.hcat--main) .hcat__go svg { width: 15px; height: 15px; }
.hcat:not(.hcat--main) .hcat__in { padding: 16px 56px 16px 18px; }

/* список разделов каталога: без своей полосы прокрутки. На невысоком окне он едет вместе со страницей,
   на высоком (от 900 px) остаётся на месте и целиком помещается */
@media (min-width: 901px) {
  .fl { position: static; max-height: none; overflow: visible; }
}
@media (min-width: 901px) and (min-height: 900px) {
  .fl { position: sticky; top: calc(var(--head-h, 110px) + 16px); max-height: calc(100vh - var(--head-h, 110px) - 32px); overflow-y: auto; scrollbar-width: none; }
  .fl::-webkit-scrollbar { display: none; }
}

/* название ролика над плеером */
.vid figcaption { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }

/* телефон: хлебные крошки одной строкой, длинные листаются вбок; полоса не видна, край размыт */
@media (max-width: 620px) {
  .crumbs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-right: -20px; padding-right: 20px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .crumbs::-webkit-scrollbar { display: none; }
  .crumbs > * { flex: none; }
}

/* таблицы из текста страницы: стиль сайта и горизонтальная прокрутка, колонки не сжимаются в щель */
.rg .tablewrap { margin: 18px 0; }
.rg .tbl { min-width: 100%; border-collapse: collapse; }
.rg .tbl td, .rg .tbl th { min-width: 120px; vertical-align: top; }
.rg .tbl tr:first-child td { font-weight: 700; background: var(--tint); }
.rg .tbl thead + tbody tr:first-child td { font-weight: 400; background: none; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
@media (max-width: 620px) {
  .tablewrap .tbl { min-width: 560px; }
  .tablewrap .tbl--deps, .tablewrap .tbl--req { min-width: 100%; }
}

/* крошки: «Главная», разделитель и название на одной линии (у ссылок отступ для пальца, у остального нет) */
.crumbs { align-items: center; }
.crumbs > span, .crumbs > i { display: inline-flex; align-items: center; min-height: 24px; line-height: 1.2; }
@media (max-width: 620px) {
  .crumbs a { padding-block: 6px; line-height: 1.2; }
  .crumbs > span, .crumbs > i { padding-block: 6px; }
}

/* согласие: в одну строку, где хватает ширины, иначе переносится, а не вылезает за карточку */
.form__ok-check { grid-template-columns: auto minmax(0, 1fr); }
.form__ok-check label { min-width: 0; white-space: normal; overflow-wrap: anywhere; }

/* форма заявки ниже: поля 46 px, отступы меньше (на мобильном 16 px в полях остаётся, чтобы iOS не увеличивал) */
.form input[type="text"], .form input[type="tel"], .form select, .tel__cc { min-height: 46px; padding-top: 9px; padding-bottom: 9px; }
.form label { margin: 10px 0 4px; }
.form__ok-check { margin: 12px 0 10px; }
.vhero__card .form, .ask__form .form { padding: 18px 20px; }
.vhero__card .form h2 { margin-bottom: 4px; }
.form .btn--block { min-height: 48px; padding-top: 11px; padding-bottom: 11px; }
.form__hint { margin-top: 8px; font-size: 12.5px; }

/* ленты на телефоне: первая карточка с отступом слева, а не вплотную к краю экрана; под лентой есть воздух */
@media (max-width: 620px) {
  .hcats, .mach--home, .mach--four, .tl, .gal--about, .acert, .home .news, .band__in, .parts .cat__grid--demo { scroll-padding-inline: 20px; }
  .band__in { padding-bottom: 36px; }
}

/* шапка страницы: снимок без плавного увеличения (оно мылило картинку) и с лёгкой подложкой под текст, цвета не глухие */
.phead__bg img { transform: none; animation: none; filter: none; image-rendering: auto; }
.phead__bg::after { background: linear-gradient(90deg, rgba(7, 42, 75, .82) 0%, rgba(7, 42, 75, .55) 45%, rgba(7, 42, 75, .12) 100%),
    linear-gradient(0deg, rgba(7, 42, 75, .35), transparent 55%); }

/* шапка на телефоне: язык, телефон и меню разнесены, у каждой кнопки площадь для пальца не меньше 44 px */
@media (max-width: 1000px) {
  .head__side { gap: 12px; }
  .head__tel { gap: 0; }
  .head__tel-i { width: 44px; height: 44px; }
  .head .lang__btn { min-height: 44px; min-width: 56px; padding: 0 12px; }
  .head .burger { width: 48px; height: 44px; }
}
@media (max-width: 380px) {
  .head__side { gap: 8px; }
  .head .lang__btn { padding: 0 10px; }
  .brand__txt b { font-size: 15px; }
}
@media (max-width: 1000px) {
  .head .head__tel .head__tel-i { width: 44px; height: 44px; }
  .head .head__tel .head__tel-i svg { width: 20px; height: 20px; }
}

/* таблица из текста занимает всю ширину блока, колонки делят её поровну */
.rg .tablewrap .tbl, .tablewrap > .tbl { width: 100%; table-layout: auto; }
.rg .tablewrap .tbl, .tablewrap > .tbl { display: table; overflow: visible; margin: 0; }

/* вводная под заголовком шапки: не больше двух строк на компьютере, три на телефоне */
.phead__lead { max-width: min(100%, 1020px); font-size: 17px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 900px) { .phead__lead { -webkit-line-clamp: 3; line-clamp: 3; font-size: 16px; } }

/* подсказка «листайте пальцем» под лентой карточек (только телефон) */
.swipe { display: none; }
@media (max-width: 620px) {
  .swipe { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 0; font-size: 15px; font-weight: 700; color: var(--blue3); transition: opacity .4s, max-height .4s; max-height: 40px; overflow: hidden; }
  .swipe.is-off { opacity: 0; max-height: 0; margin: 0; }
  .swipe__f { display: inline-block; font-size: 24px; line-height: 1; animation: swipeHand 1.8s ease-in-out infinite; }
  .swipe__a { font-size: 20px; animation: swipeArrow 1.8s ease-in-out infinite; }
}
@keyframes swipeHand { 0%, 100% { transform: translateX(10px) rotate(-8deg); } 50% { transform: translateX(-10px) rotate(8deg); } }
@keyframes swipeArrow { 0%, 100% { transform: translateX(0); opacity: .5; } 50% { transform: translateX(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .swipe__f, .swipe__a { animation: none; } }
/* согласие: галочка по центру строки текста */
.form__ok-check { align-items: center; }
.form__ok-check input { margin-top: 0; }

/* точки таймлайна всегда поверх линии, даже пока карточка выезжает */
.tl__i { z-index: 1; }

/* незаполненное при нажатии на кнопку: красным, без лишнего текста */
.form input.is-bad, .form select.is-bad { border-color: #c62828; box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.form .tel:has(input.is-bad) { border-color: #c62828; box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.form__ok-check input.is-bad { outline: 2px solid #c62828; outline-offset: 2px; }
.form__ok-check:has(input.is-bad) label { color: #c62828; }
.form__hint { display: none; }

/* телефон: кадр не растягиваем на всю высоту (картинка 16:9 в портретной шапке мылилась), ставим его сверху в натуральном размере, ниже плавный переход в тёмно-синий */
@media (max-width: 620px) {
  .vhero__bg { background: var(--navy2); }
  .vhero__bg img, .vhero__bg video { inset: 0 0 auto 0; height: 560px; object-position: 62% center; }
  .vhero__bg::after { background: linear-gradient(180deg, rgba(7, 42, 75, .5) 0%, rgba(7, 42, 75, .35) 45%, var(--navy2) 560px, var(--navy2) 100%); }
}

/* подсказка «листайте»: без слов, только палец и стрелки, над лентой справа */
@media (max-width: 620px) {
  .swipe { justify-content: flex-end; gap: 6px; margin: 0 4px 8px 0; font-size: 18px; }
  .swipe.is-off { margin: 0; }
  .swipe__a--l { animation-name: swipeArrowL; }
}
@keyframes swipeArrowL { 0%, 100% { transform: translateX(0); opacity: .45; } 50% { transform: translateX(-5px); opacity: 1; } }

/* подсказка снова под лентой, но в одну строку без отступов и на тёмном фоне светлая */
@media (max-width: 620px) {
  .swipe { justify-content: center; gap: 8px; margin: 2px 0 0; padding: 0; height: 22px; max-height: 22px; font-size: 16px; line-height: 1; }
  .swipe.is-off { height: 0; max-height: 0; margin: 0; }
  .swipe__f { font-size: 18px; }
  .swipe__a { font-size: 16px; }
  .band .swipe, .vhero .swipe, .parts .swipe { color: #fff; }
}

/* телефон: у лент нет полос прокрутки (ни боковой, ни нижней), только свайп */
@media (max-width: 620px) {
  .hcats, .mach--home, .mach--four, .tl, .gal--about, .acert, .home .news, .band__in, .parts .cat__grid--demo, .rlist { overflow-y: hidden; scrollbar-width: none; }
  .hcats::-webkit-scrollbar, .mach--home::-webkit-scrollbar, .mach--four::-webkit-scrollbar, .tl::-webkit-scrollbar, .gal--about::-webkit-scrollbar, .acert::-webkit-scrollbar, .home .news::-webkit-scrollbar, .band__in::-webkit-scrollbar, .parts .cat__grid--demo::-webkit-scrollbar, .rlist::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

/* телефон: длинное название детали переносится, а не обрезается многоточием */
@media (max-width: 620px) {
  .phead--one h1 { white-space: normal; overflow: visible; text-overflow: clip; font-size: clamp(20px, 6vw, 26px); line-height: 1.2; }
  .form select, .form input, .form textarea { font-size: 16px; }
}

/* телефон: компактнее, ленты направлений, поиск каталога, закрытие фильтра под пальцем, свёрнутый текст */
@media (max-width: 620px) {
  .sec { padding: 34px 0; }
  .sec--tight { padding: 22px 0 0; }
  .sec--tight + .sec { padding-top: 22px; }
  .sec--tint { padding-top: 28px; }

  .adirs { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; gap: 12px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; justify-content: flex-start; }
  .adirs::-webkit-scrollbar { display: none; }
  .adirs > * { flex: 0 0 82%; min-width: 82%; scroll-snap-align: start; }

  .cat__bar { gap: 8px; padding: 10px; }
  .cat__find { flex: 1 1 100%; }
  .cat__find input { padding-top: 10px; padding-bottom: 10px; }
  .cat__sort { flex: 1 1 0; min-width: 0; }
  .cat__view { flex: 0 0 auto; }
  .cat__fbtn { flex: 0 0 auto; padding: 10px 14px; }

  .fl { display: flex; flex-direction: column; overflow-y: auto; padding-bottom: 0; }
  .fl > * { flex: 0 0 auto; }
  .fl__close { order: 99; position: sticky; bottom: 0; margin-top: auto; width: 100%; min-height: 54px; font-size: 17px; background: #fbfaf6; box-shadow: 0 -14px 14px 6px #fbfaf6; }

  .rm.is-clamp { max-height: 300px; overflow: hidden; position: relative; }
  .rm.is-clamp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(251, 250, 246, 0), var(--paper, #fbfaf6)); pointer-events: none; }
  .rm__btn { margin-top: 10px; width: 100%; justify-content: center; }
}

/* Страница 404: крупный код, поиск, разделы, телефон */
.nf { max-width: 880px; margin: 0 auto; text-align: center; }
.nf__code { font-size: clamp(88px, 18vw, 168px); line-height: 1; font-weight: 800; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 3px var(--blue);
  background: linear-gradient(180deg, transparent 58%, var(--yellow) 58%, var(--yellow) 78%, transparent 78%);
  -webkit-background-clip: border-box; display: inline-block; padding: 0 10px; }
.nf__t { margin: 8px 0 0; font-size: clamp(24px, 4vw, 34px); color: var(--navy); }
.nf__lead { margin: 10px auto 0; max-width: 560px; color: var(--mute); }
.nf__find { display: flex; gap: 8px; max-width: 560px; margin: 24px auto 0; }
.nf__find input { flex: 1 1 auto; min-width: 0; padding: 14px 16px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); }
.nf__find input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 112, 192, .18); }
.nf__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nf__h { margin: 40px 0 14px; font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.nf__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; text-align: left; }
.nf__tile { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.nf__tile:hover, .nf__tile:focus-visible { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow); }
.nf__tile b { flex: 1 1 auto; font-size: 16px; color: var(--navy); }
.nf__ic { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: var(--sky); color: var(--blue3); }
.nf__go { color: var(--blue); display: inline-flex; flex: 0 0 auto; }
.nf__call { margin: 32px 0 0; font-size: 17px; color: var(--ink); }
.nf__call a { font-weight: 800; color: var(--blue3); white-space: nowrap; }
.nf__home { margin: 22px 0 0; }
@media (max-width: 560px) {
  .nf__find { flex-direction: column; }
  .nf__find .btn { justify-content: center; }
  .nf__code { -webkit-text-stroke-width: 2px; }
}
@media (prefers-reduced-motion: reduce) { .nf__tile { transition: none; } .nf__tile:hover { transform: none; } }
