/* =====================================================================
   PITSTOP — «драйвовый минимализм»
   Основная тема сайта. Подключается последней, после style.css,
   и переопределяет оформление старого шаблона.
   ===================================================================== */

:root {
  --ps-bg: #0B0B0C;
  --ps-bg-2: #0E0E10;
  --ps-panel: #111214;
  --ps-surface: #141518;
  --ps-line: #1C1D20;
  --ps-line-2: #26282C;
  --ps-line-3: #3A3D43;
  --ps-red: #E31E24;
  --ps-red-2: #FF252D;
  --ps-white: #FFFFFF;
  --ps-soft: #BFC3C9;
  --ps-muted: #8A8F97;
  --ps-muted-2: #6E737B;
  --ps-head-grey: #7A7F87;
  --ps-font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ps-container: 1340px;
  --ps-gutter: 40px;
  --ps-header-h: 84px;
  --ps-tabbar-h: 66px;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
.ps-theme *, .ps-theme *::before, .ps-theme *::after { box-sizing: border-box; }
body.ps-theme {
  margin: 0;
  background: var(--ps-bg);
  color: var(--ps-white);
  font-family: var(--ps-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.ps-theme .site, .ps-theme .site__body { background: var(--ps-bg); color: var(--ps-white); }
.ps-theme a { color: var(--ps-white); text-decoration: none; transition: color .2s ease; }
.ps-theme a:hover { color: var(--ps-red-2); text-decoration: none; }
.ps-theme h1, .ps-theme h2, .ps-theme h3, .ps-theme h4, .ps-theme h5, .ps-theme h6 { color: var(--ps-white); font-family: var(--ps-font); }
.ps-theme ::selection { background: var(--ps-red); color: #fff; }
.ps-theme img { max-width: 100%; }
.ps-theme :focus-visible { outline: 2px solid var(--ps-red-2); outline-offset: 2px; }
.ps-only-mobile { display: none !important; }
@media (max-width: 767px) { .ps-only-mobile { display: inline-flex !important; } .ps-only-desktop { display: none !important; } }
.ps-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ps-container { max-width: var(--ps-container); margin: 0 auto; padding: 0 var(--ps-gutter); box-sizing: border-box; }

/* ---------- typography ---------- */
.ps-h1 { margin: 0; font-weight: 300; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.03em; color: var(--ps-head-grey) !important; }
.ps-h2 { margin: 0; font-weight: 300; font-size: clamp(30px, 3.3vw, 46px); line-height: 1.08; letter-spacing: -.03em; color: var(--ps-head-grey) !important; }
.ps-h1 strong, .ps-h2 strong { font-weight: 700; color: var(--ps-white); }
.ps-h1 em, .ps-h2 em { font-style: italic; color: var(--ps-white); }
.ps-h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.ps-eyebrow { font-size: 13px; color: var(--ps-red-2); margin-bottom: 12px; }
.ps-eyebrow--caps { letter-spacing: 2px; text-transform: uppercase; }
.ps-lead { margin: 0; font-size: 18px; line-height: 1.6; color: #9A9FA7; }
.ps-muted { color: var(--ps-muted); }
.ps-crumbs { font-size: 13px; color: var(--ps-muted-2); margin-bottom: 20px; }
.ps-crumbs a { color: var(--ps-muted-2); }
.ps-section { padding-top: 120px; }
.ps-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 32px; }

/* ---------- buttons ---------- */
.ps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 0;
  background: var(--ps-red); color: #fff !important;
  font: 500 15px/1 var(--ps-font); cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.ps-btn:hover { background: var(--ps-red-2); color: #fff !important; }
.ps-btn .ps-arrow { transition: transform .2s ease; }
.ps-btn:hover .ps-arrow { transform: translateX(4px); }
.ps-btn--lg { height: 58px; font-size: 17px; padding: 0 28px; }
.ps-btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }
.ps-btn--block { width: 100%; justify-content: space-between; }
.ps-btn--dark { background: var(--ps-bg); }
.ps-btn--dark:hover { background: #000; }
.ps-btn--icon { width: 48px; padding: 0; }
.ps-btn[disabled], .ps-btn:disabled { opacity: .55; cursor: default; }
/* ghost button with corner ticks */
.ps-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border: 0; border-radius: 0; color: #fff !important; cursor: pointer;
  font: 400 15px/1 var(--ps-font); white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  background:
    linear-gradient(#fff,#fff) 0 0/10px 1px no-repeat, linear-gradient(#fff,#fff) 0 0/1px 10px no-repeat,
    linear-gradient(#fff,#fff) 100% 0/10px 1px no-repeat, linear-gradient(#fff,#fff) 100% 0/1px 10px no-repeat,
    linear-gradient(#fff,#fff) 0 100%/10px 1px no-repeat, linear-gradient(#fff,#fff) 0 100%/1px 10px no-repeat,
    linear-gradient(#fff,#fff) 100% 100%/10px 1px no-repeat, linear-gradient(#fff,#fff) 100% 100%/1px 10px no-repeat;
  background-color: transparent;
  transition: box-shadow .2s ease, color .2s ease;
}
.ps-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); color: #fff !important; }
.ps-ghost--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.ps-link { color: var(--ps-soft) !important; border-bottom: 1px solid var(--ps-red); padding-bottom: 3px; }
.ps-link:hover { color: #fff !important; }

/* ---------- form controls ---------- */
.ps-input {
  width: 100%; min-width: 0; height: 52px; box-sizing: border-box; padding: 0 2px;
  background: transparent; border: 0; border-bottom: 1px solid #4A4D53; border-radius: 0;
  color: #fff; font: 400 17px var(--ps-font); outline: 0; box-shadow: none;
  transition: border-color .2s ease;
}
.ps-input::placeholder { color: var(--ps-muted-2); opacity: 1; }
.ps-input:focus { border-bottom-color: var(--ps-red); }
.ps-field { display: flex; flex-direction: column; gap: 6px; }
.ps-field > label, .ps-label { font-size: 13px; color: var(--ps-muted); margin: 0; }
.ps-field .ps-input { height: 46px; }
.ps-hint { font-size: 13px; color: var(--ps-muted-2); }
.ps-phone { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #4A4D53; transition: border-color .2s ease; }
.ps-phone:focus-within { border-bottom-color: var(--ps-red); }
.ps-phone__code { font-size: 17px; font-weight: 600; padding-right: 14px; border-right: 1px solid var(--ps-line-3); line-height: 24px; }
.ps-phone .ps-input { border: 0; letter-spacing: .5px; }
.ps-qty { width: 60px; height: 42px; box-sizing: border-box; background: transparent; border: 1px solid var(--ps-line-2); color: #fff; text-align: center; font: 500 15px var(--ps-font); border-radius: 0; -moz-appearance: textfield; }
.ps-qty::-webkit-inner-spin-button, .ps-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ps-alert { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--ps-panel); border-left: 2px solid var(--ps-red); color: var(--ps-soft); font-size: 15px; }
.ps-alert--success, .ps-alert--info { border-left-color: var(--ps-soft); }
.ps-alert button { background: transparent; border: 0; color: var(--ps-muted); font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- header ---------- */
.ps-header { position: relative; z-index: 50; background: var(--ps-bg); border-bottom: 1px solid var(--ps-line); }
.ps-header--overlay { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom: 0; }
.ps-header__inner { display: flex; align-items: center; gap: 16px 32px; min-height: var(--ps-header-h); }
.ps-logo { display: inline-flex; align-items: center; font-weight: 700; font-style: italic; font-size: 23px; letter-spacing: -.5px; color: #fff !important; white-space: nowrap; }
.ps-logo__slash { display: inline-block; width: 4px; height: 21px; margin: 0 5px; background: var(--ps-red); transform: skewX(-20deg); }
.ps-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; }
.ps-nav a { color: var(--ps-muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.ps-nav a:hover { color: #fff; }
.ps-nav a.is-active { color: #fff; border-bottom-color: var(--ps-red); }
.ps-hsearch { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; min-width: 200px; }
.ps-hsearch .ps-input { height: 42px; font-size: 15px; }
.ps-hsearch__btn { width: 42px; height: 42px; flex: 0 0 auto; border: 0; background: var(--ps-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s ease; }
.ps-hsearch__btn:hover { background: var(--ps-red-2); }
.ps-actions { display: flex; align-items: center; gap: 14px; }
.ps-actions__phone { font-size: 14px; color: var(--ps-soft) !important; white-space: nowrap; }
.ps-iconbtn { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff !important; background: transparent; border: 0; cursor: pointer; }
.ps-badge { position: absolute; top: 4px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ps-red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.ps-badge:empty, .ps-badge[data-zero="1"] { display: none; }
.ps-header__burger, .ps-header__call { display: none; }
.ps-header__msearch { display: none; }
.ps-cart-total { font-size: 13px; color: var(--ps-muted); white-space: nowrap; }

/* ---------- drawer (mobile menu) ---------- */
.ps-drawer { position: fixed; inset: 0; z-index: 1000; display: none; }
.ps-drawer.is-open { display: flex; }
.ps-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); border: 0; width: 100%; cursor: pointer; }
.ps-drawer__panel { position: relative; width: min(330px, 86vw); height: 100%; background: var(--ps-bg-2); border-right: 1px solid var(--ps-line-2); display: flex; flex-direction: column; overflow-y: auto; animation: psSlide .25s ease; }
.ps-drawer__panel::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--ps-red); }
@keyframes psSlide { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ps-drawer__head { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 20px; border-bottom: 1px solid var(--ps-line); color: var(--ps-muted); font-size: 14px; }
.ps-drawer__close { width: 46px; height: 46px; background: transparent; border: 0; color: #fff; font-size: 26px; font-weight: 300; cursor: pointer; }
.ps-drawer__nav { display: flex; flex-direction: column; padding: 10px 0; }
.ps-drawer__nav a { min-height: 52px; display: flex; align-items: center; padding: 0 20px; font-size: 22px; font-weight: 300; letter-spacing: -.5px; color: #9A9FA7; }
.ps-drawer__nav a.is-active { color: #fff; font-weight: 600; }
.ps-drawer__foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--ps-line); display: flex; flex-direction: column; gap: 10px; }
.ps-drawer__foot .ps-btn, .ps-drawer__foot .ps-ghost { width: 100%; }
.ps-drawer__contacts { font-size: 14px; color: var(--ps-muted); text-align: center; line-height: 1.7; padding-top: 6px; }
body.ps-lock { overflow: hidden; }

/* ---------- tabbar (mobile) ---------- */
.ps-tabbar { display: none; }

/* ---------- footer ---------- */
.ps-footer { position: relative; margin-top: 140px; overflow: hidden; border-top: 1px solid var(--ps-line); background: var(--ps-bg); }
.ps-footer__bg { position: absolute; right: -40px; bottom: -30px; width: 60%; max-width: 900px; opacity: .8; mix-blend-mode: lighten; pointer-events: none; }
.ps-footer__fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ps-bg) 40%, rgba(11,11,12,.3) 100%); pointer-events: none; }
.ps-footer__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 34px; }
.ps-footer__title { font-size: 13px; color: var(--ps-muted-2); margin-bottom: 14px; }
.ps-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ps-footer__list a { color: #fff; }
.ps-footer__list .ps-muted { color: var(--ps-muted-2); }
.ps-footer__about { margin: 16px 0 0; font-size: 14px; line-height: 1.7; color: var(--ps-muted); }
.ps-footer__bottom { position: relative; border-top: 1px solid var(--ps-line); }
.ps-footer__bottom .ps-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 22px; padding-bottom: 28px; font-size: 13px; color: var(--ps-muted-2); }

/* ---------- loader (search in progress) ---------- */
.ps-loader { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 22px; background: rgba(11,11,12,.92); }
.ps-loader.is-on { display: flex; }
.ps-loader__bar { width: 220px; height: 3px; background: var(--ps-line-2); overflow: hidden; position: relative; }
.ps-loader__bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--ps-red); animation: psRun 1s linear infinite; }
@keyframes psRun { from { left: -40%; } to { left: 100%; } }
.ps-loader__text { font-size: 15px; color: var(--ps-soft); }

/* =====================================================================
   HOME
   ===================================================================== */
.ps-hero { position: relative; min-height: 760px; overflow: hidden; background: var(--ps-bg); }
.ps-hero__plane { position: absolute; inset: 0; pointer-events: none; }
.ps-hero__plane--1 { background: #0E0E10; clip-path: polygon(28% 0, 46% 0, 22% 100%, 4% 100%); }
.ps-hero__plane--2 { background: #111214; clip-path: polygon(62% 0, 100% 0, 100% 22%, 52% 22%); }
.ps-hero__plane--3 { background: #0F1012; clip-path: polygon(0 74%, 40% 74%, 30% 100%, 0 100%); }
.ps-hline { position: absolute; height: 1px; background: var(--ps-line-2); pointer-events: none; }
.ps-vline { position: absolute; width: 1px; background: var(--ps-line-2); transform: skewX(-38deg); transform-origin: top; pointer-events: none; }
.ps-band { position: absolute; right: 0; top: 196px; width: 66%; height: 380px; clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); background: var(--ps-red); overflow: hidden; }
.ps-band img, .ps-band picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-band img { object-fit: cover; object-position: 50% 30%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%); }
.ps-band__lines { position: absolute; left: 0; right: 0; top: 0; height: 46%; background: repeating-linear-gradient(180deg, rgba(9,9,9,.7) 0 3px, rgba(9,9,9,0) 3px 11px); -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.ps-band__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,0) 30%); }
.ps-hero__body { position: relative; padding-top: calc(var(--ps-header-h) + 150px); padding-bottom: 120px; }
.ps-hero__copy { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.ps-hero__copy .ps-h1 { font-size: clamp(42px, 4.8vw, 68px); }
.ps-search { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ps-search .ps-input { flex: 1 1 260px; height: 56px; font-size: 18px; }
.ps-search .ps-btn { height: 56px; }
.ps-hero__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; font-size: 14px; color: var(--ps-muted-2); }
.ps-hero__chevron { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--ps-muted-2); font-size: 18px; }

.ps-facts { border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); }
.ps-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ps-fact { padding: 30px 0; display: flex; gap: 18px; align-items: baseline; }
.ps-fact__n { font-size: 13px; color: var(--ps-red-2); }
.ps-fact__t { font-size: 17px; font-weight: 500; }
.ps-fact__d { font-size: 14px; color: var(--ps-muted); margin-top: 4px; }

.ps-ad { margin-top: 40px; padding: 22px 26px; background: var(--ps-panel); display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; }
.ps-ad__label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ps-red-2); }
.ps-ad__title { font-size: 18px; font-weight: 600; }
.ps-ad__text { flex: 1 1 100%; color: var(--ps-soft); font-size: 15px; line-height: 1.6; }

.ps-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 28px; }
.ps-banner { position: relative; min-height: 440px; overflow: hidden; background: var(--ps-surface); display: flex; flex-direction: column; justify-content: flex-end; }
.ps-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ps-banner:hover .ps-banner__img { transform: scale(1.04); }
.ps-banner__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,12,.97) 26%, rgba(11,11,12,.45) 62%, rgba(11,11,12,.15) 100%); }
.ps-banner__body { position: relative; padding: 40px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ps-banner__body form { width: 100%; display: flex; flex-wrap: wrap; gap: 12px; }
.ps-banner__body .ps-input { flex: 1 1 200px; }
.ps-banner__text { margin: 0; font-size: 15px; line-height: 1.55; color: #9A9FA7; max-width: 420px; }

.ps-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.ps-product { display: flex; flex-direction: column; gap: 14px; }
.ps-product__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ps-surface); display: flex; align-items: center; justify-content: center; }
.ps-product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ps-product:hover .ps-product__img img { transform: scale(1.04); }
.ps-product__stock { position: absolute; left: 14px; top: 14px; font-size: 12px; color: var(--ps-soft); display: flex; align-items: center; gap: 6px; background: rgba(11,11,12,.7); padding: 4px 8px; }
.ps-dot { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--ps-red); flex: 0 0 auto; }
.ps-product__meta { font-size: 13px; color: var(--ps-muted-2); }
.ps-product__name { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.3; }
.ps-product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ps-line); }
.ps-product__price { font-size: 22px; font-weight: 600; letter-spacing: -.5px; white-space: nowrap; }
.ps-product .product-card__addtocart-icon[disabled] { background: var(--ps-line-2); cursor: default; }

