/* ============================================================
   Хочу-Мотор · Страничные раскладки
   ============================================================ */

/* ================= Главная ================= */
/* Подложка героя — во всю ширину экрана, как в макете (03).
   Градиент на секции, а не на .container, иначе он обрезается на 1360px. */
.hero-wrap { background: linear-gradient(115deg, var(--card2), var(--bg) 70%); }
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  padding-top: 38px;
  padding-bottom: 38px;
}
.hero__content { display: flex; flex-direction: column; gap: 16px; }
.hero__title {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__desc { font-size: 15px; color: var(--t2); line-height: 1.6; max-width: 480px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__img {
  height: 280px;
  border-radius: var(--r-panel);
  border: 1px solid var(--brd08);
  overflow: hidden;
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
  .hero__title { font-size: 32px; }
  .hero__img { height: 220px; }
}
@media (max-width: 767px) {
  .hero__title { font-size: 26px; }
  .hero__desc { font-size: 13px; }
  .hero__img { height: 170px; }
}

/* Переход от покупки двигателя к установке в партнёрском сервисе (ПК). */
.sec-partner { padding-top: 0; }
.partner-installation {
  position: relative;
  isolation: isolate;
  height: 240px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  overflow: hidden;
  color: var(--t1);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--brd08);
  border-radius: var(--r-panel);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.partner-installation::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
}
.partner-installation__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 34px 30px 38px;
}
.partner-installation__eyebrow {
  margin-bottom: 10px;
  color: var(--accent-text);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.partner-installation__title {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(25px, 2.25vw, 34px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.partner-installation__desc {
  max-width: 650px;
  margin-top: 10px;
  color: var(--t2);
  font-size: 14px;
  line-height: 1.55;
}
.partner-installation__footer {
  width: 100%;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.partner-installation__brand {
  color: var(--t1);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.partner-installation__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  color: #fff;
  background: var(--red);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--red-shadow);
}
.partner-installation__cta [aria-hidden="true"] { font-size: 15px; line-height: 1; }
.partner-installation__media {
  min-width: 0;
  overflow: hidden;
  background: var(--card2);
  border-left: 1px solid var(--brd08);
}
.partner-installation__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% 58%;
  transition: transform .34s ease;
}
.partner-installation:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .partner-installation:hover {
    border-color: rgba(217, 43, 47, .55);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
  }
  .partner-installation:hover .partner-installation__media img { transform: scale(1.035); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .partner-installation {
    height: 248px;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
  }
  .partner-installation__content { padding: 24px 25px 24px 29px; }
  .partner-installation__title { font-size: 25px; }
  .partner-installation__desc { font-size: 13px; }
  .partner-installation__footer { margin-top: 18px; gap: 10px; }
  .partner-installation__brand { font-size: 12px; }
  .partner-installation__cta { padding: 10px 12px; font-size: 11px; }
}

@media (max-width: 767px) {
  body[data-page="home"] .sec-partner { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-installation,
  .partner-installation__media img { transition: none; }
}

/* ---- Мобильная главная (1:1 по макету 01) ---- */
.m-home-head { display: none; }
.m-search-row { display: none; }
.benefit-strip { display: none; }

@media (max-width: 767px) {
  .m-home-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-top: 14px;
    position: relative;
  }
  .m-home-head .logo__name { font-size: 27px; }
  .m-home-head__tag { display: flex; align-items: center; gap: 8px; }
  .m-home-head__tagline {
    font-family: var(--font-head);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: .3em;
    color: var(--t2);
    text-transform: uppercase;
  }
  .m-home-head__line { width: 22px; height: 1px; }
  .m-home-head__line--l { background: linear-gradient(90deg, transparent, var(--t5)); }
  .m-home-head__line--r { background: linear-gradient(90deg, var(--t5), transparent); }

  .mobile-app-header__theme {
    position: absolute;
    top: 2px;
    right: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-right: 0;
    border-radius: 22px 0 0 22px;
    background:
      radial-gradient(circle at 43% 50%, rgba(255, 225, 159, .22), transparent 46%),
      linear-gradient(110deg, #afb1ad 0%, #c6beb1 58%, #a78250 100%);
    color: #33383e;
    overflow: hidden;
    isolation: isolate;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
  }
  .mobile-app-header__theme:hover,
  .mobile-app-header__theme:focus-visible {
    color: #17191d;
    border-color: rgba(255, 255, 255, .5);
  }
  .mobile-app-header__theme:focus-visible {
    outline: 1px solid var(--t3);
    outline-offset: -3px;
  }
  .mobile-app-header__theme:active { transform: translateX(2px); }

  [data-theme="light"] .mobile-app-header__theme {
    background: #17181c;
    border-color: rgba(255, 255, 255, .16);
  }
  [data-theme="light"] .mobile-app-header__theme:focus-visible {
    outline-color: rgba(255, 255, 255, .58);
  }

  .mobile-theme-asset {
    position: absolute;
    display: block;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
    will-change: opacity, transform;
    transition: opacity .2s ease, transform .22s cubic-bezier(.22, .72, .28, 1);
  }
  .mobile-theme-asset--sun {
    width: 23px;
    height: 23px;
    opacity: .94;
    filter: saturate(.9) brightness(.82) drop-shadow(0 1px 2px rgba(77, 42, 8, .38));
    transform: rotate(0deg) scale(.96);
  }
  .mobile-theme-asset--moon {
    width: 22px;
    height: 22px;
    opacity: 0;
    filter: saturate(.42) brightness(.96) contrast(.94);
    transform: rotate(-22deg) scale(.7);
  }
  [data-theme="light"] .mobile-theme-asset--sun {
    opacity: 0;
    transform: rotate(22deg) scale(.7);
  }
  [data-theme="light"] .mobile-theme-asset--moon {
    opacity: 1;
    transform: rotate(0deg) scale(.96);
  }

  .mobile-theme-effects {
    position: absolute;
    z-index: 1;
    pointer-events: none;
  }
  .mobile-theme-effects--heat {
    inset: 5px 0 5px 5px;
    border-radius: 50% 0 0 50%;
    background: radial-gradient(circle at 47% 50%, rgba(255, 233, 177, .34) 0 16%, rgba(185, 118, 28, .16) 39%, transparent 70%);
    opacity: .38;
    filter: blur(4.5px);
    transform: scale(.92);
    animation: mobile-theme-heat 2.8s ease-in-out infinite;
    transition: opacity .18s ease;
  }
  [data-theme="light"] .mobile-theme-effects--heat {
    opacity: 0;
    animation-play-state: paused;
  }
  .mobile-theme-effects--stars {
    inset: 0;
    z-index: 3;
    opacity: 0;
    transition: opacity .18s ease;
  }
  [data-theme="light"] .mobile-theme-effects--stars { opacity: 1; }
  .mobile-theme-effects--stars i {
    position: absolute;
    width: 1.75px;
    height: 1.75px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 3.5px rgba(255, 255, 255, .82);
    opacity: 0;
    animation: mobile-theme-star 5.6s ease-in-out infinite;
  }
  .mobile-theme-effects--stars i:nth-child(1) { top: 6px; left: 6px; --star-peak: .78; animation-delay: 0s; }
  .mobile-theme-effects--stars i:nth-child(2) { top: 10px; right: 5px; width: 2.25px; height: 2.25px; --star-peak: .96; animation-delay: -.7s; }
  .mobile-theme-effects--stars i:nth-child(3) { bottom: 6px; left: 7px; --star-peak: .86; animation-delay: -1.4s; }
  .mobile-theme-effects--stars i:nth-child(4) { top: 4px; left: 20px; width: 2.25px; height: 2.25px; --star-peak: .94; animation-delay: -2.1s; }
  .mobile-theme-effects--stars i:nth-child(5) { right: 4px; bottom: 12px; --star-peak: .74; animation-delay: -2.8s; }
  .mobile-theme-effects--stars i:nth-child(6) { left: 4px; bottom: 19px; width: 2.25px; height: 2.25px; --star-peak: .92; animation-delay: -3.5s; }
  .mobile-theme-effects--stars i:nth-child(7) { top: 19px; right: 6px; --star-peak: .8; animation-delay: -4.2s; }
  .mobile-theme-effects--stars i:nth-child(8) { right: 14px; bottom: 4px; --star-peak: .92; animation-delay: -4.9s; }

  @keyframes mobile-theme-star {
    0%, 18%, 100% { opacity: 0; transform: scale(.45); }
    30% { opacity: .24; transform: scale(.68); }
    43% { opacity: var(--star-peak, .84); transform: scale(1); }
    58% { opacity: .42; transform: scale(.82); }
    70% { opacity: 0; transform: scale(.5); }
  }
  @keyframes mobile-theme-heat {
    0%, 100% { transform: scale(.9); filter: blur(4px); }
    50% { transform: scale(1.06); filter: blur(5px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .mobile-theme-effects--heat,
    .mobile-theme-effects--stars i { animation: none; }
  }

  .m-search-row { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
  .m-search-row__form { display: flex; gap: 8px; }
  .m-search-row .search { height: 46px; border-radius: 11px; }
  .m-search-row__btn {
    width: 46px; height: 46px; flex: none;
    border-radius: 11px;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--red-shadow);
  }
  .m-search-row__hint { font-size: 11px; color: var(--t5); padding-left: 4px; }

  /* Полоса преимуществ — 3 блока с разделителями */
  .benefit-strip {
    display: flex;
    gap: 8px;
    background: var(--card2);
    border: 1px solid var(--brd07);
    border-radius: 13px;
    padding: 12px 10px;
  }
  .benefit-strip__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
  .benefit-strip__value { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--accent-text); }
  .benefit-strip__label { font-size: 10.5px; color: var(--t2); line-height: 1.35; }
  .benefit-strip__div { width: 1px; background: var(--brd08); }

  /* Порядок секций мобильной главной: поиск → VIN → каталог → преимущества → поступления → B2B */
  body[data-page="home"] main { display: flex; flex-direction: column; }
  body[data-page="home"] .sec-vin       { order: 2; }
  body[data-page="home"] .sec-cats      { order: 3; }
  body[data-page="home"] .sec-benefits  { order: 4; }
  body[data-page="home"] .sec-arrivals  { order: 5; }
  body[data-page="home"] .sec-b2b       { order: 6; }
  body[data-page="home"] .sec-hero      { order: 7; }

  /* Компактный VIN-баннер как в макете */
  body[data-page="home"] .vin-banner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 13px;
  }
  body[data-page="home"] .vin-banner__title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .03em;
  }
  body[data-page="home"] .vin-banner__desc { font-size: 11.5px; line-height: 1.45; }
  body[data-page="home"] .vin-banner__actions .btn {
    font-size: 12px;
    padding: 9px 13px;
    border-radius: 9px;
    white-space: nowrap;
    box-shadow: none;
  }
}

/* ================= Блог =================
   Один набор правил на два контекста: индекс (макет 21) и рубрика —
   body.is-blog-category (макет 22). В MODX обе страницы рендерит
   один шаблон reparts-blog.tpl, контекст задаёт класс body. */
.blog-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.blog-card { overflow: hidden; display: flex; flex-direction: column; border-radius: 14px; }
.blog-card__img {
  display: block;
  height: 96px;
  flex: none;
  overflow: hidden;
  background: var(--card2);
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .32s ease;
}
.blog-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 13px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  background: var(--card);
}
.blog-card__title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.blog-card__title--lg { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.25; }
.blog-card__lead { font-size: 12.5px; color: var(--t2); line-height: 1.6; }
.blog-cat { font-size: 11px; color: var(--accent-text); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.blog-date { font-size: 11px; color: var(--t4); }
.blog-card--featured { grid-row: span 2; }
.blog-card--featured .blog-card__img { height: 220px; }
.blog-card--featured .blog-card__body { padding: 18px; gap: 8px; }

@media (hover: hover) and (pointer: fine) {
  .blog-card:hover .blog-card__img img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card__img img { transition: none; }
}

body[data-page="categories"] .bottom-nav__item[data-nav-id="catalog"] {
  color: var(--accent-text);
  font-weight: 700;
}

/* Индекс: у мелких карточек только заголовок и дата (макет 21) */
body:not(.is-blog-category) .blog-card:not(.blog-card--featured) .blog-card__lead,
body:not(.is-blog-category) .blog-card:not(.blog-card--featured) .blog-cat { display: none; }
/* Список рубрик есть только внутри рубрики (макет 22) */
body:not(.is-blog-category) .blog-rubrics { display: none; }

/* Рубрика: равные карточки в три колонки, без выделенной (макет 22) */
.is-blog-category .blog-grid { grid-template-columns: repeat(3, 1fr); }
.is-blog-category .blog-card--featured { grid-row: auto; }
.is-blog-category .blog-card__img,
.is-blog-category .blog-card--featured .blog-card__img { height: 130px; }
.is-blog-category .blog-card__body,
.is-blog-category .blog-card--featured .blog-card__body { padding: 15px; gap: 6px; }
.is-blog-category .blog-card__title,
.is-blog-category .blog-card__title--lg {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.is-blog-category .blog-card__lead { font-size: 12px; line-height: 1.55; }
.is-blog-category .blog-cat { display: none; }

@media (max-width: 1023px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card--featured { grid-column: 1 / -1; grid-row: auto; }
  .is-blog-category .blog-grid { grid-template-columns: 1fr 1fr; }
  .is-blog-category .blog-card--featured { grid-column: auto; }
}
@media (max-width: 767px) {
  .blog-grid,
  .is-blog-category .blog-grid { grid-template-columns: 1fr; gap: 13px; }
  /* Обычные карточки → компактные строки с превью слева (M14) */
  body:not(.is-blog-category) .blog-card:not(.blog-card--featured) { flex-direction: row; align-items: center; padding: 11px; gap: 11px; }
  body:not(.is-blog-category) .blog-card:not(.blog-card--featured) .blog-card__img { width: 70px; height: 56px; flex: none; border-radius: 9px; }
  body:not(.is-blog-category) .blog-card:not(.blog-card--featured) .blog-card__body { padding: 0; gap: 3px; }
  .blog-card--featured .blog-card__img { height: 150px; }
}

/* ================= Все категории ================= */
.categories-page__inner {
  padding-top: 15px;
  padding-bottom: 42px;
}
.categories-page__breadcrumbs { margin-bottom: 18px; }
.categories-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}
.categories-hero__copy { min-width: 0; }
.categories-hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.categories-hero__subtitle {
  margin: 7px 0 0;
  color: var(--t3);
  font-size: 13px;
  line-height: 1.45;
}
.categories-hero__vin {
  min-height: 46px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  border: 1px solid rgba(217,43,47,.3);
  border-radius: 11px;
  background: var(--bnr);
  color: var(--t2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.categories-hero__vin > svg { color: var(--red); flex: none; }
.categories-hero__vin strong { color: var(--red-light); }
.categories-hero__vin:hover { border-color: rgba(217,43,47,.55); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.category-group {
  min-width: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.category-group__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--brd07);
}
.category-group__abbr {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 11px;
  background: var(--bnr);
  color: var(--accent-text);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
}
.category-group__summary { min-width: 0; flex: 1; }
.category-group__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.category-group__title a { color: var(--t1); }
.category-group__count {
  display: block;
  margin-top: 2px;
  color: var(--t3);
  font-size: 11.5px;
}
.category-group__all {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: none;
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 600;
}
.category-group__all svg { transition: transform .2s ease; }
.category-group__all:hover svg { transform: translateX(2px); }
.category-group__items {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  list-style: none;
}
.category-group__item { min-width: 0; }
.category-group__item a {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--t2);
  font-size: 12.5px;
  line-height: 1.35;
}
.category-group__item-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.category-group__item-count {
  flex: none;
  color: var(--t5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}
.category-group__item a:hover,
.category-group__title a:hover { color: var(--red-light); }
.category-group__empty {
  margin: 0;
  color: var(--t3);
  font-size: 12.5px;
}

.categories-request {
  margin-top: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--brd07);
  border-radius: var(--r-card);
  background: var(--card2);
}
.categories-request__icon { color: var(--t2); flex: none; }
.categories-request p {
  margin: 0;
  flex: 1;
  color: var(--t2);
  font-size: 12.5px;
  line-height: 1.55;
}
.categories-request__button { flex: none; white-space: nowrap; }

/* Старые строки оставлены совместимыми для ранее собранных прототипов. */
.cat-row { padding: 14px; display: flex; align-items: center; gap: 12px; }
.cat-row__icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--bnr); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; color: var(--red); font-size: 13px;
}
.cat-row__title { font-size: 14px; font-weight: 700; }
.cat-row__desc { font-size: 11px; color: var(--t3); }
.cat-row__arrow { color: var(--t5); margin-left: auto; }

@media (max-width: 767px) {
  .categories-page__inner { padding-top: 10px; padding-bottom: 25px; }
  .categories-page__breadcrumbs { display: none; }
  .categories-hero { margin-bottom: 12px; }
  .categories-hero__title { font-size: 21px; letter-spacing: .04em; }
  .categories-hero__subtitle,
  .categories-hero__vin { display: none; }
  .categories-grid { grid-template-columns: 1fr; gap: 11px; }
  .category-group { padding: 13px; gap: 11px; }
  .category-group__head { gap: 11px; padding-bottom: 11px; }
  .category-group__abbr { width: 38px; height: 38px; border-radius: 10px; font-size: 13px; }
  .category-group__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }
  .category-group__count { margin-top: 1px; font-size: 10.5px; }
  .category-group__all { width: 34px; height: 34px; min-height: 34px; color: var(--t5); }
  .category-group__all span { display: none; }
  .category-group__items { display: flex; flex-wrap: wrap; gap: 6px; }
  .category-group__item:nth-child(n+4) { display: none; }
  .category-group__item a {
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid var(--brd07);
    border-radius: 999px;
    background: var(--card2);
    color: var(--t2);
    font-size: 11px;
  }
  .category-group__item-count { display: none; }
  .category-group__empty { font-size: 11.5px; }
  .categories-request {
    margin-top: 11px;
    padding: 13px;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    border-color: rgba(217,43,47,.3);
    background: var(--bnr);
  }
  .categories-request__icon { display: none; }
  .categories-request p { font-size: 12px; line-height: 1.5; }
  .categories-request__button { width: 100%; min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .categories-hero__vin,
  .category-group__all svg { transition: none; }
}

/* Секции главной */
.section { padding-top: 26px; padding-bottom: 4px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section__more { font-size: 13px; color: var(--accent-text); font-weight: 600; white-space: nowrap; }
.section__more:hover { color: var(--red-light); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1023px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; } }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1279px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1023px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .products-grid { gap: 9px; } .product-card__img { height: 92px; } }

