/* Interactive states supplied as separate mobile references. */
.catalog-sort-backdrop,
.catalog-sort-sheet,
.catalog-filter-reset-mobile { display: none; }

.catalog-empty-state {
  margin: 1.5rem 0;
  color: #121314;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}
.catalog-empty-state[hidden] { display: none; }

/* FAQ rows must grow with their answer instead of overflowing a fixed box. */
.faq { height: auto; min-height: 18.875rem; }
.faq-grid,
.faq-column { height: auto; }
.faq details[open] { min-height: 7.25rem; }
.faq details[open] summary b,
.catalog-category-faq details[open] summary b,
.warranty-faq details[open] summary b { transform: none; }

/* A shared, restrained transition for every FAQ implementation. */
.faq-column {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
}
.faq details { flex: none; }
.wholesale-page .wholesale-faq { align-items: start; }
.wholesale-page .wholesale-faq details { width: 100%; align-self: start; }

@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content,
  .catalog-category-faq details::details-content,
  .warranty-faq details::details-content,
  .wholesale-faq details::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size 220ms cubic-bezier(.22, 1, .36, 1), opacity 160ms ease, content-visibility 220ms allow-discrete;
  }
  .faq details[open]::details-content,
  .catalog-category-faq details[open]::details-content,
  .warranty-faq details[open]::details-content,
  .wholesale-faq details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}
.faq summary b,
.catalog-category-faq summary b,
.warranty-faq summary b,
.wholesale-faq summary span { transition: color .2s ease, transform .2s ease; }

