/* ШинКо — основные стили (на основе magfast.css, адаптировано для Bootstrap 5) */

/* ========================================================================== */
/* ГЛОБАЛЬНАЯ ЗАЩИТА ОТ ГОРИЗОНТАЛЬНОГО ПЕРЕПОЛНЕНИЯ                           */
/* Эти правила — «сетка безопасности» для всех устройств.                     */
/* Не меняют дизайн, только пресекают вылезание контента за пределы экрана.   */
/* ========================================================================== */

/* 1. Корневые контейнеры не могут быть шире экрана.
      overflow-x: clip — не создаёт scroll container. Но если его поставить
      одновременно и на html, и на body — position: sticky у потомков внутри
      body перестаёт работать (хотя по спеке должен). Поэтому clip ставим
      только на body; html остаётся с дефолтом. */
html, body { max-width: 100%; }
body { overflow-x: clip; }
/* Фолбэк для старых браузеров без поддержки clip */
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}

/* 2. Медиа всегда вписывается в свой контейнер */
img, video, iframe, svg, canvas, picture {
  max-width: 100%;
}
img, video { height: auto; }

/* 3. Длинные слова/URL не ломают вёрстку */
body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* 4. Flex-элементы могут сжиматься ниже своего min-content
      (главная причина переполнения на мобайле) */
.catalog-row,
.catalog-row > *,
.catalog-row .catalog-page,
.catalog-row .catalog-page > *,
.bg-filter,
.bg-filter *,
.row-products,
.row-products > *,
.product-thumb,
.product-thumb > * {
  min-width: 0;
}

/* 5. Таблицы не расширяют родителя */
table { max-width: 100%; }

/* ========================================================================== */

:root {
  --orange: #fe5808;
  --grey: #707070;
  --lightorange: #ffcea5;
  --green: #00a224;
  --salat: #beffa8;
  --lightgrey: #ededed;
  --txt-grey: #393937;
  --txt-grey2: #393937;
  --txt-white: #fff;
  --black: #000;
  --green-sm: #cf0;
  --cards2: #f8f8f8;
  --polz: #c5c1c1;
}

/* ======================== TYPOGRAPHY ======================== */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.56;
  color: var(--txt-grey);
}
.fs21 { font-size: 21px; }
.fs30 { font-size: 30px; }
.title28 { font-size: 28px; font-weight: 700; }
.title36 { font-size: 36px; font-weight: 700; }

/* SEO-семантика: визуальные display-заголовки исторически рендерились
   как <div class="title">. При замене на <h2>/<h3> для семантики нужно
   снять браузерные дефолты (margin, bold), чтобы не сломать визуал. */
h1.title, h2.title, h3.title, h4.title,
h1.title28, h2.title28, h3.title28, h4.title28,
h1.title36, h2.title36, h3.title36, h4.title36 {
  margin: 0;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ======================== .seo-content (SEO-блоки в подвале страниц) ========
   Применяется на /prodat, /trade-in, /uslugi/*, главной — везде, где
   миграции добавляют <section class="seo-content"> с h2/h3/p/ul/ol/a.
   Цель — привести типографику SEO-секций к общей стилистике сайта. */
.seo-content {
  margin: 40px 0;
  color: var(--txt-grey);
}
.seo-content h2 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 20px;
  line-height: 1.2;
}
.seo-content h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--txt-grey);
  margin: 25px 0 15px;
  line-height: 1.3;
}
.seo-content p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 15px;
}
.seo-content ul,
.seo-content ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}
.seo-content li {
  font-size: 18px;
  line-height: 1.55;
  position: relative;
  padding-left: 22px;
  margin: 0 0 10px;
}
.seo-content ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.seo-content ol {
  counter-reset: seo-counter;
}
.seo-content ol > li {
  counter-increment: seo-counter;
  padding-left: 32px;
}
.seo-content ol > li::before {
  content: counter(seo-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 18px;
}
.seo-content a {
  color: var(--orange);
  text-decoration: none;
}
.seo-content a:hover {
  text-decoration: underline;
}
.seo-content b,
.seo-content strong {
  color: var(--txt-grey);
  font-weight: 700;
}

/* Главная: SEO-блок чуть просторнее, центрирован по ширине контента */
.home-seo {
  max-width: 1080px;
  margin: 60px auto 40px;
}

/* Блок перелинковки на /trade-in — сетка из ссылок-«плиток» */
.related-links {
  margin: 40px 0;
}
.related-links h2 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  text-align: center;
  margin: 0 0 25px;
  line-height: 1.2;
}
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.related-links-grid a {
  display: block;
  padding: 15px 20px;
  background: #f5f5f5;
  border-radius: 8px;
  color: var(--txt-grey);
  text-decoration: none;
  font-size: 18px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.related-links-grid a:hover {
  background: var(--orange);
  color: var(--txt-white);
}
.related-links-note {
  text-align: center;
  margin: 20px 0 0;
  color: var(--grey);
  font-size: 16px;
}

@media (max-width: 767.98px) {
  .seo-content h2,
  .related-links h2 { font-size: 24px; }
  .seo-content h3 { font-size: 19px; }
  .seo-content p,
  .seo-content li { font-size: 16px; }
  .related-links-grid { grid-template-columns: 1fr; }
}

/* ======================== HEADER (1:1 с OpenCart magfast) ======================== */
header {
  margin: 30px 0 40px;
}
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 8px 0;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.sticky-header.visible {
  transform: translateY(0);
}
.sticky-header .header-row .logo img { max-height: 50px; }
.sticky-header .header-row .other { flex-direction: row; align-items: center; }
.sticky-header .header-row .middle { margin: 0; }

.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.header-row .logo {
  width: 268px;
  flex-shrink: 0;
}
.header-row .logo img {
  max-height: 170px;
  max-width: 100%;
}
.header-row .other {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* --- Верхняя строка: гео / телефон / контакты + иконки --- */
.header-row .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
}
.header-row .top .left {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 530px;
  justify-content: space-between;
  gap: 20px;
}
.header-row .top .left .geo { display: flex; align-items: center; }
.header-row .top .left .geo button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 21px;
  line-height: 95%;
  color: var(--orange);
  padding: 0;
}
.header-row .top .left .geo button > img { margin: 0 12px 0 0; width: 18px; }
.header-row .top .left a {
  font-size: 21px;
  line-height: 95%;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}
.header-row .top .right {
  display: flex;
  align-items: center;
}
.header-row .top .right a {
  display: flex;
  align-items: center;
  margin: 0 0 0 30px;
  color: var(--black);
  text-decoration: none;
}
.header-row .top .right a.wishlist { margin-left: 25px; }
.header-row .top .right a img {
  width: 23px;
  height: 23px;
}
.header-row .top .right a.login {
  font-size: 21px;
  line-height: 95%;
  color: var(--black);
}
.header-row .top .right a.login > img { margin: 0 10px 0 0; }
.header-row .top .right a > span {
  background: var(--lightorange);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 100px;
  font-size: 12px;
  line-height: 158%;
  text-align: center;
  color: #fff;
  margin: 0 0 0 8px;
  font-weight: 700;
}

/* --- Средняя строка: навигация --- */
.header-row .middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
  gap: 16px;
}
.header-row .middle a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--orange);
  border-radius: 10px;
  padding: 10px;
  width: calc(20% - 16px);
  font-size: 21px;
  line-height: 95%;
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all .2s;
}
.header-row .middle a:hover,
.header-row .middle a.active {
  background: var(--orange);
  color: #fff;
}
.header-row .middle a > svg { margin-left: 12px; }
.header-row .middle a:hover > svg path,
.header-row .middle a.active > svg path { fill: #fff; }

/* --- Нижняя строка: поиск + запись на шиномонтаж --- */
.header-row .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-row .bottom .search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--lightorange);
  border-radius: 10px;
  padding: 0 20px;
  width: 61.5%;
  height: 40px;
  background: #fff;
}
.header-row .bottom .search input {
  width: calc(100% - 40px);
  font-size: 15px;
  line-height: 133%;
  color: var(--black);
  border: none;
  outline: none;
  background: none;
}
.header-row .bottom .search button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.header-row .bottom > button.record {
  border: 2px solid var(--txt-grey);
  border-radius: 10px;
  padding: 8px 0;
  background: var(--green-sm);
  font-size: 21px;
  line-height: 95%;
  color: var(--black);
  height: 40px;
  width: calc(38.5% - 20px);
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.header-row .bottom > button.record:hover { background: #bfe600; }

/* Sticky-header: компактный вариант кнопки */
.sticky-header .header-row .middle a {
  padding: 6px 16px;
  font-size: 15px;
  width: auto;
  text-transform: none;
}
.sticky-header button.record {
  padding: 6px 16px;
  background: var(--green-sm);
  border: 2px solid var(--txt-grey);
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  cursor: pointer;
  height: 40px;
}

/* Hamburger */
.menu-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ======================== MOBILE MENU ======================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  /* 2/3 экрана, как у sidebar-фильтра */
  width: min(600px, 80vw);
  height: 100vh;
  background: #fff;
  z-index: 1050;
  /* Транслейт (не left: -100%) — чтобы закрытое меню не создавало
     горизонтальный scroll страницы. transform не влияет на scroll-bounds. */
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,.1);
}
body.mobmenu-opened .mobile-menu { transform: translateX(0); }

.grey-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1040;
}
/* Серый overlay показываем и при открытом меню, и при открытом фильтре */
body.mobmenu-opened .grey-bg,
body.filter-opened  .grey-bg { display: block; }

.mobile-menu .top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 15px 12px;
  border-bottom: 1px solid var(--lightgrey);
}
/* Стиль города и телефона в шапке мобильного меню — по shinko.ru:
   тёмно-серый, без подчёркивания. Номер подсвечиваем оранжевым, чтобы
   сразу читался как действие (tap-to-call). */
.mobile-menu .top .geo,
.mobile-menu .top .geo button {
  color: var(--txt-grey);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  white-space: nowrap;
}
.mobile-menu .top a[href^="tel:"] {
  color: var(--orange);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.mobile-menu .top .close-menu {
  margin-left: auto;
  flex-shrink: 0;
}
/* На узких экранах (<360px) — телефон переносим на новую строку,
   чтобы цифры никогда не ломались переносом внутри номера. */
@media (max-width: 359px) {
  .mobile-menu .top a[href^="tel:"] {
    flex-basis: 100%;
    order: 3;
  }
}
.mobile-menu .top .geo button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.mobile-menu .top a[href^="tel:"]:hover { color: var(--orange); }
.mobile-menu .close-menu {
  cursor: pointer;
}
.mobile-menu .close-menu img { width: 24px; }
.mobile-menu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  color: var(--txt-grey);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--lightgrey);
}
.mobile-menu > a img.img { width: 10px; }

/* Верхняя полоса с кнопками "Запись на шиномонтаж" + "Продать" на мобильном.
   Стиль 1:1 с shinko.ru: прозрачный фон, плоские компактные кнопки 40px,
   зелёная — с тонкой серой рамкой. */
