/* =====================================================================
   PITSTOP UI — редизайн 2026-12
   Светлая тема магазина: чёрная шапка и подвал, белые блоки на светло-сером фоне,
   красный — только для действий и активных элементов.
   Подключается ПОСЛЕДНИМ (после pitstop.css и marketing.css) и переопределяет
   старую тёмную тему. Откат: убрать подключение этого файла в master.edge.
   Правила: скругления 4–8 px, без теней и градиентов, разделение — тонкие границы.
   ===================================================================== */

:root {
  /* палитра (DESIGN_SYSTEM.md) */
  --ui-red: #E30613;
  --ui-red-active: #CC0010;
  --ui-graphite: #151515;
  --ui-white: #FFFFFF;
  --ui-bg: #F5F5F5;
  --ui-card: #F0F1F2;
  --ui-text: #151515;
  --ui-text-2: #666666;
  --ui-line: #E2E2E2;
  --ui-line-2: #D3D5D8;
  --ui-green: #16803C;
  --ui-r: 6px;
  --ui-r-sm: 4px;
  --ui-font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* старые переменные темы → светлые значения (на них построены внутренние страницы) */
  --ps-bg: var(--ui-bg);
  --ps-bg-2: var(--ui-white);
  --ps-panel: var(--ui-white);
  --ps-surface: var(--ui-card);
  --ps-line: var(--ui-line);
  --ps-line-2: var(--ui-line-2);
  --ps-line-3: #B5B8BD;
  --ps-red: var(--ui-red);
  --ps-red-2: var(--ui-red-active);
  --ps-white: var(--ui-text);
  --ps-soft: #333538;
  --ps-muted: var(--ui-text-2);
  --ps-muted-2: #7A7D82;
  --ps-head-grey: var(--ui-text);
  --ps-ink: var(--ui-text);
  --ps-container: 1240px;
  --ps-gutter: 24px;
  --ps-tabbar-h: 0px;
}