/* One review-card component for home, reviews archive and product tabs. */
.review-grid,
.reviews-grid,
.product-review-grid { align-items: start; }
.reviews-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.product-review-grid { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 20.5625rem)); gap: 0.75rem; }
.review-card {
  width: 100%;
  height: 14rem;
  min-height: 14rem;
  gap: 0;
  overflow: hidden;
  padding: 1rem;
}
.review-card__head { flex: 0 0 2.125rem; height: 2.125rem; }
.review-card strong { font-size: 0.84375rem; font-weight: 700; line-height: normal; }
.review-card__head span { font-size: 0.65625rem; font-weight: 400; line-height: normal; }
.review-card__head b { font-size: 0.875rem; font-weight: 700; line-height: normal; }
.review-card__product { flex: 0 0 1.75rem; margin-top: 0.625rem; }
.review-card__text,
.review-card > p.review-card__text {
  height: auto;
  max-height: 4.5rem;
  margin: 0.625rem 0 0;
  overflow: hidden;
  color: #42474f;
  font-family: Manrope, sans-serif;
  font-size: 0.78125rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.125rem;
}
.review-card__toggle {
  display: block;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff5c0a;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.review-card__toggle[hidden] { display: none !important; }
.review-card.is-expanded { height: auto; min-height: 14rem; overflow: visible; }
.review-card.is-expanded .review-card__text { max-height: none; overflow: visible; }
.reviews.has-expanded-review { height: auto; padding-bottom: 1.5rem; }
.socials span[aria-disabled="true"] { cursor: default; }
.review-card.is-expanded .review-card__toggle { margin-top: 0.75rem; }

@media (min-width: 1600px) {
  .review-card strong { font-size: 0.90625rem; }
  .review-card__head span { font-size: 0.71875rem; }
  .review-card__head b { font-size: 0.9375rem; }
  .review-card__text,
  .review-card > p.review-card__text { max-height: 5rem; font-size: 0.84375rem; line-height: 1.25rem; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card__text,
  .review-card > p.review-card__text { max-height: 4.75rem; font-size: 0.8125rem; line-height: 1.1875rem; }
}

@media (max-width: 900px) {
  .catalog-filter-backdrop { top: 8.625rem; }
  .catalog-filters {
    top: 8.625rem;
    min-height: calc(100vh - 8.625rem);
    padding: 1.6875rem 1.375rem 0;
    border-radius: 0.875rem 0 0 0;
    background: #fff;
  }
  .catalog-filters__title > span { display: none; }
  .catalog-filters__title h2 { font-size: 1.875rem; line-height: 1.1; }
  .catalog-filters__title > button { width: 1.75rem; height: 1.75rem; background: transparent; color: #696d72; font-size: 1.5rem; }
  .catalog-filters fieldset { gap: 0.75rem; margin-top: 1.1875rem; }
  .catalog-filters legend { margin-bottom: 0.625rem; font-size: 0.875rem; }
  .catalog-filters label { gap: 0.625rem; font-size: 0.8125rem; }
  .catalog-filters input { width: 1.125rem; height: 1.125rem; }
  .catalog-filter-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(8.125rem, 1fr);
    gap: 0.75rem;
    margin: auto -0.25rem 0;
    padding: 1.125rem 0.25rem 1.375rem;
    background: #fff;
  }
  .catalog-filter-actions .button { min-height: 3rem; margin: 0; border-radius: 0.5rem; font-size: 0.8125rem; }
  .catalog-filter-apply { order: 1; }
  .catalog-filter-actions [data-filter-reset] { order: 2; }
  .catalog-filter-reset-desktop { display: none; }
  .catalog-filter-reset-mobile { display: inline; }
  body.catalog-filters-open,
  body.catalog-sort-open { overflow: hidden; }
}

@media (min-width: 768px) and (max-width: 900px) {
  .catalog-category-layout { grid-template-columns: minmax(0, 1fr); }
  .catalog-category-products { width: 100%; min-width: 0; }
  .catalog-filters { width: 28rem; }
  .product-vin {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.75rem;
  }
  .product-vin button { width: 100%; grid-column: 1 / -1; }
  .selection-request__consent { font-size: 0.65625rem; line-height: 1.4; }
}

@media (max-width: 767px) {
  .category-products-grid .product-card__actions .button { font-size: 0.6875rem; }
  .selection-request__consent { font-size: 0.65625rem; line-height: 1.4; }
  .catalog-filter-backdrop { top: 8.125rem; background: rgba(0,0,0,.18); }
  .catalog-filters {
    top: 8.125rem;
    left: 0;
    right: 0;
    width: 100%;
    min-height: calc(100vh - 8.125rem);
    padding: 1.5rem 1rem 0;
    border-radius: 0.875rem 0.875rem 0 0;
    transform: translateY(105%);
  }
  .catalog-filters.is-open { transform: translateY(0); }
  .catalog-filters__title h2 { font-size: 1.6875rem; }
  .catalog-mobile-tools { gap: 1.125rem; margin: 1.125rem 0 0.5rem; }
  .catalog-mobile-tools button { display: inline-flex; min-height: 2.9375rem; align-items: center; justify-content: center; gap: 0.5rem; border-color: #9b9da1; font-size: 0.8125rem; line-height: 1; }
  .catalog-mobile-tools button:first-child { font-size: 0; }
  .catalog-mobile-tools button:first-child::before { content: 'Фильтры'; font-size: 0.8125rem; line-height: 1; }
  .catalog-mobile-tools button:last-child { font-size: 0; }
  .catalog-mobile-tools button:last-child::before { content: 'Сортировка'; font-size: 0.8125rem; line-height: 1; }
  .catalog-mobile-tools b { display: grid; width: 1.25rem; min-width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; margin: 0; place-items: center; border-radius: 50%; font-size: 0.625rem; line-height: 1; vertical-align: initial; }

  body.home .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 0.625rem; }
  body.home .category-card { width: 100%; max-width: none; height: clamp(10.75rem, calc(49.4253vw - 1.2975rem), 13.75rem); min-height: 10.75rem; }
  body.home .category-card img { width: clamp(6.5rem, calc(29.8851vw - 0.784375rem), 8.3125rem); max-width: none; height: clamp(4.875rem, calc(22.4138vw - 0.588125rem), 6.25rem); max-height: none; }
  body.home .category-card div { padding-top: clamp(5.875rem, calc(22.4138vw + 0.411875rem), 7.25rem); }

  .catalog-sort-backdrop {
    position: fixed;
    z-index: 1003;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(20,20,20,.2);
  }
  .catalog-sort-backdrop[hidden] { display: none; }
  .catalog-sort-sheet {
    position: fixed;
    z-index: 1004;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 22rem;
    align-content: start;
    padding: 1.375rem 1rem 2rem;
    border-radius: 1.125rem 1.125rem 0 0;
    background: #fff;
  }
  .catalog-sort-sheet[hidden] { display: none; }
  .catalog-sort-sheet header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
  .catalog-sort-sheet h2 { margin: 0; font-size: 1.75rem; line-height: 1.2; }
  .catalog-sort-sheet header button { width: 1.875rem; height: 1.875rem; border: 0; background: transparent; color: #696d72; font-size: 1.5rem; }
  .catalog-sort-sheet label { display: flex; min-height: 2.625rem; align-items: center; padding: 0 0.875rem; border-radius: 0.5625rem; color: #36393d; font-size: 0.8125rem; cursor: pointer; }
  .catalog-sort-sheet label.is-active { min-height: 3rem; margin-bottom: 0.625rem; background: #faf7f4; color: #ff5c0a; }
  .catalog-sort-sheet input { position: absolute; width: 0.0625rem; height: 0.0625rem; overflow: hidden; opacity: 0; }
  .catalog-sort-sheet label span::before { margin-right: 0.375rem; content: '○'; color: #55595e; }
  .catalog-sort-sheet label.is-active span::before { content: '●'; color: #ff5c0a; }

  .catalog-empty-state { margin: 1.25rem 0; font-size: 1.125rem; }

  /* Mobile mega menu: card and subviews follow the supplied 390 px states. */
  .catalog-panel.catalog-mega { top: 8.125rem; max-height: calc(100vh - 8.125rem); padding: 0.75rem 0 1.125rem; border: 0; box-shadow: none; }
  .catalog-mega__layout { width: calc(100% - 2rem); padding: 0.9375rem; border-radius: 0.8125rem; }
  .catalog-mega__mobile-root h2,
  .catalog-mega__heading h2 { font-size: 1.5rem; }
  .catalog-mega__mobile-root > p,
  .catalog-mega__intro { font-size: 0.8125rem; }
  .catalog-mega__mobile-root > button,
  .catalog-mega__mobile-section,
  .catalog-mega__mobile-all { font-size: 0.9375rem; }
  .catalog-mega__links--descriptive strong,
  .catalog-mega__links--compact strong,
  .catalog-mega__model-links strong { font-size: 0.9375rem; }
  .catalog-mega__model-links small,
  .catalog-mega__content-all--card small,
  .catalog-mega__mobile-cta > span { font-size: 0.75rem; }
  .reviews-grid { grid-template-columns: 1fr; gap: 0.625rem; }
  .reviews-grid .review-card { width: 100%; }
  .product-review-grid { grid-template-columns: 1fr; gap: 0.625rem; }
  .review-grid .review-card { height: 14rem; min-height: 14rem; }
  .review-card strong { font-size: 0.875rem; }
  .review-card__head span { font-size: 0.6875rem; }
  .review-card__text,
  .review-card > p.review-card__text { max-height: 4.75rem; font-size: 0.8125rem; line-height: 1.1875rem; }
  .review-card__toggle { font-size: 0.8125rem; }
}