.mobile.top-btns {
  display: none;
  gap: 10px;
  padding: 10px 15px;
  background: transparent;
}
.mobile.top-btns button {
  flex: 1;
  height: 40px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
  cursor: pointer;
}
.mobile.top-btns .green {
  background: var(--green-sm);
  color: #000;
  border: 0.8px solid var(--txt-grey);
}
.mobile.top-btns .orange { background: var(--orange); color: #fff; }

/* ======================== FOOTER ======================== */
footer {
  background: var(--orange);
  color: #e2e2e2;
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-row {
  display: flex;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.logo-footer img { max-height: 60px; }
.column-list {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.column-list .column .title {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}
.column-list .column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.column-list .column ul li {
  margin-bottom: 6px;
  font-size: 15px;
}
.column-list .column ul li a {
  color: #e2e2e2;
  text-decoration: none;
}
.column-list .column ul li a:hover { color: #fff; }
.column-list .column .socials {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}
.column-list .column .socials img { width: 32px; height: 32px; }

.footer-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.footer-row2 img { height: 24px; }

/* ======================== BREADCRUMBS ======================== */
.breadcrumb {
  background: none;
  padding: 10px 0;
  margin-bottom: 15px;
  font-size: 14px;
}
.breadcrumb a { color: var(--orange); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ======================== PRODUCT CARDS (listing) ======================== */
.product-thumb {
  border: 1px solid var(--orange);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.product-thumb:hover {
  box-shadow: 0 4px 16px rgba(254,88,8,.12);
}
.product-thumb .image {
  width: 24%;
  min-width: 140px;
  position: relative;
}
.product-thumb .image img.is-broken {
  padding-top: 36px;
  font-size: 13px;
  color: var(--grey);
}
.product-thumb .image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.product-thumb .image .label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
/* Сердечко «в избранное» на карточке */
.product-thumb .image .wishlist-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--lightorange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .15s;
}
.product-thumb .image .wishlist-btn:hover { background: #fff; }
.product-thumb .image .wishlist-btn svg {
  width: 20px; height: 20px;
  transition: fill .15s;
}
.product-thumb .image .wishlist-btn.active svg path {
  fill: var(--orange);
}

/* Фидбэк для кнопки «В корзину» */
.product-thumb .btn-orange.js-add-to-cart.added,
.btn-orange.js-add-to-cart.added {
  background: var(--green);
}

.product-thumb .image .label.new { background: var(--green); }
.product-thumb .image .label.used { background: var(--orange); }

.product-thumb .product-data {
  width: 47%;
  border-left: 1px solid var(--lightgrey);
  border-right: 1px solid var(--lightgrey);
  padding: 0 15px;
}
.product-thumb .product-data .product-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  color: var(--txt-grey);
}
.product-thumb .product-data .product-name:hover { color: var(--orange); }

/* Specs with dotted lines */
.product-thumb .product-data .specs p {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 4px;
  font-size: 14px;
}
.product-thumb .product-data .specs p::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 1px;
  border-bottom: 1px dotted #c5c1c1;
  z-index: 0;
}
.product-thumb .product-data .specs p span {
  background: #fff;
  padding: 0 3px;
  position: relative;
  z-index: 1;
}
.product-thumb .product-data .specs p span:first-child { color: var(--grey); padding-left: 0; }
.product-thumb .product-data .specs p span:last-child { padding-right: 0; font-weight: 600; }

.product-thumb .product-data .stock-info {
  margin-top: 8px;
  font-size: 14px;
}
.product-thumb .product-data .specs .in-stock { color: var(--green); font-weight: 600; }
.product-thumb .product-data .specs .on-order { color: var(--orange); font-weight: 600; }

/* Инфографика внизу карточки (шумность/страна/цвет…) — равномерно по ширине */
.product-thumb .product-data .bottom .attr {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 0;
  font-size: 13px;
  flex-wrap: wrap;
  color: var(--txt-grey);
}
.product-thumb .product-data .bottom .attr span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  justify-content: flex-start;
}
.product-thumb .product-data .bottom .attr span img {
  width: 18px;
  height: 18px;
}

.product-thumb .product-etc {
  width: 29%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-thumb .product-etc .sku {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 8px;
}
.product-thumb .product-etc .promo {
  display: block;
  background: var(--salat);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-grey);
  margin-bottom: 10px;
  text-align: center;
  text-decoration: none;
  transition: filter .15s ease;
}
a.promo:hover { filter: brightness(0.95); text-decoration: none; color: var(--txt-grey); }

/* ======================== СМЕЖНЫЕ ПОСАДОЧНЫЕ (блок внизу листинга) ======================== */
.related-landings {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 30px 0 20px;
}
.related-landings-block { margin-bottom: 16px; }
.related-landings-block:last-child { margin-bottom: 0; }
.related-landings-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt-grey);
  margin-bottom: 10px;
}
.related-landings-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.related-landing-tile {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  color: var(--txt-grey);
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  transition: border-color .15s, color .15s, background .15s;
}
.related-landing-tile:hover {
  border-color: var(--orange);
  color: var(--orange);
  text-decoration: none;
}
/* Сезонная скидка — выделяем оранжевым (для шин с остатком протектора < 3мм) */
.product-thumb .product-etc .promo.promo-season {
  background: var(--lightorange);
  color: var(--orange);
}
.product-thumb .product-etc .mg-price .old {
  text-decoration: line-through;
  color: var(--grey);
  font-size: 14px;
}
.product-thumb .product-etc .mg-price .new {
  font-weight: 700;
  font-size: 26px;
  color: var(--txt-grey);
}
.product-thumb .product-etc .mg-price .forfour {
  font-size: 13px;
  color: var(--grey);
  margin-top: 2px;
}

/* Quantity selector */
.mg-quantity {
  display: flex;
  border: 1px solid var(--lightorange);
  border-radius: 8px;
  overflow: hidden;
}
.mg-quantity button {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  color: var(--orange);
  font-weight: 700;
}
.mg-quantity button:hover { background: var(--lightgrey); }
.mg-quantity input {
  width: 40px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
.mg-quantity.is-fixed {
  background: var(--lightgrey);
  border-color: var(--lightgrey);
  color: var(--grey);
}
.mg-quantity.is-fixed button,
.mg-quantity.is-fixed input {
  color: var(--grey);
  background: transparent;
  cursor: not-allowed;
}
.mg-quantity.is-fixed button:hover { background: transparent; }

/* Buttons */
.btn-orange {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 25px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}
.btn-orange:hover { background: #e04e06; color: #fff; }

.btn-outline-orange {
  border: 2px solid var(--orange);
  color: var(--orange);
  background: transparent;
  border-radius: 10px;
  padding: 8px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-outline-orange:hover {
  background: var(--orange);
  color: #fff;
}

.btn-green {
  background: var(--green-sm);
  color: var(--txt-grey);
  border: 2px solid #a1bf00;
  border-radius: 10px;
  padding: 10px 25px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-green:hover { background: #bfe600; }

.product-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.pod-zakaz-hint {
  font-size: 13px; color: var(--orange);
  font-weight: 500; margin-top: 4px;
}
.product-btns .p-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ======================== CATALOG PAGE ======================== */
.catalog-row {
  display: flex;
  gap: 30px;
  align-items: flex-start; /* чтобы position: sticky у сайдбара работал */
}
.catalog-row .filter-sidebar { width: 23%; }
.catalog-row .catalog-page { flex: 1; }

/* Sticky-сайдбар с фильтром (только десктоп) */
@media (min-width: 992px) {
  .catalog-row .filter-sidebar-col {
    width: 23%;
    min-width: 220px;
    position: sticky;
    top: 90px; /* под sticky-header (~70px) + воздух */
    align-self: flex-start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    /* Скроллбар скрыт, но прокрутка колёсиком / touchpad работает */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/old Edge */
  }
  .catalog-row .filter-sidebar-col::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

/* SEO-блоки intro/bottom на посадочных (мелкий шрифт, выделение ключевых слов) */
.seo-intro, .seo-bottom {
  font-size: 13px;
  line-height: 1.55;
  color: var(--txt-grey2, #393937);
  padding: 16px 20px;
  background: #fafafa;
  border-radius: 8px;
  border-left: 3px solid var(--lightorange);
}
.seo-intro { margin: 0 0 18px; }
.seo-bottom { margin: 24px 0 0; }

/* Блок «В этой подборке» / «В каталоге» — статистика по посадочной (§18 спеки). */
.landing-stats {
  margin: 0 0 18px;
  padding: 12px 16px 14px;
  background: #f7f8fa;
  border-radius: 6px;
  border-left: 3px solid var(--lightorange);
  font-size: 14px;
  line-height: 1.45;
}
.landing-stats__heading {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.landing-stats__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 24px;
  margin: 0;
}
.landing-stats__row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.landing-stats__label {
  color: #6b7280;
  font-weight: 400;
  margin: 0;
  flex-shrink: 0;
}
.landing-stats__value {
  color: #111;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .landing-stats { font-size: 13px; padding: 10px 12px 12px; }
  .landing-stats__list { grid-template-columns: 1fr; gap: 3px 0; }
}

/* Информационный блок «О товаре и условиях» на карточке (§18 защита от Малоценной). */
.card-info {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: #f7f8fa;
  border-radius: 6px;
  border-left: 3px solid var(--lightorange);
}
.card-info__block + .card-info__block { margin-top: 14px; }
.card-info__heading {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111;
}
.card-info__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}
@media (max-width: 600px) {
  .card-info { padding: 14px 14px; }
  .card-info__heading { font-size: 14px; }
  .card-info__text { font-size: 13px; }
}

/* FAQ-блок на посадочных (§18: schema.org/FAQPage). */
.landing-faq {
  margin: 24px 0 0;
}
.landing-faq__heading {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px;
}
.landing-faq__item {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}
.landing-faq__item:first-of-type { border-top: 1px solid #e5e7eb; }
.landing-faq__question {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 28px;
  color: #111;
}
.landing-faq__question::-webkit-details-marker { display: none; }
.landing-faq__question::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--lightorange);
  line-height: 1;
}
.landing-faq__item[open] .landing-faq__question::after { content: '−'; }
.landing-faq__answer {
  padding: 8px 0 0;
  color: #374151;
  line-height: 1.5;
}
.landing-faq__answer p { margin: 0; }
@media (max-width: 600px) {
  .landing-faq__heading { font-size: 19px; }
  .landing-faq__question { font-size: 15px; }
}
.seo-intro p, .seo-bottom p { margin: 0 0 10px; }
.seo-intro p:last-child, .seo-bottom p:last-child { margin-bottom: 0; }
.seo-intro strong, .seo-bottom strong {
  font-weight: 700;
  color: #000;
}
.seo-intro h2, .seo-intro h3,
.seo-bottom h2, .seo-bottom h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--black);
}
.seo-intro h2:not(:first-child), .seo-intro h3:not(:first-child),
.seo-bottom h2:not(:first-child), .seo-bottom h3:not(:first-child) {
  margin-top: 18px;
}
.seo-intro ul, .seo-intro ol,
.seo-bottom ul, .seo-bottom ol {
  margin: 0 0 10px;
  padding-left: 20px;
}
.seo-intro li, .seo-bottom li { margin: 0 0 4px; }

.row-sort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
/* «Количество от:» — слева от сортировки. Такой же компактный стиль. */
.row-sort .mg-qty-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.row-sort .mg-qty-filter label {
  color: var(--txt-grey);
  margin: 0;
  white-space: nowrap;
}
.row-sort .mg-qty-filter .nice-select {
  height: 34px;
  line-height: 32px;
  padding: 0 28px 0 12px;
  border-radius: 8px;
  font-size: 14px;
  min-width: 110px;
}
@media (max-width: 575px) {
  .row-sort { gap: 10px; }
  .row-sort .mg-qty-filter { width: 100%; justify-content: space-between; }
  .row-sort .mg-qty-filter .nice-select { flex: 1; min-width: 0; }
}
/* Базовое состояние — кнопка скрыта; показывается на мобильном внутри .catalog-mobile-sticky. */
.catalog-mobile-sticky {
  display: none;
}
.row-sort .filter-trigger {
  display: none;
  align-items: center;
  gap: 5px;
  background: none;
  border: 2px solid var(--orange);
  border-radius: 10px;
  padding: 6px 15px;
  cursor: pointer;
  font-weight: 600;
}
.row-sort .filter-trigger img { width: 18px; }
.row-sort .mg-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.row-sort .mg-sort select {
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
}
.row-sort .mg-sort select:focus { border-color: var(--orange); outline: none; }

/* Тоггл «В наличии» */
.row-sort .mg-sort .instock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 2px solid var(--lightorange);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.row-sort .mg-sort .instock-toggle:hover { border-color: var(--orange); }
.row-sort .mg-sort .instock-toggle input { accent-color: var(--orange); cursor: pointer; margin: 0; }
.row-sort .mg-sort .instock-toggle:has(input:checked) {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.row-sort .mg-sort .instock-toggle:has(input:checked) input { accent-color: #fff; }

/* Pagination */
.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}
.pagination .page-link {
  color: var(--txt-grey);
  border-color: var(--lightgrey);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  margin: 0 3px;
}
.pagination .page-item.active .page-link {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.pagination .page-link:hover {
  background: var(--lightorange);
  border-color: var(--orange);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #fafafa;
  border-radius: 10px;
}
.empty-state p { font-size: 18px; margin-bottom: 20px; }

/* ======================== HUB PAGE ======================== */
.hub-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.hub-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  border: 1px solid var(--lightgrey);
  border-radius: 10px;
  text-decoration: none;
  color: var(--txt-grey);
  font-weight: 600;
  font-size: 15px;
  transition: all .2s;
}
.hub-tile:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(254,88,8,.1);
}
.hub-tile .count {
  font-size: 13px;
  color: var(--grey);
  font-weight: 400;
  margin-top: 4px;
}

.hub-banner {
  display: block;
  padding: 30px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  transition: opacity .2s;
}
.hub-banner:hover { opacity: .9; color: #fff; }
.hub-banner.new-bg { background: var(--orange); }
.hub-banner.used-bg { background: var(--txt-grey); }

/* ======================== PRODUCT DETAIL PAGE ======================== */
.product-sku { font-size: 14px; }
.product-sold-by { font-size: 14px; }

.product-detail .gallery-main-wrap {
  background: #fff;
  border: 1px solid var(--lightgrey);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.product-detail .gallery-main {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 6px;
}
.product-detail .gallery-main-link {
  display: inline-flex;
  cursor: zoom-in;
}
.product-detail .gallery-main-link:hover .gallery-main {
  opacity: 0.92;
}
.product-detail .gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.product-detail .gallery-thumbs img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  background: #fff;
}
.product-detail .gallery-thumbs img:hover,
.product-detail .gallery-thumbs img.active { border-color: var(--orange); }
.product-detail .gallery-placeholder {
  min-height: 420px;
  background: var(--lightgrey);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey);
}

.product-promos { display: flex; flex-direction: column; gap: 6px; max-width: 300px; }
.product-promos .promo {
  background: var(--salat);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt-grey);
  text-align: center;
}
.product-promos .promo.promo-season {
  background: var(--lightorange);
  color: var(--orange);
}

.wishlist-btn {
  background: #fff;
  border: 2px solid var(--lightorange);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: var(--grey);
  transition: color .15s ease, border-color .15s ease;
}
.wishlist-btn:hover { color: var(--orange); border-color: var(--orange); }
.wishlist-btn.active { color: var(--orange); }

.product-detail .badge-stock {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.badge-in-stock { background: #e6f9e6; color: var(--green); }
.badge-on-order { background: #fff3e0; color: var(--orange); }
.badge-sold { background: var(--lightgrey); color: var(--grey); }

.product-detail .price-block .price-main {
  font-size: 36px;
  font-weight: 700;
  color: var(--txt-grey);
}
.product-detail .price-block .price-per-unit {
  font-size: 14px;
  color: var(--grey);
}
.product-detail .price-block .price-old {
  text-decoration: line-through;
  color: var(--grey);
  font-size: 22px;
}

/* Скидка «Товар на сезон»: зачёркнутая «накрученная» цена + реальная под ней */
.price-old-strike {
  text-decoration: line-through;
  color: var(--grey);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  margin: 0 0 4px;
}
.product-thumb .price-old-strike {
  font-size: 14px;
  margin-bottom: 2px;
}
.price-main.price-real,
.new.price-real {
  color: var(--orange);
}
.price-per-unit.price-total-for-qty.is-real,
.forfour.price-total-for-qty.is-real {
  font-weight: 700;
  color: var(--txt-grey);
}
.price-total-for-qty.js-price-for-qty-old s {
  color: var(--grey);
}

/* Specs table (legacy, для совместимости) */
.specs-table { width: 100%; }
.specs-table td {
  padding: 8px 0;
  border-bottom: 1px dotted #c5c1c1;
  font-size: 15px;
}
.specs-table td:first-child {
  color: var(--grey);
  width: 50%;
}

/* Характеристики в 2 колонки (как на shinko.ru) */
.specs-list {
  column-count: 2;
  column-gap: 40px;
}
.specs-list .specs-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted #c5c1c1;
  font-size: 15px;
  break-inside: avoid; /* не разрывать строку между колонками */
  page-break-inside: avoid;
}
.specs-list .specs-label {
  color: var(--grey);
  flex: 0 0 auto;
}
.specs-list .specs-value {
  color: var(--txt-grey);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
@media (max-width: 767px) {
  .specs-list { column-count: 1; }
}

/* Вкладки карточки товара */
.product-tabs { margin-top: 30px; }
.product-tabs .tab-buttons {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--lightgrey);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.product-tabs .tab-btn-card {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s ease, border-color .15s ease;
}
.product-tabs .tab-btn-card:hover { color: var(--txt-grey); }
.product-tabs .tab-btn-card.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.product-tabs .tab-pane { display: none; }
.product-tabs .tab-pane.active { display: block; }

/* Сетка единиц комплекта */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.unit-card {
  border: 1px solid var(--lightgrey);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.unit-card .unit-head {
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
  font-size: 15px;
}
.unit-card .unit-photo {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--lightgrey);
}
.unit-card .unit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.unit-card .unit-specs { width: 100%; font-size: 13px; }
.unit-card .unit-specs td {
  padding: 4px 0;
  border-bottom: 1px dotted #e0e0e0;
}
.unit-card .unit-specs td:first-child { color: var(--grey); width: 55%; }
.unit-card .unit-specs tr:last-child td { border-bottom: none; }

/* Related links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.related-links a {
  padding: 6px 14px;
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  color: var(--txt-grey);
  text-decoration: none;
  font-size: 14px;
}
.related-links a:hover { border-color: var(--orange); color: var(--orange); }

/* ======================== SERVICES ======================== */
.service-card {
  border: 1px solid var(--lightgrey);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--txt-grey);
  display: block;
  transition: all .2s;
}
.service-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(254,88,8,.1);
  color: var(--txt-grey);
}
.service-card h5 { font-weight: 700; }

.price-table { border-radius: 10px; overflow: hidden; }
.price-table th { background: var(--orange); color: #fff; }

/* ======================== FORMS ======================== */
.shinko-form .form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 .2rem rgba(254,88,8,.15);
}
.shinko-form .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 .2rem rgba(254,88,8,.15);
}

/* ======================== PROMO/AKCII ======================== */
.promo-card {
  border: 1px solid var(--lightgrey);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.promo-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.promo-badge-ended {
  background: var(--lightgrey);
  color: var(--grey);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
}

/* ======================== HOME: SLIDESHOW (акции) ======================== */
/* Слайдер акций — внутри контейнера, как на shinko.ru */
.slideshow { margin: 20px 0 30px; position: relative; }
.slideshow .swiper { overflow: hidden; width: 100%; border-radius: 10px; }
.slideshow .swiper-wrapper { align-items: stretch; }
.slideshow .swiper-slide {
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  height: auto;
}
.slideshow .swiper-slide .slide-link {
  display: block; width: 100%; cursor: pointer;
}
.slideshow .swiper-slide img {
  width: 100%; height: auto;
  object-fit: cover; display: block;
}
.slideshow .swiper-navig {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 0;
  /* Стрелки выходят за контейнер — как на OC */
  width: calc(100% + 100px);
  left: -50px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 4; pointer-events: none;
}
.slideshow .swiper-navig > div {
  height: 40px; width: 40px; background: var(--lightorange);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; pointer-events: auto;
  transition: background .2s;
}
.slideshow .swiper-navig > div:hover { background: var(--orange); }
.slideshow .swiper-navig > div.swiper-button-disabled { opacity: .3; pointer-events: none; }
.slideshow .swiper-pagination {
  display: flex; justify-content: center; margin: 20px 0 0; gap: 8px;
  position: static;
}
.slideshow .swiper-pagination .swiper-pagination-bullet {
  width: 10px; height: 10px; border-radius: 50%; background: var(--lightorange);
  display: inline-block; cursor: pointer; transition: background .2s; opacity: 1;
}
.slideshow .swiper-pagination .swiper-pagination-bullet-active { background: var(--orange); }
@media (max-width: 1399px) {
  .slideshow .swiper-navig { width: 100%; left: 0; padding: 0 10px; }
}
@media (max-width: 767px) {
  .slideshow { margin: 10px 0 20px; }
  .slideshow .swiper-navig { display: none; }
}

/* ======================== HOME: MG-CATALOG (плитка категорий) ======================== */
.mg-catalog { padding-top: 35px; position: relative; margin: 0 0 60px; }
.mg-catalog:before {
  content: ''; position: absolute; background: var(--grey);
  width: 100%; height: 180px; display: block; top: 0; left: 0;
  z-index: 1; border-radius: 10px;
}
.mg-catalog .title {
  font-size: 36px; color: var(--txt-white); margin: 0 0 20px;
  position: relative; z-index: 2; padding: 0 25px; font-weight: 500;
}
.mg-catalog .catalog-list {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; z-index: 2; gap: 20px;
}
.mg-catalog .catalog-list .item {
  width: 20%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
  height: 350px; border-radius: 10px; text-decoration: none;
  box-shadow: 7px 7px 5px 0 rgba(0,0,0,.1);
}
.mg-catalog .catalog-list .item:before {
  content: ''; background: var(--cards2);
  border: 1px solid var(--txt-grey2); display: block; width: 100%;
  position: absolute; z-index: 1; border-radius: 10px; height: 100%;
  transition: .2s; top: 0; left: 0;
}
.mg-catalog .catalog-list .item:hover:before {
  height: 360px; top: -5px; background: #fff;
}
.mg-catalog .catalog-list .item img {
  margin: 0 0 32px; position: relative; z-index: 2; max-width: 90%;
}
.mg-catalog .catalog-list .item span {
  font-weight: 700; font-size: 21px; line-height: 95%;
  text-transform: uppercase; text-align: center; color: var(--black);
  position: relative; z-index: 2;
}
@media (max-width: 991px) {
  .mg-catalog .title { font-size: 28px; }
  .mg-catalog .catalog-list { flex-wrap: wrap; gap: 15px; justify-content: flex-start; }
  .mg-catalog .catalog-list .item { width: calc(33.33% - 10px); height: 240px; }
  .mg-catalog .catalog-list .item:hover:before { height: 250px; }
  .mg-catalog .catalog-list .item span { font-size: 17px; }
}
@media (max-width: 575px) {
  .mg-catalog .catalog-list { flex-direction: column; }
  .mg-catalog .catalog-list .item {
    width: 100%;
    height: auto;
    padding: 30px 20px;
    gap: 20px;
  }
  .mg-catalog .catalog-list .item img {
    max-width: 220px;
    max-height: 220px;
    object-fit: contain;
    margin: 0;
  }
  .mg-catalog .catalog-list .item:hover:before { height: 100%; top: 0; }
}

/* ======================== HOME / SERVICES HUB: MG-SERVICES ======================== */
.mg-services { margin: 0 0 60px; }
.mg-services .title {
  font-size: 36px; color: var(--txt-grey2); padding: 0 25px;
  margin: 0 0 25px; font-weight: 500;
}
.mg-services .mg-h1 { font-size: 36px; font-weight: 700; margin: 0 0 15px; color: var(--black); }
.mg-services .p-uslugi { font-size: 28px; font-weight: 400; margin: 0 0 30px; color: var(--txt-grey); }
.mg-services .services-cta {
  text-align: center; padding: 0 25px; margin: 25px 0 0;
  color: var(--orange); font-size: 24px; font-weight: 500;
}

/* Плитка 3 × 2: .mg-fast.services (6 карточек) */
.mg-fast { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 30px; }
.mg-fast .item {
  width: calc(33.33% - 14px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid var(--lightorange); border-radius: 10px;
  padding: 25px 20px; gap: 20px;
  text-decoration: none; cursor: pointer;
  transition: all .2s;
  min-height: 220px;
}
.mg-fast.services .item { gap: 0; padding: 30px 20px; }
.mg-fast.services .item:hover {
  border-color: var(--orange);
  box-shadow: 7px 7px 5px 0 rgba(0,0,0,.1);
}
.mg-fast .item img {
  max-width: 130px; max-height: 130px;
  width: auto; height: auto;
  margin: 0 0 20px;
  object-fit: contain;
}
.mg-fast .item p {
  font-weight: 600; margin: 0;
  color: var(--black); text-align: center;
  font-size: 21px; line-height: 95%;
}
.ttu { text-transform: uppercase; }
.text-orange { color: var(--orange); }

@media (max-width: 991px) {
  .mg-services .title { font-size: 28px; }
  .mg-services .mg-h1 { font-size: 28px; }
  .mg-services .p-uslugi { font-size: 20px; }
  .mg-fast .item { min-height: 180px; padding: 20px; }
  .mg-fast .item img { max-width: 100px; max-height: 100px; margin: 0 0 12px; }
  .mg-fast .item p { font-size: 17px; }
}
@media (max-width: 575px) {
  .mg-fast { gap: 12px; }
  .mg-fast .item { width: calc(50% - 10px); min-height: 150px; padding: 15px; }
  .mg-fast .item img { max-width: 70px; max-height: 70px; }
  .mg-fast .item p { font-size: 14px; }
}

/* Страница направления */
.service-direction-body { margin: 20px 0 40px; font-size: 17px; line-height: 1.5; }
.service-price-section { margin: 60px 0; }
.service-price-list { display: flex; flex-direction: column; gap: 40px; }
.service-price-name {
  font-size: 24px; font-weight: 700; color: var(--black);
  border-bottom: 2px solid var(--lightorange); padding: 0 0 8px; margin: 0 0 6px;
}
.service-price-unit {
  font-size: 14px; color: var(--txt-grey2); font-style: italic;
  margin: 0 0 14px;
}
.service-price-simple {
  font-size: 20px; color: var(--txt-grey2); margin: 0 0 10px;
}
.service-price-simple strong {
  color: var(--orange); font-size: 22px;
}
.service-price-type-name { font-size: 18px; font-weight: 600; color: var(--txt-grey); margin: 20px 0 10px; }
.service-price-table { max-width: 600px; }
.service-price-table thead th {
  background: var(--cards2); font-size: 14px; font-weight: 600;
  color: var(--grey); text-transform: uppercase;
}
.service-direction-cta { text-align: center; margin: 40px 0 60px; }
.service-direction-cta .btn-green {
  background: var(--green-sm); border: 2px solid var(--txt-grey);
  border-radius: 10px; padding: 14px 40px;
  font-size: 21px; font-weight: 700; color: var(--black);
  cursor: pointer; text-transform: uppercase;
}
.service-direction-cta .btn-green:hover { background: #bfe600; }

/* ======================== INFOPAGER (страницы услуг из OpenCart) ======================== */
.infopager { margin: 0 0 60px; }
.infopager-body {
  font-size: 16px; line-height: 1.6;
  color: var(--txt-grey2, #393937);
}
.infopager-body h3, .infopager-body h4 {
  font-size: 20px; margin: 25px 0 12px; font-weight: 700;
}
.infopager-body p { margin: 0 0 15px; }
.infopager-body ul, .infopager-body ol { margin: 0 0 20px; padding-left: 24px; }
.infopager-body li { margin: 0 0 8px; }
.infopager-body a { color: var(--orange); text-decoration: underline; }
.infopager-body a:hover { text-decoration: none; }

/* OC-стиль для тройной вложенности нумерованных списков (оферта / политика) */
ol.triple-nested-list { list-style: none; counter-reset: section; padding: 0; }
ol.triple-nested-list > li { margin: 0 0 25px; }
ol.triple-nested-list > li:before {
  counter-increment: section;
  content: counter(section) ". ";
  font-weight: 700;
}
ol.triple-nested-list > li > b { display: inline; }
ol.triple-nested-list > li > ol {
  list-style: none; counter-reset: subsection; padding: 0; margin: 12px 0 0 24px;
}
ol.triple-nested-list > li > ol > li { margin: 0 0 10px; }
ol.triple-nested-list > li > ol > li:before {
  counter-increment: subsection;
  content: counter(section) "." counter(subsection) ". ";
  font-weight: 600; color: var(--grey);
}
ol.triple-nested-list > li > ol > li > ol {
  list-style: none; counter-reset: subsubsection; padding: 0; margin: 8px 0 0 24px;
}
ol.triple-nested-list > li > ol > li > ol > li { margin: 0 0 6px; }
ol.triple-nested-list > li > ol > li > ol > li:before {
  counter-increment: subsubsection;
  content: counter(section) "." counter(subsection) "." counter(subsubsection) ". ";
  font-weight: 500; color: var(--grey);
}
.infopager .mg-h1 {
  font-weight: 700; font-size: 30px; text-transform: uppercase;
  color: var(--black); margin: 30px 0 25px;
}
.infopager h1 { margin: 0 0 30px; }

/* Горизонтальная навигация между направлениями */
.infopager-links {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 20px 0 45px; flex-wrap: wrap;
}
.infopager-links a {
  border: 1px solid var(--polz); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  height: 44px; flex: 1; min-width: 160px; padding: 0 16px;
  color: var(--black); font-weight: 600; font-size: 16px;
  text-decoration: none; text-align: center;
  transition: all .2s;
}
.infopager-links a:hover { border-color: var(--orange); color: var(--orange); }
.infopager-links a.active {
  background: var(--orange); color: var(--txt-white);
  border-color: var(--orange);
}

/* mg-steps — виды ремонта (3 или 4 карточки) */
.mg-steps {
  display: flex; flex-wrap: wrap; gap: 20px;
  position: relative; justify-content: flex-start;
  margin: 0 0 45px;
}
.mg-steps .title { width: 100%; }
.mg-steps .item {
  width: calc(33.33% - 14px);
  background: var(--txt-white); border: 1px solid var(--grey);
  border-radius: 10px; padding: 30px 20px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  position: relative; z-index: 2;
}
.mg-steps .title { position: relative; z-index: 3; }
.mg-steps.four .item { width: calc(25% - 15px); }
.mg-steps .item img { margin: 0 0 30px; max-width: 80%; }
.mg-steps .item b {
  font-weight: 600; line-height: 1.3;
  text-transform: uppercase; text-align: center;
  font-size: 18px; color: var(--black);
}
.mg-steps .item p {
  padding: 10px 20px 0;
  text-align: center; color: var(--txt-grey2);
  margin: 0;
}
.mg-steps .text-orange.center {
  text-align: center; max-width: 1080px;
  margin: 20px auto 10px; width: 100%;
  font-size: 20px; font-weight: 500;
}

/* mg-doship — дошиповка (2 карточки) */
.mg-doship {
  display: flex; align-items: flex-start; gap: 20px;
  flex-wrap: wrap; margin: 0 0 60px;
}
.mg-doship .item {
  display: flex; flex-direction: column;
  width: calc(50% - 10px); align-items: center;
  border: 2px solid var(--lightorange); border-radius: 10px;
  padding: 30px; margin: 0 0 10px;
}
.mg-doship .item img {
  max-width: 100%; width: 100%;
  margin: 0 0 20px;
  height: 224px; object-fit: cover; border-radius: 8px;
}
.mg-doship .item b {
  font-weight: 700; font-size: 21px;
  text-transform: uppercase; color: var(--black);
}

/* mg-before — до/после (покраска) */
.mg-before {
  display: block; margin: 0 0 45px;
  position: relative;
}
.mg-before .title { margin: 0 0 25px; position: relative; z-index: 3; }
.mg-before .before-after-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 0 0 30px;
  position: relative;
  z-index: 3;
}
.mg-before .before-after-grid .item {
  display: flex;
  background: #fff; border-radius: 10px;
  border: 1px solid var(--grey);
  overflow: hidden;
}
.mg-before .before-after-grid .item > div {
  display: flex; flex-direction: column;
  padding: 30px 20px;
  align-items: center; justify-content: center;
  width: 50%;
}
.mg-before .before-after-grid .item > div + div { border-left: 1px solid var(--grey); }
.mg-before .before-after-grid .item img {
  margin: 0 0 20px; max-width: 100%;
  object-fit: cover; border-radius: 8px;
  height: 160px; width: 100%;
}
.mg-before .before-after-grid .item b {
  font-weight: 700; text-transform: uppercase; color: var(--black);
}

/* buy-sell.five — хранение (6 этапов) */
.buy-sell {
  display: flex; align-items: center;
  border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 30px; margin: 0 0 60px;
}
.buy-sell .item-list {
  display: flex; align-items: flex-start; width: 100%;
  flex-wrap: wrap; gap: 20px;
}
.buy-sell.five .item-list .item {
  width: calc(16.66% - 17px); height: auto;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  position: relative; padding: 0 10px;
}
.buy-sell .item-list .item b {
  font-weight: 700; line-height: 1.1;
  text-transform: uppercase;
  display: flex; align-items: flex-start; justify-content: center;
  margin: 0 0 20px; text-align: center;
  flex-direction: column; height: 42px;
  font-size: 16px; color: var(--black);
}
.buy-sell .item-list .item img:not(.plus) {
  max-width: 100%; height: 130px; object-fit: contain;
  margin: 0 0 15px;
}
.buy-sell .item-list .item > span {
  font-weight: 400; line-height: 1.3;
  text-align: center; color: var(--txt-grey2);
  font-size: 14px; padding: 0 5px;
}
.buy-sell .item-list .item .plus {
  position: absolute; right: -15px; top: 32%;
  width: 18px; height: 18px;
}
.buy-sell.five .item-list .item.last .plus {
  right: auto; left: -15px;
}

/* standalone-img — гарантия */
.standalone-img { margin: 40px 0 60px; }
.standalone-img img {
  width: 100%; max-width: 100%; border-radius: 10px;
  display: block;
}

/* Правила — галерея образцов фото (trade-in, prodat) */
.sliders-block.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 0 30px;
}
.sliders-block.three > .item {
  display: flex; flex-direction: column;
  min-width: 0; overflow: hidden;
}
.sliders-block.three .item > p { font-weight: 600; margin: 0 0 15px; }
.rules-gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.rules-gallery > div {
  width: 180px;
  flex: 0 0 180px;
  text-align: center;
}
.rules-gallery img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  border: 1px solid var(--lightorange);
  margin: 0 0 8px;
  object-fit: cover;
  display: block;
}
.rules-gallery p {
  font-size: 14px;
  color: var(--txt-grey2);
  margin: 0;
}
/* Исключения — 4 колонки со Swiper-слайдерами */
.sliders-block.four.ex {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 20px 0 0;
}
.sliders-block.four.ex > .item {
  display: flex; flex-direction: column;
  min-width: 0; /* prevent grid blowout */
  overflow: hidden;
}
.sliders-block.four.ex > .item > p { font-weight: 600; margin: 0 0 15px; }
.exc-swiper {
  width: 100% !important;
  max-width: 100%;
  border-radius: 10px;
  margin: 0 0 10px;
}
.exc-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.exc-swiper .swiper-slide img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.exc-swiper .swiper-slide .slide-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--txt-grey2);
  text-align: center;
  margin: 10px 0 0;
  min-height: 42px;
}
.rul-navi {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  justify-content: center;
}
.rul-navi button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.rul-navi button:hover { opacity: .8; }
.exc-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exc-links a {
  font-size: 15px;
  color: var(--txt-grey2);
  text-decoration: none;
  line-height: 1.4;
  transition: color .15s;
}
.exc-links a:hover { color: var(--orange); }
.exc-links a.active {
  color: var(--orange);
  font-weight: 600;
}
@media (max-width: 991px) {
  .sliders-block.three { grid-template-columns: 1fr; gap: 25px; }
  .sliders-block.four.ex { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .rules-gallery > div { width: 130px; flex: 0 0 130px; }
  .rules-gallery img { width: 130px; height: 130px; }
  .sliders-block.four.ex { grid-template-columns: 1fr; }
  .exc-links a { font-size: 14px; }
  .exc-swiper .swiper-slide img { aspect-ratio: 1; }
}

/* sell-rules + black-head — блок с тёмной шапкой */
.black-head { position: relative; margin: 0 0 40px; }
.black-head .title {
  z-index: 2; color: var(--txt-white);
  width: 100%; padding: 25px 30px;
  position: relative; line-height: 1.2;
  font-weight: 500;
}
.black-head:before {
  content: ''; position: absolute;
  height: 184px; width: 100%;
  top: 0; left: 0;
  background: var(--grey);
  z-index: 1; border-radius: 10px;
}
.white-block {
  display: block;
  background: #fff; padding: 25px; border-radius: 10px;
  z-index: 2; position: relative;
  border: 1px solid var(--lightgrey);
}

/* Зона ожидания: простой CSS-grid из 3 картинок */
.waiting-zone-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; width: 100%;
}
.waiting-zone-grid .item { min-width: 0; }
.waiting-zone-grid img {
  width: 100%; height: 300px;
  object-fit: cover; border-radius: 10px;
  display: block;
}
@media (max-width: 991px) {
  .waiting-zone-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .waiting-zone-grid img { height: 220px; }
}
@media (max-width: 575px) {
  .waiting-zone-grid { grid-template-columns: 1fr; }
  .waiting-zone-grid img { height: 200px; }
}

/* garanty */
.garanty { padding: 0; }
.garanty .title { padding: 0; font-weight: 600; color: var(--orange) !important; margin: 0 0 20px; }
.garanty p {
  display: flex; align-items: flex-start;
  margin: 0 0 8px; font-size: 18px;
}
.garanty p > span.text-orange {
  margin: 0 8px 0 0; font-weight: 700;
  display: inline-flex;
}

/* Форма расчёта шиномонтажа */
.forma-shinomantazh {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; margin: 40px 0 60px;
  gap: 30px;
}
.forma-shinomantazh .title36 {
  color: var(--txt-grey2); margin: 0 0 20px;
  width: 100%; font-size: 36px; font-weight: 500;
}
.forma-shinomantazh .image {
  width: calc(46% - 15px);
}
.forma-shinomantazh .image img {
  width: 100%; max-width: 100%;
  border-radius: 10px;
}
.forma-shinomantazh .form-shi {
  width: calc(54% - 15px);
  display: flex; flex-direction: column;
  gap: 20px; align-items: stretch;
}
.forma-shinomantazh .form-shi > div {
  border: 1px solid var(--orange); border-radius: 10px;
  padding: 25px 30px; position: relative;
  display: flex; flex-direction: column;
}
.forma-shinomantazh .form-shi label {
  margin: 0 0 8px; font-weight: 500;
  font-size: 18px; color: var(--black);
}
.forma-shinomantazh .form-shi select {
  border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 10px 18px; height: 46px;
  font-size: 16px; margin: 0 0 20px;
  background: #fff;
}
.forma-shinomantazh .price-result {
  position: absolute; background: #fff;
  inset: 1px; border-radius: 10px;
  padding: 25px 30px;
  display: none; flex-direction: column; justify-content: center;
  z-index: 2;
}
.forma-shinomantazh .price-result.active { display: flex; }
.forma-shinomantazh .price-result label { margin: 0 0 10px; }
.forma-shinomantazh .price-result .title-resultf { text-transform: uppercase; font-weight: 700; }
.forma-shinomantazh .price-result .orange { color: var(--orange); font-weight: 700; }
.forma-shinomantazh .price-result a.rst { color: var(--orange); text-decoration: underline; margin-top: 15px; display: inline-block; }
.forma-shinomantazh .form-shi button.btn-calc {
  background: var(--orange); border: none; border-radius: 10px;
  padding: 12px 30px; color: #fff; font-size: 18px;
  cursor: pointer; font-weight: 600;
}
.forma-shinomantazh .form-shi button.btn-calc:hover { background: #e54d07; }
.forma-shinomantazh .form-shi button.shimono {
  border: 2px solid var(--txt-grey2); border-radius: 10px;
  padding: 10px 20px; background: var(--green-sm);
  font-size: 18px; font-weight: 700;
  color: var(--black); height: auto;
  text-transform: uppercase; cursor: pointer;
  width: fit-content; align-self: center;
}
.forma-shinomantazh .form-shi button.shimono:hover { background: #bfe600; }

/* Утилитарные классы */
.text-grey { color: var(--grey); }
.fs18 { font-size: 18px; }
.text-center { text-align: center; }

/* ======================== LOGIN & ACCOUNT (Личный кабинет) ======================== */
.login-wrap {
  max-width: 560px; margin: 40px auto 60px;
}
.login-subtitle { color: var(--grey); margin: 0 0 25px; line-height: 1.5; }

/* Табы login/register/reset */
.login-tabs {
  display: flex; gap: 4px; margin: 0 0 20px;
  border-bottom: 2px solid var(--lightorange);
}
.login-tabs .tab-btn {
  flex: 1;
  padding: 12px 18px;
  background: none; border: none;
  color: var(--grey); font-weight: 600; font-size: 15px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.login-tabs .tab-btn:hover { color: var(--orange); }
.login-tabs .tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Блок отображения кода после регистрации / сброса */
.code-display {
  margin: 25px 0 0;
  padding: 25px;
  border: 2px dashed var(--orange);
  border-radius: 10px;
  background: #fff8f3;
  text-align: center;
}
.code-display h3 {
  margin: 0 0 15px;
  font-size: 18px; font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
}
.code-display .code-value {
  display: inline-block;
  padding: 18px 30px;
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 28px; font-weight: 700;
  letter-spacing: 4px;
  color: var(--orange);
  margin: 0 0 20px;
  user-select: all;
}
.code-display .code-warning {
  font-size: 14px;
  color: var(--txt-grey2);
  line-height: 1.5;
  margin: 0 0 20px;
  padding: 12px 15px;
  background: #fff3cd;
  border-radius: 8px;
  text-align: left;
}
.code-display .btn-orange { padding: 12px 30px; margin: 0 10px 0 0; }

/* Блок действий записи (для отмены) */
.appointment-actions {
  display: flex; flex-direction: column;
  gap: 8px; align-items: flex-end;
}
.appointment-actions .btn-link {
  background: none; border: none;
  color: #c00; cursor: pointer;
  font-size: 13px; text-decoration: underline;
  padding: 0;
}
.appointment-actions .btn-link:hover { color: #900; }

.login-card {
  background: #fff;
  border: 1px solid var(--lightorange);
  border-radius: 10px;
  padding: 30px;
}
.login-card .form-field { display: flex; flex-direction: column; margin: 0 0 18px; }
.login-card .form-label {
  font-size: 14px; color: var(--txt-grey); font-weight: 500;
  margin: 0 0 8px;
}
.login-card input[type="tel"],
.login-card input[type="text"],
.login-card input[type="email"] {
  border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 14px 20px; font-size: 18px;
  font-family: inherit; color: var(--black); background: #fff;
}
.login-card input:focus { outline: none; border-color: var(--orange); }
.login-card input[readonly] { background: #f5f5f5; color: var(--grey); }
.login-card .btn-orange {
  width: 100%; padding: 14px; font-size: 17px; font-weight: 700;
  border: none; border-radius: 10px; cursor: pointer;
}
.login-card .btn-link {
  background: none; border: none; color: var(--grey);
  cursor: pointer; padding: 10px 0; text-decoration: underline;
  font-size: 14px; margin-left: 10px;
}
.login-card .btn-link:hover { color: var(--orange); }
.login-info { color: var(--txt-grey); margin: 0 0 20px; }
.login-result { margin-top: 15px; font-size: 15px; min-height: 22px; }
.login-result.success { color: var(--green); }
.login-result.error   { color: #c00; }

/* =================================================================
   Личный кабинет — в стиле OpenCart
   ================================================================= */
.account-page-oc { margin: 20px 0 60px; }

/* Заголовок секции с чёрным фоном */
.account-page-oc .sell-rules.black-head {
  margin: 0 0 40px;
}
.account-page-oc .sell-rules.black-head .title {
  background: #393937; color: #fff;
  padding: 20px 30px;
  border-radius: 10px 10px 0 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 15px;
}
.account-page-oc .sell-rules.black-head .title span { font-weight: 700; }
.account-page-oc .sell-rules.black-head .title .logout {
  font-size: 16px; color: #fff; text-decoration: none; opacity: .85;
  font-weight: 400;
}
.account-page-oc .sell-rules.black-head .title .logout:hover {
  opacity: 1; color: var(--orange);
}
.account-page-oc .white-block {
  background: #fff;
  border: 1px solid var(--lightorange); border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 30px;
}

/* Мои данные — аватар + форма */
.profile-data {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 30px; align-items: start;
}
.edit-avatar .avatar {
  width: 200px; height: 200px; position: relative;
  border: 2px dashed var(--lightorange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff8f3;
  overflow: hidden;
}
.edit-avatar .avatar > span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--grey); text-transform: uppercase;
}
.edit-avatar .avatar b {
  font-size: 88px; color: var(--orange); font-weight: 700;
  line-height: 1;
}
.edit-avatar .avatar img { max-width: 100%; max-height: 100%; }

.edit-data {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
}
.input-big {
  display: flex; flex-direction: column;
}
.input-big.first { grid-column: 1; }
.input-big label {
  font-size: 14px; color: var(--txt-grey); font-weight: 500;
  margin: 0 0 6px;
}
.input-big label span { color: var(--orange); margin-left: 2px; }
.input-big input,
.input-big select {
  border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 12px 18px; font-size: 16px; background: #fff;
  font-family: inherit;
}
.input-big input[readonly] { background: #f5f5f5; color: var(--grey); }
.form-btns {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 20px;
  margin-top: 8px;
}
.btn-primary {
  background: var(--orange); color: #fff;
  border: none; border-radius: 10px;
  padding: 14px 34px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.btn-primary:hover { background: #e14e07; }
.profile-save-result { font-size: 14px; }
.profile-save-result.success { color: var(--green); }
.profile-save-result.error   { color: #c00; }

/* Автомобили — в стиле OpenCart */
.account-cars {
  margin: 0 0 65px;
}
.account-cars .title36 {
  font-size: 36px; font-weight: 700; color: #393937;
  margin: 25px 0;
  padding-left: 22px;
}
.cars-list { display: block; }

.account-cars .car {
  position: relative;
  background: var(--lightgrey, #ededed);
  border-radius: 10px;
  padding: 20px 25px;
  margin: 0 0 20px;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-around;
  gap: 24px;
}
.account-cars .car.emptyy {
  justify-content: space-between;
  text-align: left; padding: 30px 25px;
}
.account-cars .car.emptyy p { width: fit-content; margin: 0; }
.account-cars .car.emptyy.hide { display: none; }

/* Крестик удаления в углу */
.account-cars .car:not(.emptyy) > .js-car-delete {
  position: absolute; right: 20px; top: 16px;
  background: transparent;
  border: none;
  width: 20px; height: 20px;
  padding: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: .6;
  transition: opacity .15s;
}
.account-cars .car > .js-car-delete:hover { opacity: 1; }
.account-cars .car > .js-car-delete svg { width: 16px; height: 16px; }

.cart-itemm {
  display: flex; flex-direction: column;
  flex-grow: 1;
  max-width: 320px;
  min-width: 0;
}
.cart-itemm.sm { max-width: 250px; }
.cart-itemm > span {
  font-size: 16px; color: #393937;
  font-weight: 400;
  margin: 0 0 10px;
}
.cart-itemm > input {
  border: 1px solid transparent;
  border-radius: 10px;
  height: 44px;
  padding: 0 20px;
  font-size: 16px;
  background: #fff;
  color: #393937;
  font-family: inherit;
  width: 100%;
}
.cart-itemm > input:focus { border-color: var(--orange); outline: none; }
.cart-itemm > input[readonly] { background: #fff; cursor: default; }
.cart-itemm > input.skks { text-transform: uppercase; font-weight: 500; }

/* Кнопка "Записаться" — белая с оранжевой рамкой */
.cart-itemm > .btn-zapis {
  background: #fff;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 10px;
  height: 44px;
  padding: 0 20px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  transition: background .15s, color .15s;
}
.cart-itemm > .btn-zapis:hover {
  background: var(--orange);
  color: #fff;
}

/* Блок с активной записью */
.aka-apointment {
  display: flex; align-items: center; gap: 6px;
  width: 100%;
}
.aka-apointment input {
  flex: 1; min-width: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  height: 44px;
  padding: 0 20px;
  font-size: 16px;
  background: #fff;
  color: #393937;
  font-family: inherit;
}
.aka-apointment .remove-appointment {
  background: transparent;
  border: none;
  width: 28px; height: 28px; padding: 0;
  flex: 0 0 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: .6;
  transition: opacity .15s;
}
.aka-apointment .remove-appointment:hover { opacity: 1; }
.aka-apointment .remove-appointment svg { width: 16px; height: 16px; }

/* Кнопка "Добавить автомобиль" — справа, оранжевая */
.reqs-btn {
  display: flex;
  justify-content: flex-end;
  padding: 0 25px;
  margin-top: 15px;
}
.reqs-btn .btn-primary {
  background: var(--orange); color: #fff;
  border-radius: 10px; height: 44px;
  padding: 0 24px;
  font-weight: 500;
  width: auto; min-width: 272px;
}

/* Форма добавления авто */
.vehicle-form.add-vehicle {
  display: none;
  margin-top: 25px;
  padding: 25px;
  background: #fff8f3; border: 1px dashed var(--orange);
  border-radius: 10px;
  position: relative;
}
.vehicle-form.add-vehicle.active { display: block; }
.vehicle-form h4 {
  margin: 0 0 20px; color: var(--orange); font-weight: 700;
}
.car-add .form-group {
  display: flex; flex-direction: column; margin: 0 0 15px;
}
.car-add .form-group > span {
  font-size: 13px; color: var(--grey); margin: 0 0 6px;
}
.car-add .form-group input,
.car-add .form-group select {
  border: 1px solid var(--lightgrey); border-radius: 8px;
  padding: 10px 14px; font-size: 15px; background: #fff;
  font-family: inherit;
}
.car-add .form-group.flex { margin-top: 20px; }
.vehicle-form .close-add-car {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; padding: 0;
  opacity: .6;
}
.vehicle-form .close-add-car:hover { opacity: 1; }

.add-car-error { margin-top: 10px; }
.add-car-error p {
  display: none;
  background: #fff3f3; color: #c00;
  border: 1px solid #ffcccc; border-radius: 8px;
  padding: 10px 15px;
}

/* Хранение */
.account-cars.safe .car {
  grid-template-columns: 1fr 1fr 1fr;
  padding: 20px;
}
.account-cars.safe .car > p.fs21 {
  grid-column: 1 / -1;
  font-weight: 700; margin: 0 0 5px;
}

/* Заказы */
.reqqs.orders .reqs-data {
  display: flex; flex-direction: column; gap: 15px;
}
.reqs {
  background: #fafafa; border: 1px solid var(--lightgrey);
  border-radius: 10px;
  overflow: hidden;
}
.reqs-top {
  background: #fff; padding: 15px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  border-bottom: 1px solid var(--lightgrey);
}
.reqs-top span { font-weight: 700; }
.reqs-top p { margin: 0; }
.reqs-top b.gr { color: var(--green); }
.reqs-top b.or { color: var(--orange); }
.reqs-bottom {
  padding: 18px 20px;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 15px 20px;
}
.ord-item {
  display: flex; flex-direction: column;
}
.ord-item.full { grid-column: 1 / -1; }
.ord-item b { font-size: 13px; color: var(--grey); font-weight: 500; margin: 0 0 4px; }
.ord-item span { font-size: 15px; color: #393937; }
.ord-item.lis { flex-direction: row; gap: 10px; flex-wrap: wrap; }
.ord-item.lis img { max-width: 70px; border-radius: 6px; }

.car.emptyy {
  text-align: center; padding: 40px 20px;
  background: #fafafa; border: 1px solid var(--lightgrey);
  border-radius: 10px;
}
.car.emptyy p { margin: 0 0 15px; color: var(--grey); }

/* === Адаптив === */
@media (max-width: 991px) {
  .profile-data { grid-template-columns: 1fr; }
  .edit-avatar .avatar { margin: 0 auto; }
  .reqs-bottom { grid-template-columns: 1fr 1fr; }
  .account-cars.safe .car { grid-template-columns: 1fr 1fr; }
  .account-cars .title36 { font-size: 32px; }
  .cart-itemm, .cart-itemm.sm { max-width: 100%; flex-basis: calc(50% - 24px); }
}
@media (max-width: 640px) {
  .edit-data { grid-template-columns: 1fr; }
  .account-cars .car { padding: 22px 20px; }
  .account-cars.safe .car { grid-template-columns: 1fr; }
  .reqs-bottom { grid-template-columns: 1fr; }
  .account-page-oc .white-block { padding: 20px; }
  .account-page-oc .sell-rules.black-head .title { padding: 15px 20px; font-size: 22px; }
  .account-cars .title36 { font-size: 26px; padding-left: 0; }
  .cart-itemm, .cart-itemm.sm { max-width: 100%; flex-basis: 100%; }
  .reqs-btn { padding: 0; justify-content: center; }
  .reqs-btn .btn-primary { width: 100%; min-width: 0; }
}

/* ======================== CHECKOUT page ======================== */
.checkout-form { margin: 20px 0 60px; }
.checkout-block {
  background: #fff;
  border: 1px solid var(--lightorange);
  border-radius: 10px;
  padding: 25px 30px;
  margin: 0 0 25px;
}
.checkout-block .block-title {
  font-size: 20px; font-weight: 700;
  color: var(--black);
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--lightorange);
  text-transform: uppercase;
}
.checkout-block .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.checkout-block .form-field { display: flex; flex-direction: column; }
.checkout-block .form-label {
  font-size: 14px; color: var(--txt-grey);
  margin: 0 0 8px; font-weight: 500;
}
.checkout-block input[type="text"],
.checkout-block input[type="tel"],
.checkout-block input[type="email"],
.checkout-block textarea {
  border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 12px 18px; font-size: 16px;
  font-family: inherit;
  color: var(--black);
  background: #fff;
}
.checkout-block input:focus,
.checkout-block textarea:focus {
  outline: none; border-color: var(--orange);
}
.checkout-block textarea { width: 100%; resize: vertical; }

/* Layout: филиалы слева + карта справа */
.pickup-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.pickup-map {
  border-radius: 10px;
  overflow: hidden;
  min-height: 340px;
  background: var(--lightgrey);
}
.pickup-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}
@media (max-width: 991px) {
  .pickup-layout { grid-template-columns: 1fr; }
  .pickup-map { min-height: 280px; }
  .pickup-map iframe { min-height: 280px; }
}

/* Radio-выбор филиала */
.pickup-branches {
  display: flex; flex-direction: column;
  gap: 12px;
}
.pickup-option {
  display: flex; align-items: flex-start;
  gap: 15px;
  padding: 18px 22px;
  border: 2px solid var(--lightorange); border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pickup-option:hover { border-color: var(--orange); }
.pickup-option input[type="radio"] {
  margin: 5px 0 0;
  width: 20px; height: 20px; cursor: pointer;
  accent-color: var(--orange);
}
.pickup-option input[type="radio"]:checked ~ .pickup-content { }
.pickup-option:has(input:checked) { background: rgba(254, 88, 8, .04); border-color: var(--orange); }
.pickup-content { flex: 1; }
.pickup-name {
  font-weight: 700; color: var(--black); font-size: 16px;
  margin: 0 0 4px;
}
.pickup-city {
  display: inline-block; margin-left: 8px;
  padding: 2px 10px;
  background: var(--lightgrey); color: var(--grey);
  border-radius: 4px; font-size: 12px; font-weight: 500;
  text-transform: uppercase;
}
.pickup-address {
  font-size: 14px; color: var(--txt-grey2);
}

/* Правая колонка — itemlist */
.checkout-summary .co-items-list {
  margin: 0 0 18px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--lightgrey);
  max-height: 320px; overflow-y: auto;
}
.checkout-summary .co-item {
  padding: 8px 0;
  border-bottom: 1px dotted var(--lightgrey);
}
.checkout-summary .co-item:last-child { border-bottom: none; }
.checkout-summary .co-item-title {
  font-size: 13px; font-weight: 500;
  color: var(--black);
  margin: 0 0 4px;
  line-height: 1.3;
}
.checkout-summary .co-item-meta {
  font-size: 12px; color: var(--grey);
}
.checkout-summary .co-item-meta strong { color: var(--black); }

#co-result.error { color: #c00; }
#co-result.success { color: var(--green); }

.checkout-success {
  background: #fff;
  border: 1px solid var(--lightorange);
  border-radius: 10px;
  margin: 30px 0;
}
.checkout-success .fs30 { color: var(--orange); font-weight: 700; }

@media (max-width: 991px) {
  .checkout-block { padding: 20px; }
  .checkout-block .form-grid { grid-template-columns: 1fr; }
  .pickup-option { padding: 14px 16px; }
}

/* ======================== CART & WISHLIST pages ======================== */
/* Предупреждение о БУ товарах */
.bu-warning {
  margin: 0 0 20px;
}
.bu-warning-inner {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #ffa000;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #5d4037;
}
.bu-warning-inner strong {
  color: #e65100;
}

.cart-page, .wishlist-page { margin: 20px 0 60px; }

.cart-page .empty-block,
.wishlist-page .empty-block {
  text-align: center; padding: 60px 30px;
  border: 1px dashed var(--lightorange); border-radius: 10px;
  background: #fff8f5;
  max-width: 640px; margin: 40px auto;
}
.cart-page .empty-block h3,
.wishlist-page .empty-block h3 {
  color: var(--black); margin: 0 0 15px; font-weight: 700;
}
.cart-page .empty-block p,
.wishlist-page .empty-block p {
  color: var(--grey); margin: 0 0 25px; font-size: 17px;
}
.cart-page .empty-actions,
.wishlist-page .empty-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn-outline-orange {
  display: inline-block; padding: 12px 28px;
  border: 2px solid var(--orange); border-radius: 10px;
  color: var(--orange); text-decoration: none;
  font-weight: 600; background: #fff;
  transition: all .15s;
}
.btn-outline-orange:hover { background: var(--orange); color: #fff; }

/* Корзина — список товаров */
.big-cart .product-list {
  display: flex; flex-direction: column; gap: 20px;
}
.cart-item {
  display: flex; gap: 20px; align-items: center;
  padding: 20px; background: #fff;
  border: 1px solid var(--lightorange); border-radius: 10px;
}
.cart-item .cart-image {
  flex-shrink: 0; width: 120px; height: 120px;
  border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--lightgrey);
}
.cart-item .cart-image img {
  max-width: 100%; max-height: 100%; object-fit: cover;
}
.cart-item .cart-image .no-photo {
  color: var(--grey); font-size: 12px;
}
.cart-item .cart-data {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-item .cart-data .name {
  font-weight: 600; font-size: 16px; color: var(--black);
  text-decoration: none;
}
.cart-item .cart-data .name:hover { color: var(--orange); }
.cart-item .cart-other {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cart-item .cart-price {
  color: var(--grey); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.cart-item .quantity {
  display: inline-flex; align-items: center;
  border: 1px solid var(--lightorange); border-radius: 8px;
  overflow: hidden; background: #fff;
}
.cart-item .quantity button {
  width: 32px; height: 32px;
  background: var(--lightorange); border: none;
  font-size: 18px; font-weight: 700; color: var(--black);
  cursor: pointer;
}
.cart-item .quantity button:hover { background: var(--orange); color: #fff; }
.cart-item .quantity input {
  width: 44px; height: 32px; text-align: center;
  border: none; font-size: 15px; font-weight: 600;
  background: none;
}
.cart-item .cart-total {
  font-weight: 700; font-size: 18px; color: var(--black);
  margin-left: auto;
}
.cart-item .delete {
  background: none; border: none; cursor: pointer;
  padding: 4px; opacity: .6; transition: opacity .15s;
}
.cart-item .delete:hover { opacity: 1; }

/* Итоги */
.big-cart-total {
  border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 25px; background: #fff;
  position: sticky; top: 20px;
}
.big-cart-total .title {
  font-size: 24px; font-weight: 700; color: var(--black);
  margin: 0 0 18px; padding: 0;
}
.big-cart-total .totals p {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 10px; font-size: 15px;
}
.big-cart-total .totals p strong {
  color: var(--grey); font-weight: 500;
}
.big-cart-total .totals p span {
  color: var(--black); font-weight: 700;
}
.big-cart-total .totals .ptotal span { font-size: 22px; color: var(--orange); }
.big-cart-total .btn-go {
  display: block; width: 100%; margin: 20px 0 0;
  padding: 14px 20px; background: var(--orange); color: #fff;
  text-align: center; border-radius: 10px;
  font-weight: 700; font-size: 17px; text-transform: uppercase;
  text-decoration: none;
  transition: background .15s;
}
.big-cart-total .btn-go:hover { background: #e54d07; color: #fff; }

/* Избранное — сетка карточек, каждая как в листинге, но одна под другой (плюс переопределение ширины) */
.wishlist-page #wishlist-items-container {
  display: flex; flex-direction: column; gap: 20px;
}

@media (max-width: 991px) {
  .cart-item { flex-direction: column; align-items: flex-start; }
  .cart-item .cart-image { width: 100%; height: 180px; }
  .cart-item .cart-other { width: 100%; justify-content: space-between; }
  .cart-item .cart-total { margin-left: 0; }
  .big-cart-total { position: static; margin-top: 30px; }
}

/* ======================== SHINOZAPIS — мастер записи на шиномонтаж (1:1 OC) ======================== */
/* H1 и описание страницы */
#zapis-form-wrap .mg-h1,
body .mg-h1 { /* общий, но ненавязчивый */ }
.shinozapis-page-intro { margin: 20px 0 30px; }
.shinozapis-page-intro .mg-h1 {
  font-weight: 700; font-size: 36px; line-height: 1.2;
  text-transform: uppercase;
  color: var(--black, #000);
  margin: 20px 0 15px;
}
.shinozapis-page-intro .text-orange {
  color: var(--orange);
  font-size: 20px; line-height: 1.4;
  font-weight: 400;
  margin: 0 0 20px;
  max-width: 900px;
}
@media (max-width: 991px) {
  .shinozapis-page-intro .mg-h1 { font-size: 28px; }
  .shinozapis-page-intro .text-orange { font-size: 17px; }
}
@media (max-width: 575px) {
  .shinozapis-page-intro .mg-h1 { font-size: 22px; }
  .shinozapis-page-intro .text-orange { font-size: 15px; }
}

.shinozapis-form { margin: 45px 0; }
.shinozapis-form .title {
  font-size: 36px; color: var(--txt-grey2, #393937);
  margin: 0 0 20px; font-weight: 600;
}
.shinozapis-form .mg-tab { display: none; }
.shinozapis-form .mg-tab.active { display: block; }

/* Радио-кнопки как карточки (OC: обычный block, text-align слева, small на новой строке) */
.shinozapis-form input[type="radio"] { display: none; }
.shinozapis-form .radio {
  display: flex; flex-direction: column; align-items: center;
  margin: 0;
}
.shinozapis-form .radio label {
  border: 1px solid #c7c7c7;
  border-radius: 10px;
  padding: 20px 40px;
  width: 100%;
  min-height: 64px;
  font-weight: 600; font-size: 21px; line-height: 1.3;
  color: var(--black, #000);
  text-transform: uppercase;
  margin: 0 0 30px;
  cursor: pointer;
  transition: border-color .15s;
  background: #fff;
  display: block;
}
.shinozapis-form .radio label:hover { border-color: var(--orange); }
.shinozapis-form .radio input:checked + label { border-color: var(--orange); }
.shinozapis-form .radio label > small {
  display: block;
  font-weight: 400; font-size: 14px;
  color: var(--orange); text-transform: lowercase;
  margin-top: 4px;
}

/* Кнопки Далее */
.shinozapis-form button.next,
.shinozapis-form a.next,
.shinozapis-form input.next {
  border-radius: 10px;
  padding: 10px 30px;
  width: 300px; height: 50px;
  background: var(--orange);
  font-weight: 600;
  font-size: 20px; line-height: 124%;
  color: #fff;
  margin: 0 auto;
  text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
}
.shinozapis-form button.next:hover { opacity: .9; }

/* Кнопка Назад */
.shinozapis-form .js-zapis-prev {
  display: block;
  margin: 20px auto 0;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--txt-grey2, #393937);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  padding: 8px 16px;
}
.shinozapis-form .js-zapis-prev:hover { color: var(--orange); }

/* Inline-календарь (шаг "Выберите дату") */
.zapis-datepicker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 30px;
  width: 100%;
  max-width: 420px;
  user-select: none;
}
.zapis-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 12px;
  padding: 0 30px;
}
.zapis-dp-nav {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
}
.zapis-dp-nav:hover:not([disabled]) { color: var(--orange); }
.zapis-dp-nav[disabled] { opacity: .3; cursor: not-allowed; }
.zapis-dp-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  text-transform: uppercase;
  text-align: center;
  color: #343434;
  flex: 1;
}
.zapis-dp-calendar {
  width: 100%;
  border-collapse: collapse;
}
.zapis-dp-calendar th {
  width: 14.2857%;
  height: 50px;
  font-weight: 400;
  font-size: 20px;
  line-height: 125%;
  text-align: center;
  color: #994702;
}
.zapis-dp-calendar td {
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  text-align: center;
  height: 50px;
  width: 14.2857%;
  color: var(--black, #000);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}
.zapis-dp-calendar td.disabled {
  opacity: .3;
  cursor: not-allowed;
  font-weight: 400;
  color: var(--grey);
}
.zapis-dp-calendar td.selected {
  color: #fff;
  background-color: var(--orange);
  border-radius: 10px;
}
.zapis-dp-calendar td:not(.disabled):not(.selected):hover {
  color: var(--orange);
}

@media (max-width: 575px) {
  .zapis-datepicker { max-width: 340px; }
  .zapis-dp-header { padding: 0 15px; }
  .zapis-dp-title { font-size: 17px; }
  .zapis-dp-calendar th { height: 40px; font-size: 16px; }
  .zapis-dp-calendar td { height: 42px; font-size: 17px; }
}

/* Шаг: дата / время */
.shinozapis-form .time-selected {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.shinozapis-form .time-selected input {
  border: 1px solid var(--orange);
  border-radius: 10px;
  padding: 20px 40px;
  width: 100%;
  max-width: 600px;
  height: 64px;
  font-weight: 600;
  font-size: 20px; line-height: 120%;
  color: var(--txt-grey2, #393937);
  margin: 0 0 30px;
  background: #fff;
  text-align: center;
}

/* Шаг: время + посты — две колонки */
.two-columns.posts-container {
  display: flex;
  gap: 50px;
  justify-content: center;
  margin: 0 0 30px;
  flex-wrap: wrap;
}
.two-columns .post {
  width: 460px;
  max-width: 100%;
  display: flex; flex-wrap: wrap;
}
.two-columns .post .small-title {
  width: 100%;
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  text-transform: uppercase;
  text-align: center;
  color: #343434;
  margin: 0 0 30px;
}
.two-columns .post .radio {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.two-columns .post .radio label {
  border: 1px solid var(--lightorange, #ffcea5);
  border-radius: 10px;
  width: 100px; height: 45px;
  padding: 0; margin: 0;
  min-height: auto;
  font-size: 16px; font-weight: 500;
  text-transform: none;
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  max-width: none;
}
.two-columns .post .radio label.disabled { opacity: .3; cursor: not-allowed; }
.two-columns .post .radio input:checked + label {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.two-columns .post .post-empty {
  color: var(--grey);
  font-size: 14px; font-style: italic;
  width: 100%; text-align: center;
}

/* Нет слотов на выбранную дату */
.posts-container .no-slots {
  width: 100%;
  text-align: center;
  padding: 40px 30px;
  border: 1px dashed var(--lightorange);
  border-radius: 10px;
  background: #fff8f5;
}
.posts-container .no-slots p {
  font-size: 18px; color: var(--txt-grey2);
  margin: 0 0 20px;
}
.posts-container .no-slots .btn-orange {
  padding: 12px 30px; font-size: 17px;
}

/* Шаг: форма данных */
.shinozapis-form .formlist {
  display: flex; gap: 20px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}
.shinozapis-form .formlist .flex-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
}
.shinozapis-form .formlist .flex-row + .flex-row { margin: 0 0 30px; }
.shinozapis-form .formlist .flex-row.myy { margin: 0; }
.shinozapis-form .formlist .flex-row.myyy {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.shinozapis-form .formlist .input {
  width: calc(30% - 14px);
  display: flex;
  flex-direction: column;
}
.shinozapis-form .formlist .input.saafe {
  flex-direction: row;
  flex-wrap: wrap;
}
.shinozapis-form .formlist .input > span:not(.select2) {
  font-size: 14px;
  line-height: 171%;
  color: var(--txt-black, #000);
  display: flex;
  margin: 0 0 8px;
  width: 100%;
}
.shinozapis-form .formlist .input input,
.shinozapis-form .formlist .input select {
  border: 1px solid var(--lightorange, #ffcea5);
  padding: 5px 20px;
  width: 100%;
  height: 44px;
  margin: 0;
  font-size: 14px;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
}
.shinozapis-form .formlist .input.saafe select {
  width: 120px;
  margin: 0 20px 0 0;
}
.shinozapis-form .formlist .input.saafe input {
  width: fit-content;
  flex-grow: 1;
  max-width: calc(100% - 95px);
}

/* «Выбрать моё авто» (для залогиненных) */
.shinozapis-form .formlist .flex-row.myyy > button.carlist-btn {
  color: var(--orange);
  font-weight: 500;
  position: relative;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}
.shinozapis-form .formlist .flex-row.myyy > button.carlist-btn:after {
  content: '';
  position: absolute;
  right: -15px;
  top: 12px;
  width: 8px; height: 8px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  transform: rotate(-45deg);
  transition: transform .2s;
}
.shinozapis-form .formlist .flex-row.myyy > button.carlist-btn.mm:after {
  transform: rotate(45deg);
}
.my-carslist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.my-carslist button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border: 1px solid var(--lightorange, #ffcea5);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}
.my-carslist button b { font-weight: 700; }
.my-carslist button span { color: var(--grey); }
.my-carslist button:hover { border-color: var(--orange); }

/* Согласие */
.div-agree {
  font-weight: 400;
  font-size: 14px;
  padding-left: 34px;
  line-height: 171%;
  color: var(--form1, #393937);
  cursor: pointer;
  position: relative;
  margin: 0 0 20px;
  width: fit-content;
  user-select: none;
}
.div-agree:before {
  content: '';
  position: absolute;
  display: block;
  width: 24px; height: 24px;
  border: 1px solid #fe5909;
  left: 0; top: 0;
  border-radius: 100px;
}
.div-agree.active:before { border-width: 5px; }

/* Итог */
.totalform {
  border: 1px solid var(--orange);
  border-radius: 10px;
  padding: 20px 40px;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  font-size: 20px;
  line-height: 120%;
  color: var(--form1, #393937);
  margin: 0 0 20px;
  gap: 10px;
  flex-wrap: wrap;
}
.totalform span { padding-right: 10px; color: var(--grey); }
.totalform b { color: var(--black); font-weight: 700; }

#zapis-result { font-size: 16px; margin-top: 10px; }
#zapis-result.error { color: #c00; }
#zapis-result.success { color: var(--green); }

@media (max-width: 991px) {
  .shinozapis-form .title { font-size: 32px; }
  .shinozapis-form .radio label { font-size: 20px; }
}
@media (max-width: 767px) {
  .shinozapis-form .title { font-size: 28px; }
  .shinozapis-form .radio label { font-size: 17px; padding: 14px 20px; }
  .shinozapis-form button.next { height: 54px; font-size: 17px; width: 100%; }
  .two-columns.posts-container { flex-direction: column; align-items: center; }
  .shinozapis-form .formlist .flex-row { flex-wrap: wrap; }
  .shinozapis-form .formlist .input { width: 100%; }
  .shinozapis-form .formlist .flex-row + .flex-row { margin: 1px 0 20px; }
  .totalform { flex-direction: column; align-items: flex-start; padding: 15px 20px; font-size: 17px; }
  .totalform span { padding-right: 0; padding-bottom: 6px; }
}
@media (max-width: 575px) {
  .shinozapis-form .title { font-size: 24px; }
  .shinozapis-form .time-selected input { font-size: 17px; padding: 15px 20px; height: 54px; }
  .totalform { height: fit-content; padding: 10px 20px; font-size: 17px; }
}

/* ======================== BUY-SELL (6 карточек на /prodat) ======================== */
.buy-sell {
  display: flex; align-items: stretch;
  border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 30px; margin: 0 0 60px;
  gap: 30px;
}
.buy-sell .item-list {
  display: flex; align-items: stretch; flex: 1;
  gap: 20px;
}
.buy-sell .item-list .item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  text-align: center; position: relative;
  padding: 20px 10px 0;
}
.buy-sell .item-list .item b {
  font-weight: 700; font-size: 21px; line-height: 1;
  text-transform: uppercase; color: var(--black);
  margin: 0 0 18px;
}
.buy-sell .item-list .item img:not(.plus) {
  max-width: 100%; height: 100px; object-fit: contain;
  margin: 0 0 18px;
}
.buy-sell .item-list .item > span {
  font-size: 15px; line-height: 1.25;
  color: var(--txt-grey2); display: block;
  padding: 0 5px;
}
.buy-sell .item-list .item .plus {
  position: absolute; right: -15px; top: calc(50% - 14px);
  width: 18px; height: 18px; z-index: 2;
}
.buy-sell .eq {
  width: 210px; flex-shrink: 0;
  padding-left: 30px; position: relative;
  display: flex; align-items: center;
  flex-direction: column; justify-content: space-around;
  border-left: 1px solid var(--lightorange);
}
.buy-sell .eq .plus {
  position: absolute; left: -9px; top: calc(50% - 14px);
  width: 18px; height: 18px; background: #fff; padding: 0;
}
.buy-sell .eq img:not(.plus) {
  max-width: 100%; height: 110px; object-fit: contain;
  margin: 0 0 18px;
}
.buy-sell .eq b {
  font-weight: 700; font-size: 17px; line-height: 1.2;
  text-transform: uppercase; color: var(--black);
  text-align: center;
}
@media (max-width: 991px) {
  .buy-sell { flex-direction: column; padding: 20px; gap: 20px; }
  .buy-sell .item-list { flex-wrap: wrap; }
  .buy-sell .item-list .item { width: calc(33.33% - 14px); flex: 0 0 calc(33.33% - 14px); }
  .buy-sell .item-list .item .plus { display: none; }
  .buy-sell .eq { width: 100%; border-left: none; border-top: 1px solid var(--lightorange); padding: 20px 0 0; flex-direction: row; gap: 20px; }
  .buy-sell .eq img:not(.plus) { height: 80px; margin: 0; }
  .buy-sell .eq .plus { display: none; }
}
@media (max-width: 575px) {
  .buy-sell .item-list .item { width: calc(50% - 10px); flex: 0 0 calc(50% - 10px); }
}

/* ======================== MG-WHY / MG-STEPS (этапы с тёмной шапкой) ======================== */
.mg-steps.four .item { width: calc(25% - 15px); }
.mg-steps.mg-why .item b {
  display: flex; max-width: 90%;
  line-height: 1.3; font-size: 16px;
}
.mg-steps.mg-why.four .item b { min-height: 54px; }
.mg-steps .next,
.mg-easy .next {
  background: var(--orange); color: #fff;
  border: none; border-radius: 10px;
  padding: 14px 40px; font-size: 18px; font-weight: 700;
  cursor: pointer; text-transform: uppercase;
  margin: 20px auto 0; display: block;
  position: relative; z-index: 3;
}
.mg-steps .next:hover, .mg-easy .next:hover { background: #e54d07; }
@media (max-width: 991px) {
  .mg-steps.four .item { width: calc(50% - 10px); }
}
@media (max-width: 575px) {
  .mg-steps.four .item { width: 100%; }
}

/* ======================== MG-EASY (6 иконок на /trade-in) ======================== */
.mg-easy {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin: 0 0 60px;
}
.mg-easy .title {
  width: 100%; font-size: 32px; font-weight: 500;
  text-transform: uppercase; color: var(--black);
  margin: 0 0 20px;
}
.mg-easy .item {
  width: calc(33.33% - 14px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  border: 2px solid var(--lightorange); border-radius: 10px;
  padding: 30px 20px; gap: 20px;
  min-height: 230px;
}
.mg-easy .item img {
  max-width: 120px; max-height: 120px; object-fit: contain;
}
.mg-easy .item b {
  font-weight: 700; font-size: 18px; line-height: 1.3;
  text-align: center; color: var(--black);
}
@media (max-width: 991px) {
  .mg-easy .item { width: calc(50% - 10px); }
  .mg-easy .title { font-size: 24px; }
}
@media (max-width: 575px) {
  .mg-easy .item { width: 100%; min-height: auto; padding: 20px; }
}

/* ======================== FAQ ======================== */
.faq { position: relative; margin: 0 0 60px; }
.faq .white-block { padding: 20px 25px; }
.faq .panel-group { display: flex; flex-direction: column; gap: 10px; }
.faq .panel {
  border: 1px solid #eaeaea; border-radius: 10px;
  background: #fff; overflow: hidden;
}
.faq .panel-heading { padding: 0; }
.faq .panel-heading a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 18px; line-height: 1.2; font-weight: 500;
  color: var(--black); padding: 18px 22px;
  cursor: pointer; text-decoration: none;
  gap: 12px;
}
.faq .panel-heading a:hover { background: #f8f8f8; }
.faq .panel-heading a svg {
  transform: rotate(-180deg); transition: transform .2s;
  flex-shrink: 0;
}
.faq .panel-heading a.collapsed svg { transform: rotate(0deg); }
.faq .panel-collapse { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq .panel-collapse.open { max-height: 500px; }
.faq .panel-body {
  padding: 0 22px 18px;
  font-size: 16px; line-height: 1.5;
  color: var(--txt-grey2);
}

/* ======================== RULES-SAMPLES (образцы фото на /prodat) ======================== */
.rules-samples { display: flex; flex-direction: column; gap: 35px; }
.rules-sample h5 { font-weight: 700; color: var(--black); }
.rules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.rules-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
.rules-grid .item {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
}
.rules-grid .item img {
  width: 100%; aspect-ratio: 1 / 1; max-height: 260px;
  object-fit: cover; border-radius: 10px;
  border: 1px solid var(--lightgrey);
}
.rules-grid .item p {
  font-size: 15px; font-weight: 500; margin: 0;
  color: var(--txt-grey2);
}
@media (max-width: 767px) {
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid .item img { max-height: 180px; }
}
@media (max-width: 480px) {
  .rules-grid, .rules-grid.two { grid-template-columns: 1fr; }
}

/* ======================== SIMPLE FEEDBACK FORM ======================== */
.simple-feedback-form {
  border: 1px solid var(--orange); border-radius: 10px;
  padding: 30px 35px; margin: 40px 0;
  background: #fff;
}
.simple-feedback-form .title {
  padding: 0; color: var(--black);
  font-weight: 500; font-size: 28px;
  margin: 0 0 20px;
}
.simple-feedback-form label.form-label {
  font-weight: 500; color: var(--black);
}
.simple-feedback-form input[type="text"],
.simple-feedback-form input[type="tel"],
.simple-feedback-form input[type="email"],
.simple-feedback-form textarea {
  border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 12px 18px; font-size: 16px;
}
.simple-feedback-form input:focus,
.simple-feedback-form textarea:focus {
  outline: none; border-color: var(--orange);
}
.simple-feedback-form .form-result {
  font-size: 16px;
}
.simple-feedback-form .form-result.success { color: var(--green); }
.simple-feedback-form .form-result.error   { color: red; }

/* .btn-orange utility */
.btn-orange {
  background: var(--orange); color: #fff;
  border: none; border-radius: 10px;
  padding: 12px 28px; cursor: pointer;
  font-weight: 600; text-transform: uppercase;
  transition: background .2s;
  display: inline-block; text-decoration: none;
}
.btn-orange:hover { background: #e54d07; color: #fff; }

/* Info-description (на /trade-in) */
.info-description {
  font-size: 24px; font-weight: 600;
  margin: 0 0 35px;
  color: var(--orange); text-transform: uppercase;
  line-height: 1.3;
}

/* ======================== MG-CONTACTS (главная + /kontakty) ======================== */
.mg-contacts {
  position: relative; display: flex; flex-direction: column;
  margin: 0 0 60px;
}
/* Серая «шапка» (intro + «Контакты»). Высота равна высоте содержимого, поэтому
   на любом брейкпойнте фон точно покрывает intro и заголовок, не залезая на адрес. */
.mg-contacts-hero {
  background: var(--grey);
  border-radius: 10px 10px 0 0;
  padding-bottom: 65px;
  position: relative; z-index: 1;
}
.mg-contacts-hero > p {
  font-size: 21px; line-height: 1.2;
  text-align: center; color: var(--txt-white);
  position: relative; z-index: 2;
  margin: 35px 0 20px; padding: 0 15px;
}
.mg-contacts-hero > .title {
  position: relative; z-index: 2;
  font-weight: 400; font-size: 36px;
  color: var(--txt-white);
  padding: 0 25px; margin: 0;
}
.mg-contacts .contact-body {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 40px;
  position: relative; z-index: 2;
}
.mg-contacts .contact-body .left {
  flex: 1; min-width: 0;
  padding-top: 30px;
  display: flex; flex-direction: column;
}
.mg-contacts .contact-body .left .row-l {
  display: flex; margin: 0 0 30px;
  width: 100%; justify-content: space-between; gap: 30px;
}
.mg-contacts .contact-body .left .row-l > div { min-width: 0; }
.mg-contacts .contact-body .left .row-l > div:first-child { flex: 1; }
.mg-contacts .contact-body .left .row-l > div:nth-child(2) {
  width: 44%;
}
.mg-contacts .contact-body .left .row-l > div:nth-child(2) .small-title {
  font-weight: 700; font-size: 21px; line-height: 1;
  text-transform: uppercase; color: var(--grey);
  margin: 3px 0 20px;
}
.mg-contacts .contact-body .left .row-l > div:nth-child(2) p {
  font-size: 21px; line-height: 1.14;
  color: var(--txt-grey2); padding: 0;
  margin: 0;
}
.mg-contacts .contact-body .left .row-l p,
.mg-contacts .contact-body .left .row-l a {
  font-size: 20px; line-height: 1.15;
  color: var(--txt-grey2); text-decoration: none;
}
.mg-contacts .contact-body .left .row-l > div:first-child p {
  margin: 0 0 20px; position: relative;
  padding-left: 38px; word-break: break-word;
}
.mg-contacts .contact-body .left .row-l > div:first-child p > img {
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px;
}
.mg-contacts .contact-body .left .row-l a.underline {
  border-bottom: 1px solid; line-height: 1;
}
.mg-contacts .contact-body .left .row-l a:hover { color: var(--orange); }

.mg-contacts .contact-body .right {
  width: 100%; max-width: 620px;
  position: relative; z-index: 2;
  border-radius: 10px; overflow: hidden;
  margin-top: -40px;
}
.mg-contacts .contact-body .right iframe,
.mg-contacts .contact-body .right .mg-contacts-map {
  width: 100%; display: block; border: none;
  height: 420px; border-radius: 10px; overflow: hidden;
}
/* Iframe внутри map-контейнера — чтобы занимал всю доступную высоту/ширину */
.mg-contacts-map iframe { display: block; border: 0; border-radius: 10px; width: 100%; height: 100%; }
/* Yandex Maps SDK (fallback-сценарий) */
.mg-contacts-map [class*="ymaps-2-1"] { border-radius: 10px; }

@media (max-width: 991px) {
  .mg-contacts-hero { padding-bottom: 25px; }
  .mg-contacts-hero > .title { font-size: 28px; }
  .mg-contacts-hero > p { font-size: 17px; margin: 25px 0 15px; }
  .mg-contacts .contact-body { flex-direction: column; gap: 20px; }
  .mg-contacts .contact-body .left { width: 100%; padding-top: 15px; }
  .mg-contacts .contact-body .right {
    max-width: 100%; margin-top: 0;
  }
  .mg-contacts .contact-body .right iframe,
  .mg-contacts .contact-body .right .mg-contacts-map { height: 320px; }
  .mg-contacts .contact-body .left .row-l { flex-direction: column; gap: 15px; }
  .mg-contacts .contact-body .left .row-l > div:nth-child(2) { width: 100%; }
  .mg-contacts .contact-body .left .row-l p,
  .mg-contacts .contact-body .left .row-l a { font-size: 17px; }
}
@media (max-width: 575px) {
  .mg-contacts-hero > .title { font-size: 22px; padding: 0 15px; }
  .mg-contacts-hero > p { font-size: 15px; }
  .mg-contacts .contact-body .right iframe,
  .mg-contacts .contact-body .right .mg-contacts-map { height: 240px; }
}

/* Адаптив для страниц услуг */
@media (max-width: 991px) {
  .infopager .mg-h1 { font-size: 24px; }
  .infopager-links a { font-size: 14px; min-width: 140px; height: 40px; }
  .mg-steps .item { width: calc(50% - 10px); }
  .mg-steps.four .item { width: calc(50% - 10px); }
  .mg-doship .item { width: 100%; }
  .mg-before .before-after-grid { grid-template-columns: 1fr; }
  .buy-sell.five .item-list .item { width: calc(33.33% - 14px); }
  .buy-sell .item-list .item .plus { display: none; }
  .black-head:before { height: 120px; }
  .black-head .title { padding: 20px; font-size: 20px; }
  .forma-shinomantazh { flex-direction: column; }
  .forma-shinomantazh .image, .forma-shinomantazh .form-shi { width: 100%; }
}
@media (max-width: 575px) {
  .infopager-links { flex-direction: column; }
  .infopager-links a { width: 100%; }
  .mg-steps .item, .mg-steps.four .item { width: 100%; }
  .buy-sell { padding: 15px; }
  .buy-sell.five .item-list .item { width: 100%; }
}

/* ======================== TOP FILTER — точные стили из magfast.css ======================== */

/* nice-select: скрытые dropdown'ы не раздувают layout */
.nice-select:not(.open) .list { display: none !important; }
.nice-select.open .list { display: block !important; }

.bg-filter { margin: 0 0 60px; }
.bg-filter .title { margin: 0 0 20px; padding: 0 0 0 25px; font-weight: 500; font-size: 32px; }
.bg-filter .my-filter {
  /* background-image задаётся inline через _top_filter.php (из БД) */
  background-position: center; background-repeat: no-repeat; background-size: cover;
  background-color: #3a3a38; /* fallback, если дефолтный фон не задан */
  border-radius: 10px; padding: 40px 90px;
  position: relative;
  z-index: 5; /* Чтобы выпадающий список nice-select был поверх следующих блоков */
  /* overflow НЕ ставим — иначе режет выпадающий список nice-select */
}
/* Открытый dropdown — поднимаем повыше внутри stacking context .my-filter */
.bg-filter .my-filter .nice-select.open {
  z-index: 20;
  position: relative;
}
/* Два слоя фона для crossfade при смене сезона / типа диска */
.bg-filter .my-filter-bg-layer {
  position: absolute; inset: 0;
  background-position: center; background-repeat: no-repeat; background-size: cover;
  opacity: 0;
  transition: opacity 450ms ease;
  pointer-events: none;
  z-index: 0;
  border-radius: 10px;
  overflow: hidden;
}
.bg-filter .my-filter-bg-layer.active { opacity: 1; }
/* Мгновенная смена opacity без анимации (для сброса старого слоя после crossfade) */
.bg-filter .my-filter-bg-layer.no-transition { transition: none !important; }
/* Контент фильтра — точечные правила, чтобы не ломать вложенные позиционирования */
.bg-filter .my-filter > .tab-nav,
.bg-filter .my-filter > .tab-content,
.bg-filter .my-filter > .sstate {
  position: relative;
  z-index: 1;
}
.bg-filter form { width: 100%; }

/* Табы шины/диски/колпаки */
.bg-filter .my-filter .tab-nav { display: flex; justify-content: center; margin: 0 0 30px; }
.bg-filter .my-filter .tab-nav button {
  font-weight: 700; line-height: 95%; color: #fff; margin: 0 25px;
  text-transform: uppercase; background: none; border: none; cursor: pointer;
}
.bg-filter .my-filter .tab-nav button.tab-btn-active { color: var(--orange); }

/* По размеру / По авто */
.bg-filter .tab-titles { display: flex; align-items: center; margin: 0 0 20px; gap: 20px; }
.bg-filter .tab-titles > div,
.bg-filter .sstate label {
  cursor: pointer; background: #c6c4c4; font-weight: 600; font-size: 21px;
  line-height: 95%; color: var(--txt-grey); padding: 9px 20px; border-radius: 10px;
  box-sizing: border-box; border: 1px solid transparent;
}
.bg-filter .tab-titles > div.active-link,
.bg-filter .sstate input:checked + label { background: #fff; border-color: var(--orange); }

/* Панели фильтров */
.bg-filter .tab-contents { display: none; }
.bg-filter .tab-contents.active-tab { display: flex; width: 100%; }
.bg-filter .sstate input { display: none; }

/* Белая полоса с полями (filter_home) */
.bg-filter .filter_home {
  display: flex; align-items: center; width: 100%; margin: 0 0 20px;
  justify-content: space-between; border: 1px solid var(--grey);
  border-radius: 10px; padding: 15px 20px; background: #fff; gap: 20px;
}

/* Контейнер select'ов */
.bg-filter .fg_block { display: flex; align-items: center; flex-grow: 1; justify-content: space-between; }
.bg-filter .fg_block .border_right { display: flex; flex: 1 1 0; min-width: 0; }
/* Первое поле (сезонность шин / тип диска) шире остальных: "Зимние нешипованные",
   "Штампованные" — длинные названия, должны умещаться без обрезки. */
.bg-filter .fg_block .border_right:first-child { flex: 1.6 1 0; }
/* В форме дисков поле "Разболтовка" (name=pcd) тоже шире — у его select'а
   длинный placeholder-плейсхолдер + стрелочка, без лишнего места они
   налезают друг на друга. */
.bg-filter .disk-1 .fg_block .border_right:has(select[name="pcd"]) { flex: 1.3 1 0; }
.bg-filter .fg_block .border_right .nice-select {
  border: none; border-right: 1px solid var(--orange); border-radius: 0;
  height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; line-height: 95%; color: #4d4d4d; width: 100%;
  padding-right: 40px;
}
.bg-filter .fg_block .border_right:last-child .nice-select { border: none; }
.bg-filter .fg_block .border_right .nice-select:after {
  right: 10px; top: 8px;
}
.bg-filter .fg_block .border_right .nice-select .list {
  max-height: 300px; overflow-y: auto !important; width: 100%;
  border-radius: 0 0 10px 10px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.bg-filter .fg_block .border_right .nice-select .option { font-size: 16px; padding: 8px 12px; min-height: auto; }
.bg-filter .fg_block .border_right .nice-select .option:hover { background: var(--lightorange); }
.bg-filter .fg_block .border_right .nice-select .option.selected { font-weight: 700; color: var(--orange); }

/* Диски: nice-select меньший шрифт */
.bg-filter .disk-1 .nice-select { font-size: 18px; }
.bg-filter .disk-1 .nice-select:after { right: 5px; }

/* === Select2 в верхнем фильтре — копируем закрытое состояние nice-select ===
   Чтобы при переходе на select2 (для полей с поиском) внешний вид строки фильтра не менялся. */
.bg-filter .border_right .select2-container--default .select2-selection--single {
  border: none; border-right: 1px solid var(--orange); border-radius: 0;
  background: transparent; height: 40px; outline: none;
}
.bg-filter .border_right:last-child .select2-container--default .select2-selection--single { border-right: none; }
.bg-filter .border_right .select2-container--default .select2-selection--single .select2-selection__rendered {
  display: flex; align-items: center; justify-content: center; height: 40px;
  font-size: 21px; line-height: 95%; color: #4d4d4d;
  padding: 0 32px 0 12px;
}
.bg-filter .border_right .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #4d4d4d; }
.bg-filter .border_right .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%; width: 24px; right: 8px; top: 0;
}
.bg-filter .border_right .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #707070 transparent transparent transparent;
}
.bg-filter .border_right .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #707070 transparent;
}
.bg-filter .border_right .select2-container--default.select2-container--focus .select2-selection--single,
.bg-filter .border_right .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--orange);
}
.bg-filter .border_right .select2-container { z-index: 20; }


/* Диски: размер шрифта 18px (как у nice-select) */
.bg-filter .disk-1 .border_right .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 18px;
}
.bg-filter .disk-1 .border_right .select2-container--default .select2-selection--single .select2-selection__arrow { right: 4px; }

/* По авто: Select2 на поле «Марка» — полная стилизация под стиль фильтра (как border_right, но 18px) */
.bg-filter .f_model .border_right_m .select2-container--default .select2-selection--single {
  border: none; border-right: 1px solid var(--orange); border-radius: 0;
  background: transparent; height: 40px; outline: none;
}
.bg-filter .f_model .border_right_m:last-child .select2-container--default .select2-selection--single { border-right: none; }
.bg-filter .f_model .border_right_m .select2-container--default .select2-selection--single .select2-selection__rendered {
  display: flex; align-items: center; justify-content: center; height: 40px;
  font-size: 18px; line-height: 95%; color: #4d4d4d;
  padding: 0 32px 0 12px;
}
.bg-filter .f_model .border_right_m .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #4d4d4d; }
.bg-filter .f_model .border_right_m .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%; width: 24px; right: 8px; top: 0;
}
.bg-filter .f_model .border_right_m .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #707070 transparent transparent transparent;
}
.bg-filter .f_model .border_right_m .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #707070 transparent;
}
.bg-filter .f_model .border_right_m .select2-container--default.select2-container--focus .select2-selection--single,
.bg-filter .f_model .border_right_m .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--orange);
}
.bg-filter .f_model .border_right_m .select2-container { z-index: 20; }

/* Выпадашка верхнего фильтра — шире, плотный ховер, оранжевая подсветка */
.select2-top-filter { min-width: 220px; border-color: var(--lightgrey); border-radius: 0 0 10px 10px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.select2-top-filter .select2-results__option { font-size: 16px; padding: 8px 12px; }
.select2-top-filter .select2-results__option--highlighted[aria-selected] { background: var(--lightorange); color: var(--black); }
.select2-top-filter .select2-results__option[aria-selected=true] { color: var(--orange); font-weight: 700; background: transparent; }
.select2-top-filter .select2-search--dropdown { padding: 6px; }
.select2-top-filter .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--lightgrey); border-radius: 6px; padding: 6px 10px; outline: none;
}
.select2-top-filter .select2-search--dropdown .select2-search__field:focus { border-color: var(--orange); }

/* Кнопка «подобрать» */
.bg-filter .filter_home button {
  font-weight: 400; font-size: 21px; line-height: 95%; color: #fff;
  background: var(--orange); border-radius: 10px; padding: 10px 18px;
  text-transform: uppercase; border: none; cursor: pointer; white-space: nowrap;
}
.bg-filter .filter_home button:hover { background: #e04e06; }

/* Состояние (sstate) */
.bg-filter .sstate { display: flex; margin: 0; gap: 20px; }
.bg-filter .sstate label { display: flex; align-items: center; }

/* По авто: нативные select'ы */
.bg-filter .f_model .fg_block > div { display: flex; flex-grow: 1; width: 25%; }
.bg-filter .native-auto-select {
  border: none; border-right: 1px solid var(--orange); border-radius: 0;
  height: 40px; width: 100%; font-size: 18px; color: #4d4d4d; padding: 0 10px;
  background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23707070' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.bg-filter .f_model .fg_block > div:last-child .native-auto-select { border-right: none; }
.bg-filter .native-auto-select:focus { outline: none; }
.bg-filter .native-auto-select:disabled { color: #b9b9b9; cursor: default; }

/* Responsive */
@media (max-width: 1200px) {
  .bg-filter .my-filter { padding: 40px; }
  .bg-filter .fg_block .border_right .nice-select,
  .bg-filter .tab-titles > div,
  .bg-filter .sstate label,
  .bg-filter .filter_home button { font-size: 16px; }
  /* Для select2-полей (Сезонность, Ширина и т.д.) — то же 16px, что у nice-select. */
  .bg-filter .border_right .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 16px;
  }
  .bg-filter .sdsad .filter_home { flex-direction: column; }
  .bg-filter .sdsad .fg_block { flex-wrap: wrap; gap: 10px 20px; }
  .bg-filter .sdsad .fg_block .border_right { width: calc(33.33% - 14px); }
  .bg-filter .sdsad .fg_block .border_right .nice-select,
  .bg-filter .sdsad .fg_block .border_right .select2-container--default .select2-selection--single {
    border: 1px solid #c5c1c1; border-radius: 10px; justify-content: center; line-height: 1;
  }
}
@media (max-width: 991px) {
  /* Узкий экран (планшет и меньше): поля верхнего фильтра больше не делятся
     поровну в одну строку (теснятся, стрелки налезают на текст), а переносятся
     на следующую строку. Используем flex-basis — width: 100% в flex-контексте
     игнорируется, если на элементе стоит flex: 1 1 0 (наше десктоп-правило). */
  .bg-filter .my-filter { padding: 40px 15px; }
  .bg-filter .filter_home { flex-direction: column; padding: 20px; }
  .bg-filter .filter_home button { width: 240px; height: 40px; }
  .bg-filter .fg_block { width: 100%; gap: 10px; flex-wrap: wrap; }
  .bg-filter .fg_block .border_right,
  .bg-filter .fg_block .border_right:first-child,
  .bg-filter .disk-1 .fg_block .border_right:has(select[name="pcd"]) {
    flex: 0 0 calc(50% - 10px); width: auto;
  }
  .bg-filter .fg_block .border_right .nice-select,
  .bg-filter .fg_block .border_right:last-child .nice-select {
    border: 1px solid #c5c1c1; border-radius: 10px; justify-content: center; line-height: 1;
  }
  /* Select2-поля на планшете/мобиле — обводим в рамку, как nice-select.
     Иначе высота, отступы и фон у двух типов селектов разные → визуально
     «прыгают» относительно друг друга, и dropdown накладывается на сосед-
     ние поля (раньше «Сезонность» как nice-select наплывала на остальные). */
  .bg-filter .fg_block .border_right .select2-container--default .select2-selection--single,
  .bg-filter .fg_block .border_right:last-child .select2-container--default .select2-selection--single {
    border: 1px solid #c5c1c1; border-radius: 10px;
  }
  .bg-filter .sstate { gap: 10px; }
  .bg-filter .sstate label { flex-grow: 1; justify-content: center; display: inline-flex; align-items: center; }
  .bg-filter .tab-titles { gap: 10px; }
}
@media (max-width: 480px) {
  /* Мобильный: по одному полю в ряд */
  .bg-filter .fg_block .border_right,
  .bg-filter .fg_block .border_right:first-child,
  .bg-filter .disk-1 .fg_block .border_right:has(select[name="pcd"]),
  .bg-filter .filter_home button,
  .bg-filter .f_model .fg_block > div { flex: 0 0 100%; width: 100%; }
  .bg-filter .my-filter .tab-nav button { margin: 0 10px; }
}

/* ======================== SIDEBAR FILTER (1:1 с shinko.ru) ======================== */
.custom-filters {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: sticky;
  top: 20px;
  padding-right: 18px;
}
@media (max-width: 991px) {
  .custom-filters { padding-right: 5px; }
}
/* Тонкий scrollbar */
.custom-filters::-webkit-scrollbar { width: 4px; }
.custom-filters::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
.custom-filters::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }
.custom-filters::-webkit-scrollbar-thumb:hover { opacity: .8; }
.custom-filters .title {
  font-weight: 700; font-size: 16px; line-height: 125%;
  text-transform: uppercase; color: var(--black); display: block; margin: 0 0 16px;
}
.custom-filters .filter-block { margin: 0 0 24px; }
.custom-filters .filter-block.slider-baby { margin: 0 0 35px; }

/* Select'ы — нативные стилизованные */
.custom-filters .nice-select {
  width: 100%; float: none; border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 0 30px 0 16px; font-size: 16px; line-height: 156%; color: var(--black);
  height: 42px; position: relative;
}
.custom-filters .nice-select:after { right: 12px; top: 50%; transform: translateY(-50%) rotate(45deg); }
/* Fallback для тяжёлых select'ов (>100 options) — нативный select стилизованный */
.custom-filters .native-select-styled {
  display: block !important; width: 100%; border: 1px solid var(--lightorange); border-radius: 10px;
  padding: 0 16px; font-size: 16px; color: var(--black); height: 42px; background: #fff;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23707070' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.custom-filters .native-select-styled:focus { outline: none; border-color: var(--orange); }
.custom-filters .nice-select .list {
  max-height: 250px; overflow-y: auto !important; overflow: auto !important;
  width: 100%; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); margin-top: 4px;
}
.filter-field .nice-select .list {
  max-height: 300px; overflow-y: auto !important; overflow: auto !important;
}
.custom-filters .nice-select .option { font-size: 14px; padding: 8px 16px; min-height: auto; }
.custom-filters .nice-select .option:hover,
.custom-filters .nice-select .option.focus { background: var(--lightorange); }
.custom-filters .nice-select .option.selected { font-weight: 700; color: var(--orange); }

/* Select2 в боковом фильтре — стилизация под shinko (orange + lightgrey) */
.custom-filters .select2-container { width: 100% !important; }
.custom-filters .select2-container--default .select2-selection--single {
  height: 36px; border: 1px solid var(--lightgrey); border-radius: 8px;
  background: #fff;
}
.custom-filters .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 34px; padding-left: 12px; padding-right: 30px;
  font-size: 14px; color: var(--black);
}
.custom-filters .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--grey); }
.custom-filters .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px; right: 6px;
}
.custom-filters .select2-container--default.select2-container--focus .select2-selection--single,
.custom-filters .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--orange);
}
/* Выпадашка */
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--lightorange); color: var(--black); }
.select2-container--default .select2-results__option[aria-selected=true] { color: var(--orange); font-weight: 700; }
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--lightgrey); border-radius: 6px; padding: 6px 10px; outline: none;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--orange); }
.select2-dropdown { border-color: var(--lightgrey); border-radius: 8px; }

/* Checkbox / Radio list */
.custom-filters .filter-list {
  max-height: 238px; display: flex; flex-direction: column; overflow: auto;
}
.custom-filters .filter-list::-webkit-scrollbar { width: 3px; }
.custom-filters .filter-list::-webkit-scrollbar-track { box-shadow: inset 0 0 5px #D9D9D9; border-radius: 10px; }
.custom-filters .filter-list::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }
.custom-filters .filter-list input { display: none; }
.custom-filters .filter-list label {
  font-weight: 600; font-size: 14px; line-height: 143%; text-transform: uppercase;
  color: var(--black); padding-left: 30px; position: relative; margin: 0 0 10px; cursor: pointer;
}
.custom-filters .filter-list label:before {
  content: ''; display: block; width: 20px; height: 20px; border-radius: 100px;
  border: 1px solid #f97200; position: absolute; left: 0; top: 0;
}
.custom-filters .filter-list input:checked + label:before {
  border-color: #fe5808; border-width: 5px;
}

/* Выбранные фильтры */
.custom-filters .selected-filters { margin: 0 0 30px; }
.custom-filters .selected-filters .small-title { margin: 0 0 16px; font-size: 16px; color: var(--black); }
/* Переключатель категорий при подборе по авто */
.auto-cross-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lightgrey);
  margin-bottom: 15px;
}
.auto-cross-links .auto-cross-link {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid var(--lightorange);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--txt-grey);
  text-decoration: none;
  transition: all .15s ease;
}
.auto-cross-links .auto-cross-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.auto-cross-links .auto-cross-link.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  cursor: default;
}

.custom-filters .selected-filters .slist { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.custom-filters .selected-filters .slist button,
.custom-filters .selected-filters .slist .url-chip-btn {
  border: 1px solid #ffcea5; border-radius: 10px; padding: 2px 10px 2px 5px;
  font-size: 13px; color: #fe5909; background: #fff; cursor: pointer; position: relative;
  text-decoration: none; display: inline-block;
}
.custom-filters .selected-filters .slist button:after,
.custom-filters .selected-filters .slist .url-chip-btn:after {
  content: '×'; position: absolute; right: -4px; top: -3px;
  background: #fff; border-radius: 50%; width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--orange); border: 1px solid var(--lightorange);
}
.custom-filters .reset-filters {
  border: 1px solid var(--orange); border-radius: 10px; height: 42px; width: 100%;
  font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--orange);
  margin: 16px 0 0; background: #fff; cursor: pointer;
}
.custom-filters .reset-filters:hover { background: var(--orange); color: #fff; }

/* Утилита: скрытый элемент. Используется для динамических подписей
   ("Цена X ₽ за N шт."), которые JS показывает при изменении qty. */
.is-hidden { display: none !important; }

/* Товар в корзине: кнопка "К корзине" — зелёная (как "Запись на шиномонтаж"),
   ведёт на /cart, блокирует повторное добавление того же товара. */
.js-add-to-cart.in-cart {
  background: var(--green) !important;
  color: #000 !important;
  border-color: var(--green) !important;
}
.js-add-to-cart.in-cart:hover {
  background: var(--green-sm, var(--green)) !important;
}
/* Б/у товар уже в избранном: кнопка становится «В избранном», ведёт на /izbrannoe. */
.js-add-to-cart.in-wishlist {
  background: #fff !important;
  color: var(--orange) !important;
  border: 1px solid var(--orange) !important;
}
.js-add-to-cart.in-wishlist:hover {
  background: #fff6ed !important;
}
/* Подпись "Цена N ₽ за M шт." — промежуточный акцент: меньше основной цены
   (fs30), но больше и жирнее обычного поясняющего текста. */
.price-total-for-qty {
  font-size: 16px;
  font-weight: 600;
  color: var(--txt-grey);
  margin-top: 4px;
}

/* Multi-select dropdown (раскрывающийся список с checkbox) —
   используется для country, color, disk_width, dia. */
.multiselect { position: relative; }
.multiselect-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--txt-grey);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.multiselect-toggle:hover { border-color: var(--orange); }
.multiselect.has-selection .multiselect-toggle {
  background: var(--lightorange);
  color: var(--orange);
  border-color: var(--orange);
  font-weight: 600;
}
.multiselect-summary { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multiselect-arrow { flex-shrink: 0; transition: transform .2s; color: inherit; }
.multiselect.open .multiselect-arrow { transform: rotate(180deg); }
.multiselect-panel {
  display: none;
  position: absolute;
  z-index: 15;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
}
.multiselect.open .multiselect-panel { display: block; }
.multiselect-item {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.multiselect-item:hover { background: var(--lightorange); }
.multiselect-item input[type="checkbox"] { cursor: pointer; }
.multiselect-item label { cursor: pointer; flex: 1; font-size: 14px; color: var(--txt-grey); }
.multiselect-empty { padding: 10px 14px; color: var(--grey); font-size: 13px; }
/* Скроллбар панели — тонкий оранжевый */
.multiselect-panel::-webkit-scrollbar { width: 4px; }
.multiselect-panel::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
.multiselect-panel::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }

/* Цена range */
.custom-filters .price-input { width: 100%; display: flex; gap: 10px; margin: 24px 0 10px; }
.custom-filters .price-input .field { display: flex; width: 100%; height: 42px; align-items: center; font-size: 16px; gap: 8px; }
.custom-filters .price-input .field input {
  width: 100%; height: 100%; outline: none; text-align: center;
  -moz-appearance: textfield; border: 1px solid var(--lightorange); border-radius: 10px;
  font-size: 16px; line-height: 112%;
}
.custom-filters .price-input .field input::-webkit-outer-spin-button,
.custom-filters .price-input .field input::-webkit-inner-spin-button { -webkit-appearance: none; }
/* Единица измерения после второго поля (мм / % / ₽) */
.custom-filters .price-input .field .unit {
  color: var(--grey); font-size: 14px; white-space: nowrap; flex-shrink: 0;
}

/* Range slider (двойной) */
.custom-filters .slider-baby .slider {
  height: 4px; position: relative; background: #ddd; border-radius: 5px; margin-top: 5px;
}
.custom-filters .slider-baby .slider .progress {
  height: 100%; position: absolute; border-radius: 5px; background: var(--lightorange);
  left: 0; right: 0;
}
.custom-filters .slider-baby .range-input {
  position: relative; height: 16px;
}
.custom-filters .slider-baby .range-input input[type="range"] {
  position: absolute; width: 100%; height: 5px; top: -5px;
  background: none; pointer-events: none;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.custom-filters .slider-baby .range-input input[type="range"]::-webkit-slider-thumb {
  height: 16px; width: 16px; border-radius: 50%; background: var(--orange);
  pointer-events: auto; -webkit-appearance: none;
  box-shadow: 0 0 6px rgba(0,0,0,.08); cursor: pointer;
}
.custom-filters .slider-baby .range-input input[type="range"]::-moz-range-thumb {
  height: 16px; width: 16px; border: none; border-radius: 50%; background: var(--orange);
  pointer-events: auto; -moz-appearance: none;
  box-shadow: 0 0 6px rgba(0,0,0,.08); cursor: pointer;
}

/* Кнопка «Применить» */
.custom-filters .apply-btn {
  background: var(--orange); height: 46px; border-radius: 10px; font-weight: 800;
  font-size: 12px; text-transform: uppercase; color: #fff; width: 100%;
  border: none; cursor: pointer; margin-top: 10px;
}
.custom-filters .apply-btn:hover { background: #e04e06; }

/* Мобильная шапка */
.custom-filters .for-mobile { display: none; }

/* Mobile */
@media (max-width: 991px) {
  /* Панель всегда в DOM и позиционирована; закрытое состояние — сдвинута
     влево через transform. Так снятие .open даёт плавную анимацию назад,
     а не мгновенное исчезновение (раньше было display: none). */
  .filter-sidebar-col {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: min(600px, 80vw);
    height: 100vh;
    z-index: 1045;
    background: #fff;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transform: translateX(-100%);
    transition: transform .3s ease;
  }
  .filter-sidebar-col.open { transform: translateX(0); }
  /* На мобильном убираем внутренний sticky+scroll у .custom-filters —
     он мешает докрутить до кнопки "Применить". Скроллом управляет сам
     .filter-sidebar-col.open (overflow-y: auto выше). */
  .filter-sidebar-col.open .custom-filters {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    /* Запас внизу, чтобы "Применить" не прятался под JivoChat-виджетом. */
    padding-bottom: 100px;
  }
  .custom-filters .for-mobile {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px;
  }
  .custom-filters .for-mobile .close-filter { background: none; border: none; cursor: pointer; }
  .custom-filters .for-mobile .close-filter img { width: 24px; }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1199px) {
  header { margin: 20px 0 30px; }
  .header-row { gap: 20px; }
  .header-row .logo { width: 208px; }
  .header-row .logo img { max-height: 140px; }
  .header-row .top { margin: 0 0 18px; }
  .header-row .top .left a,
  .header-row .top .left .geo button,
  .header-row .top .right a.login { font-size: 17px; }
  .header-row .top .right a { margin: 0 0 0 22px; }
  .header-row .top .left .geo button > img { margin: 0 10px 0 0; }
  .header-row .middle { margin: 0 0 18px; gap: 10px; }
  .header-row .middle a { font-size: 16px; padding: 8px; }
  .header-row .bottom .search { max-width: 420px; }
  .header-row .bottom > button.record { font-size: 17px; width: calc(40% - 20px); max-width: 320px; }
}

@media (max-width: 991px) {
  .header-row { align-items: center; }
  .header-row .logo { width: 120px; }
  .header-row .logo img { max-height: 80px; }
  .header-row .other { flex-direction: row-reverse; align-items: center; }
  .header-row .top { margin: 0; width: auto; }
  .header-row .top .left { display: none; }
  .header-row .middle,
  .header-row .bottom > button.record { display: none; }
  .header-row .bottom { width: 60%; }
  .header-row .bottom .search { width: 100%; max-width: 100%; }
  .header-row .top .right a.login { display: none; }
  .menu-trigger { display: block; }
  .mobile.top-btns { display: flex; }
  /* 1:1 с shinko.ru: кнопки ЗАПИСЬ/ПРОДАТЬ на мобильном — caps. */
  .mobile.top-btns button { text-transform: uppercase; }
  /* 1:1 с shinko.ru: логотип в основной шапке на мобильном не показываем,
     в верхнем ряду только бургер + иконки + профиль. Лого остаётся в <sticky-header>
     и в мобильном меню (.mobile-menu) при его открытии. */
  header .header-row .logo { display: none; }

  .product-thumb { flex-direction: column; }
  .product-thumb .image,
  .product-thumb .product-data,
  .product-thumb .product-etc { width: 100%; }
  .product-thumb .product-data { border: none; padding: 10px 0; }

  .catalog-row { flex-direction: column; }
  .catalog-row .filter-sidebar { width: 100%; }
  /* .catalog-page имеет inline style="flex:1", что на flex-column даёт max-content → вылезает за viewport */
  .catalog-row .catalog-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
  /* Защита: любой дочерний блок внутри .catalog-page не должен вылезать */
  .catalog-row .catalog-page > * {
    max-width: 100%;
    min-width: 0;
  }
  .row-products .product-thumb > * {
    max-width: 100%;
    min-width: 0;
  }
  /* Мобильная липкая полоса с бургером + кнопкой "Фильтры" — на листинге.
     В потоке (position: static) по умолчанию. Класс .is-floating (выставляется
     JS через IntersectionObserver на sentinel) переводит её в fixed-режим,
     когда её исходная позиция ушла выше viewport. Такой подход надёжнее
     native sticky, когда пользователь начинает скроллить до полной загрузки. */
  .catalog-mobile-sticky {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px 15px;
    margin: 0 -15px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  }
  .catalog-mobile-sticky.is-floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    margin: 0;
  }
  /* Placeholder резервирует высоту плашки, пока она fixed — чтобы карточки
     товаров не прыгали наверх/вниз при переходе из static в fixed. */
  .catalog-mobile-sticky-placeholder { display: none; }
  .catalog-mobile-sticky.is-floating + .catalog-mobile-sticky-placeholder,
  .catalog-mobile-sticky-placeholder.is-active { display: block; }
  .catalog-mobile-sticky .menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--orange);
    border-radius: 10px;
    cursor: pointer;
  }
  .catalog-mobile-sticky .filter-trigger {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    font-size: 14px;
    background: none;
    border: 2px solid var(--orange);
    border-radius: 10px;
    cursor: pointer;
  }
  .catalog-mobile-sticky .filter-trigger img { width: 18px; }
  /* В строке сортировки кнопки "Фильтры" больше нет — перенесена в sticky-полосу. */
  .row-sort .filter-trigger { display: none; }

  .column-list { flex-wrap: wrap; }
  .column-list .column { width: 45%; }

  .footer-row { flex-direction: column; }
}

@media (max-width: 575px) {
  .header-row .middle a { padding: 6px 12px; font-size: 13px; }
  button.record { font-size: 13px; padding: 6px 12px; }
  .product-thumb { padding: 12px; }
  .column-list .column { width: 100%; }
  .hub-tiles { grid-template-columns: repeat(3, 1fr); }
}

/* ============= Catalog: планшет (≤991px) — доработки для iPad ============= */
@media (max-width: 991px) {
  .bg-filter { margin: 0 0 30px; }
  .bg-filter .my-filter { padding: 25px 20px !important; }

  /* Табы «шины/диски/колпаки» — wrap + компактные отступы */
  .bg-filter .my-filter .tab-nav { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .bg-filter .my-filter .tab-nav button { margin: 0 10px !important; font-size: 18px !important; }

  /* Кнопки «Всё в 1 / Новые / С пробегом» — wrap + компактнее */
  .bg-filter .sstate { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .bg-filter .sstate label { font-size: 14px !important; padding: 8px 14px !important; }

  /* «По размеру / По автомобилю» — компактнее */
  .bg-filter .tab-titles > div { font-size: 14px !important; padding: 8px 14px !important; }

  /* Форма «подобрать» — вертикально, кнопка снизу */
  .bg-filter .filter_home { flex-direction: column; padding: 12px 14px; gap: 12px; }
  .bg-filter .filter_home button {
    width: 100% !important; height: auto !important;
    font-size: 16px !important; padding: 12px 18px !important;
  }
  .bg-filter .fg_block { width: 100%; flex-wrap: wrap; gap: 8px 12px; }
  /* 2 колонки в диапазоне 481–991px. flex-basis (не width), чтобы перебить
     desktop-правило .border_right { flex: 1 1 0 }. */
  .bg-filter .fg_block .border_right,
  .bg-filter .fg_block .border_right:first-child,
  .bg-filter .disk-1 .fg_block .border_right:has(select[name="pcd"]) {
    flex: 0 0 calc(50% - 10px); width: auto;
  }
  .bg-filter .fg_block .border_right .nice-select {
    border: 1px solid var(--lightorange) !important;
    border-radius: 8px !important;
    padding: 0 30px 0 12px;
    font-size: 14px !important;
    justify-content: flex-start !important;
  }
}

/* ============= Catalog mobile (≤767px) ============= */
@media (max-width: 767px) {
  .bg-filter .title { font-size: 24px; padding: 0; margin: 0 0 12px; }
  .bg-filter .my-filter { padding: 20px 12px !important; }

  /* Табы ещё мельче */
  .bg-filter .my-filter .tab-nav button {
    margin: 0 6px !important; font-size: 16px !important;
  }

  /* 481-767 — остаётся 2 колонки (из блока @media max-width:991).
     Переход в 1 колонку — только на очень узких экранах (@media max-width:480). */

  /* sstate — кнопки state, ширина 1/3 каждая для 3 кнопок */
  .bg-filter .sstate label {
    flex-grow: 1; justify-content: center;
    padding: 7px 12px !important;
  }

  /* Сортировка — в 2 ряда */
  .row-sort { flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
  .row-sort .filter-trigger {
    order: 1; width: 100%; justify-content: center;
    padding: 8px 15px; font-size: 14px;
  }
  .row-sort .mg-sort { order: 2; width: 100%; flex-wrap: wrap; gap: 6px; font-size: 13px; }
  .row-sort .mg-sort label { width: 100%; font-size: 13px; color: var(--grey); margin-bottom: 2px; }
  .row-sort .mg-sort a,
  .row-sort .mg-sort button {
    flex: 1; text-align: center; min-width: 0;
    padding: 6px 10px !important; font-size: 13px !important;
  }

  /* Карточка товара */
  .product-thumb { padding: 15px; gap: 12px; margin-bottom: 15px; }
  .product-thumb .image { min-width: 0; }
  .product-thumb .product-data { padding: 0; border: none; }
  .product-thumb .product-data .product-name { font-size: 15px; }
  .product-thumb .product-btns,
  .product-thumb .product-etc { width: 100%; }
  .product-btns .p-row { flex-wrap: wrap; gap: 10px; }
  .product-btns .p-row .mg-quantity { flex: 0 0 auto; }
  .product-btns .p-row .btn-orange,
  .product-btns .p-row .js-add-to-cart { flex: 1; min-width: 140px; }

  /* SEO-блоки */
  .seo-intro, .seo-bottom { padding: 10px 12px; font-size: 12px; }
  .seo-bottom h2, .seo-bottom h3 { font-size: 15px; }

  /* Pagination — на мобильном страниц может быть много, и одной строкой
     они вылезают за экран, создавая горизонтальный scroll документа.
     Включаем перенос на следующую строку и ограничиваем шириной. */
  .pagination-row { margin-top: 15px; max-width: 100%; overflow-x: hidden; }
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 4px;
  }
  .pagination .page-item { margin: 0; }
  .pagination .page-link { padding: 4px 10px; font-size: 13px; }
}

@media (max-width: 480px) {
  .bg-filter .my-filter { padding: 15px 12px; }
  .bg-filter .my-filter .tab-btn { font-size: 13px; padding: 5px 10px; }
  .row-sort .mg-sort a,
  .row-sort .mg-sort button { padding: 5px 8px !important; font-size: 12px !important; }
  .mg-quantity { height: 36px; }
  .mg-quantity button { width: 28px; }
  .mg-quantity input { width: 36px; }
}

/* ======================== МОДАЛЬНОЕ ОКНО ВЫБОРА ГОРОДА ======================== */
.city-modal {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.city-modal[hidden] { display: none; }
.city-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .5);
  cursor: pointer;
}
.city-modal-window {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 30px 40px;
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.city-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  font-size: 28px; line-height: 1; color: var(--grey);
  cursor: pointer; padding: 4px 8px;
}
.city-modal-close:hover { color: var(--orange); }

.city-modal-current {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 22px; font-weight: 700; color: var(--orange);
  margin-bottom: 14px;
}
.city-modal-current img { width: 20px; height: 20px; }
.city-modal-question {
  font-size: 18px; font-weight: 600; color: var(--txt-grey);
  margin-bottom: 20px;
}
.city-modal-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.city-modal-actions button {
  padding: 10px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  min-width: 120px;
}

.city-modal-title {
  font-size: 20px; font-weight: 700;
  margin-bottom: 20px;
  color: var(--txt-grey);
}
.city-modal-window-list {
  text-align: left;
  max-height: 80vh;
  overflow-y: auto;
}
.city-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.city-list-item {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--lightgrey);
  border-radius: 10px;
  color: var(--txt-grey);
  text-decoration: none;
  font-size: 15px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.city-list-item:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.city-list-item.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

@media (max-width: 575px) {
  .city-modal-window { padding: 20px 18px; }
  .city-modal-actions button { flex: 1; min-width: 0; padding: 10px 14px; }
}


/* =========================================================================
   Попап «Заявка на поступление» (product-lead)
   ========================================================================= */
.pl-popup {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pl-popup[hidden] { display: none; }
.pl-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,20,30,0.55);
}
.pl-popup-window {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(20,20,30,0.25);
  width: 100%; max-width: 560px;
  max-height: 90vh;
  padding: 28px 28px 24px;
  overflow-y: auto;
  box-sizing: border-box;
}
.pl-popup-close {
  position: absolute; top: 10px; right: 14px;
  background: transparent; border: 0;
  font-size: 28px; line-height: 1; color: #888;
  cursor: pointer; padding: 6px 10px;
  transition: color .15s;
}
.pl-popup-close:hover { color: var(--orange); }
.pl-popup-title {
  font-size: 28px; font-weight: 800;
  text-align: center;
  color: #222;
  margin-bottom: 18px;
}
.pl-form { display: block; }
.pl-step { display: none; }
.pl-step.active { display: block; }

/* Табы */
.pl-tabs {
  display: flex;
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}
.pl-tab {
  flex: 1; appearance: none; background: transparent;
  border: 0; border-radius: 8px;
  padding: 10px 6px; font-size: 14px; font-weight: 700;
  color: var(--orange); cursor: pointer;
  letter-spacing: 0.5px;
  transition: background .15s, color .15s;
}
.pl-tab:hover { background: rgba(254,88,8,0.08); }
.pl-tab.active { background: var(--orange); color: #fff; }

/* Поля */
.pl-tab-body { display: none; }
.pl-tab-body.active { display: block; }
.pl-field { margin-bottom: 14px; }
.pl-field label {
  display: block; font-size: 14px; font-weight: 600; color: #444;
  margin-bottom: 6px;
}
.pl-field label .pl-opt { color: #999; font-weight: 400; font-size: 12px; }
.pl-field select,
.pl-field input[type="text"],
.pl-field input[type="email"],
.pl-field input[type="tel"] {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid var(--lightgrey);
  border-radius: 10px;
  font-size: 15px; color: #222;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.pl-field select:focus,
.pl-field input:focus {
  border-color: var(--orange);
}
.pl-field select:disabled {
  background: #f7f7f7; color: #888; cursor: not-allowed;
}
.pl-err {
  color: #d6291d; font-size: 12px; margin-top: 4px; min-height: 14px;
}
.pl-form-error {
  color: #d6291d; font-size: 14px; margin: 10px 0 0; text-align: center;
  min-height: 18px;
}
.pl-form-error.visible { padding: 10px 12px; background: #fff0ef; border-radius: 8px; }

/* Кнопки */
.pl-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--orange);
  color: #fff; border: 0; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: opacity .15s, transform .05s;
}
.pl-submit:hover { opacity: 0.92; }
.pl-submit:active { transform: translateY(1px); }
.pl-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.pl-submit.loading { opacity: 0.7; }
.pl-back-btn {
  background: transparent; border: 0; padding: 0;
  color: #777; font-size: 14px; cursor: pointer;
  margin-bottom: 12px;
}
.pl-back-btn:hover { color: var(--orange); }
.pl-privacy {
  font-size: 12px; color: #888; margin: 8px 0 0;
}
.pl-privacy a { color: var(--orange); }

/* Успех */
.pl-step-success { text-align: center; padding: 10px 0; }
.pl-success-icon {
  width: 64px; height: 64px; line-height: 64px;
  border-radius: 50%;
  background: #e8f7e8; color: #2ea043;
  font-size: 36px; font-weight: 700;
  margin: 0 auto 14px;
}
.pl-success-title {
  font-size: 22px; font-weight: 800; margin-bottom: 10px;
}
.pl-success-hint { font-size: 13px; color: #777; margin-top: 8px; }
.pl-success-hint a { color: var(--orange); }

body.pl-no-scroll { overflow: hidden; }

@media (max-width: 575px) {
  .pl-popup { padding: 0; align-items: flex-end; }
  .pl-popup-window {
    max-width: 100%; max-height: 96vh;
    border-radius: 16px 16px 0 0;
    padding: 22px 18px 18px;
  }
  .pl-popup-title { font-size: 22px; }
}

/* ==========================================================================
   Used-item modal: предупреждение о б/у товаре в единственном экземпляре
   ========================================================================== */
.used-modal {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.used-modal.is-open { display: flex; }
.used-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.used-modal__dialog {
  position: relative;
  width: 100%; max-width: 520px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-height: 92vh; overflow-y: auto;
}
.used-modal__head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 22px 24px 12px;
  border-bottom: 1px solid var(--lightgrey);
}
.used-modal__title {
  margin: 0; flex: 1 1 auto;
  font-size: 20px; font-weight: 700;
  color: var(--txt-grey);
  line-height: 1.3;
}
.used-modal__close-wrap {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.used-modal__countdown {
  font-size: 16px; font-weight: 600;
  color: var(--grey);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--lightgrey);
  border-radius: 50%;
}
.used-modal__close {
  background: transparent; border: none;
  width: 32px; height: 32px;
  font-size: 28px; line-height: 1;
  color: var(--grey); cursor: pointer;
  padding: 0;
}
.used-modal__close:hover { color: var(--orange); }
.used-modal__body {
  padding: 18px 24px 22px;
  color: var(--txt-grey);
  font-size: 15px; line-height: 1.55;
}
.used-modal__body p { margin: 0 0 12px; }
.used-modal__lead { font-weight: 600; }
.used-modal__actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 18px;
}
.used-modal__actions .btn-orange,
.used-modal__actions .btn-outline-orange {
  padding: 10px 20px;
}
.used-modal__ok:disabled {
  opacity: 0.5; cursor: not-allowed;
}
body.used-modal-open { overflow: hidden; }
@media (max-width: 575px) {
  .used-modal { padding: 0; align-items: flex-end; }
  .used-modal__dialog {
    max-width: 100%; max-height: 94vh;
    border-radius: 14px 14px 0 0;
  }
  .used-modal__head { padding: 18px 18px 10px; }
  .used-modal__title { font-size: 18px; }
  .used-modal__body { padding: 14px 18px 18px; font-size: 14px; }
}

/* ==========================================================================
   Калькулятор хранения (/uslugi/hranenie) — вёрстка 1:1 с легаси.
   Основные стили берём из `.forma-shinomantazh`; здесь — только то,
   чего в легаси нет: плашка результата, подсветка «orange», ошибки,
   кнопки (в легаси они стилизовались глобально).
   ========================================================================== */
.storage-calc .price-result {
  /* Плашка результата: абсолютно позиционируем поверх полей формы,
     как в OpenCart. `.form-shi > div` — контейнер с оранжевой рамкой. */
  position: absolute;
  inset: 1px;
  background: #fff;
  border-radius: 10px;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.storage-calc .price-result label { margin: 0; font-weight: 500; }
.storage-calc .price-result .title-resultf { font-weight: 700; margin-bottom: 6px; }
.storage-calc .price-result .orange { color: var(--orange); }
.storage-calc .price-result .title-result { font-weight: 600; }
.storage-calc .price-result span,
.storage-calc .price-result b { color: var(--orange); font-weight: 600; }
.storage-calc .price-result .rst {
  color: var(--orange);
  text-decoration: underline;
  font-size: 14px;
  float: right;
  margin-top: 6px;
}
.storage-calc-error {
  background: #fdecea; border: 1px solid #f5c2c0; color: #a0312c;
  border-radius: 10px; padding: 10px 14px; margin: 0 0 12px;
  font-size: 14px;
}
/* Кнопки под формой — как в легаси: первая оранжевая, вторая «shimono» лайм. */
.storage-calc .form-shi > button {
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
}
.storage-calc #storage-calc-submit {
  background: var(--orange); color: #fff;
}
.storage-calc #storage-calc-submit[disabled] { opacity: 0.6; cursor: wait; }
.storage-calc .shimono {
  background: var(--green); color: #000;
}
/* Родительский `.form-shi > div` уже имеет orange border + padding от легаси.
   Делаем его relative, чтобы price-result мог позиционироваться внутри. */
.storage-calc .form-shi > div { position: relative; }

/* Статус товара в избранном */
.wl-used-notice {
  background: #fff6ed;
  border: 1px solid #ffd9b8;
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--txt-grey);
  font-size: 14px; line-height: 1.5;
  margin-bottom: 18px;
}
.wl-used-notice strong { color: var(--orange); }
.wl-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px; font-weight: 600;
}
.wl-status--available { background: #e8f5e9; color: #2e7d32; }
.wl-status--sold      { background: var(--lightgrey); color: var(--grey); }

/* Секции избранного: б/у сверху, новые ниже */
.wl-section { margin-bottom: 28px; }
.wl-section-title {
  font-size: 20px; font-weight: 700;
  color: var(--txt-grey);
  margin: 6px 0 14px;
}

/* ==========================================================================
   .buy-sell.five / .forma-shinomantazh — подгонка под OpenCart 1:1.
   Ранее блок на /prodat переопределил эти правила; .five-варианты нужно
   заявить повторно, чтобы «Хранение» и «Дошиповка» выглядели как legacy.
   ========================================================================== */

/* «В услугу входит»: 6 элементов в ряд, высоты подписей выровнены. */
.buy-sell.five { align-items: flex-start; }
.buy-sell.five .item-list {
  align-items: flex-start;
  flex-wrap: wrap;
  flex: 1;
  gap: 20px;
}
.buy-sell.five .item-list .item {
  width: calc(100% / 6 - 20px);
  flex: 0 0 calc(100% / 6 - 20px);
  height: fit-content;
  justify-content: flex-start;
  padding: 0 10px;
}
.buy-sell.five .item-list .item b {
  font-size: 16px;
  height: 42px;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0 0 20px;
}
.buy-sell.five .item-list .item.last b {
  height: fit-content;
  max-width: 210px;
  word-break: break-word;
  line-height: 1.4;
}
.buy-sell.five .item-list .item img:not(.plus) {
  height: 130px;
  margin: 0 0 15px;
}
.buy-sell.five .item-list .item > span {
  font-size: 14px;
  line-height: 1.2;
  height: auto;
  min-height: 95px;
  padding: 0 10px;
}
.buy-sell.five .item-list .item .plus { top: 32%; }
.buy-sell.five .item-list .item.last {
  padding-left: 30px;
  flex-grow: 1;
}
.buy-sell.five .item-list .item.last .plus {
  right: auto; left: -15px;
}

/* На узких экранах — 3 / 2 в ряд, как для обычного .buy-sell */
@media (max-width: 991px) {
  .buy-sell.five .item-list .item,
  .buy-sell.five .item-list .item.last {
    width: calc(33.33% - 14px);
    flex: 0 0 calc(33.33% - 14px);
    padding-left: 0;
  }
  .buy-sell.five .item-list .item .plus { display: none; }
  .buy-sell.five .item-list .item b,
  .buy-sell.five .item-list .item > span { height: auto; }
}
@media (max-width: 575px) {
  .buy-sell.five .item-list .item,
  .buy-sell.five .item-list .item.last {
    width: calc(50% - 10px);
    flex: 0 0 calc(50% - 10px);
  }
}

/* Калькулятор хранения: ширины 46% / 38% + margin-right, как в OpenCart. */
.forma-shinomantazh { gap: 0; }
.forma-shinomantazh .image { width: 46%; }
.forma-shinomantazh .form-shi {
  width: 38%;
  margin-right: 50px;
  align-items: stretch;
}
.forma-shinomantazh .form-shi > div {
  padding: 20px 30px 0;
}
/* Переопределяем ранее заданный padding селектов от оригинала. */
.forma-shinomantazh .form-shi select {
  height: 44px;
  margin: 0 0 20px;
}
.forma-shinomantazh .form-shi button {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 30px;
  font-weight: 600;
  cursor: pointer;
}
/* «Записаться на шиномонтаж»/«...на хранение» — стилем совпадает с .btn-green
   (как в шапке и в остальных CTA сайта). Работает и для <a>, и для <button>. */
.forma-shinomantazh .form-shi .shimono,
.forma-shinomantazh .form-shi button.shimono {
  background: var(--green-sm);
  color: var(--txt-grey);
  border: 2px solid #a1bf00;
  border-radius: 10px;
  padding: 10px 25px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
  width: fit-content;
  height: auto;
  align-self: center;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.forma-shinomantazh .form-shi .shimono:hover,
.forma-shinomantazh .form-shi button.shimono:hover {
  background: #bfe600;
  color: var(--txt-grey);
}
@media (max-width: 767.98px) {
  .forma-shinomantazh .image,
  .forma-shinomantazh .form-shi {
    width: 100%;
    margin-right: 0;
  }
  .forma-shinomantazh .form-shi { order: 2; }
  .forma-shinomantazh .image   { order: 1; margin-bottom: 16px; }
}