.ps-vin { position: relative; margin-top: 140px; min-height: 520px; overflow: hidden; display: flex; align-items: center; }
.ps-vin__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: grayscale(.35); }
.ps-vin__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.82) 40%, rgba(11,11,12,.25) 100%); }
.ps-vin__bar { position: absolute; left: 0; top: 0; width: 38%; height: 4px; background: var(--ps-red); }
.ps-vin__body { position: relative; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.ps-vin__copy { max-width: 580px; display: flex; flex-direction: column; gap: 22px; }
.ps-vin__copy .ps-h2 { color: #9A9FA7 !important; }

.ps-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-top: 1px solid var(--ps-line); border-left: 1px solid var(--ps-line); }
.ps-brands a { height: 76px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 8px; border-right: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); color: var(--ps-muted); font-size: 16px; font-weight: 500; transition: color .2s ease, background-color .2s ease; }
.ps-brands a:hover { color: #fff; background: #141518; }
.ps-brands.is-collapsed a:nth-child(n+19) { display: none; }

.ps-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.ps-step { padding-top: 26px; border-top: 1px solid #2A2C30; display: flex; flex-direction: column; gap: 12px; }
.ps-step--accent { border-top-color: var(--ps-red); }
.ps-step__n { font-size: 54px; font-weight: 300; letter-spacing: -2px; color: var(--ps-line-3); line-height: 1; }
.ps-step--accent .ps-step__n { color: var(--ps-red); }
.ps-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ps-muted); }

