/* APEX STYLE — единая система витрины: магазин, кабинет, корзина, информационные страницы.
   Светлые холодные поверхности, один акцент — лайм (заливки) и тёмно-зелёный (текст), скруглённые карточки,
   кнопки-капсулы, акцентные заголовки — Exo 2 курсивом. Здесь только общее; своё у главной — в home.css, у гаража — в garage.css. */

/* ---------- токены ---------- */
body.storefront {
  --bg: #f4f5f8; --surface: #fff; --surface-2: #f1f2f5; --surface-3: #e6e8ec;
  --ink: #1d1d1f; --ink-2: #424245; --ink-3: #6e6e73; --ink-4: #86868b;
  --line: #d2d2d7; --line-soft: #e8e8ed;
  --accent: #3f9212; --accent-hover: #357d0f; --accent-soft: #edf8e2; --accent-ink: #fff; --link: #347d0c;
  --lime: #7ed321; --lime-2: #5cb816; --lime-ink: #11210a; --lime-grad: linear-gradient(180deg, #9ae44a 0%, #6cc51d 55%, #57b012 100%);
  --lime-glow: 0 10px 26px -12px rgba(92, 184, 22, .75);
  --font-accent: "Exo 2", "Inter", system-ui, sans-serif;
  --brand: #3f9212;
  --radius: 20px; --radius-sm: 12px; --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -18px rgba(0, 0, 0, .18);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, .05), 0 22px 44px -22px rgba(0, 0, 0, .28);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  background: var(--bg);
}
.storefront::before, .storefront::after { display: none; }
.storefront .wrap { max-width: 1440px; padding-inline: 40px; }
.storefront :focus-visible { outline: 3px solid rgba(108, 196, 23, .55); outline-offset: 3px; }