/* ---------- основа ---------- */
body.ps-theme { background: var(--ui-bg); color: var(--ui-text); font-size: 15px; }
.ps-theme .site, .ps-theme .site__body { background: var(--ui-bg); color: var(--ui-text); }
.ps-theme a { color: var(--ui-text); }
.ps-theme a:hover { color: var(--ui-red-active); }
.ps-theme ::selection { background: var(--ui-red); color: #fff; }
.ps-theme :focus-visible { outline: 2px solid var(--ui-red); outline-offset: 2px; }

/* заголовки: без «серо-жирной» игры начертаний старой темы */
.ps-h1, .ps-h2 { font-weight: 700; letter-spacing: -.02em; color: var(--ui-text) !important; }
.ps-h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.ps-h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.ps-h1 strong, .ps-h2 strong, .ps-h1 em, .ps-h2 em { font-weight: 700; font-style: normal; color: inherit; }
.ps-h3 { font-size: 18px; }
.ps-h1 { font-size: clamp(26px, 2.6vw, 34px) !important; }
.ps-h2 { font-size: clamp(21px, 2vw, 26px) !important; }
.ps-lead { font-size: 16px; color: var(--ui-text-2); }
.ps-eyebrow { color: var(--ui-red-active); font-size: 12px; font-weight: 600; }
.ps-section { padding-top: 48px; }
.ps-page { padding-top: 24px; }

/* ---------- кнопки ---------- */
.ps-btn { height: 44px; padding: 0 20px; border-radius: var(--ui-r); font-weight: 600; font-size: 15px; gap: 8px; background: var(--ui-red); color: #fff !important; }
.ps-btn:hover { background: var(--ui-red-active); }
.ps-btn--lg { height: 50px; }
.ps-btn--sm { height: 38px; padding: 0 14px; font-size: 14px; }
.ps-btn--dark { background: var(--ui-graphite); }
.ps-btn--line { background: transparent; color: var(--ui-red) !important; box-shadow: inset 0 0 0 1.5px var(--ui-red); }
.ps-btn--line:hover { background: var(--ui-red); color: #fff !important; }
.ps-btn .ps-arrow { display: none; }
.ps-ghost { height: 44px; padding: 0 18px; border-radius: var(--ui-r); background: var(--ui-white) !important; color: var(--ui-text) !important; box-shadow: inset 0 0 0 1px var(--ui-line-2); font-weight: 500; }
.ps-ghost:hover { box-shadow: inset 0 0 0 1px var(--ui-text); color: var(--ui-text) !important; }
.ps-ghost--sm { height: 38px; padding: 0 14px; }
.ps-link { color: var(--ui-text) !important; }
.ps-link:hover { color: var(--ui-red-active) !important; }

/* ---------- поля ---------- */
.ps-input, .ps-field-input, .ps-select, .ps-theme .form-control, .ps-theme .custom-select {
  height: 44px; padding: 0 12px; background: var(--ui-white); color: var(--ui-text);
  border: 1px solid var(--ui-line-2); border-radius: var(--ui-r); font: 400 15px var(--ui-font); box-shadow: none;
}
.ps-input:focus, .ps-field-input:focus, .ps-select:focus, .ps-theme .form-control:focus, .ps-theme .custom-select:focus { border-color: var(--ui-text); outline: 0; background: var(--ui-white); color: var(--ui-text); box-shadow: none; }
.ps-input::placeholder, .ps-field-input::placeholder { color: #8C8F94; }
.ps-select { appearance: none; -webkit-appearance: none; padding-right: 28px; text-overflow: ellipsis; cursor: pointer;
  background: var(--ui-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.ps-select:disabled { color: #9A9DA2; background-color: #FAFAFA; cursor: default; }
.ps-field .ps-input { height: 44px; }
.ps-field > label, .ps-label, .ps-theme label { color: var(--ui-text-2); font-size: 13px; }
.ps-theme textarea.form-control { height: auto; padding: 10px 12px; }
.ps-theme select.form-control option, .ps-theme .custom-select option { background: #fff; color: var(--ui-text); }
.ps-phone { border: 1px solid var(--ui-line-2); border-radius: var(--ui-r); padding-left: 12px; background: #fff; }
.ps-phone .ps-input { border: 0; }
.ps-phone__code { border-right-color: var(--ui-line); }
.ps-pass { border: 1px solid var(--ui-line-2); border-radius: var(--ui-r); background: #fff; }
.ps-pass .ps-input { border: 0; }
.ps-qty, .ps-stepper { background: #fff; border-color: var(--ui-line-2); border-radius: var(--ui-r); color: var(--ui-text); }
.ps-stepper__btn { color: var(--ui-text); }
.ps-stepper__btn:hover { color: var(--ui-text); background: var(--ui-card); }
.ps-stepper__btn:active { color: var(--ui-text); background: #FBE3E5; }
.ps-stepper__value, .ps-stepper__input { color: var(--ui-text); }
.ps-file::file-selector-button { color: var(--ui-text); border-radius: var(--ui-r-sm); }
.ps-alert { background: #fff; color: var(--ui-text); border: 1px solid var(--ui-line); border-left: 3px solid var(--ui-red); border-radius: var(--ui-r); }
.ps-alert--success, .ps-alert--info { border-left-color: var(--ui-green); }
.ps-ui-alert-wrap { padding-top: 16px; }

/* ---------- логотип ---------- */
.ps-logo { color: #fff !important; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.ps-logo--dark { color: var(--ui-text) !important; font-size: 22px; }

/* =====================================================================
   ШАПКА
   ===================================================================== */
.ps-header, .ps-tabbar { display: none !important; }
.ps-top { position: relative; z-index: 50; background: var(--ui-graphite); color: #fff; }
.ps-top a, .ps-top button { color: #fff; }
.ps-top a:hover { color: #fff; }
.ps-top__row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.ps-top__catalog { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 10px; margin-left: -10px; border: 0; border-radius: var(--ui-r); background: transparent; cursor: pointer; font: 500 13px/1.15 var(--ui-font); text-align: left; }
.ps-top__catalog:hover { background: rgba(255,255,255,.08); }
.ps-top__info { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.25; white-space: nowrap; }
.ps-top__info > svg { flex: 0 0 auto; color: #fff; }
.ps-top__info b { display: block; font-weight: 600; }
.ps-top__info small { display: block; font-size: 12px; color: #A3A6AB; }
.ps-top__city { margin-left: 8px; }
.ps-top__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ps-top__act { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-radius: var(--ui-r); font-size: 14px; }
.ps-top__act:hover { background: rgba(255,255,255,.08); }
.ps-top__cart-icon { position: relative; display: inline-flex; }
.ps-top .ps-badge { top: -7px; right: -9px; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; font-size: 11px; }
.ps-top__search { padding-bottom: 14px; }
.ps-topsearch { display: flex; align-items: stretch; height: 48px; background: #fff; border-radius: var(--ui-r); padding: 4px; gap: 4px; }
.ps-topsearch__input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; color: var(--ui-text); font: 400 16px var(--ui-font); }
.ps-topsearch__input::placeholder { color: #8C8F94; }
.ps-topsearch__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ps-topsearch:focus-within { box-shadow: 0 0 0 2px var(--ui-red); }
.ps-topsearch__btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border: 0; border-radius: var(--ui-r-sm); background: var(--ui-red); color: #fff !important; font: 600 15px var(--ui-font); cursor: pointer; }
.ps-topsearch__btn:hover { background: var(--ui-red-active); }

/* =====================================================================
   ЛЕВОЕ МЕНЮ
   ===================================================================== */
.ps-drawer__backdrop { background: rgba(21,21,21,.5); }
.ps-drawer__panel { width: min(320px, 88vw); background: #fff; border-right: 0; color: var(--ui-text); padding-bottom: env(safe-area-inset-bottom); padding-top: env(safe-area-inset-top); animation: psUiSlide .2s ease-out; }
.ps-drawer__panel::before { display: none; }
@keyframes psUiSlide { from { transform: translateX(-100%); } to { transform: none; } }
.ps-drawer__head { height: 60px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--ui-line); }
.ps-drawer__close { width: 44px; height: 44px; color: var(--ui-text); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ui-r); }
.ps-drawer__close:hover { background: var(--ui-card); }
.ps-drawer__nav { padding: 8px 0; }
.ps-drawer__nav a { min-height: 44px; gap: 14px; padding: 0 16px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ui-text); border-left: 3px solid transparent; }
.ps-drawer__nav a svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: #55585D; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ps-drawer__nav a:hover { background: var(--ui-bg); color: var(--ui-text); }
.ps-drawer__nav a.is-active { color: var(--ui-red); font-weight: 600; border-left-color: var(--ui-red); background: #FDF2F3; }
.ps-drawer__nav a.is-active svg { stroke: var(--ui-red); }
.ps-drawer__sep { height: 1px; background: var(--ui-line); margin: 8px 16px; }
.ps-drawer__foot { padding: 16px; border-top: 1px solid var(--ui-line); gap: 8px; }
.ps-drawer__contacts { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 13px; color: var(--ui-text-2); padding-top: 8px; }
.ps-drawer__contacts a:first-child { font-size: 16px; font-weight: 700; color: var(--ui-text); }
@media (prefers-reduced-motion: reduce) { .ps-drawer__panel { animation: none; } }

/* =====================================================================
   ПОДВАЛ
   ===================================================================== */
.ps-footer { margin-top: 56px; background: var(--ui-graphite); color: #C9CBCF; border-top: 0; }
.ps-footer__bg, .ps-footer__fade { display: none; }
.ps-footer a { color: #fff; }
.ps-footer a:hover { color: #fff; text-decoration: underline; }
.ps-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
.ps-footer__brand p { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: #A3A6AB; }
.ps-footer__title { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.ps-footer__list { gap: 7px; font-size: 13px; }
.ps-footer__list a { color: #C9CBCF; }
.ps-footer__contacts { font-size: 13px; line-height: 1.6; }
.ps-footer__contacts p { margin: 6px 0 0; color: #A3A6AB; }
.ps-footer__phone { font-size: 20px; font-weight: 700; color: #fff !important; }
.ps-footer__bottom { border-top: 1px solid #2A2B2E; }
.ps-footer__bottom .ps-container { padding-top: 14px; padding-bottom: 18px; font-size: 12px; color: #8C8F94; }

/* =====================================================================
   ГЛАВНАЯ
   ===================================================================== */
.ps-home { padding-top: 16px; }
.ps-block { margin-top: 32px; }
.ps-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.ps-block__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--ui-text); }
.ps-block__sub { margin: 6px 0 0; font-size: 14px; color: var(--ui-text-2); max-width: 640px; }
.ps-more { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ui-red) !important; font: 500 14px var(--ui-font); cursor: pointer; white-space: nowrap; }
.ps-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ps-more:hover { color: var(--ui-red-active) !important; }

/* подбор по автомобилю */
.ps-picker { display: grid; grid-template-columns: 210px 1fr; gap: 20px 28px; align-items: center; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); padding: 20px 22px; }
.ps-picker__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.ps-picker__sub { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ui-text-2); }
.ps-picker__form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.ps-picker__form .ps-select, .ps-picker__form .ps-field-input { padding-left: 10px; font-size: 14px; }
.ps-picker__field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ps-picker__field label { font-size: 13px; font-weight: 600; color: var(--ui-text); margin: 0; }
.ps-picker__field .ps-select, .ps-picker__field .ps-field-input { width: 100%; }
.ps-picker__btn { height: 44px; padding: 0 22px; }

/* VIN и гараж */
.ps-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ps-duo__item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); color: var(--ui-text); }
.ps-duo__item:hover { border-color: var(--ui-text); color: var(--ui-text); }
.ps-duo__item b { display: block; font-size: 16px; }
.ps-duo__item small { display: block; font-size: 13px; color: var(--ui-text-2); margin-top: 2px; }
.ps-duo__icon { width: 34px; height: 34px; flex: 0 0 auto; fill: none; stroke: var(--ui-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ps-duo__go { width: 20px; height: 20px; margin-left: auto; flex: 0 0 auto; fill: none; stroke: #8C8F94; stroke-width: 2; }

/* строка «как мы работаем» */
.ps-strip { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); }
.ps-strip li + li { border-left: 1px solid var(--ui-line); }
.ps-strip a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ui-text); text-align: center; }
.ps-strip a:hover { color: var(--ui-red); }
.ps-strip svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--ui-red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.ps-notice { margin-top: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--ui-line); border-left: 3px solid var(--ui-red); border-radius: var(--ui-r); font-size: 14px; }
.ps-notice b { display: block; margin-bottom: 2px; }

/* каталог склада */
.ps-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; }
.ps-cat { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 72px; padding: 12px 14px; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); color: var(--ui-text); }
.ps-cat:hover { border-color: var(--ui-text); color: var(--ui-text); }
.ps-cat__t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ps-cat__n { font-size: 12px; color: var(--ui-green); }

/* карточки товаров */
.ps-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ps-card { display: flex; flex-direction: column; gap: 5px; padding: 12px; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); min-width: 0; }
.ps-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin-bottom: 6px; background: var(--ui-card); border-radius: var(--ui-r-sm); overflow: hidden; }
.ps-card__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ps-card__nophoto { font-size: 12px; color: #8C8F94; }
.ps-card__brand { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; }
.ps-card__name { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.35; color: var(--ui-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.ps-card__art { font-size: 12px; color: var(--ui-text-2); overflow-wrap: anywhere; }
.ps-card__art span { color: var(--ui-text); font-variant-numeric: tabular-nums; }
.ps-card__stock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ui-green); font-weight: 500; }
.ps-card__stock i { width: 7px; height: 7px; border-radius: 50%; background: var(--ui-green); flex: 0 0 auto; }
.ps-card__get { font-size: 12px; color: var(--ui-text-2); }
.ps-card__price { margin-top: auto; padding-top: 6px; font-size: 20px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.ps-card .product-card__footer { margin: 0; padding: 0; border: 0; display: block; }
.ps-card__buy { width: 100%; }
.ps-card__buy[disabled] { background: var(--ui-card) !important; color: var(--ui-text-2) !important; cursor: default; }
.ps-card__buy[disabled]::after { content: " — в корзине"; }
.ps-card__watch { font-size: 12px; color: var(--ui-text-2) !important; text-decoration: underline; text-align: center; }

/* производители */
.ps-makers { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-maker { display: inline-flex; align-items: baseline; gap: 8px; height: 40px; align-items: center; padding: 0 14px; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); color: var(--ui-text); font-size: 13px; }
.ps-maker b { font-weight: 700; letter-spacing: .3px; }
.ps-maker small { color: var(--ui-text-2); font-size: 12px; }
.ps-maker:hover { border-color: var(--ui-text); color: var(--ui-text); }

/* комплекты ТО */
.ps-kits2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ps-kit2 { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); }
.ps-kit2__t { font-size: 16px; }
.ps-kit2 ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ui-text-2); }
.ps-kit2__price { font-size: 14px; font-weight: 600; }

/* акции */
.ps-offers2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ps-offer2 { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); color: var(--ui-text); }
.ps-offer2 img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--ui-r-sm); }
.ps-offer2 span { font-size: 13px; color: var(--ui-text-2); }
.ps-offer2:hover { border-color: var(--ui-text); color: var(--ui-text); }

/* СТО и доставка */
.ps-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.ps-pane { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); }
.ps-pane__title { margin: 0; font-size: 20px; font-weight: 700; }
.ps-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ps-checks li { position: relative; padding-left: 24px; }
.ps-checks li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px; border-left: 2px solid var(--ui-red); border-bottom: 2px solid var(--ui-red); transform: rotate(-45deg); }

/* отзывы */
.ps-reviews { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); }
.ps-reviews p { margin: 4px 0 0; font-size: 14px; color: var(--ui-text-2); }

/* оригинальные каталоги */
.ps-brands { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; border: 0; }
.ps-brands a { height: 40px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: #fff; color: var(--ui-text); font-size: 14px; }
.ps-brands a:hover { color: var(--ui-text); background: #fff; border-color: var(--ui-text); }
.ps-brands.is-collapsed a:nth-child(n+17) { display: none; }

/* старые блоки главной больше не используются, но пусть не выглядят чужеродно, если где-то остались */
.ps-hero, .ps-facts, .ps-banners, .ps-vin, .ps-steps { display: none; }

/* =====================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — перевод старой тёмной темы на светлую
   ===================================================================== */
/* декоративные фото и затемнения убираем (страницы остаются информативными) */
.ps-info-hero { min-height: 0; }
.ps-info-hero__img, .ps-pagebg, .ps-cta__img, .ps-why__img::after { display: none !important; }
.ps-info-hero .ps-container { padding-top: 24px; }
.ps-cta { margin-top: 48px; background: #fff; border-color: var(--ui-line); }
.ps-cta::after { display: none; }
.ps-cta .ps-container, .ps-cta--photo .ps-container { padding-top: 32px; padding-bottom: 32px; }
.ps-cta .ps-h2 { color: var(--ui-text) !important; }
.ps-pagebg-content .ps-faq__list { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: var(--ui-r); }
.ps-pagebg-content .ps-panel--accent { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ps-auth__visual { min-height: 0; padding: 32px; background: #fff; border-right: 1px solid var(--ui-line); }
.ps-auth__visual img, .ps-auth__visual::before { display: none; }
.ps-auth__pitch .ps-h2 { color: var(--ui-text) !important; }
.ps-auth { min-height: 0; }
.ps-auth__title { font-size: 30px; }

/* панели и блоки */
.ps-panel, .ps-note, .ps-ad, .ps-kit, .ps-landing__promo, .ps-acc__box, .ps-path, .ps-offer, .ps-map { background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-r); }
.ps-panel--accent::before { display: none; }
.ps-panel--accent { border-top: 3px solid var(--ui-red); }
.ps-trust { background: var(--ui-line); border-radius: var(--ui-r); overflow: hidden; }
.ps-trust li { background: #fff; }
.ps-col, .ps-step, .ps-why__grid > div { border-top-color: var(--ui-line); }
.ps-faq__n { display: none; }
.ps-faq__a { padding-left: 0; }
.ps-faq__q { font-size: 17px; }
.ps-promo { background: #fff; border: 1px solid var(--ui-line); border-left: 3px solid var(--ui-red); border-radius: var(--ui-r); padding: 20px 24px; }
.ps-promo::before { display: none; }
.ps-promo h2 { color: var(--ui-text); font-weight: 600; font-size: 20px; }
.ps-promo__label { color: var(--ui-red); }
.ps-offer-grid > div.is-accent { background: #FDF2F3; }
.ps-offer-grid > div.is-accent span:first-child { color: var(--ui-red); }
.ps-statement { color: var(--ui-text-2); }
.ps-statement span, .ps-statement strong { color: var(--ui-text); }
.ps-map iframe { filter: none; }
.ps-welcome { background: #fff; border-color: var(--ui-line); box-shadow: none; border-radius: var(--ui-r); backdrop-filter: none; }
.ps-welcome__title, .ps-welcome__lead { color: var(--ui-text); }
.ps-welcome__badge { color: var(--ui-green); background: #E9F6EE; border-color: #BFE3CC; }
.ps-welcome__btn { border-radius: var(--ui-r); }

/* текст, который в старой теме был белым */
.ps-nav a:hover, .ps-nav a.is-active, .ps-link:hover, .ps-note strong, .ps-cab__nav a:hover, .ps-cab__nav a.is-active,
.ps-theme .site__body > .block details > summary, .ps-kit__price, .ps-trust b, .ps-landing__promo b, .ps-path, .ps-path:hover,
.ps-offer, .ps-offer:hover, a.ps-fact--link:hover .ps-fact__t, .ps-acc__head .ps-h3, .ps-acc__consent b, .ps-acc__carhead .ps-h3,
.ps-acc__table td b, .ps-linkbtn:hover, .ps-acc__add summary, .ps-acc__list b, .ps-acc__balance b, .ps-product__watch:hover,
.ps-welcome__link:hover, .ps-checkout-bar__sum b, .ps-toggle-more, .ps-table, .ps-seg button, .ps-lead-form__result { color: var(--ui-text); }
.ps-seg { border-color: var(--ui-line-2); border-radius: var(--ui-r); overflow: hidden; background: #fff; }
.ps-seg button.active { color: #fff; }
.ps-table tbody tr:hover { background: var(--ui-bg); }
.ps-order .product-card__addtocart-icon { border-radius: var(--ui-r); color: #fff; }
.ps-order .product-card__addtocart-icon[disabled] { background: var(--ui-card); color: var(--ui-text-2); }
.ps-pager a, .ps-pager span { border-radius: var(--ui-r-sm); background: #fff; color: var(--ui-text); border-color: var(--ui-line-2); }
.ps-pager span { background: var(--ui-red); border-color: var(--ui-red); color: #fff; }
.ps-acc__st--due { color: #fff; }
.ps-acc__st--soon { color: #8A5A00; border-color: #E8C46A; background: #FFF7E0; }
.ps-acc__st--ok { color: var(--ui-green); border-color: #BFE3CC; }
.ps-loader { background: rgba(245,245,245,.92); }
.ps-loader__bar { background: var(--ui-line); }
.ps-loader__text { color: var(--ui-text); }
.ps-checkout-bar { background: #fff; border-top-color: var(--ui-line); bottom: 0; }
.ps-product__stock { background: rgba(255,255,255,.92); color: var(--ui-green); }
.ps-product__img { background: var(--ui-card); }
.ps-path__n { display: none; }

/* старые шаблоны кабинета (bootstrap) */
.ps-theme .bg-white, .ps-theme .bg-light { background: #fff !important; color: var(--ui-text); }
.ps-theme .text-success { color: var(--ui-green) !important; }
.ps-theme .card { background: #fff; color: var(--ui-text); border: 1px solid var(--ui-line); border-radius: var(--ui-r); }
.ps-theme .card-title, .ps-theme .table, .ps-theme .card-table table, .ps-theme .list-group-item, .ps-theme .modal-content,
.ps-theme .address-card, .ps-theme .profile-card, .ps-theme .dashboard__orders, .ps-theme .vehicles-list__item { color: var(--ui-text); }
.ps-theme .table-hover tbody tr:hover { background: var(--ui-bg); color: var(--ui-text); }
.ps-theme .table-light, .ps-theme .table-light > td, .ps-theme .table-light > th { color: var(--ui-text); }
.ps-theme .table-striped tbody tr:nth-of-type(odd) { background: #FAFAFA; }
.ps-theme .btn { border-radius: var(--ui-r); }
.ps-theme .btn-secondary, .ps-theme .btn-dark, .ps-theme .btn-light, .ps-theme .btn-muted { background: #fff; border: 1px solid var(--ui-line-2); color: var(--ui-text); }
.ps-theme .btn-secondary:hover, .ps-theme .btn-dark:hover, .ps-theme .btn-light:hover { background: var(--ui-bg); border-color: var(--ui-text); color: var(--ui-text); }
.ps-theme .btn-secondary.active, .ps-theme .btn-secondary:not(:disabled):not(.disabled).active { color: #fff; }
.ps-theme .alert { background: #fff; color: var(--ui-text); border: 1px solid var(--ui-line); border-left: 3px solid var(--ui-red); border-radius: var(--ui-r); }
.ps-theme .alert-success, .ps-theme .alert-info { border-left-color: var(--ui-green); }
.ps-theme .page-link { background: #fff; color: var(--ui-text); }
.ps-theme .page-link:hover { background: var(--ui-bg); color: var(--ui-text); border-color: var(--ui-line-2); }
.ps-theme .modal-content { background: #fff; border-color: var(--ui-line); border-radius: var(--ui-r); }
.ps-theme .modal-header .close { color: var(--ui-text); }
.ps-theme .dropdown-menu { background: #fff; border-radius: var(--ui-r); }
.ps-theme .dropdown-item { color: var(--ui-text); }
.ps-theme .dropdown-item:hover { background: var(--ui-bg); color: var(--ui-text); }
.ps-theme .nav-tabs .nav-link.active { color: var(--ui-text); }
.ps-theme .status-badge__text { color: var(--ui-text) !important; }
.ps-theme .vehicles-list__item { background: #fff; }
.ps-theme .form-control:disabled, .ps-theme .form-control[readonly] { background: #FAFAFA; color: var(--ui-text-2); }

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
@media (max-width: 1199px) {
  .ps-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ps-picker { grid-template-columns: 1fr; }
  .ps-top__city { display: none; }
  .ps-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1099px) {
  :root { --ps-gutter: 20px; }
}
@media (max-width: 991px) {
  .ps-top__phone small, .ps-top__catalog-text { display: none; }
  .ps-top__catalog { padding: 0 10px; }
  .ps-top__row { gap: 16px; }
  .ps-picker__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-picker__btn { grid-column: 1 / -1; }
  .ps-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-strip { grid-template-columns: repeat(2, 1fr); }
  .ps-strip li:nth-child(3) { border-left: 0; }
  .ps-strip li:nth-child(n+3) { border-top: 1px solid var(--ui-line); }
}
@media (max-width: 767px) {
  :root { --ps-gutter: 12px; }
  body.ps-theme { padding-bottom: 0; font-size: 15px; }
  body.ps-has-checkout { padding-bottom: 76px; }
  .ps-top { position: sticky; top: 0; }
  .ps-top__row { min-height: 52px; gap: 8px; }
  .ps-top__phone, .ps-top__act:not(.ps-top__cart) { display: none; }
  .ps-top__act > span:last-child { display: none; }
  .ps-top__cart { padding: 0 8px; }
  .ps-logo { font-size: 22px; }
  .ps-top__search { padding-bottom: 10px; }
  .ps-topsearch { height: 44px; }
  .ps-topsearch__btn { padding: 0 14px; }
  .ps-topsearch__btn svg { display: none; }
  .ps-topsearch__input { font-size: 16px; padding: 0 8px; }
  .ps-home { padding-top: 12px; }
  .ps-picker { padding: 14px; gap: 12px; }
  .ps-picker__title { font-size: 18px; }
  .ps-picker__form { gap: 8px; }
  .ps-duo { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .ps-duo__item { padding: 12px 14px; }
  .ps-duo__icon { width: 28px; height: 28px; }
  .ps-strip { margin-top: 8px; }
  .ps-strip a { justify-content: flex-start; text-align: left; font-size: 13px; min-height: 44px; }
  .ps-duo__item small { display: none; }
  .ps-block { margin-top: 24px; }
  .ps-block__title { font-size: 19px; }
  .ps-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ps-cat { min-height: 60px; padding: 10px 12px; }
  .ps-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ps-card { padding: 10px; }
  .ps-card__price { font-size: 18px; }
  .ps-card__get { display: none; }
  .ps-home .ps-cards .ps-card:nth-child(n+7) { display: none; }
  .ps-pair { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .ps-pane { padding: 14px 16px; }
  .ps-pane .ps-btn, .ps-reviews .ps-btn { width: 100%; }
  .ps-reviews { margin-top: 24px; padding: 14px 16px; }
  .ps-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-brands.is-collapsed a:nth-child(n+11) { display: none; }
  .ps-footer { margin-top: 40px; }
  .ps-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding-top: 24px; }
  .ps-footer__contacts { grid-column: 1 / -1; }
  .ps-footer__list a { min-height: 32px; display: inline-flex; align-items: center; }
  .ps-section { padding-top: 32px; }
  .ps-auth__visual { padding: 16px; border-right: 0; border-bottom: 1px solid var(--ui-line); }
  .ps-checkout-bar { bottom: 0; }
}
@media (max-width: 359px) {
  .ps-cards, .ps-cats { grid-template-columns: 1fr; }
  .ps-strip { grid-template-columns: 1fr; }
  .ps-strip li + li { border-left: 0; border-top: 1px solid var(--ui-line); }
  .ps-picker__form { grid-template-columns: 1fr; }
}