/* =====================================================================
   INNER PAGES: shared
   ===================================================================== */
.ps-page { padding-top: 56px; }
.ps-page-head { padding-bottom: 28px; border-bottom: 1px solid var(--ps-line); margin-bottom: 36px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ps-panel { background: var(--ps-panel); padding: 32px; position: relative; }
.ps-panel--accent::before { content: ""; position: absolute; left: 0; top: 0; width: 34%; height: 2px; background: var(--ps-red); }

/* ---------- search results ---------- */
.ps-seg { display: inline-flex; border: 1px solid var(--ps-line-2); }
.ps-seg button { height: 44px; padding: 0 18px; border: 0; background: transparent; color: #fff; font: 500 14px var(--ps-font); cursor: pointer; transition: background-color .2s ease; }
.ps-seg button + button { border-left: 1px solid var(--ps-line-2); }
.ps-seg button.active { background: var(--ps-red); }
.ps-group { margin-top: 48px; }
.ps-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 12px; }
.ps-group__title { margin: 0; font-size: 22px; font-weight: 600; }
.ps-group__count { font-size: 14px; color: var(--ps-muted); }
.ps-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ps-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 15px; color: #fff; table-layout: fixed; }
.ps-table th:nth-child(1) { width: 9%; } .ps-table th:nth-child(2) { width: 12%; } .ps-table th:nth-child(4) { width: 7%; }
.ps-table th:nth-child(5) { width: 10%; } .ps-table th:nth-child(6) { width: 9%; } .ps-table th:nth-child(7) { width: 9%; }
.ps-table th:nth-child(8) { width: 10%; } .ps-table th:nth-child(9) { width: 210px; }
.ps-table td { overflow-wrap: anywhere; }
.ps-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ps-muted-2); padding: 12px; border-bottom: 1px solid var(--ps-line); white-space: nowrap; }
.ps-table td { padding: 16px 12px; border-bottom: 1px solid var(--ps-line); vertical-align: middle; }
.ps-table th:first-child, .ps-table td:first-child { padding-left: 0; }
.ps-table th:last-child, .ps-table td:last-child { padding-right: 0; }
.ps-table tbody tr { transition: background-color .15s ease; }
.ps-table tbody tr:hover { background: #121315; }
.ps-table .ps-strong { font-weight: 600; }
.ps-table .ps-num { color: var(--ps-soft); font-variant-numeric: tabular-nums; }
.ps-table .ps-price { text-align: right; white-space: nowrap; }
.ps-price__main { font-size: 18px; font-weight: 600; }
.ps-price__sub { font-size: 13px; color: var(--ps-muted); }
.ps-order { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 8px; white-space: nowrap; }
.ps-order .product-card__addtocart-icon { height: 42px; padding: 0 14px; border: 0; background: var(--ps-red); color: #fff; display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--ps-font); cursor: pointer; transition: background-color .2s ease; }
.ps-order .product-card__addtocart-icon:hover { background: var(--ps-red-2); }
.ps-order .product-card__addtocart-icon[disabled] { background: var(--ps-line-2); cursor: default; }
.ps-order .product-card__addtocart-icon svg { fill: currentColor; }
.ps-order .md_inCart { position: absolute; right: 0; top: 100%; margin: 4px 0 0; font-size: 12px; color: var(--ps-red-2); white-space: nowrap; }
.ps-toggle-more { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; background: transparent; border: 0; border-bottom: 1px solid var(--ps-line); color: #fff; text-align: left; cursor: pointer; font: 500 16px var(--ps-font); }
.ps-toggle-more span:last-child { color: var(--ps-muted); font-weight: 300; font-size: 22px; }
.ps-table .ps-offers { display: none; }
.ps-table .ps-offers.is-open { display: table-row-group; }
.ps-theme .d-none { display: none !important; }
.ps-note { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 22px 26px; background: var(--ps-panel); }
.ps-note p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ps-muted); max-width: 820px; }
.ps-note strong { color: #fff; font-weight: 600; }
.ps-empty { padding: 60px 0; }

/* ---------- cart ---------- */
.ps-cart { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.ps-cart__items { flex: 999 1 600px; min-width: 0; border-top: 1px solid var(--ps-line); }
.ps-cart__aside { flex: 1 1 340px; }
.ps-citem { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; padding: 24px 0; border-bottom: 1px solid var(--ps-line); }
.ps-citem__info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ps-citem__meta { font-size: 13px; color: var(--ps-muted-2); }
.ps-citem__name { font-size: 18px; font-weight: 500; }
.ps-citem__sub { font-size: 13px; color: var(--ps-muted); }
.ps-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ps-line-2); height: 46px; }
.ps-stepper__btn { width: 42px; height: 46px; display: flex; align-items: center; justify-content: center; color: var(--ps-soft); font-size: 18px; cursor: pointer; user-select: none; }
.ps-stepper__btn:hover { color: #fff; }
.cart-decrease::before { content: "−"; } .cart-increase::before { content: "+"; }
.ps-stepper__input { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; text-align: center; font: 500 16px var(--ps-font); -moz-appearance: textfield; padding: 0; }
.ps-stepper__input::-webkit-inner-spin-button, .ps-stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ps-citem__sum { width: 130px; text-align: right; }
.ps-citem__sum b { display: block; font-size: 20px; font-weight: 600; }
.ps-citem__sum span { font-size: 13px; color: var(--ps-muted-2); }
.ps-remove { width: 44px; height: 44px; background: transparent; border: 0; color: var(--ps-muted-2); font-size: 24px; font-weight: 300; cursor: pointer; }
.ps-remove:hover { color: var(--ps-red-2); }
.ps-summary { display: flex; flex-direction: column; gap: 18px; }
.ps-summary table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ps-summary th { text-align: left; font-weight: 400; color: var(--ps-muted); padding: 8px 0; }
.ps-summary td { text-align: right; padding: 8px 0; white-space: nowrap; }
.ps-summary thead th { vertical-align: baseline; }
.ps-summary thead td { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.ps-summary__addr { padding: 16px 0; border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); font-size: 14px; line-height: 1.6; }
.ps-cart-empty { padding: 40px 0; color: var(--ps-muted); font-size: 17px; }
.ps-guest { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ps-soft); line-height: 1.6; }
.ps-checkout-bar { display: none; }

/* ---------- auth ---------- */
.ps-auth { display: flex; flex-wrap: wrap; min-height: calc(100vh - var(--ps-header-h)); }
.ps-auth__visual { flex: 1 1 480px; position: relative; overflow: hidden; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; box-sizing: border-box; }
.ps-auth__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }
.ps-auth__visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.35) 30%, rgba(11,11,12,.88) 58%, rgba(11,11,12,.97) 80%); }
.ps-auth__visual::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46%; height: 4px; background: var(--ps-red); z-index: 2; }
.ps-auth__pitch { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; max-width: 470px; }
.ps-auth__pitch .ps-h2 { color: #9A9FA7 !important; font-size: clamp(30px, 3vw, 44px); }
.ps-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--ps-soft); }
.ps-ticks li { display: flex; gap: 14px; }
.ps-ticks li::before { content: "—"; color: var(--ps-red-2); }
.ps-auth__main { flex: 1 1 520px; display: flex; align-items: center; justify-content: center; padding: 56px 48px; box-sizing: border-box; }
.ps-auth__form { width: 100%; max-width: 520px; }
.ps-auth__title { margin: 0; font-weight: 700; font-size: 44px; letter-spacing: -1.4px; }
.ps-auth__sub { margin: 10px 0 32px; font-size: 15px; color: var(--ps-muted); }
.ps-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 22px; align-items: end; }
.ps-form-grid .ps-span { grid-column: 1 / -1; }
.ps-form-sep { grid-column: 1 / -1; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ps-muted-2); padding-top: 10px; border-top: 1px solid var(--ps-line); }
.ps-pass { display: flex; align-items: center; border-bottom: 1px solid #4A4D53; }
.ps-pass:focus-within { border-bottom-color: var(--ps-red); }
.ps-pass .ps-input { border: 0; }
.ps-pass button { width: 40px; height: 40px; background: transparent; border: 0; color: var(--ps-muted-2); cursor: pointer; }

/* ---------- cabinet ---------- */
.ps-cab { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 48px; }
.ps-cab__nav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; font-size: 15px; }
.ps-cab__nav-title { font-size: 13px; color: var(--ps-muted-2); margin-bottom: 12px; }
.ps-cab__nav a { padding: 10px 0; color: var(--ps-muted); border-left: 2px solid transparent; transition: color .15s ease, padding .15s ease; }
.ps-cab__nav a:hover { color: #fff; }
.ps-cab__nav a.is-active { color: #fff; font-weight: 600; border-left-color: var(--ps-red); padding-left: 14px; }
.ps-cab__nav hr { border: 0; height: 1px; background: var(--ps-line); margin: 12px 0; }
.ps-cab__main { flex: 999 1 640px; min-width: 0; }
/* the legacy cabinet pages put their content in bootstrap columns next to the menu */
.ps-cab__main > .col-12, .ps-cab__main .col-lg-9 { max-width: 100%; flex: 1 1 100%; padding: 0; }


/* cabinet pages (legacy bootstrap wrappers) */
.ps-theme .site__body > .block { padding-top: 48px; }
.ps-theme .site__body > .block > .container, .ps-theme .site__body .container--max--xl { max-width: var(--ps-container); padding-left: var(--ps-gutter); padding-right: var(--ps-gutter); }
.ps-cab-col { margin-bottom: 28px; }
.ps-cab-col .ps-cab__nav { max-width: none; }
.ps-profile-strip { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); }
.ps-profile-strip > div { padding: 18px 20px; font-size: 16px; overflow-wrap: anywhere; }
.ps-profile-strip > div:first-child { padding-left: 0; }
.ps-profile-strip > div + div { border-left: 1px solid var(--ps-line); }
.ps-profile-strip .ps-label { margin-bottom: 6px; }
.ps-theme .ps-cab-page .card, .ps-theme .site__body > .block .card { padding: 8px 4px; }
.ps-theme .site__body > .block .card-body { padding: 24px; }
.ps-theme .site__body > .block details > summary { color: #fff; cursor: pointer; }
.ps-theme .site__body > .block h4, .ps-theme .site__body > .block h5, .ps-theme .site__body > .block h6 { font-weight: 600; }

/* =====================================================================
   INFO PAGES
   ===================================================================== */
.ps-info-hero { position: relative; min-height: 420px; }
.ps-info-hero__img { position: absolute; right: 0; top: 0; width: 44%; height: 420px; clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); overflow: hidden; }
.ps-info-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.ps-info-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.7) 0%, rgba(11,11,12,0) 45%); }
.ps-info-hero .ps-container { position: relative; padding-top: 70px; }
.ps-info-hero .ps-lead { margin-top: 24px; max-width: 540px; }
.ps-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.ps-col { padding-top: 26px; border-top: 1px solid #2A2C30; display: flex; flex-direction: column; gap: 14px; }
.ps-col--accent { border-top-color: var(--ps-red); }
.ps-col h3 { margin: 0; font-size: 24px; font-weight: 600; }
.ps-col p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ps-soft); }
.ps-col p.ps-small { font-size: 14px; color: var(--ps-muted); }
.ps-hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; }
.ps-hours dt { color: var(--ps-muted-2); font-weight: 400; }
.ps-hours dd { margin: 0; }
.ps-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); }
.ps-pay > div { padding: 32px 26px 32px 0; display: flex; align-items: center; gap: 20px; font-size: 22px; font-weight: 500; }
.ps-pay > div + div { border-left: 1px solid var(--ps-line); padding-left: 26px; }
.ps-promo { position: relative; overflow: hidden; background: var(--ps-red); padding: 46px 50px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ps-promo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%; background: repeating-linear-gradient(180deg, rgba(9,9,9,.22) 0 2px, rgba(9,9,9,0) 2px 10px); -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.ps-promo > * { position: relative; }
.ps-promo h2 { margin: 0; font-weight: 300; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.12; color: #fff; }
.ps-promo h2 strong { font-weight: 700; }
.ps-promo__label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.ps-split { display: flex; flex-wrap: wrap; gap: 40px; }
.ps-split > :first-child { flex: 1 1 300px; }
.ps-split > :last-child { flex: 2 1 520px; }
.ps-prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; color: var(--ps-soft); }
.ps-prose p { margin: 0; }
.ps-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* faq */
.ps-faq { display: flex; flex-wrap: wrap; gap: 60px; align-items: flex-start; padding-top: 70px; }
.ps-faq__aside { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.ps-faq__list { flex: 999 1 560px; min-width: 0; border-top: 1px solid var(--ps-line); }
.ps-faq__item { border-bottom: 1px solid var(--ps-line); }
.ps-faq__item > summary { list-style: none; display: flex; align-items: center; gap: 22px; padding: 24px 0; cursor: pointer; }
.ps-faq__item > summary::-webkit-details-marker { display: none; }
.ps-faq__n { font-size: 13px; color: var(--ps-muted-2); width: 24px; flex: 0 0 auto; }
.ps-faq__q { flex: 1; font-size: 20px; font-weight: 500; letter-spacing: -.3px; transition: color .15s ease; }
.ps-faq__item > summary:hover .ps-faq__q { color: var(--ps-red-2); }
.ps-faq__sign { width: 24px; text-align: center; font-size: 26px; font-weight: 300; color: var(--ps-muted); }
.ps-faq__sign::before { content: "+"; }
.ps-faq__item[open] .ps-faq__sign::before { content: "−"; }
.ps-faq__item[open] .ps-faq__n { color: var(--ps-red-2); }
.ps-faq__a { padding: 0 46px 28px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.7; color: var(--ps-soft); }
.ps-faq__a p { margin: 0; }
.ps-faq__a ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ps-faq__a li { display: flex; gap: 12px; }
.ps-faq__a li::before { content: "—"; color: var(--ps-red); flex: 0 0 auto; }

/* about */
.ps-offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--ps-line); border-left: 1px solid var(--ps-line); }
.ps-offer-grid > div { padding: 28px 24px 34px; border-right: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); display: flex; flex-direction: column; gap: 30px; }
.ps-offer-grid > div span:first-child { font-size: 13px; color: var(--ps-muted-2); }
.ps-offer-grid > div span:last-child { font-size: 19px; font-weight: 500; line-height: 1.35; }
.ps-offer-grid > div.is-accent { background: var(--ps-red); }
.ps-offer-grid > div.is-accent span:first-child { color: #fff; }
.ps-why { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.ps-why__img { flex: 1 1 420px; position: relative; min-height: 440px; overflow: hidden; }
.ps-why__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-why__img::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 4px; background: var(--ps-red); }
.ps-why__body { flex: 1 1 520px; }
.ps-why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px 36px; }
.ps-why__grid h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.ps-why__grid p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ps-muted); }
.ps-why__grid > div { padding-top: 20px; border-top: 1px solid #2A2C30; }
.ps-why__grid > div.is-accent { border-top-color: var(--ps-red); }
.ps-statement { margin: 0; font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; letter-spacing: -.02em; color: #9A9FA7; }
.ps-statement span, .ps-statement strong { color: #fff; }
.ps-statement strong { font-weight: 600; }
.ps-cta { position: relative; margin-top: 130px; overflow: hidden; border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); }
.ps-cta__img { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 60%; mix-blend-mode: lighten; opacity: .9; pointer-events: none; }
.ps-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ps-bg) 38%, rgba(11,11,12,.1) 100%); pointer-events: none; }
.ps-cta .ps-container { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; display: flex; flex-direction: column; gap: 22px; }
.ps-cta .ps-h2 { max-width: 640px; color: #9A9FA7 !important; }
.ps-cta + .ps-footer { margin-top: 0; border-top: 0; }

/* contacts */
.ps-contacts { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.ps-contacts__list { flex: 1 1 440px; display: flex; flex-direction: column; border-top: 1px solid var(--ps-line); }
.ps-contacts__row { padding: 22px 0; border-bottom: 1px solid var(--ps-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.ps-contacts__row > span:first-child { font-size: 14px; color: var(--ps-muted); }
.ps-contacts__big { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.ps-contacts__mid { font-size: 20px; font-weight: 500; }
.ps-map { flex: 1 1 460px; position: relative; min-height: 480px; overflow: hidden; background: var(--ps-panel); }
.ps-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* =====================================================================
   LEGACY (template) ELEMENTS — dark theme for cabinet & leftovers
   ===================================================================== */
.ps-theme .block-space { display: none; }
.ps-theme .bg-white, .ps-theme .bg-light { background: var(--ps-panel) !important; color: #fff; }
.ps-theme .shadow-sm, .ps-theme .shadow { box-shadow: none !important; }
.ps-theme .text-black-50, .ps-theme .text-muted { color: var(--ps-muted) !important; }
.ps-theme .text-primary { color: var(--ps-red-2) !important; }
.ps-theme .text-success { color: #fff !important; }
.ps-theme hr { border-color: var(--ps-line); }
.ps-theme .card { background: var(--ps-panel); border: 0; border-radius: 0; color: #fff; }
.ps-theme .card-header, .ps-theme .card-footer { background: transparent; border-color: var(--ps-line); }
.ps-theme .card-title { color: #fff; }
.ps-theme .card-divider { background: var(--ps-line); }
.ps-theme .table { color: #fff; }
.ps-theme .table th, .ps-theme .table td { border-color: var(--ps-line) !important; }
.ps-theme .table thead th { color: var(--ps-muted-2); font-weight: 500; font-size: 13px; border-bottom-width: 1px; }
.ps-theme .table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,.02); }
.ps-theme .table-hover tbody tr:hover { background: #121315; color: #fff; }
.ps-theme .table-light, .ps-theme .table-light > td, .ps-theme .table-light > th { background: transparent; color: #fff; }
.ps-theme .form-control, .ps-theme .custom-select, .ps-theme select.form-control, .ps-theme textarea.form-control {
  background: transparent; border: 0; border-bottom: 1px solid #4A4D53; border-radius: 0; color: #fff; box-shadow: none; padding-left: 2px; font-family: var(--ps-font);
}
.ps-theme textarea.form-control { border: 1px solid var(--ps-line-2); padding: 12px; }
.ps-theme .form-control:focus, .ps-theme .custom-select:focus { background: transparent; color: #fff; border-color: var(--ps-red); box-shadow: none; }
.ps-theme .form-control::placeholder { color: var(--ps-muted-2); }
.ps-theme .form-control:disabled, .ps-theme .form-control[readonly] { background: transparent; color: var(--ps-muted); }
.ps-theme select.form-control option, .ps-theme .custom-select option { background: var(--ps-panel); color: #fff; }
.ps-theme label { color: var(--ps-muted); font-size: 13px; }
.ps-theme .btn { border-radius: 0; font-family: var(--ps-font); font-weight: 500; }
.ps-theme .btn-primary { background: var(--ps-red); border-color: var(--ps-red); color: #fff; }
.ps-theme .btn-primary:hover, .ps-theme .btn-primary:focus, .ps-theme .btn-primary:not(:disabled):not(.disabled):active { background: var(--ps-red-2); border-color: var(--ps-red-2); color: #fff; box-shadow: none; }
.ps-theme .btn-secondary, .ps-theme .btn-dark, .ps-theme .btn-light, .ps-theme .btn-muted { background: transparent; border: 1px solid var(--ps-line-2); color: #fff; }
.ps-theme .btn-secondary:hover, .ps-theme .btn-dark:hover, .ps-theme .btn-light:hover { background: #1a1b1e; border-color: var(--ps-line-3); color: #fff; }
.ps-theme .btn-secondary.active, .ps-theme .btn-secondary:not(:disabled):not(.disabled).active { background: var(--ps-red); border-color: var(--ps-red); }
.ps-theme .btn-link { color: var(--ps-soft); }
.ps-theme .alert { border-radius: 0; border: 0; border-left: 2px solid var(--ps-red); background: var(--ps-panel); color: var(--ps-soft); }
.ps-theme .alert-success, .ps-theme .alert-info { border-left-color: var(--ps-soft); }
.ps-theme .alert .close { color: var(--ps-muted); text-shadow: none; opacity: 1; }
.ps-theme .badge { border-radius: 0; font-weight: 500; }
.ps-theme .badge-primary, .ps-theme .badge-danger { background: var(--ps-red); }
.ps-theme .page-link { background: transparent; border-color: var(--ps-line-2); color: var(--ps-soft); border-radius: 0 !important; }
.ps-theme .page-item.active .page-link { background: var(--ps-red); border-color: var(--ps-red); color: #fff; }
.ps-theme .page-link:hover { background: #1a1b1e; color: #fff; border-color: var(--ps-line-3); }
.ps-theme .modal-content { background: var(--ps-panel); color: #fff; border: 1px solid var(--ps-line-2); border-radius: 0; }
.ps-theme .modal-header, .ps-theme .modal-footer { border-color: var(--ps-line); }
.ps-theme .modal-header .close { color: #fff; text-shadow: none; }
.ps-theme .dropdown-menu { background: var(--ps-panel); border-color: var(--ps-line-2); border-radius: 0; }
.ps-theme .dropdown-item { color: var(--ps-soft); }
.ps-theme .dropdown-item:hover { background: #1a1b1e; color: #fff; }
.ps-theme .list-group-item { background: transparent; border-color: var(--ps-line); color: #fff; }
.ps-theme .nav-tabs { border-color: var(--ps-line); }
.ps-theme .nav-tabs .nav-link { color: var(--ps-muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.ps-theme .nav-tabs .nav-link.active { background: transparent; color: #fff; border-bottom-color: var(--ps-red); }
.ps-theme .typography, .ps-theme .typography p { color: var(--ps-soft); }
.ps-theme .block { margin-bottom: 0; }
/* template account pages */
.ps-theme .account-nav, .ps-theme .account-nav__title { display: none; }
.ps-theme .address-card, .ps-theme .profile-card, .ps-theme .dashboard__orders { background: var(--ps-panel); color: #fff; }
.ps-theme .card-table table { color: #fff; }
.ps-theme .card-table th { color: var(--ps-muted-2); }
.ps-theme .card-table td, .ps-theme .card-table th { border-color: var(--ps-line); }
.ps-theme .status-badge__body { background: transparent !important; border: 1px solid var(--ps-line-2); }
.ps-theme .status-badge__text { color: #fff !important; }
.ps-theme .vehicles-list__item { background: var(--ps-panel); border-color: var(--ps-line); color: #fff; }
/* hidden legacy cart dropdown container (JS writes into it) */
#cart-indicator { display: none !important; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1279px) {
  .ps-actions__phone { display: none; }
  .ps-nav { gap: 6px 20px; font-size: 14px; }
}

@media (max-width: 1099px) {
  :root { --ps-gutter: 28px; --ps-header-h: 64px; }
  .ps-header__inner { gap: 10px 14px; min-height: var(--ps-header-h); }
  .ps-header .ps-nav, .ps-header .ps-hsearch--desk, .ps-actions__login { display: none; }
  .ps-header__burger { display: inline-flex; margin-left: -10px; }
  .ps-logo { margin-right: auto; }
  .ps-header__msearch { display: flex; padding: 0 var(--ps-gutter) 12px; gap: 10px; }
  .ps-header__msearch .ps-input { height: 46px; font-size: 16px; }
  .ps-header__msearch .ps-hsearch__btn { width: 52px; height: 46px; }
  .ps-header--overlay { position: relative; background: var(--ps-bg); border-bottom: 1px solid var(--ps-line); }
  .ps-hero__body { padding-top: 60px; }
  .ps-band { position: relative; top: auto; width: 100%; height: 300px; margin-top: 0; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
  .ps-hero { min-height: 0; display: flex; flex-direction: column-reverse; }
  .ps-hero__body { padding-bottom: 40px; }
  .ps-hero__chevron, .ps-hero .ps-vline { display: none; }
  .ps-info-hero__img { position: relative; width: 100%; height: 240px; clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%); }
  .ps-info-hero { min-height: 0; }
  .ps-info-hero .ps-container { padding-top: 36px; }
}

@media (max-width: 767px) {
  :root { --ps-gutter: 16px; --ps-header-h: 58px; }
  body.ps-theme { padding-bottom: var(--ps-tabbar-h); font-size: 15px; }
  .ps-header { position: sticky; top: 0; }
  .ps-header__call { display: inline-flex; }
  .ps-actions .ps-iconbtn--cart { display: none; }
  .ps-logo { font-size: 21px; }
  .ps-section { padding-top: 64px; }
  .ps-h1 { font-size: clamp(34px, 10vw, 44px); }
  .ps-h2 { font-size: clamp(26px, 7.6vw, 32px); }
  .ps-lead { font-size: 16px; }
  .ps-btn, .ps-ghost { height: 52px; }
  .ps-hero__body { padding-top: 34px; padding-bottom: 26px; }
  .ps-hero__copy .ps-h1 { font-size: clamp(34px, 11vw, 44px); }
  .ps-band { height: 210px; }
  .ps-hero .ps-search { display: none; }   /* поиск уже закреплён в шапке */
  .ps-hero__alt { flex-direction: column; align-items: stretch; }
  .ps-hero__alt .ps-btn, .ps-hero__alt .ps-ghost { width: 100%; justify-content: space-between; padding: 0 20px; }
  .ps-hero__alt > span { display: none; }
  .ps-fact { padding: 16px 0; border-bottom: 1px solid var(--ps-line); }
  .ps-facts__grid > .ps-fact:last-child { border-bottom: 0; }
  .ps-banner { min-height: 300px; }
  .ps-banner__body { padding: 20px; gap: 12px; }
  .ps-banner__body .ps-btn { width: 100%; justify-content: space-between; }
  .ps-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .ps-product__img { aspect-ratio: 1 / 1; }
  .ps-product__name { font-size: 15px; }
  .ps-product__price { font-size: 17px; }
  .ps-product__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .ps-product__foot .ps-btn { width: 100%; }
  .ps-product__stock { left: 8px; top: 8px; font-size: 11px; }
  .ps-vin { margin-top: 60px; min-height: 380px; align-items: flex-end; }
  .ps-vin__shade { background: linear-gradient(0deg, rgba(11,11,12,.97) 45%, rgba(11,11,12,.35) 100%); }
  .ps-vin__body { padding-top: 140px; padding-bottom: 26px; }
  .ps-vin .ps-btns .ps-btn, .ps-vin .ps-btns .ps-ghost { width: 100%; justify-content: space-between; }
  .ps-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-brands a { height: 56px; font-size: 13px; }
  .ps-steps { gap: 26px; }
  .ps-step__n { font-size: 40px; }
  .ps-footer { margin-top: 70px; }
  .ps-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-top: 34px; }
  .ps-footer__grid > :first-child { grid-column: 1 / -1; }
  .ps-footer__bg { width: 120%; right: -30%; opacity: .5; }
  .ps-footer__list a { min-height: 32px; display: inline-flex; align-items: center; }

  /* tabbar */
  .ps-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; height: var(--ps-tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: var(--ps-bg); border-top: 1px solid var(--ps-line); }
  .ps-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--ps-muted); }
  .ps-tabbar a.is-active { color: #fff; }
  .ps-tabbar a.is-active::before { content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 2px; background: var(--ps-red); }
  .ps-tabbar .ps-badge { top: -6px; right: -10px; }

  /* inner pages */
  .ps-page { padding-top: 26px; }
  .ps-page-head { margin-bottom: 20px; padding-bottom: 18px; }
  .ps-panel { padding: 20px; }
  .ps-group { margin-top: 30px; }
  .ps-group__title { font-size: 17px; }
  .ps-seg { width: 100%; }
  .ps-seg button { flex: 1; padding: 0 8px; font-size: 13px; }

  /* search: table rows become cards */
  .ps-table-wrap { overflow: visible; }
  .ps-table { min-width: 0; }
  .ps-table thead { display: none; }
  .ps-table, .ps-table tbody, .ps-table tr, .ps-table td { display: block; width: 100%; box-sizing: border-box; }
  .ps-table .ps-offers.is-open { display: block; }
  .ps-table tr { background: var(--ps-panel); padding: 14px 16px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; }
  .ps-table tbody tr:hover { background: var(--ps-panel); }
  .ps-table td { border: 0; padding: 0 !important; }
  .ps-table td[data-c="brand"] { grid-column: 1; font-size: 13px; }
  .ps-table td[data-c="code"] { grid-column: 1; font-size: 13px; }
  .ps-table td[data-c="term"] { grid-column: 2; grid-row: 1; text-align: right; font-size: 13px; color: var(--ps-red-2); }
  .ps-table td[data-c="name"] { grid-column: 1 / -1; font-size: 16px; font-weight: 500; }
  .ps-table td[data-c="qty"], .ps-table td[data-c="stock"] { grid-column: 1 / -1; font-size: 13px; color: var(--ps-muted); }
  .ps-table td[data-c="qty"]::before { content: "Наличие: "; }
  .ps-table td[data-c="stock"]::before { content: "Склад: "; }
  .ps-table td.ps-price, .ps-table td.opt, .ps-table td.roz { grid-column: 1; text-align: left; padding-top: 10px !important; border-top: 1px solid var(--ps-line); }
  .ps-table td.opt::before { content: "опт "; font-size: 12px; color: var(--ps-muted); }
  .ps-table td[data-c="order"] { grid-column: 2; grid-row: auto; padding-top: 10px !important; border-top: 1px solid var(--ps-line); align-self: stretch; display: flex; justify-content: flex-end; }
  .ps-order .ps-qty { width: 50px; height: 44px; }
  .ps-order .product-card__addtocart-icon { height: 44px; }
  .ps-order .product-card__addtocart-icon .ps-label-text { display: none; }

  /* cart */
  .ps-cart { gap: 20px; }
  .ps-citem { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 18px 0; }
  .ps-citem__info { grid-column: 1; grid-row: 1; }
  .ps-citem .ps-remove { grid-column: 2; grid-row: 1; align-self: start; margin: -10px -10px 0 0; }
  .ps-citem .ps-stepper { grid-column: 1; grid-row: 2; justify-self: start; }
  .ps-citem__sum { grid-column: 2; grid-row: 2; }
  .ps-citem__sum { width: auto; }
  .ps-cart__aside .ps-panel { padding: 20px; }
  .ps-cart__aside .ps-summary__submit { display: none; }
  .ps-checkout-bar { display: flex; position: fixed; left: 0; right: 0; bottom: var(--ps-tabbar-h); z-index: 899; padding: 10px 16px; gap: 14px; align-items: center; background: var(--ps-bg-2); border-top: 1px solid var(--ps-line); }
  .ps-checkout-bar .ps-btn { flex: 1; justify-content: space-between; }
  .ps-checkout-bar__sum { font-size: 12px; color: var(--ps-muted); }
  .ps-checkout-bar__sum b { display: block; font-size: 20px; color: #fff; letter-spacing: -.5px; }
  body.ps-has-checkout { padding-bottom: calc(var(--ps-tabbar-h) + 76px); }

  /* auth */
  .ps-auth__visual { min-height: 150px; padding: 18px 16px; flex-basis: 100%; }
  .ps-auth__pitch .ps-h2, .ps-auth__pitch .ps-ticks { display: none; }
  .ps-auth__main { padding: 22px 16px 40px; align-items: flex-start; }
  .ps-auth__title { font-size: 32px; }
  .ps-form-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .ps-form-grid > .ps-field:not(.ps-half) { grid-column: 1 / -1; }

  /* cabinet */
  .ps-theme .site__body > .block { padding-top: 14px; }
  .ps-cab-col { margin-bottom: 18px; }
  .ps-profile-strip > div, .ps-profile-strip > div:first-child { padding: 14px 0; }
  .ps-profile-strip > div + div { border-left: 0; border-top: 1px solid var(--ps-line); }
  .ps-theme .site__body > .block .card-body { padding: 16px; }
  .ps-btns > .ps-btn, .ps-btns > .ps-ghost { flex: 1 1 100%; }
  .ps-cab { padding-top: 18px; gap: 18px; }
  .ps-cab__nav { max-width: none; flex: 1 1 100%; flex-direction: row; overflow-x: auto; gap: 22px; border-bottom: 1px solid var(--ps-line); scrollbar-width: none; }
  .ps-cab__nav::-webkit-scrollbar { display: none; }
  .ps-cab__nav-title, .ps-cab__nav hr { display: none; }
  .ps-cab__nav a { flex: 0 0 auto; padding: 12px 0; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .ps-cab__nav a.is-active { padding-left: 0; border-bottom-color: var(--ps-red); }

  /* info */
  .ps-pay > div, .ps-pay > div + div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--ps-line); font-size: 18px; }
  .ps-promo { padding: 24px 20px; }
  .ps-promo .ps-btn { width: 100%; justify-content: space-between; }
  .ps-faq { padding-top: 26px; gap: 26px; }
  .ps-faq__q { font-size: 17px; }
  .ps-faq__item > summary { gap: 14px; padding: 18px 0; }
  .ps-faq__a { padding: 0 0 22px 38px; font-size: 15px; }
  .ps-why__img { min-height: 240px; }
  .ps-cta .ps-container { padding-top: 50px; padding-bottom: 50px; }
  .ps-cta__img { width: 130%; right: -40%; opacity: .45; }
  .ps-map { min-height: 320px; }
  .ps-contacts__row { flex-direction: column; gap: 4px; }
}

@media (max-width: 359px) {
  .ps-products { grid-template-columns: 1fr; }
  .ps-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-tabbar a { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-theme *, .ps-theme *::before, .ps-theme *::after { transition: none !important; animation: none !important; }
}
.ps-theme .page-item.disabled .page-link { background: transparent; border-color: var(--ps-line); color: var(--ps-muted-2); }

/* hotfix: hero copy stretched to container width on tablets */
.ps-hero > .ps-container { width: 100%; }

/* ===== Фото-фон страницы (FAQ) и фото-блок CTA ===== */
.ps-pagebg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--ps-bg); }
.ps-pagebg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 45%; opacity: .5; filter: saturate(.85) contrast(1.05); }
.ps-pagebg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.86) 34%, rgba(11,11,12,.45) 70%, rgba(11,11,12,.25) 100%),
    linear-gradient(180deg, rgba(11,11,12,.35) 0%, rgba(11,11,12,0) 30%, rgba(11,11,12,.85) 100%),
    radial-gradient(60% 50% at 85% 40%, rgba(227,30,36,.10), transparent 70%); }
.ps-pagebg-content { position: relative; z-index: 1; }
.ps-pagebg-content .ps-faq__list { background: rgba(11,11,12,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 0 28px; border: 1px solid var(--ps-line); }
.ps-pagebg-content .ps-faq__item:last-child { border-bottom: 0; }
.ps-pagebg-content .ps-panel--accent { background: rgba(20,20,22,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.ps-cta--photo .ps-cta__img { inset: 0; top: 0; right: 0; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; mix-blend-mode: normal; opacity: .62; }
.ps-cta--photo::after { background:
    linear-gradient(90deg, var(--ps-bg) 22%, rgba(11,11,12,.75) 52%, rgba(11,11,12,.2) 100%),
    linear-gradient(180deg, rgba(11,11,12,.5) 0%, rgba(11,11,12,0) 35%, rgba(11,11,12,0) 65%, rgba(11,11,12,.6) 100%); }
.ps-cta--photo .ps-container { padding-top: 120px; padding-bottom: 120px; }
body:has(.ps-cta:last-child) .ps-footer,
body:has(main > .ps-cta:last-child) .ps-footer { margin-top: 0; border-top: 0; }
@media (max-width: 767px) {
  .ps-pagebg img { object-position: 70% 30%; opacity: .38; }
  .ps-pagebg::after { background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.82) 45%, rgba(11,11,12,.95) 100%); }
  .ps-pagebg-content .ps-faq__list { padding: 0 16px; }
  .ps-cta--photo .ps-cta__img { object-position: 65% 50%; opacity: .45; }
  .ps-cta--photo::after { background: linear-gradient(180deg, rgba(11,11,12,.6) 0%, rgba(11,11,12,.85) 60%, var(--ps-bg) 100%); }
  .ps-cta--photo .ps-container { padding-top: 70px; padding-bottom: 70px; }
}

/* ===== Экран успешной регистрации ===== */
.ps-welcome { max-width: 760px; margin: 90px auto 0; padding: 44px 40px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: rgba(22,22,24,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--ps-line); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: ps-welcome-in .5s ease both; }
.ps-welcome__icon { color: var(--ps-red-2); line-height: 0; }
.ps-welcome__title { margin: 4px 0 6px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.ps-welcome__lead { margin: 0; font-size: 18px; color: #fff; }
.ps-welcome__text { margin: 0; font-size: 15px; color: var(--ps-soft); }
.ps-welcome__badge { margin-top: 4px; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: #4ADE80; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); }
.ps-welcome__btn { width: 100%; justify-content: center; margin-top: 14px; min-height: 58px; border-radius: 10px; font-size: 16px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.ps-welcome__link { font-size: 14px; color: var(--ps-muted); }
.ps-welcome__link:hover { color: #fff; }
@keyframes ps-welcome-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .ps-welcome { margin-top: 40px; padding: 34px 20px 26px; }
  .ps-welcome__lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ps-welcome { animation: none; } }