/* Категории (моб. главная) */
.cat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cat-tile {
  background: var(--card);
  border: 1px solid var(--brd09);
  border-radius: var(--r-card);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-tile__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--red-bg);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.cat-tile__name { font-size: 14px; font-weight: 700; }
.cat-tile__desc { font-size: 11px; color: var(--t3); }
.cat-link {
  background: var(--card2);
  border: 1px solid var(--brd07);
  border-radius: var(--r-btn);
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-link span:last-child { color: var(--t5); }

/* ================= Каталог ================= */
.catalog-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 30px;
}
.catalog-side { width: 250px; flex: none; display: flex; flex-direction: column; gap: 14px; }
.catalog-main { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.filters {
  background: var(--card2);
  border: 1px solid var(--brd07);
  border-radius: var(--r-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filters .field__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.filters .input, .filters .select { padding: 9px 12px; font-size: 12.5px; border-radius: 9px; background: var(--card); }
.filters__row { display: flex; gap: 8px; }
.filters__group {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.filters__group > legend { margin-bottom: 2px; padding: 0; }
.filters__group .check { font-size: 12.5px; }
.filter-option { width: 100%; min-width: 0; }
.filter-option__label { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.filter-option__count { margin-left: auto; color: var(--t4); font-variant-numeric: tabular-nums; }
.filter-option--disabled { cursor: default; opacity: .5; }

.vin-side {
  background: linear-gradient(115deg, var(--bnr), var(--card) 65%);
  border: 1px solid rgba(217, 43, 47, .35);
  border-radius: var(--r-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vin-side__title { font-size: 13px; font-weight: 700; }
.vin-side__desc { font-size: 11.5px; color: var(--t2); line-height: 1.5; }

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-found { font-size: 13px; color: var(--t3); }
.catalog-found strong { color: var(--t1); font-weight: 700; }
.catalog-sort { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--t2); cursor: pointer; }
.catalog-sort strong { color: var(--t1); font-weight: 600; }
.catalog-results-meta {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--t3);
  font-size: 12.5px;
}
.catalog-results-meta strong { color: var(--t1); font-weight: 700; }
.catalog-empty { margin-top: 4px; }
.catalog-empty__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.catalog-filter-count {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.filters-toggle { display: none; }
.catalog-chips { display: none; }

@media (max-width: 1023px) {
  .catalog-side { display: none; }
  .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .catalog-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .catalog-chips::-webkit-scrollbar { display: none; }
}

@media (max-width: 600px) {
  .catalog-results-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .catalog-empty__actions { width: 100%; display: grid; grid-template-columns: 1fr; }
}

/* ================= Карточка товара ================= */
.product-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-top: 16px;
  padding-bottom: 28px;
}
.product-gallery { width: 520px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.product-gallery__main {
  position: relative;
  height: 380px;
  border-radius: 14px;
  border: 1px solid var(--brd09);
  background: var(--card2);
  overflow: hidden;
}
.product-gallery__main .badge { position: absolute; top: 14px; left: 14px; }
.product-gallery__open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--t1);
  cursor: zoom-in;
  touch-action: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.product-gallery__viewport {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  contain: layout paint;
}
.product-gallery__viewport::-webkit-scrollbar { display: none; }
.product-gallery__viewport.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}
.product-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
}
.product-gallery__slide {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.product-gallery__open:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -3px;
}
.product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(8, 10, 14, .72);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateY(-50%) scale(.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.product-gallery__nav--prev { left: 14px; }
.product-gallery__nav--next { right: 14px; }
.product-gallery__main:hover .product-gallery__nav,
.product-gallery__main:focus-within .product-gallery__nav {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.product-gallery__nav:hover { border-color: rgba(255, 255, 255, .45); background: rgba(8, 10, 14, .88); }
.product-gallery__nav:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; opacity: 1; }
.product-gallery__nav:active { transform: translateY(-50%) scale(.94); }
.product-gallery__zoom,
.product-gallery__count {
  position: absolute;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(8, 10, 14, .72);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
}
.product-gallery__zoom {
  right: 14px;
  width: 36px;
  border-radius: 50%;
}
.product-gallery__count {
  left: 14px;
  padding: 0 11px;
  border-radius: 999px;
  font: 600 11px/1 var(--font-mono);
}
.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  max-width: 100%;
  padding: 2px 1px 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--brd11) transparent;
}
.product-gallery__thumbs::-webkit-scrollbar { height: 5px; }
.product-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--brd11); border-radius: 999px; }
.product-gallery__thumb {
  flex: 0 0 82px;
  height: 80px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--brd09);
  background: var(--card2);
  color: inherit;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: center;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.product-gallery__thumb:hover { border-color: var(--brd11); }