/* ---------- шапка, подвал ---------- */
.storefront .topbar { background: transparent; }
.storefront .header { background: rgba(255, 255, 255, .86); border-bottom: 1px solid rgba(17, 24, 39, .06); box-shadow: none;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); transition: box-shadow .3s; }
.storefront .header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .35); }
.storefront .header .header__row { flex-wrap: nowrap; gap: 28px; min-height: 76px; padding-block: 0; }
.storefront .logo { gap: 10px; }
.storefront .header .logo__crest { width: 52px; height: 52px; }
.logo__word { display: grid; justify-items: center; line-height: .9; font-family: var(--font-accent); font-style: italic; }
.logo__word b { font-size: 31px; font-weight: 900; letter-spacing: .01em; color: var(--ink); }
.logo__word i { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 800; letter-spacing: .14em; color: var(--lime-2); }
.logo__word i::before, .logo__word i::after { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
/* основное меню: два выпадающих раздела и ссылки */
.storefront .nav { gap: 6px; margin-left: 18px; align-items: center; }
.storefront .nav > a, .nav-drop > summary { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink); opacity: 1; letter-spacing: -.01em; cursor: pointer; white-space: nowrap; }
.storefront .nav > a:hover, .nav-drop > summary:hover, .nav-drop[open] > summary { background: rgba(17, 24, 39, .05); text-decoration: none; }
.storefront .nav > a.active, .nav-drop > summary.active { font-weight: 600; box-shadow: inset 0 -2px 0 var(--lime); border-radius: 10px 10px 4px 4px; }
.storefront .nav a::after { display: none; }
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop .chev { width: 12px; height: 12px; transition: transform .25s var(--ease-out); }
.nav-drop[open] .chev { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 10px); left: -8px; z-index: 40; min-width: 240px; padding: 18px; border-radius: var(--radius);
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 60px -24px rgba(17, 24, 39, .35); animation: nav-menu-in .22s var(--ease-out); }
@keyframes nav-menu-in { from { opacity: 0; transform: translateY(-6px); } }
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-menu a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.nav-menu a:hover { background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.nav-menu--catalog { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)) 200px; gap: 8px 18px; width: max-content; }
.nav-menu .nav-menu__head { font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.nav-menu__head span { color: var(--lime-2); }
.nav-menu__aside { display: grid; align-content: start; gap: 2px; padding-left: 18px; border-left: 1px solid var(--line-soft); }
.nav-menu .nav-menu__sale { color: var(--bad, #d70015); font-weight: 600; }
.nav-menu--brands ul { grid-template-columns: repeat(3, minmax(150px, 1fr)); width: max-content; }
/* иконки справа */
.storefront .actions { gap: 4px; }
.storefront .icon-btn { width: 44px; height: 44px; justify-content: center; padding: 0; border: 0; background: none; border-radius: 12px; opacity: 1; cursor: pointer; }
.storefront .icon-btn:hover { background: rgba(17, 24, 39, .05); }
.storefront .icon-btn svg { width: 23px; height: 23px; stroke-width: 1.8; }
.storefront .icon-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.storefront .badge-dot { top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--lime-grad); color: var(--lime-ink); box-shadow: 0 0 0 2px #fff; }
.storefront .nav-toggle { display: none; }
/* поиск — выпадающая полоса под шапкой */
.search-panel { border-top: 1px solid var(--line-soft); background: rgba(255, 255, 255, .92); }
.search-panel .wrap { padding-block: 12px; }
.search-panel:not([hidden]) { animation: nav-menu-in .22s var(--ease-out); }
.storefront .search-panel .search-form { max-width: 720px; margin-inline: auto; }
.storefront .search-form input { border-radius: 999px; background: var(--surface-2); border: 1px solid transparent; box-shadow: none; padding: 12px 46px 12px 18px; font-size: 15px; }
.storefront .search-form input:focus { background: #fff; border-color: var(--lime-2); outline: none; box-shadow: 0 0 0 4px rgba(108, 196, 23, .18); }
.storefront .search-form button { right: 8px; }
.storefront .search-form button svg { width: 18px; height: 18px; }
/* подсказки поиска */
.storefront .search-form { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; max-height: min(70vh, 560px); overflow: auto; padding: 8px; border-radius: 20px;
  background: #fff; box-shadow: 0 0 0 1px var(--line-soft), 0 24px 60px -18px rgba(17, 24, 39, .35); animation: nav-menu-in .18s var(--ease-out); }
.suggest[hidden] { display: none; }
.sg { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 6px; }
.sg:not(:has(.sg-group + .sg-group)) { grid-template-columns: 1fr; }
.sg-group { display: grid; align-content: start; gap: 2px; min-width: 0; }
.sg-group--side { padding-left: 8px; border-left: 1px solid var(--line-soft); }
.sg-title { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.sg-group--side .sg-title:not(:first-child) { margin-top: 6px; }
.sg-item { border-radius: 12px; color: var(--ink); outline: none; transition: background .15s; }
.sg-item:hover, .sg-item:focus-visible { background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.sg-prod { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 10px 6px 6px; }
.sg-prod__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.sg-prod__img img { width: 100%; height: 100%; object-fit: cover; }
.sg-prod__text { display: grid; gap: 1px; min-width: 0; }
.sg-prod__text b { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.sg-prod__text small { overflow: hidden; font-size: 12px; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.sg-prod__text em { font-style: normal; font-weight: 600; color: var(--warn); }
.sg-prod__text em.is-ok { color: var(--accent); }
.sg-prod__text em.is-no { color: var(--ink-4); font-weight: 500; }
.sg-prod__price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sg-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 14px; line-height: 1.3; }
.sg-chip svg { flex: none; width: 18px; height: 18px; color: var(--lime-2); }
.sg-chip span { display: grid; min-width: 0; }
.sg-chip small { font-size: 12px; color: var(--ink-3); }
.sg-all { display: flex; justify-content: center; gap: 6px; margin-top: 6px; padding: 11px; border-top: 1px solid var(--line-soft); border-radius: 0 0 14px 14px;
  font-size: 14px; font-weight: 600; color: var(--accent); }
.sg-empty { display: grid; gap: 4px; padding: 14px 16px; font-size: 14px; color: var(--ink-3); }
.sg-empty b { color: var(--ink); }
.sg-empty a { color: var(--accent); font-weight: 600; }
@media (max-width: 700px) {
  .sg { grid-template-columns: 1fr; }
  .sg-group--side { padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .suggest { max-height: 64vh; border-radius: 18px; }
}
@media (max-width: 1240px) {
  .storefront .header .header__row { gap: 16px; }
  .storefront .nav { margin-left: 0; gap: 0; }
  .storefront .nav > a, .nav-drop > summary { padding-inline: 9px; font-size: 14px; }
}
@media (max-width: 1080px) {
  .storefront .header .header__row { flex-wrap: nowrap; min-height: 64px; padding-block: 0; }
  .storefront .nav-toggle { display: inline-flex; }
  .storefront .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; order: 0; width: auto; margin: 0; padding: 12px 20px 20px;
    flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -28px rgba(17, 24, 39, .4); max-height: calc(100vh - 100px); overflow-y: auto; }
  .storefront .header.nav-open .nav { display: flex; animation: nav-menu-in .22s var(--ease-out); }
  .storefront .nav > a, .nav-drop > summary { justify-content: space-between; padding: 12px 10px; font-size: 16px; }
  .nav-menu { position: static; box-shadow: none; padding: 4px 0 10px 10px; animation: none; min-width: 0; }
  .nav-menu--catalog, .nav-menu--brands ul { grid-template-columns: 1fr; width: auto; }
  .nav-menu__aside { padding-left: 0; border-left: 0; }
  .storefront .nav > a.active, .nav-drop > summary.active { box-shadow: none; }
}
@media (max-width: 600px) {
  .storefront .header .header__row { gap: 6px; }
  .storefront .header .logo__crest { width: 40px; height: 40px; }
  .logo__word b { font-size: 23px; }
  .logo__word i { font-size: 11px; gap: 3px; }
  .logo__word i::before, .logo__word i::after { width: 8px; }
  .storefront .actions { gap: 0; }
  .storefront .icon-btn { width: 38px; height: 40px; }
  .storefront .icon-btn svg { width: 21px; height: 21px; }
}
@media (max-width: 380px) { .storefront .actions a[href*="garage"] { display: none; } }
.storefront .car-chip { background: rgba(255, 255, 255, .7); border-bottom: 1px solid var(--line-soft); }
.storefront .footer { padding: 56px 0 40px; background: #fff; border-top: 1px solid var(--line-soft); }
.storefront .footer .cols { gap: 40px; }
.storefront .footer h4 { font-size: 13px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin-bottom: 16px; }
.storefront .footer ul { gap: 10px; }

/* ---------- типографика ---------- */
.storefront main h1, .storefront main h2, .storefront main h3 { text-wrap: balance; }
.storefront main p { text-wrap: pretty; }
.storefront:not(.garage-page) main { padding-block: 40px 88px; }
.storefront:not(.garage-page) main h1 { font-family: var(--font-accent); font-style: italic; font-weight: 800; font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04; letter-spacing: -.01em; color: var(--ink); margin-bottom: 28px; }
/* заголовки разделов: Exo 2 курсивом с зелёными штрихами, как на главной */
.storefront main .section-title h2, .storefront .display-title { font-family: var(--font-accent); font-style: italic; font-weight: 800; letter-spacing: -.005em;
  display: flex; align-items: center; gap: 14px; }
.storefront main .section-title h2::before, .storefront .display-title::before { content: ""; flex: none; width: .95em; height: .62em;
  background: linear-gradient(105deg, transparent 0 12%, var(--lime-2) 12% 34%, transparent 34% 46%, var(--lime) 46% 68%, transparent 68%);
  transform: skewX(-18deg); }
.storefront:not(.garage-page) main h2 { font-weight: 600; letter-spacing: -.025em; }
.storefront main h3 { font-weight: 600; letter-spacing: -.015em; }
/* подписи над заголовками — обычным регистром, как у Apple, а не мелким капслоком */
.storefront .page-kicker, .storefront main .eyebrow, .storefront .product-category, .storefront .filters h3 {
  font-size: 14px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink-3); margin: 0 0 10px; }
.storefront .product-category { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.storefront .filters h3 { font-size: 13px; color: var(--ink); }
.page-lead { font-size: clamp(19px, 2vw, 24px); font-weight: 400; line-height: 1.4; letter-spacing: -.015em; color: var(--ink-3); margin: -14px 0 44px; max-width: 46ch; }
.storefront em { font-style: normal; }
.storefront .breadcrumbs { font-size: 13px; margin: 0 0 24px; color: var(--ink-3); }

/* ---------- кнопки, поля, метки ---------- */
.storefront .btn, .storefront .pill { border-radius: 999px; box-shadow: none; transition: background .25s, color .25s, transform .2s, box-shadow .25s; }
.storefront .btn { font-weight: 600; background: var(--lime-grad); color: var(--lime-ink); box-shadow: var(--lime-glow), inset 0 1px 0 rgba(255, 255, 255, .45); }
.storefront .btn:hover { background: var(--lime-grad); color: var(--lime-ink); filter: brightness(1.05) saturate(1.05); box-shadow: 0 14px 30px -12px rgba(92, 184, 22, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.storefront .btn.danger { background: var(--bad, #d70015); color: #fff; box-shadow: none; }
.storefront .btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.storefront .btn:disabled, .storefront .btn[aria-disabled="true"] { filter: grayscale(1) opacity(.55); box-shadow: none; cursor: not-allowed; }
.storefront .btn:active { transform: scale(.98); }
.storefront .btn.secondary { background: var(--surface-3); color: var(--ink); box-shadow: none; filter: none; }
.storefront .btn.secondary:hover { background: #dcdce1; color: var(--ink); }
.storefront .btn.ghost { background: transparent; color: var(--link); box-shadow: none; }
.storefront .pill { border-color: var(--line); color: var(--ink); }
.storefront .pill.on, .storefront .pill:hover { background: var(--lime-grad); border-color: transparent; color: var(--lime-ink); }
.storefront input, .storefront select, .storefront textarea { border-radius: var(--radius-sm); box-shadow: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.storefront input:focus, .storefront select:focus, .storefront textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(108, 196, 23, .2); }
.storefront .tag { border-radius: 999px; padding-inline: 10px; }
.storefront .tabs { background: var(--surface-3); border-radius: 999px; }
.storefront .tabs a { border-radius: 999px; }
.storefront .chip { border-radius: 999px; }

/* ---------- поверхности ---------- */
.storefront .card, .storefront .panel { border-radius: var(--radius); border: 0; background: var(--surface); box-shadow: var(--shadow);
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.storefront .card.flat { box-shadow: none; }

/* ---------- карточка товара в сетке: белая карточка, фото внутри ---------- */
.storefront .pcard { position: relative; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.storefront .pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.storefront .pcard .thumb { background: var(--surface); border-radius: 0; }
.storefront .pcard .thumb img { transition: transform .85s var(--ease-out); }
.storefront .pcard:hover .thumb img { transform: scale(1.05); }
.storefront .pcard .body { padding: 16px 20px 20px; border: 0; }
.storefront .pcard .name { font-weight: 600; font-size: 17px; letter-spacing: -.015em; }
.storefront .pcard .tag { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.storefront .grid.products { gap: 24px; }
.storefront .price-now { font-weight: 600; letter-spacing: -.02em; }
.storefront .product-view { position: absolute; bottom: 14px; right: 14px; z-index: 2; font-size: 13px; font-weight: 500; color: var(--ink);
  background: rgba(255, 255, 255, .86); border-radius: 999px; padding: 8px 14px; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .5s var(--ease-out); }
.storefront .pcard:hover .product-view, .storefront .pcard:focus-within .product-view { opacity: 1; transform: none; }

/* ---------- каталог ---------- */
.catalog-page .car-chip { display: none; }
.collection-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 64px; padding: 12px 0 44px; align-items: center; }
.storefront .collection-head h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 1; letter-spacing: -.045em; margin: 10px 0 22px; overflow-wrap: anywhere; }
.collection-head__dot { color: var(--accent); }
.collection-head__copy > p:last-child { color: var(--ink-3); font-size: 19px; line-height: 1.5; margin: 0; max-width: 44ch; }
.collection-car, .collection-service { position: relative; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.collection-car { padding: 24px; }
.collection-car__top { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.collection-car > strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin: 12px 0 16px; }
.collection-car strong em { color: var(--ink-3); }
.collection-car > img { width: 100%; aspect-ratio: 2.5; object-fit: cover; border-radius: 14px; }
.collection-car > img.collection-car__render { object-fit: contain; }
.collection-car small { display: block; margin-top: 12px; font-size: 11px; color: var(--ink-4); }
.collection-service { display: flex; flex-direction: column; gap: 22px; padding: 28px; color: var(--ink); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.collection-service:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.collection-service > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.collection-service strong { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.collection-service strong em { color: var(--accent); }
.collection-service small { font-size: 14px; color: var(--ink-3); }
.collection-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.collection-categories a { padding: 10px 16px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500;
  white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: background .2s, color .2s; }
.collection-categories a span { display: none; }
.collection-categories a { display: inline-flex; align-items: center; gap: 8px; }
.collection-categories small { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600;
  text-align: center; color: var(--ink-3); transition: background .2s, color .2s; }
.collection-categories a:hover { text-decoration: none; background: var(--surface-3); color: var(--ink); }
.collection-categories a[aria-current] { background: var(--lime-grad); color: var(--lime-ink); font-weight: 600; box-shadow: var(--lime-glow); }
.collection-categories a[aria-current] small { background: rgba(255, 255, 255, .45); color: var(--lime-ink); }
/* включённые фильтры над товарами */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; }
.active-filters a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; border-radius: 999px; background: var(--accent-soft);
  color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(92, 184, 22, .35); }
.active-filters a span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(17, 33, 10, .1); font-size: 14px; line-height: 1; }
.active-filters a:hover { text-decoration: none; background: #e0f3cc; }
.active-filters a.active-filters__all { padding-right: 14px; background: none; box-shadow: none; color: var(--ink-3); font-weight: 500; }
.active-filters a.active-filters__all:hover { color: var(--ink); background: none; }
.catalog-page .filters__reset-car { display: inline-block; margin: 12px 0 4px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.catalog-page .filters__reset-car:hover { color: var(--bad); }
.catalog-page .split { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.catalog-page .filters .card { padding: 22px; }
.catalog-page .filters .picker-image { display: none; }
.catalog-page .filters .picker { padding: 0; background: none; }
.catalog-page .filters .picker .steps { padding: 0; margin: 0; background: none; border-radius: 0; gap: 10px; }
.catalog-page .filters .picker label { font-size: 12px; }
.catalog-page .filters select, .catalog-page .filters input { width: 100%; min-width: 0; background: var(--surface-2); border-color: transparent; font-size: 14px; padding: 10px 12px; }
.catalog-page .filters select:focus, .catalog-page .filters input:focus { background: #fff; border-color: var(--accent); }
.catalog-page .filters .row > input { flex: 1 1 0; }
.catalog-page .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; font-size: 14px; color: var(--ink-3); }
.catalog-page .toolbar select { background: var(--surface); font-size: 14px; }
.catalog-page .grid.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-page .pcard .thumb { aspect-ratio: 1.15; }

/* ---------- товар ---------- */
.product-page .split.right { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 48px; }
.product-page .gallery .main { border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.product-page .gallery .thumbs button { border-radius: 14px; }
.product-page .buybox { top: 90px; }
.product-page .buybox > .card { padding: 28px; }
.product-page .buybox > .card + .card { margin-top: 14px; }
.product-page main .buybox h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin-bottom: 16px; }
.product-page .buybox .page-kicker { margin-bottom: 12px; }
.product-page .buybox .price-now { font-size: 36px; letter-spacing: -.035em; }
.product-page .stack > .card { padding: 28px; }

/* ---------- корзина и оформление ---------- */
.purchase-steps { display: flex; align-items: center; gap: 14px; margin: 0 0 36px; max-width: 640px; font-size: 14px; color: var(--ink-3); }
.purchase-steps > a, .purchase-steps > span:not(.purchase-steps__line) { white-space: nowrap; }
.purchase-steps [aria-current] { color: var(--ink); font-weight: 600; }
.purchase-steps > * > span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.purchase-steps [aria-current] > span { background: var(--accent); color: #fff; }
.purchase-steps__line { height: 1px; flex: 1; background: var(--line); }
.purchase-page .card { padding: 28px; }
.purchase-page .split.right > aside { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.purchase-page .form h2 { font-size: 22px; }

/* ---------- кабинет, вход, информационные страницы ---------- */
.account-page .side-nav { background: var(--surface); padding: 8px; }
.account-page .side-nav a { border-radius: 12px; padding: 12px 16px; }
.account-page .card { padding: 28px; }
.account-page .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-page main { min-height: 65vh; }
.auth-page main > .wrap > .card { padding: 40px; margin-block: 24px !important; border-radius: var(--radius-lg); }
.auth-page main h1 { font-size: 36px !important; }
.info-page .stack > .card { padding: 32px; }
.info-page .grid .card { padding: 28px; }
.info-page .split > aside { padding: 32px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.info-page .card p { max-width: 75ch; line-height: 1.6; }

/* ---------- шапка кабинета: заголовок, вкладки разделов, выход — одинаково на всех страницах кабинета ---------- */
.storefront.account-page main { padding-top: 28px; }
.account-page main .breadcrumbs, .garage-page main .breadcrumbs { margin-bottom: 18px; }
.g-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 24px; }
.storefront main .g-head h1 { margin: 0; }
.acc-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-head .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.g-head .tabs a { padding: 8px 16px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.g-head .tabs a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.g-head .tabs a.active { background: var(--lime-grad); color: var(--lime-ink); font-weight: 600; box-shadow: var(--lime-glow); }
.acc-logout { margin: 0; }
.storefront .acc-logout .btn.ghost { color: var(--ink-3); }
.storefront .acc-logout .btn.ghost:hover { color: var(--ink); background: rgba(17, 24, 39, .05); }
.acc-body { max-width: 1100px; }
.account-page .acc-body.stack { gap: 20px; }
@media (max-width: 760px) {
  .g-head .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; border-radius: 16px; }
  .acc-nav { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .acc-nav .tabs { flex: 1 1 auto; min-width: 0; }
}

/* ---------- CRM: рабочие экраны сохраняют свою плотность ---------- */
body.crm { --radius: 5px; --radius-sm: 3px; --accent: #35422c; --accent-hover: #526345; --accent-soft: #edf2e7; --link: #35422c; }
.crm .card { box-shadow: none; border: 1px solid var(--line-soft); }
.crm .btn, .crm input, .crm select, .crm textarea { border-radius: 4px; }
.crm .data tbody tr { transition: background .18s; }

/* ---------- движение: появление при прокрутке не прячет формы и не задерживает действия ---------- */
.storefront .site-reveal { animation: site-rise .8s var(--ease-out) both; }
@keyframes site-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .storefront .wrap { padding-inline: 28px; }
  .catalog-page .grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .collection-head { gap: 32px; grid-template-columns: 1.3fr 1fr; }
  .collection-car { padding: 18px; }
  .collection-car > strong { font-size: 22px; }
  .catalog-page .split, .product-page .split.right { grid-template-columns: 1fr; gap: 24px; }
  .product-page .buybox { position: static; }
  .product-page .split.right > div.stack { display: contents; }
  .product-page .split.right .gallery { order: 0; }
  .product-page .split.right > .buybox { order: 1; }
  .product-page .split.right > .stack > .card { order: 2; margin-top: 0; }
  .account-page .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .storefront .wrap { padding-inline: 20px; }
  .storefront:not(.garage-page) main { padding-block: 24px 56px; }
  .storefront:not(.garage-page) main h1 { margin-bottom: 22px; }
  .storefront .grid.products { gap: 14px; }
  .storefront .pcard .name { font-size: 15px; }
  .storefront .pcard .body { padding: 12px 14px 16px; }
  .storefront .product-view { display: none; }
  .storefront .card, .purchase-page .card, .info-page .stack > .card, .info-page .grid .card, .account-page .card, .product-page .stack > .card,
  .product-page .buybox > .card { padding: 20px; }
  .auth-page main > .wrap > .card { padding: 24px; }
  .purchase-steps { gap: 8px; font-size: 12px; margin-bottom: 26px; }
  .purchase-steps > * > span { width: 20px; height: 20px; margin-right: 4px; font-size: 11px; }
  .storefront .footer .cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .storefront .footer .cols > div:first-child { grid-column: 1 / -1; }
  .page-lead { margin-bottom: 30px; }
  .product-page main .buybox h1 { font-size: 28px; }
  .collection-head { grid-template-columns: 1fr; gap: 24px; padding: 0 0 26px; }
  .storefront .collection-head h1 { font-size: 52px; margin-bottom: 14px; }
  .collection-head__copy > p:last-child { font-size: 16px; }
  .collection-car > img { aspect-ratio: 3.4; }
  .collection-service { gap: 16px; padding: 22px; }
  .collection-service strong { font-size: 24px; }
  .collection-categories { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 24px; padding: 0 20px 4px; scrollbar-width: none; }
  .collection-categories::-webkit-scrollbar { display: none; }
  .collection-categories a { flex-shrink: 0; padding: 9px 14px; font-size: 13px; }
  .catalog-page .filters .card { padding: 18px; }
  .storefront .car-chip .wrap { flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding-block: 10px; }
  .storefront .car-chip .wrap > * { flex-shrink: 0; white-space: nowrap; }
  .storefront .car-chip .wrap > img { width: 36px; height: 28px; object-fit: cover; }
  .storefront .car-chip .wrap > span:not(.grow), .storefront .car-chip .wrap > a { font-size: 12px; }
  .storefront .car-chip .grow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront .site-reveal { animation: none; }
  .storefront .pcard, .storefront .pcard .thumb img, .storefront .nav a::after, .storefront .product-view, .collection-service { transition: none; }
  .storefront .pcard:hover, .storefront .pcard:hover .thumb img, .collection-service:hover { transform: none; }
}

/* ---------- карточка кузова (главная «Популярные модели», подбор по авто) ---------- */
.models__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.model-card { position: relative; display: flex; flex-direction: column; padding: 14px 14px 20px; border-radius: 22px; background: #fff; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.model-card[hidden] { display: none; }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; color: var(--ink); }
.model-card__photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #fff; }
.model-card__photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease-out); }
.model-card.is-scene .model-card__photo img { object-fit: cover; }
.model-card:hover .model-card__photo img { transform: scale(1.05); }
.model-card__text { display: grid; gap: 3px; padding: 14px 58px 0 10px; }
.model-card__text b { font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.model-card__text span { font-size: 15px; color: var(--ink-2); }
.model-card__text i { font-style: normal; color: var(--ink-3); }
.model-card__text small { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }
.model-card__go { position: absolute; right: 18px; bottom: 20px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #fff; color: var(--lime-2); box-shadow: 0 0 0 1px var(--line-soft), 0 6px 14px -8px rgba(17, 24, 39, .35);
  transition: background .25s, color .25s, transform .35s var(--ease-out); }
.model-card__go svg { width: 20px; height: 20px; }
.model-card:hover .model-card__go { background: var(--lime-grad); color: var(--lime-ink); transform: translateX(2px); }
@media (max-width: 1240px) {
  .models__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .models__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 600px) {
  .models__grid { grid-template-columns: minmax(0, 1fr); }
  .model-card { flex-direction: row; align-items: center; gap: 4px; padding: 10px; }
  .model-card__photo { flex: none; width: 44%; }
  .model-card__text { padding: 0 48px 0 8px; }
  .model-card__text b { font-size: 15px; }
  .model-card__text span { font-size: 13px; }
  .model-card__go { right: 12px; bottom: auto; top: 50%; width: 36px; height: 36px; margin-top: -18px; }
}
@media (prefers-reduced-motion: reduce) { .model-card, .model-card img { transition: none; } }

/* ---------- подборщик в карточке: четыре списка в ряд с иконками (главная, заявка на подбор) ---------- */
:is(.apicker, .lf-car) .picker { padding: 0; background: none; }
:is(.apicker, .lf-car) .picker .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; background: none; border-radius: 0; }
:is(.apicker, .lf-car) .picker .steps label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
:is(.apicker, .lf-car) .picker .steps label::before { content: ""; flex: none; width: 22px; height: 22px; background: currentColor; color: var(--ink-2);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; transition: color .25s; }
:is(.apicker, .lf-car) .picker .steps > div:nth-child(1) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 3v5.5M4.2 16.5l4.8-2.8M19.8 16.5L15 13.7'/%3E%3C/svg%3E"); }
:is(.apicker, .lf-car) .picker .steps > div:nth-child(2) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15l2-5.5C5.6 8 6.6 7 8.2 7h7.6c1.6 0 2.6 1 3.2 2.5L21 15v3h-2.5M5.5 18H3v-3'/%3E%3Ccircle cx='7.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3Cpath d='M9.3 17.5h5.4M5 11.5h14'/%3E%3C/svg%3E"); }
:is(.apicker, .lf-car) .picker .steps > div:nth-child(3) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 15.5l1.6-3.4C4.4 10.4 6 9.5 7.8 9.5H13c1.6 0 3 .6 4.2 1.7L19.5 13l1.6.4c.6.2.9.7.9 1.3v1.8h-2M4.5 16.5H2v-1'/%3E%3Ccircle cx='7' cy='16.5' r='1.8'/%3E%3Ccircle cx='17' cy='16.5' r='1.8'/%3E%3Cpath d='M8.8 16.5h6.4'/%3E%3C/svg%3E"); }
:is(.apicker, .lf-car) .picker .steps > div:nth-child(4) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 00-14.6-4.5L3.5 9'/%3E%3Cpath d='M3.5 4v5h5M4 13a8 8 0 0014.6 4.5l1.9-2.5'/%3E%3Cpath d='M20.5 20v-5h-5'/%3E%3C/svg%3E"); }
:is(.apicker, .lf-car) .picker .steps > div:has(option:checked:not([value=""])) label::before { color: var(--lime-2); }
:is(.apicker, .lf-car) select { height: 46px; padding: 0 36px 0 14px; font-size: 15px; background-color: #fff; border: 1px solid var(--line); border-radius: 12px; }
:is(.apicker, .lf-car) select:disabled { background-color: var(--surface-2); border-color: var(--line-soft); }
:is(.apicker, .lf-car) .picker-image { display: none; }
@media (max-width: 860px) {
  :is(.apicker, .lf-car) .picker .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :is(.apicker, .lf-car) .picker .steps { gap: 12px; }
}

/* ---------- карточка товара: совместимость рядом с ценой и выбор машины из списка ---------- */
.storefront .buy-fit { position: relative; display: grid; gap: 2px; margin: 16px 0 0; padding: 12px 70px 12px 46px; border-radius: 14px; background: var(--surface-2) no-repeat 14px 13px / 20px;
  font-size: 13px; font-weight: 400; color: var(--ink-2); }
.storefront .buy-fit::before { display: none; }
.storefront .buy-fit b { font-size: 14px; font-weight: 700; color: var(--ink); }
.storefront .buy-fit span { line-height: 1.35; }
.storefront .buy-fit > a { position: absolute; right: 14px; top: 13px; font-size: 13px; font-weight: 600; }
.storefront .buy-fit.is-confirmed, .storefront .buy-fit.is-universal { background-color: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f9212' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.8'/%3E%3C/svg%3E"); }
.storefront .buy-fit.is-needs_check, .storefront .buy-fit.is-unknown { background-color: #fff6e5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b26a00' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); }
.storefront .buy-fit.is-not_fit { background-color: var(--bad-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4001a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E"); }
.storefront a.buy-fit.is-none { padding-right: 16px; color: var(--ink-3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15l2-5.5C5.6 8 6.6 7 8.2 7h7.6c1.6 0 2.6 1 3.2 2.5L21 15v3h-2.5M5.5 18H3v-3'/%3E%3Ccircle cx='7.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3Cpath d='M9.3 17.5h5.4'/%3E%3C/svg%3E"); }
.storefront a.buy-fit.is-none:hover { text-decoration: none; background-color: var(--accent-soft); }
.product-page #compat { scroll-margin-top: 100px; }
.fit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 3px 0; }
.fit-row a.fit-row__car { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.fit-row a.fit-row__car:hover { color: var(--link); text-decoration-color: currentColor; }
.fit-row.is-mine .fit-row__car { font-weight: 600; }
.fit-row__mine { padding: 2px 8px; border-radius: 999px; background: var(--lime-grad); color: var(--lime-ink); font-size: 11px; font-weight: 700; }