.product-gallery__thumb:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.product-gallery__thumb--active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.product-lightbox.modal {
  z-index: 160;
  align-items: stretch;
  justify-content: stretch;
  padding: 20px;
  background: rgba(2, 3, 6, .92);
  backdrop-filter: blur(12px);
}
.product-lightbox__win.modal__win {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: calc(100dvh - 40px);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: #090b0f;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  animation: product-lightbox-in .18s ease-out;
}
.product-lightbox__figure {
  grid-column: 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.product-lightbox__stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 10px;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.product-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity .14s ease, transform .14s ease;
}
.product-lightbox__image.is-changing { opacity: .25; transform: scale(.985); }
.product-lightbox__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 40px;
  padding: 8px 12px 2px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  text-align: center;
}
.product-lightbox__counter {
  flex: none;
  color: #fff;
  font: 600 11px/1 var(--font-mono);
  white-space: nowrap;
}
.product-lightbox__close,
.product-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(18, 20, 26, .78);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.product-lightbox__close:hover,
.product-lightbox__nav:hover { border-color: rgba(255, 255, 255, .48); background: rgba(34, 37, 45, .9); }
.product-lightbox__close:focus-visible,
.product-lightbox__nav:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.product-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.product-lightbox__nav {
  align-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.product-lightbox__nav[hidden] { display: none; }
.product-lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.product-lightbox__nav--next { grid-column: 3; grid-row: 1; }
.product-lightbox__hint {
  position: absolute;
  top: 22px;
  left: 22px;
  margin: 0;
  color: rgba(255, 255, 255, .52);
  font-size: 11px;
}
@keyframes product-lightbox-in {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
.product-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-media__item {
  background: var(--card);
  border: 1px solid var(--brd09);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.product-media__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 9px;
  background: var(--bnr);
  display: flex; align-items: center; justify-content: center;
}

.product-info { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.product-info__title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
}
.product-codes { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; font-family: var(--font-mono); }
.product-codes span {
  background: var(--card2);
  border: 1px solid var(--brd08);
  border-radius: 6px;
  padding: 5px 9px;
}

.buy-box {
  background: var(--card);
  border: 1px solid var(--brd09);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.buy-box__price { font-family: var(--font-head); font-size: 32px; font-weight: 600; }
.buy-box__note { font-size: 12px; color: var(--t3); }
.buy-box__actions { display: flex; flex-direction: column; gap: 8px; width: 230px; }

.vin-check {
  background: var(--bnr);
  border: 1px solid rgba(217, 43, 47, .3);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.vin-check__text { flex: 1; font-size: 12.5px; color: var(--t2); line-height: 1.5; }
.vin-check__text strong { color: var(--t1); font-weight: 600; }

.specs {
  background: var(--card);
  border: 1px solid var(--brd09);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.specs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  font-size: 13px;
}
.specs__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--brd08);
  padding-bottom: 8px;
}
.specs__key { color: var(--t3); }
.specs__val { font-weight: 600; text-align: right; }

.product-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product-note {
  background: var(--card);
  border: 1px solid var(--brd09);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-note__title { font-size: 13px; font-weight: 700; }
.product-note__title--ok { color: var(--ok); }
.product-note__title--warn { color: var(--warn); }
.product-note p { font-size: 12.5px; color: var(--t2); line-height: 1.6; }
.product-note p.small { font-size: 12px; color: var(--t3); }

.trust-row { display: flex; gap: 14px; }
.trust-item {
  flex: 1;
  background: var(--card2);
  border: 1px solid var(--brd07);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-item strong { font-size: 13px; font-weight: 700; display: block; }
.trust-item small { font-size: 11.5px; color: var(--t3); }

@media (max-width: 1279px) { .product-gallery { width: 440px; } }
@media (max-width: 1023px) {
  .product-layout { flex-direction: column; }
  .product-gallery { width: 100%; }
  .product-gallery__main { height: 300px; }
}
@media (max-width: 767px) {
  .product-gallery__main { height: 220px; }
  .product-gallery__nav { display: none; }
  .product-gallery__thumb { flex-basis: 72px; height: 68px; }
  .product-gallery__zoom { right: 10px; bottom: 10px; }
  .product-gallery__count { left: 10px; bottom: 10px; }
  .product-lightbox.modal { align-items: stretch; padding: 0; }
  .product-lightbox__win.modal__win {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    height: 100dvh;
    padding: max(54px, calc(env(safe-area-inset-top) + 44px)) 8px max(8px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  .product-lightbox__figure { grid-column: 1; grid-row: 1; }
  .product-lightbox__stage { padding: 8px 0; }
  .product-lightbox__caption { padding-inline: 48px; font-size: 11px; }
  .product-lightbox__close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
  }
  .product-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
  }
  .product-lightbox__nav:active { transform: translateY(-50%) scale(.95); }
  .product-lightbox__nav--prev { left: 8px; }
  .product-lightbox__nav--next { right: 8px; }
  .product-lightbox__hint {
    top: max(18px, calc(env(safe-area-inset-top) + 8px));
    left: 14px;
    max-width: calc(100% - 72px);
  }
  .product-info__title { font-size: 19px; }
  .buy-box { flex-direction: column; align-items: stretch; }
  .buy-box__actions { width: 100%; }
  .buy-box__price { font-size: 26px; }
  .specs__grid, .product-notes { grid-template-columns: 1fr; }
  .trust-row { flex-direction: column; }
  .product-media { grid-template-columns: 1fr; }
  .vin-check { flex-wrap: wrap; }
}

/* ================= Поиск ================= */
.search-group { display: flex; flex-direction: column; gap: 10px; }
.search-group__head { display: flex; align-items: center; gap: 9px; }
.search-group__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--t3);
  text-transform: uppercase;
  white-space: nowrap;
}
.search-group__label--match { color: var(--accent-text); }
.search-group__line { flex: 1; height: 1px; background: var(--brd07); }
.search-page-head { padding-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.search-page-results { padding-top: 16px; padding-bottom: 30px; display: flex; flex-direction: column; gap: 18px; }

/* ================= Корзина ================= */
.cart-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 30px;
}
.cart-items { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.cart-item {
  background: var(--card);
  border: 1px solid var(--brd09);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.cart-item__img { width: 110px; height: 82px; flex: none; border-radius: 9px; overflow: hidden; }
.cart-item__main { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cart-item__head { display: flex; align-items: flex-start; gap: 8px; }
.cart-item__title { flex: 1; font-size: 15px; font-weight: 700; }
.cart-item__meta { font-size: 11.5px; color: var(--t3); font-family: var(--font-mono); }
.cart-item__note { font-size: 11.5px; color: var(--t3); }
.cart-item__note--warn { color: var(--warn); }
.cart-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}
.cart-item__price { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.cart-item__price small { color: var(--t4); font-family: var(--font-body); font-size: 10px; font-weight: 500; }
.cart-quantity-form { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cart-item__stock-hint { color: var(--t4); font-size: 10.5px; }
.cart-item__remove {
  min-width: 64px;
  min-height: 44px;
  margin: -8px -10px;
  padding: 8px 10px;
  color: var(--t4);
  font-size: 11px;
}
.cart-item__remove:hover { color: var(--red-soft); }

.cart-aside { width: 340px; flex: none; display: flex; flex-direction: column; gap: 14px; }

.summary {
  background: var(--card);
  border: 1px solid var(--brd09);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.summary__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.summary__rows { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.summary__row { display: flex; justify-content: space-between; gap: 10px; color: var(--t2); }
.summary__row strong { color: var(--t1); font-weight: 600; }
.summary__row .muted-val { color: var(--t3); }
.summary__row--discount strong { color: var(--ok); }

.deposit-box {
  background: var(--bnr);
  border: 1px solid rgba(217, 43, 47, .35);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.deposit-box__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.deposit-box__row span:first-child { color: var(--t2); }
.deposit-box__sum { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--accent-text); }
.deposit-box__sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--t3); }

.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--brd07);
  padding-top: 12px;
}
.summary__total-label { font-size: 14px; font-weight: 700; }
.summary__total-sum { font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.summary__agree { font-size: 11px; color: var(--t4); text-align: center; line-height: 1.5; }

.guarantees {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--card2);
  border: 1px solid var(--brd07);
  border-radius: 14px;
  padding: 15px;
}
.guarantees__item { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--t2); }
.guarantees__item svg { flex: none; }

.checkout-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  padding: 20px;
  border-radius: 14px;
}

@media (max-width: 1023px) {
  .cart-layout { flex-direction: column; }
  .cart-items { width: 100%; }
  .cart-aside { width: 100%; }
}
@media (max-width: 767px) {
  .checkout-contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .cart-item { flex-wrap: wrap; padding: 12px; gap: 11px; }
  .cart-item__img { width: 92px; height: 70px; }
  .cart-item__title { font-size: 13.5px; }
  .cart-item__aside { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .cart-item__price { align-items: flex-start; }
  .cart-quantity-form { align-items: center; }
}

/* ================= Текстовые страницы (политика, оферта, гарантия) ================= */
.doc-page {
  max-width: 820px;
  padding-top: 18px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.doc-page__head { display: flex; flex-direction: column; gap: 8px; }
.doc-page__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--t3); }
.doc-section { display: flex; flex-direction: column; gap: 6px; }
.doc-section__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .03em;
}
.doc-note {
  background: var(--bnr);
  border: 1px solid rgba(217, 43, 47, .25);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.6;
}
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc-card {
  background: var(--card);
  border: 1px solid var(--brd09);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-card__value { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.doc-card__text { font-size: 12.5px; color: var(--t2); line-height: 1.5; }
@media (max-width: 767px) { .doc-cards { grid-template-columns: 1fr; } }

/* Две колонки контента */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.two-col > .full { grid-column: 1 / -1; }
@media (max-width: 767px) { .two-col { grid-template-columns: 1fr; } }

/* ================= Контакты ================= */
.contacts-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 32px;
}
.contacts-main { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--brd09);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--t3);
  text-transform: uppercase;
}
.contact-card__value { font-size: 15px; font-weight: 600; line-height: 1.4; }
.contact-card__value--big { font-family: var(--font-head); font-size: 22px; }
.contact-card__note { font-size: 12px; color: var(--t3); }

.messengers { display: flex; gap: 12px; }
.messenger {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card2);
  border: 1px solid var(--brd07);
  border-radius: 12px;
  padding: 14px 16px;
}
.messenger__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
}
.messenger strong { font-size: 13.5px; font-weight: 700; display: block; }
.messenger small { font-size: 11.5px; color: var(--t3); }

.contacts-map {
  width: 440px;
  flex: none;
  height: 480px;
  border-radius: var(--r-panel);
  border: 1px solid var(--brd09);
  overflow: hidden;
}

@media (max-width: 1023px) {
  .contacts-layout { flex-direction: column; }
  .contacts-main { width: 100%; }
  .contacts-map { width: 100%; height: 300px; }
}
@media (max-width: 767px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .messengers { flex-direction: column; }
}

/* ================= Страницы результата (успех / ошибка / 404) ================= */
.result-page {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.result-page__icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.result-page__icon--ok { background: rgba(79, 196, 127, .14); }
.result-page__icon--err { background: var(--bnr); }
.result-page__icon--pending {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent-text);
}
.result-page__desc { font-size: 14px; color: var(--t2); max-width: 500px; line-height: 1.6; }
.result-page__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.result-page--payment { min-height: 430px; justify-content: center; }
.payment-result-summary {
  margin: 0;
  padding: 16px 22px;
  display: flex;
  gap: 32px;
  border: 1px solid var(--brd09);
  border-radius: 13px;
  background: var(--card);
}
.payment-result-summary > div { min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.payment-result-summary dt { color: var(--t4); font-size: 11px; }
.payment-result-summary dd { margin: 0; color: var(--t1); font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.payment-result-summary dd.payment-result-summary__status { color: var(--ok); font-family: var(--font-body); font-size: 13px; font-weight: 700; }
.payment-result-message { max-width: 440px; margin: 0; }
.order-result-shell { width: 100%; }
.order-result {
  padding-top: 42px;
  padding-bottom: 64px;
}
.order-result__primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.order-result__intro {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: order-result-in .34s ease-out both;
}
.order-result__icon {
  width: 68px;
  height: 68px;
  border: 1px solid color-mix(in srgb, var(--ok) 38%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
}
.order-result__title { font-size: clamp(30px, 4vw, 48px); }
.order-result__lead {
  max-width: 680px;
  color: var(--t2);
  font-size: 15px;
  line-height: 1.7;
}
.order-result__contact { color: var(--t3); font-size: 12.5px; }
.order-result__contact strong { color: var(--t1); font-weight: 600; }
.order-result__actions { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.order-result__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 20px;
  align-items: start;
}
.order-result__products,
.order-result__summary { padding: 22px; border-radius: 14px; }
.order-result__section-head {
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.order-result__product-list { display: flex; flex-direction: column; }
.order-result__product {
  padding: 16px 0;
  border-top: 1px solid var(--brd07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.order-result__product:first-child { border-top: 0; }
.order-result__product > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.order-result__product-name { color: var(--t1); font-size: 14px; font-weight: 700; }
a.order-result__product-name:hover { color: var(--accent-text); }
.order-result__product-cost { flex: none; font-family: var(--font-head); font-size: 17px; }
.order-result__summary { display: flex; flex-direction: column; gap: 18px; }
.order-result__steps { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; list-style: none; }
.order-result__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.order-result__steps li > span {
  width: 28px;
  height: 28px;
  border: 1px solid var(--brd10);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  font: 600 12px/1 var(--font-head);
}
.order-result__steps p { display: flex; flex-direction: column; gap: 2px; }
.order-result__steps strong { font-size: 13px; }
.order-result__steps small { color: var(--t3); font-size: 11.5px; line-height: 1.45; }
.order-result__totals,
.account-order-totals { margin: 0; padding-top: 14px; border-top: 1px solid var(--brd07); display: flex; flex-direction: column; gap: 9px; }
.order-result__totals > div,
.account-order-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.order-result__totals dt,
.account-order-totals dt { color: var(--t3); font-size: 12px; }
.order-result__totals dd,
.account-order-totals dd { margin: 0; font-weight: 700; }
.order-result__total,
.account-order-totals__grand { padding-top: 10px; border-top: 1px solid var(--brd07); }
.order-result__total dt,
.order-result__total dd,
.account-order-totals__grand dt,
.account-order-totals__grand dd { color: var(--t1); font-family: var(--font-head); font-size: 18px; }
@keyframes order-result-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-404 {
  font-family: var(--font-head);
  font-size: 96px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(180deg, var(--logo-a), var(--logo-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 1023px) {
  .order-result__layout { grid-template-columns: 1fr; }
  .order-result__primary { gap: 24px; }
}
@media (max-width: 767px) {
  .result-404 { font-size: 64px; }
  .result-page--payment { min-height: min(620px, calc(100dvh - 180px)); padding: 36px 16px 56px; }
  .payment-result-summary { width: 100%; max-width: 360px; padding: 14px 12px; gap: 8px; justify-content: space-between; }
  .payment-result-summary > div { min-width: 0; flex: 1; }
  .result-page--payment .result-page__actions { width: min(100%, 270px); display: grid; grid-template-columns: 1fr; }
  .order-result { padding-top: 24px; padding-bottom: 36px; }
  .order-result__primary { gap: 22px; }
  .order-result__intro { align-items: stretch; }
  .order-result__icon { width: 58px; height: 58px; }
  .order-result__actions { display: grid; grid-template-columns: 1fr; }
  .order-result__products,
  .order-result__summary { padding: 18px; }
  .order-result__product { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* ================= MODX / MiniShop3 production states ================= */
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.form-message {
  border: 1px solid var(--brd10);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.5;
}
.form-message--success { color: var(--ok); background: rgba(79, 196, 127, .09); border-color: rgba(79, 196, 127, .28); }
.form-message--error { color: var(--red-light); background: var(--bnr); border-color: rgba(217, 43, 47, .3); }
.auth-grid {
  width: 100%;
  max-width: 520px;
  min-height: 540px;
  margin-inline: auto;
  padding-top: 42px;
  padding-bottom: 64px;
}
.auth-grid.is-transitioning { position: relative; }
.auth-grid > form,
.auth-grid > [data-auth-panel] { display: none; }
.auth-grid > .is-visible {
  display: flex;
  animation: auth-panel-in .24s cubic-bezier(.22,.7,.25,1) both;
}
.auth-grid.is-transitioning > .is-visible { animation: none; }
.auth-card {
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}
.auth-card__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.auth-card__lead {
  margin: -4px 0 2px;
  color: var(--t3);
  font-size: 12.5px;
  line-height: 1.55;
}
.auth-card__switch {
  margin: 0;
  color: var(--t3);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.auth-card__switch button {
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--red-light);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-card__switch button:hover { color: var(--t1); }
.auth-card__switch button:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.auth-card--status {
  min-height: 390px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 42px 34px;
  text-align: center;
}
.auth-status__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ok) 38%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  color: var(--ok);
}
.auth-status__copy { display: grid; gap: 9px; max-width: 390px; }
.auth-status__copy p { margin: 0; color: var(--t2); font-size: 13px; line-height: 1.6; }
.auth-status__copy strong { color: var(--t1); overflow-wrap: anywhere; }
.auth-status__copy .auth-status__note { color: var(--t3); font-size: 11.5px; }
.auth-status__actions { width: 100%; display: grid; gap: 10px; }
.auth-status__change {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--red-light);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.auth-status__change:hover { color: var(--t1); }
.auth-status__change:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.auth-status__message { min-height: 18px; margin: -8px 0 0; color: var(--t3); font-size: 11.5px; }
.auth-status__message.is-success { color: var(--ok); }
.auth-status__message.is-error { color: var(--red-light); }
.auth-card .btn.is-loading {
  position: relative;
  cursor: wait;
}
.auth-card .btn.is-loading::before {
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: auth-button-spin .7s linear infinite;
}
@keyframes auth-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-button-spin { to { transform: rotate(360deg); } }
.auth-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-link-button { align-self: center; border: 0; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.auth-help p { font-size: 12.5px; line-height: 1.6; }

/* Сайдбар каталога — прозрачная колонка, карточка только у самой формы (макет 04).
   Раньше aside дублировал фон/рамку .filters и давал рамку в рамке. */
.catalog-filters {
  width: 250px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filter-group { display: flex; flex-direction: column; gap: 9px; }
.filter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.filter-head strong {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}
.filter-group { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.filter-group > legend { padding: 0; margin-bottom: 3px; }
.mfilter-count { color: var(--t4); }
.mfilter-loading { opacity: .55; pointer-events: none; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.catalog-sort { align-items: flex-start; flex-direction: column; }
.catalog-sort .select { min-width: 190px; }

.product-row__img img,
.cart-item__img img,
.product-gallery__thumb img,
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.product-row button { align-self: stretch; }
.qty__input {
  width: 44px;
  border: 0;
  background: transparent;
  color: var(--t1);
  font: inherit;
  font-weight: 700;
  text-align: center;
  padding: 7px;
}
.qty__input::-webkit-inner-spin-button,
.qty__input::-webkit-outer-spin-button { margin: 0; appearance: none; }

.checkout-panel {
  min-width: 0;
  margin: 0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkout-panel > legend { padding: 0 6px; }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.checkout-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card2);
  border: 1px solid var(--brd10);
  border-radius: 11px;
  padding: 14px;
  cursor: pointer;
}
.checkout-option:has(input:checked) { border-color: var(--red); }
.checkout-option--disabled { border-style: dashed; cursor: not-allowed; opacity: .68; }
.checkout-option input { accent-color: var(--red); }
.checkout-option span { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.checkout-option strong { font-size: 13.5px; }
.checkout-option small { color: var(--t3); font-size: 11.5px; }

.account-layout { display: flex; gap: 28px; align-items: flex-start; padding-top: 26px; padding-bottom: 36px; }
.account-side { width: 270px; flex: none; display: flex; flex-direction: column; gap: 14px; }
.account-main { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.account-main > .section__head { flex-wrap: wrap; }
.account-user { padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border-radius: 14px; }
.account-avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 26px; font-weight: 600; color: #fff; text-transform: uppercase; }
.account-user__name { font-size: 16px; font-weight: 700; }
.account-user__contact { font-size: 12px; }
/* Полоска типа покупателя — как в макете 05 */
.account-user__type {
  width: 100%;
  margin: 0;
  background: var(--card2);
  border: 1px solid var(--brd07);
  border-radius: 9px;
  padding: 8px;
  font-size: 11px;
  color: var(--t2);
}
.account-user__type strong { color: var(--t1); font-weight: 600; }
.account-user__type em { font-style: normal; color: var(--accent-text); font-weight: 600; }
.account-menu { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; }
.account-menu a { padding: 12px 16px; font-size: 13.5px; font-weight: 600; color: var(--t2); border-top: 1px solid var(--brd07); }
.account-menu a:first-child { border-top: 0; }
.account-menu a.is-active { font-weight: 700; color: var(--accent-text); background: var(--bnr); border-left: 3px solid var(--red); }
.account-title { font-size: 20px; }
.account-subtitle { margin-top: 4px; font-size: 12.5px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.account-stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.account-stat strong { font-family: var(--font-head); font-size: 22px; }
.account-stat span { color: var(--t3); font-size: 11.5px; }
.account-orders,
.account-addresses { display: flex; flex-direction: column; gap: 12px; }
.account-order { border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.account-order__head,
.account-order__footer,
.account-detail-head,
.account-order-product,
.account-address { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.account-order__head > div,
.account-order-product > div { display: flex; flex-direction: column; gap: 3px; }
.account-order__number { font-size: 15px; font-weight: 700; }
.account-order__cost { font-family: var(--font-head); font-size: 18px; }
.account-order__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-empty { padding: 26px; display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.account-detail-head { align-items: flex-start; }
.account-detail-head > div { display: flex; flex-direction: column; gap: 6px; }
.account-order-products,
.account-detail-card,
.account-profile-form,
.account-address { padding: 18px; border-radius: 14px; }
.account-order-products { display: flex; flex-direction: column; gap: 12px; }
.account-detail-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.account-order-product { padding-top: 12px; border-top: 1px solid var(--brd07); }
.account-order-product:first-of-type { padding-top: 0; border-top: 0; }
.account-order-product__main { min-width: 0; }
.account-order-product__name { color: var(--t1); font-size: 13.5px; font-weight: 700; }
a.account-order-product__name:hover { color: var(--accent-text); }
.account-order-product__cost { flex: none; font-family: var(--font-head); font-size: 16px; }
.account-order-totals { margin-top: 4px; }
.account-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-detail-card { display: flex; flex-direction: column; gap: 8px; }
.account-profile-form { display: flex; flex-direction: column; gap: 18px; }
.account-profile-form .btn { align-self: flex-start; }
.account-address { align-items: flex-start; }
.account-payment-note { font-size: 12px; line-height: 1.5; }
.account-payment-slot { margin-top: 4px; }
.account-payment-action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.account-payment-amount { font-size: 18px; color: var(--t1); }
.account-payment-methods { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.account-payment-action .btn { min-width: min(100%, 220px); }
.account-payment-test { color: var(--accent-text); border-color: var(--red); background: var(--bnr); }
.account-payment-action .form-message { width: 100%; margin: 0; }
.account-payment-action .btn.is-loading { position: relative; cursor: wait; }
.account-payment-action .btn.is-loading::before {
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: auth-button-spin .7s linear infinite;
}

@media (max-width: 1023px) {
  .catalog-filters { display: none; }
  .account-layout { flex-direction: column; }
  .account-side { width: 100%; }
}
@media (max-width: 767px) {
  .auth-grid {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 24px;
  }
  .auth-card { padding: 20px 18px; }
  .auth-card--status { min-height: 360px; padding: 34px 20px; }
  .auth-card__title--tabbed { display: none; }
  .catalog-head { align-items: stretch; flex-direction: column; }
  .catalog-sort .select { width: 100%; }
  .checkout-fields,
  .checkout-options,
  .auth-name-grid,
  .account-stats,
  .account-detail-grid { grid-template-columns: 1fr; }
  .account-order__head,
  .account-order__footer,
  .account-detail-head,
  .account-address { align-items: flex-start; flex-direction: column; }
  .account-order__actions { width: 100%; }
  .account-order__actions .btn { flex: 1; }
  .account-payment-action,
  .account-payment-methods,
  .account-payment-action .btn { width: 100%; }
  .account-main > .section__head { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-grid > .is-visible,
  .auth-card .btn.is-loading::before,
  .account-payment-action .btn.is-loading::before,
  .order-result__intro { animation: none; }
}
/* Account order progress */
.account-order-tracker { padding: 18px; }
.order-tracker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.order-tracker__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--t3);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}
.order-tracker__step::before {
  position: absolute;
  top: 6px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--brd09);
  content: "";
}
.order-tracker__step:first-child::before { display: none; }
.order-tracker__dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid var(--brd);
  border-radius: 50%;
  background: var(--bg);
}
.order-tracker__step.is-done,
.order-tracker__step.is-current { color: var(--t1); }
.order-tracker__step.is-done::before,
.order-tracker__step.is-current::before { background: var(--red); }
.order-tracker__step.is-done .order-tracker__dot,
.order-tracker__step.is-current .order-tracker__dot {
  border-color: var(--red);
  background: var(--red);
}
.order-tracker__step.is-current .order-tracker__dot {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent);
}
@media (max-width: 600px) {
  .order-tracker {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .order-tracker__step {
    min-height: 44px;
    grid-template-columns: 20px 1fr;
    justify-items: start;
    align-items: start;
    text-align: left;
  }
  .order-tracker__step::before {
    top: -30px;
    bottom: auto;
    left: 6px;
    width: 2px;
    height: 36px;
  }
}
