/* Базовое: чтобы padding 140px работал предсказуемо */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1 0 auto;
}

:root {
  --header-main-height: 0px;
  --filters-sticky-top: 20px;
}

/* ===== Header shell ===== */

.site-header {
  width: 100%;
  position: sticky;
  top: -32px;
  z-index: 200;
}

body.legacy-layout .site-header {
  position: relative;
  top: 0;
}

body.legacy-layout .site-header__top {
  position: relative;
  z-index: 201;
}

body.legacy-layout .site-header__main {
  position: fixed;
  top: var(--legacy-header-offset, 32px);
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}

body.legacy-layout .main {
  padding-top: var(--header-main-height, 82px);
}

body.legacy-layout .side-nav.fixed {
  top: calc(var(--header-main-height, 82px) + var(--legacy-header-offset, 0px));
  transition: top 220ms ease;
  will-change: top;
}

.header-hidden body.legacy-layout .side-nav.fixed {
  top: var(--legacy-header-offset, 0px);
}


.site-header__container {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(16px, 6vw, 140px);
}

/* ===== 1) Top menu ===== */

.site-header__top {
  height: 32px;
  background: #2B2B2B;
  color: #fff;
}

.site-header__top .site-header__container {
  height: 32px;
  padding-top: 6px;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Top menu container (сам блок "Меню") */
.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;             
  width: fit-content;    
  white-space: nowrap;
  height: auto; 
}

/* Ссылки */
.top-nav__link {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 12px; 
  letter-spacing: 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);

  padding: 4px 0; 
  transition: color 120ms ease;
}

.top-nav__link:hover {
  color: #EC1827;
}

.top-nav__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.top-nav__link:active {
  color: rgba(255, 255, 255, 0.75);
}

/* Контейнер "Топ контакты" */
.top-contacts {
  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 24px;             
  width: fit-content;    
  height: 20px;         
  white-space: nowrap;
}

button.header-action {
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.menu-icon {
  width: 16px;
  height: 2px;
  background: #2B2B2B;
  border-radius: 2px;
  display: block;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: #2B2B2B;
  border-radius: 2px;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

/* Блок "Мессенджеры" (две круглые кнопки) */
.messengers {
  display: flex;
  align-items: center;
  gap: 10px;             
  height: 20px;
}

/* Круглые кнопки (по скрину это белый круг с темной иконкой) */
.messengers__btn {
  width: 20px;           
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: #111;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 160ms ease;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu__panel {
  min-height: 100%;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100px;
}

.mobile-menu__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #F2F2F2;
  color: #2B2B2B;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.mobile-menu__close::before,
.mobile-menu__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #2B2B2B;
  border-radius: 2px;
}

.mobile-menu__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__search {
  position: relative;
  max-width: none;
}

.mobile-menu__search-input:focus {
  color: black;
}

.mobile-menu__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.mobile-menu__search-input {
  width: 100%;
  height: 38px;
  padding: 8px 12px 8px 36px;
  border-radius: 20px;
  border: 1px solid #E2E2E2;
  background: #F8F9FA;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 14px;
  outline: none;
}

.mobile-menu__search-input::-webkit-search-cancel-button,
.mobile-menu__search-input::-webkit-search-decoration,
.mobile-menu__search-input::-webkit-search-results-button,
.mobile-menu__search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.mobile-menu__search-input {
  -webkit-appearance: none;
  appearance: none;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #E2E2E2;
}

.mobile-menu__search-results {
  display: none;
  flex-direction: column;
  border-top: 1px solid #E2E2E2;
}

.mobile-menu__search-results.is-visible {
  display: flex;
}

.mobile-menu__nav.is-hidden,
.mobile-menu__cta.is-hidden,
.mobile-menu__contacts.is-hidden {
  display: none;
}

.mobile-menu__result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  min-height: 54px;
  text-decoration: none;
  color: #2B2B2B;
  border-bottom: 0.3px solid #E2E2E2;
}

.mobile-menu__result:hover,
.mobile-menu__result:active,
.mobile-menu__result:focus-visible {
  background: #F8F9FA;
  color: #EC1827;
}

.mobile-menu__result-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  opacity: 0.7;
}

.mobile-menu__result-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 12px;
}

.mobile-menu__result-title {
  display: block;
}

.mobile-menu__result-sub {
  font-size: 11px;
  line-height: 11px;
  color: #BBBBBB;
}

.mobile-menu__result-empty {
  padding: 16px 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 12px;
  color: #BBBBBB;
  border-bottom: 0.3px solid #E2E2E2;
}

.mobile-menu__result-skeleton {
  min-height: 54px;
  border-bottom: 0.3px solid #E2E2E2;
  position: relative;
  overflow: hidden;
  background: #F8F9FA;
}

.mobile-menu__result-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(100%);
  animation: bike-media-shimmer 1.4s ease-in-out infinite;
}

.mobile-menu__link {
  padding: 10px 0;
  border-bottom: 1px solid #E2E2E2;
  text-decoration: none;
  color: #2B2B2B;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 18px;
}

.mobile-menu__link:hover{
  color: #EC1827
}

.mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.mobile-menu__btn {
  width: 190px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #BBBBBB;
  background: #ffffff;
  color: #2B2B2B;
  text-decoration: none;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 12px;
  font-size: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__btn--primary {
  background: #2B2B2B;
  color: #ffffff;
  border-color: #2B2B2B;
}

.mobile-menu__btn:active {
  background: #2B2B2B;
  color: #ffffff;
  border-color: #2B2B2B;
}

.mobile-menu__btn--primary:active {
  background: #ffffff;
  color: #2B2B2B;
  border-color: #BBBBBB;
}

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

.mobile-menu__phone {
  text-decoration: none;
  color: #2B2B2B;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 22px;
}

/* Телефон (блок "Телефон") */
.top-phone {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 12px;    
  letter-spacing: 0;

  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;

  /* Hug height 12 достигается за счет line-height */
  height: 12px;
  display: inline-flex;
  align-items: center;
}

/* hover/focus */
.top-phone:hover {
  color: #ffffff;
}
.top-phone:focus-visible,
.messengers__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.site-header__main {
  background: #fff;
  box-shadow:
    0px 0px 1px 0px #0000000A,
    0px 2px 6px 0px #0000000A,
    0px 10px 20px 0px #0000000A;
  transform: translateY(0);
  opacity: 1;
  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}

.site-header__main-row {
  height: 82px;
  padding-top: 20px;      
  padding-bottom: 20px;   
  display: flex;
  align-items: center;
  gap: 15px;        
}

.brand {
  width: 160px;          
  height: 42px;          
  padding-top: 3px;      
  padding-bottom: 3px;  
  display: inline-flex;
  align-items: center;   
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand__logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: 36px;         
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 15px;      
  height: 42px;     
  flex: 0 0 auto;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;          
  height: 42px;       
  flex: 1 1 auto;     
  min-width: 0;      
}

.header-btn {
  height: 42px;
  padding: 11px 22px;   
  border-radius: 6px;    
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;              
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;       
  font-size: 14px;        
  line-height: 14px;

  background: #EC1827;
  color: #ffffff;
  transition: filter 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.header-btn:hover {
  background: rgba(185, 5, 18, 1);
  box-shadow:
  0px 1px 5px -4px rgba(184, 23, 23, 0.14),
  0px 1px 5px -6px rgba(255, 18, 18, 0.38);
  color: white;

}

.header-btn:active {
  transform: translateY(1px);
  filter: brightness(0.90);
}


.header-btn__icon {
  width: 20px;    
  height: 20px;
  display: block; 
  flex: 0 0 auto;
}

.header-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  max-width: none;
}

.header-search__icon {
  position: absolute;
  left: 10px;      
  width: 22px;     
  height: 22px;    
  display: block;
  pointer-events: none; 
}

.header-search__input {
  width: 100%;
  height: 42px;

  padding: 10px 180px 10px 40px; 
  border-radius: 6px;            
  border: 1px solid #EC1827;
  outline: none;

  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.10); /* #0000001A ≈ 10% */

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  background: #fff;
  color: #111;
}

/* Поиск: кнопка появляется при фокусе внутри формы */
.header-search__submit {
  position: absolute;
  right: 10px;               /* логично: как padding-left у поля */
  top: 50%;
  transform: translateY(-50%);

  width: 64px;
  height: 28px;

  padding: 7px 14px 9px 14px;
  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  background: #EC1827;
  color: #fff;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;

  display: none;             /* скрыта по умолчанию */
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

/* Показ кнопки: когда фокус в input (или в форме) */
.header-search:focus-within .header-search__submit {
  display: inline-flex;
}

/* Небольшая анимация */
.header-search__submit {
  transition: filter 120ms ease, transform 120ms ease;
}
.header-search__submit:hover {
  filter: brightness(0.95);
}
.header-search__submit:active {
  transform: translateY(calc(-50% + 1px));
  filter: brightness(0.90);
}

.header-search__input::placeholder {
  color: #BBBBBB;
  opacity: 1;
}

/* Убираем крестик очистки в Chrome/Safari */
.header-search__input::-webkit-search-cancel-button,
.header-search__input::-webkit-search-decoration,
.header-search__input::-webkit-search-results-button,
.header-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.header-search__input {
  -webkit-appearance: none;
  appearance: none;
}

.header-search-results {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 100%;

  background: #ffffff;
  border: 1px solid #BBBBBB;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);

  display: none;
  z-index: 30;
}

.header-search:focus-within .header-search-results,
.header-search.is-open .header-search-results {
  display: block;
}

.header-search__input:focus{
  color: black !important;
}

.header-search-results__list {
  height: 100%;
  overflow-y: auto;
  padding: 8px 0;
}

.header-search-results__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  text-decoration: none;
}

.header-search-results__row--skeleton {
  position: relative;
  overflow: hidden;
}

.header-search-results__line {
  height: 12px;
  border-radius: 4px;
  background: #F2F2F2;
  display: block;
}

.header-search-results__line--short {
  width: 70%;
}

.header-search-results__row--skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(100%);
  animation: bike-media-shimmer 1.4s ease-in-out infinite;
}

.header-search-results__row + .header-search-results__row {
  border-top: 1px solid #EEEEEE;
}

.header-search-results__row:hover {
  background: #F8F9FA;
}

.header-search-results__row:focus-visible {
  outline: 2px solid rgba(236, 24, 39, 0.25);
  outline-offset: -2px;
}

.header-search-results__title {
  font-size: 14px;
  line-height: 1.3;
  color: #2B2B2B;
}

.header-search-results__subtitle {
  font-size: 12px;
  line-height: 1.3;
  color: #BBBBBB;
}

.search-highlight {
  background: #FFF3B0;
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.header-search-results__empty {
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 14px;
  color: #BBBBBB;
  text-align: center;
}

@media (min-width: 1025px) {
  body.search-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #00000080;
    z-index: 150;
  }

  body.search-open .site-header {
    z-index: 200;
  }

  body.search-open .site-header__top::after,
  body.search-open .site-header__main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #00000080;
    z-index: 1;
    pointer-events: none;
  }

  body.search-open:not(.legacy-layout) .site-header__top,
  body.search-open:not(.legacy-layout) .site-header__main {
    position: relative;
  }

  body.search-open .header-search {
    position: relative;
    z-index: 2;
  }

  body.search-open .header-search-results {
    z-index: 2;
  }
}

@media (min-width: 1025px) {
  body.legacy-layout.search-open .site-header__main {
    position: fixed;
    top: var(--legacy-header-offset, 32px);
  }
}

.header-search-results--empty .header-search-results__list {
  display: none;
}

.header-search-results--empty .header-search-results__empty {
  display: flex;
}


/* Навигация (контейнер справа): 114×42, gap 15 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;          /* Figma gap */
  height: 42px;       /* Figma */
  width: 114px;       /* Figma */
  flex: 0 0 auto;
}

/* Один пункт (Кабинет / Корзина) */
.header-action {
  position: relative;
  height: 42px;       /* Figma */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;           /* если в Figma другой gap между иконкой и текстом — поставим точный */

  text-decoration: none;
  white-space: nowrap;
}

/* Иконка (у тебя на скрине она около 18×15 с бордером в Figma,
   но в верстке держим фиксированный размер, чтобы совпадало) */
.header-action__icon {
  width: 18px;        /* можно уточнить из Figma для профиля/корзины */
  height: 18px;
  display: block;
}

/* Подпись */
.header-action__label {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  color: #BBBBBB;     /* у тебя серый стиль используется; при необходимости поменяем */
}

/* Badge по Figma:
   width 13, height 12, padding L/R 4, radius 18, top 2, left 31 */
.header-action__badge {
  position: absolute;
  top: 2px;           /* Figma */
  left: 31px;         /* Figma (важно: относительно ссылки "корзина") */

  height: 12px;       /* Figma */
  min-width: 13px;    /* Figma width, но с padding растет при 2+ цифрах */
  padding-left: 4px;  /* Figma */
  padding-right: 4px; /* Figma */

  border-radius: 18px; /* Figma */
  background: #EC1827;
  color: #fff;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 12px;
  text-align: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-action {
  transition: transform 120ms ease;
}

.header-action__label {
  transition: color 120ms ease;
}

.header-action:hover .header-action__label {
  color: #8f8f8f; /* чуть темнее, чем #BBBBBB */
}

.header-action:hover {
  transform: translateY(-1px);
}

.header-action:active {
  transform: translateY(0px);
}

.header-action:focus-visible {
  outline: 2px solid rgba(236, 24, 39, 0.25);
  outline-offset: 2px;
  border-radius: 6px;
}

.messengers__btn {
  transition: transform 120ms ease, filter 120ms ease;
}

.messengers__btn:hover {
  filter: brightness(0.95);
}

.messengers__btn:active {
  transform: translateY(1px);
  filter: brightness(0.90);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(16px, 6vw, 140px);
}

.page-card{
  background: #fff;
  box-shadow: 1px 0 14px rgba(0, 0, 0, 0.13);
  margin-top: 50px;
  margin-bottom: 50px;

  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.breadcrumbs {
  height: 38px;                  
  padding: 13px 16px;           
  background: #F8F9FA;          
  border: 0.3px solid #BBBBBB;   
  border-top-left-radius: 8px;  
  border-top-right-radius: 8px;  
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;

  display: flex;
  align-items: center;
}

/* Контейнер ссылок: gap 5px */
.breadcrumbs__links {
  display: flex;
  align-items: center;
  gap: 5px;                      /* Figma */
  min-width: 0;
}

/* Ссылки */
.breadcrumbs__link,
.breadcrumbs__current,
.breadcrumbs__sep {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;             
  letter-spacing: 0;
}

.breadcrumbs__link {
  color: #BBBBBB;                
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: #2B2B2B;
}

.breadcrumbs__link:active {
  color: #2B2B2B;
}

.breadcrumbs__sep {
  color: #BBBBBB;
}

.breadcrumbs__current {
  color: #2B2B2B;
}

.page-card__content {
  padding: 30px;
}

.page-title {
  margin: 0 0 30px 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 22px;
  color: #2B2B2B;
}

.search-results__hint {
  margin: 0 0 18px;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: #8C8C8C;
}

.search-results__meta {
  display: none;
}

.search-results__sentinel {
  height: 1px;
}

.popular_title {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
  color: #2B2B2B;
  margin-bottom: 22px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 30px;
  min-height: 650px;
}

.catalog-filters {
  background: #F8F9FA;
  border: 0.3px solid #BBBBBB;
  border-radius: 8px;

  padding: 0;
  align-self: stretch;
}

.catalog-filters__inner {
  padding: 30px 30px 266px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: sticky;
  top: 20px;
  transition: top 200ms ease;
}

.is-scrolled:not(.header-hidden) .catalog-filters__inner {
  top: var(--filters-sticky-top, 20px);
}

.header-hidden .site-header__main {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.header-hidden .site-header {
  pointer-events: none;
}

.header-hidden .catalog-filters__inner {
  top: 20px;
}

.popular-item {
  height: 42px;
  padding: 11px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  background: #ffffff;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
  color: #2B2B2B;

  text-decoration: none;
  white-space: nowrap;
}

.popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.popular-item:hover {
  border-color: #EC1827;
  color: #EC1827;
}

.popular-item:active {
  transform: translateY(1px);
}

/* Обёртка одного поля */
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 15px; /* как в Figma у блока "Тип техники" */
}

/* Заголовок поля */
.filter-field__label {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
  color: #2B2B2B;
}

/* ===== Select (визуально как поле 240x42) ===== */

.select {
  position: relative;
  width: 240px;
  height: 42px;
}

.select__native {
  width: 100%;
  height: 100%;

  padding: 0px 10px;
  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  background: #ffffff;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  color: #BBBBBB;

  /* убираем стандартную стрелку */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* чтобы текст не залезал на стрелку */
  padding-right: 34px;

  outline: none;
}


/* Стрелка справа */
.select__chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  pointer-events: none;

  /* простая "галка вниз" через border */
  border-right: 1.5px solid #BBBBBB;
  border-bottom: 1.5px solid #BBBBBB;
  transform: translateY(-50%) rotate(45deg);
}

/* ===== Text input (модель) ===== */

.text-input {
  width: 240px;
  height: 42px;

  padding: 15px 10px;
  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  background: #ffffff;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  color: #2B2B2B;

  outline: none;
}

.text-input::placeholder {
  color: #BBBBBB;
}

/* ===== Hover / focus (чтобы было приятно и консистентно с остальным UI) ===== */

.select__native:hover,
.text-input:hover {
  border-color: rgba(43, 43, 43, 0.35);
}

.select__native:focus,
.text-input:focus {
  border-color: #EC1827;
  box-shadow: 0 0 0 2px rgba(236, 24, 39, 0.15);
}

/* Контейнер дропдауна */
.dd {
  position: relative;
  width: 240px;
}

.dd--mobile {
  display: none;
}

/* Кнопка-контрол (само поле) — ты уже его делал, оставлю в этом стиле */
.dd__control {
  width: 240px;
  height: 42px;
  padding: 15px 10px;
  padding-right: 34px;

  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  color: #2B2B2B;

  cursor: pointer;
}

.dd__value.is-placeholder {
  color: #BBBBBB;
}

/* Стрелка */
.dd__chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;

  /* базовое положение: "вниз" */
  transform: translateY(-50%) rotate(45deg);

  border-right: 1.5px solid #BBBBBB;
  border-bottom: 1.5px solid #BBBBBB;
  pointer-events: none;

  /* анимация */
  transition: transform 160ms ease;
}

.dd.is-open .dd__chevron {
  transform: translateY(-50%) rotate(225deg);
}

/* Меню */
.dd__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 240px;

  background: #ffffff;
  border: 0.3px solid #BBBBBB;
  border-radius: 6px;

  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
  z-index: 50;
}

.dd.is-open .dd__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s;
}

.dd__option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  display: block;

  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;   
  line-height: 100%; 

  padding: 4px 10px 4px 15px;
  cursor: pointer;

  color: #2B2B2B;
}

.dd__option:hover,
.dd__option:focus,
.dd__option:focus-visible {
  background: #F8F9FA;
  font-weight: 600;
  color: #2B2B2B;
}

/* Активный выбранный */
.dd__option[aria-selected="true"] {
  background: #F8F9FA;
  font-weight: 600;
}

/* Фокус по клавиатуре */
.dd__control:focus-visible,
.dd__option:focus-visible {
  outline: 2px solid rgba(236, 24, 39, 0.35);
  outline-offset: 2px;
}

.dd__option:visited,
.dd__option:active {
  color: #2B2B2B;
}


.popular-section{
  margin-bottom: 50px;
}

.catalog-results {
  position: relative;
}

.catalog-results__body {
  transition: opacity 180ms ease;
}

.catalog-results__skeleton {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.catalog-results.is-loading .catalog-results__body {
  opacity: 0;
}

.catalog-results.is-loading .catalog-results__skeleton {
  opacity: 1;
}

.catalog-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(211px, 1fr));
  gap: 15px;
}

.catalog-skeleton-card {
  height: 185px;
  border-radius: 12px;
  border: 0.3px solid #E2E2E2;
  background: #F2F2F2;
  position: relative;
  overflow: hidden;
}

.catalog-skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(100%);
  animation: bike-media-shimmer 1.4s ease-in-out infinite;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(211px, 1fr));
  gap: 15px;
  align-items: start;
}

.catalog-section__title{
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
  color: #2B2B2B;
  margin-bottom: 22px;
}

.catalog-section + .catalog-section {
  margin-top: 32px;
}

.part-detail-sections {
  position: relative;
}

.part-detail-sections.is-loading {
  min-height: 220px;
  pointer-events: none;
}

.part-detail-sections.is-loading::before,
.part-detail-sections.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
}

.part-detail-sections.is-loading::before {
  background: #F8F9FA;
  z-index: 2;
}

.part-detail-sections.is-loading::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(100%);
  animation: bike-media-shimmer 1.4s ease-in-out infinite;
  z-index: 3;
}

.part-detail-sections.is-loading > * {
  opacity: 0.2;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-list__item {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  color: #BBBBBB;
  text-decoration: none;
  transition: color 120ms ease;
}

.filter-list__item:hover,
.filter-list__item:focus-visible {
  color: #EC1827;
}

.filter-list__item.is-active {
  color: #2B2B2B;
  font-weight: 600;
}

.filter-list__empty {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: #BBBBBB;
}

.catalog-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 0.3px solid #BBBBBB;
  background: #F8F9FA;
  margin-bottom: 18px;
}

.catalog-hint__text {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #2B2B2B;
}

.catalog-hint__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  background: #2B2B2B;
  color: #ffffff;
  text-decoration: none;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  white-space: nowrap;
  transition: filter 120ms ease, transform 120ms ease;
}

.catalog-hint__action:hover {
  filter: brightness(0.95);
  color: white;
  background: #000000
}

.catalog-hint__action:active {
  transform: translateY(1px);
  filter: brightness(0.90);
}

.part-diagram {
  border-radius: 12px;
  border: 0.3px solid #BBBBBB;
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-bottom: 16px; */
  position: relative;
  overflow: hidden;
  height: 450px;
  cursor: zoom-in;
}

.part-diagram::before,
.part-diagram::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.part-diagram::before {
  background: #f2f2f2;
  z-index: 0;
}

.part-diagram::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(100%);
  animation: bike-media-shimmer 1.4s ease-in-out infinite;
  z-index: 1;
}

.part-diagram.is-loaded::before,
.part-diagram.is-loaded::after {
  opacity: 0;
}

.part-diagram.is-loaded::after {
  animation: none;
}

.part-diagram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 200ms ease;
}

.part-diagram picture {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.part-diagram.is-loaded img {
  opacity: 1;
}
/* 
.part-diagram--compact {
  height: 320px;
  min-height: 320px;
} */

.part-detail {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.part-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}

.part-detail__card {
  border-radius: 12px;
  border: 0.3px solid #BBBBBB;
  background: #F8F9FA;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 320px;
  box-shadow:
    0px 0px 1px 0px #0000000A,
    0px 2px 6px 0px #0000000A;
}

.part-detail__title {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: #2B2B2B;
}

.part-detail__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #BBBBBB;
}

.part-detail__meta-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  color: #2B2B2B;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  background: #ffffff;
}

.part-detail__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  border: 0.3px solid #E2E2E2;
  background: #ffffff;
  padding: 10px 12px;
}

.part-detail__price-row--missing {
  justify-content: center;
  text-align: center;
}

.part-detail__price {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: #2B2B2B;
}

.part-detail__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: #BBBBBB;
}

.part-detail__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #BBBBBB;
}

.part-detail__status--available {
  color: #2B2B2B;
}

.part-detail__status--available .part-detail__status-dot {
  background: rgba(30, 255, 0, 1);
}

.part-detail__status--missing .part-detail__status-dot {
  width: 12px;
  height: 12px;
  background: #FFBB00;
}

.part-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  justify-content: flex-start;
  gap: 8px;
}

.part-detail__thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 0.3px solid #E2E2E2;
  background: #F8F9FA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.part-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.part-detail__thumb:hover:not(.is-placeholder),
.part-detail__thumb:focus-visible:not(.is-placeholder) {
  border-color: #EC1827;
  box-shadow: 0 6px 12px rgba(43, 43, 43, 0.12);
  transform: translateY(-2px);
  background: #ffffff;
  outline: none;
}

.part-detail__thumb:active:not(.is-placeholder) {
  transform: translateY(0);
}

.part-detail__thumb.is-placeholder {
  cursor: default;
}

.part-detail__thumb.is-active {
  border-color: #EC1827;
  box-shadow: 0 4px 8px rgba(236, 24, 39, 0.12);
}

.part-detail__compat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.part-detail__compat-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #BBBBBB;
  display: inline-flex;
  align-self: flex-start;
}

.part-detail__compat-value {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #000000;
  display: block;
}

.part-detail__cta {
  width: 100%;
}

.part-detail__section-title {
  margin: 0 0 12px 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: #2B2B2B;
}

.part-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.part-tabs__input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

.part-tabs__controls {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.part-tabs__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  border: 0.3px solid #E2E2E2;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.part-tabs__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #F8F9FA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  --part-tab-icon-color: #BBBBBB;
}

.part-tabs__icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: var(--part-tab-icon-color);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.part-tabs__icon--desc::before {
  -webkit-mask-image: url("../../images/svg/description_icon.svg");
  mask-image: url("../../images/svg/description_icon.svg");
}

.part-tabs__icon--specs::before {
  -webkit-mask-image: url("../../images/svg/tech_details_icon.svg");
  mask-image: url("../../images/svg/tech_details_icon.svg");
}

.part-tabs__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.part-tabs__title {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: #BBBBBB;
}

.part-tabs__sub {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: #BBBBBB;
}

#part-tab-desc:checked ~ .part-tabs__controls label[for="part-tab-desc"],
#part-tab-specs:checked ~ .part-tabs__controls label[for="part-tab-specs"] {
  border-color: #EC1827;
  box-shadow: 0 4px 10px rgba(236, 24, 39, 0.12);
}

#part-tab-desc:checked ~ .part-tabs__controls label[for="part-tab-desc"] .part-tabs__icon,
#part-tab-specs:checked ~ .part-tabs__controls label[for="part-tab-specs"] .part-tabs__icon {
  background: #EC1827;
  --part-tab-icon-color: #ffffff;
}

#part-tab-desc:checked ~ .part-tabs__controls label[for="part-tab-desc"] .part-tabs__title,
#part-tab-desc:checked ~ .part-tabs__controls label[for="part-tab-desc"] .part-tabs__sub,
#part-tab-specs:checked ~ .part-tabs__controls label[for="part-tab-specs"] .part-tabs__title,
#part-tab-specs:checked ~ .part-tabs__controls label[for="part-tab-specs"] .part-tabs__sub {
  color: #EC1827;
}

.part-tabs__panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.part-tabs__panel {
  display: none;
  border-radius: 8px;
  border: 0.3px solid #E2E2E2;
  background: #ffffff;
  padding: 14px;
}

#part-tab-desc:checked ~ .part-tabs__panels .part-tabs__panel--desc {
  display: block;
}

#part-tab-specs:checked ~ .part-tabs__panels .part-tabs__panel--specs {
  display: block;
}

.part-detail__text {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #2B2B2B;
}

.part-detail__text * {
  color: #2B2B2B !important;
  font-size: inherit !important;
  background: transparent !important;
}

.part-detail__text p {
  margin: 0 0 10px;
}

.part-detail__text p:last-child {
  margin-bottom: 0;
}

.part-detail__text h1,
.part-detail__text h2,
.part-detail__text h3,
.part-detail__text h4,
.part-detail__text h5,
.part-detail__text h6 {
  margin: 10px 0 6px;
  font-weight: 600;
  font-size: 14px !important;
  line-height: 1.3;
}

.part-detail__text ul,
.part-detail__text ol {
  margin: 0 0 10px 18px;
  padding: 0;
}

.part-detail__text li {
  margin-bottom: 6px;
}

.part-detail__text strong {
  font-weight: 600;
}

.part-detail__text a {
  color: #EC1827 !important;
  text-decoration: underline;
}

.part-detail__text.is-muted {
  color: #BBBBBB;
}

.part-specs {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.part-specs__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 0.3px solid #E2E2E2;
  padding-bottom: 8px;
}

.part-specs__row dt {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: #BBBBBB;
}

.part-specs__row dd {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  color: #2B2B2B;
  text-align: right;
}

.part-detail__related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.part-detail__related-link {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  color: #BBBBBB;
  text-decoration: none;
}

.part-detail__related-link:hover {
  color: #EC1827;
}

.part-detail__related-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.part-detail__related-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.part-detail__related-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 26px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  background: #F8F9FA;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 12px;
  color: #2B2B2B;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.part-detail__related-node::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #2B2B2B;
  border-bottom: 1.5px solid #2B2B2B;
  transform: rotate(-45deg);
  transition: border-color 120ms ease;
}

.part-detail__related-node:hover,
.part-detail__related-node:focus-visible {
  border-color: #EC1827;
  color: #EC1827;
  background: #ffffff;
  outline: none;
}

.part-detail__related-node:hover::after,
.part-detail__related-node:focus-visible::after {
  border-color: #EC1827;
}

@media (max-width: 1024px) {
  .part-detail__hero {
    grid-template-columns: 1fr;
  }

  .part-detail__card {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .part-detail {
    gap: 20px;
  }

  .part-detail__hero {
    grid-template-columns: auto 1fr;
    row-gap: 20px;
    column-gap: 12px;
    grid-template-areas:
      "title title"
      "diagram diagram"
      "meta status"
      "thumbs thumbs"
      "compat compat"
      "cta cta";
    padding: 20px;
    border-radius: 8px;
    border: 0.3px solid #BBBBBB;
    background: #F8F9FA;
    box-shadow:
      0px 0px 1px 0px #0000000A,
      0px 2px 6px 0px #0000000A;
  }

  .part-detail__card {
    display: contents;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: 0;
  }

  .part-detail__title {
    order: 1;
    font-size: 16px;
    grid-area: title;
  }

  .part-detail__diagram {
    order: 2;
    height: 200px;
    min-height: 200px;
    padding: 12px;
    border-radius: 8px;
    grid-area: diagram;
  }

  .part-detail__meta {
    order: 3;
    font-size: 12px;
    grid-area: meta;
  }

  .part-detail__meta-num {
    min-width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .part-detail__price-row {
    order: 4;
    border: 0;
    background: transparent;
    padding: 0;
    justify-content: flex-start;
    grid-area: status;
    justify-self: start;
    align-self: center;
  }

  .part-detail__price-row--missing {
    text-align: left;
  }

  .part-detail__price {
    display: none;
  }

  .part-detail__status {
    color: #2B2B2B;
    font-size: 12px;
  }

  .part-detail__thumbs {
    order: 5;
    grid-template-columns: repeat(4, 40px);
    gap: 6px;
    grid-area: thumbs;
  }

  .part-detail__thumb {
    width: 40px;
    height: 40px;
    padding: 4px;
    border-radius: 6px;
  }

  .part-detail__compat {
    order: 6;
    grid-area: compat;
  }

  .part-detail__cta {
    order: 7;
    height: 42px;
    grid-area: cta;
  }

  .part-tabs__controls {
    gap: 10px;
    width: 100%;
  }

  .part-tabs__label {
    flex: 1;
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    border: 0.3px solid #E2E2E2;
    background: #ffffff;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.04);
    justify-content: center;
  }

  .part-tabs__icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: transparent;
    --part-tab-icon-color: #BBBBBB;
  }

  .part-tabs__icon::before {
    width: 16px;
    height: 16px;
  }

  .part-tabs__text {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .part-tabs__title,
  .part-tabs__sub {
    color: #BBBBBB;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .part-tabs__sub {
    display: none;
  }

  #part-tab-desc:checked ~ .part-tabs__controls label[for="part-tab-desc"],
  #part-tab-specs:checked ~ .part-tabs__controls label[for="part-tab-specs"] {
    background: #2B2B2B;
    border-color: #2B2B2B;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  #part-tab-desc:checked ~ .part-tabs__controls label[for="part-tab-desc"] .part-tabs__title,
  #part-tab-specs:checked ~ .part-tabs__controls label[for="part-tab-specs"] .part-tabs__title {
    color: #ffffff;
  }

  #part-tab-desc:checked ~ .part-tabs__controls label[for="part-tab-desc"] .part-tabs__icon,
  #part-tab-specs:checked ~ .part-tabs__controls label[for="part-tab-specs"] .part-tabs__icon {
    background: transparent;
    --part-tab-icon-color: #ffffff;
  }

  .part-detail__related-head {
    align-items: flex-start;
  }

  .part-detail__related-row {
    justify-content: flex-start;
    width: 100%;
  }

  .part-detail__related-link {
    display: none;
  }
}
body.diagram-lightbox-open {
  overflow: hidden;
}

.diagram-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 600;
}

.diagram-lightbox.is-open {
  display: flex;
}

.diagram-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.diagram-lightbox__panel {
  position: relative;
  width: min(96vw, 1200px);
  height: min(90vh, 900px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.diagram-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #F8F9FA;
  border-bottom: 0.3px solid #E2E2E2;
}

.diagram-lightbox__controls {
  display: inline-flex;
  gap: 8px;
}

.diagram-lightbox__controls--nav {
  gap: 6px;
}

.diagram-lightbox__control,
.diagram-lightbox__close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  background: #ffffff;
  color: #2B2B2B;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.diagram-lightbox__control[data-carousel] {
  font-size: 16px;
  line-height: 16px;
}

.diagram-lightbox__control:hover,
.diagram-lightbox__close:hover {
  border-color: #EC1827;
  color: #EC1827;
}

.diagram-lightbox__control[disabled],
.diagram-lightbox__control.is-disabled {
  border-color: #E2E2E2;
  color: #BBBBBB;
  cursor: default;
  opacity: 0.6;
}

.diagram-lightbox__control[disabled]:hover,
.diagram-lightbox__control.is-disabled:hover {
  border-color: #E2E2E2;
  color: #BBBBBB;
}

.diagram-lightbox__viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  cursor: grab;
  touch-action: none;
}

.diagram-lightbox__viewport.is-dragging {
  cursor: grabbing;
}

.diagram-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform 120ms ease;
}

.parts-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  --parts-num-size: 29px;
  --parts-num-gap: 10px;
}

.parts-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  height: 30px;
  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  background: #F8F9FA;
  color: #2B2B2B;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  margin-bottom: 12px;
  margin-top: 12px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  position: relative;
  white-space: nowrap;
}

.parts-toggle::after {
  content: "";
  position: static;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  transform-origin: center;
  border-right: 1.5px solid #BBBBBB;
  border-bottom: 1.5px solid #BBBBBB;
  transition: transform 160ms ease, border-color 120ms ease;
  pointer-events: none;
  margin-left: auto;
}

.parts-toggle.is-active {
  background: #2B2B2B;
  border-color: #2B2B2B;
  color: #ffffff;
}

.parts-toggle.is-active::after {
  transform: rotate(225deg);
  border-color: #ffffff;
}

.parts-table__head,
.parts-table__row {
  display: grid;
  grid-template-columns: var(--parts-num-size) minmax(0, 1fr);
  gap: var(--parts-num-gap);
  align-items: center;
}

.parts-table__head {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  color: #2B2B2B;

  height: 44px;
  border-radius: 8px;
  border: 0.3px solid #E2E2E2;
  background: #F8F9FA;
}

.parts-table__row {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: #2B2B2B;
}

.parts-table__card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 90px minmax(110px, max-content);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 0.3px solid #E2E2E2;
  background: #FFFFFF;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.parts-table__card--search {
  grid-template-columns: 64px minmax(0, 1fr) minmax(180px, 240px) 90px minmax(110px, max-content);
}

.parts-table__card--head {
  background: none;
  border-radius: 0px;
  border: 0;
  transition: none;
}

.parts-table__row .parts-table__card {
  cursor: pointer;
}

.parts-table__row .parts-table__card:hover {
  border-color: rgba(236, 24, 39, 0.45);
  box-shadow: 0 8px 16px -12px rgba(236, 24, 39, 0.4);
  transform: translateY(-1px);
}

.parts-table__row .parts-table__card:focus-visible {
  outline: 2px solid rgba(236, 24, 39, 0.35);
  outline-offset: 2px;
}

.parts-table__row.is-missing {
  display: none;
}

.parts-table.is-show-missing .parts-table__row.is-missing {
  display: grid;
}

.parts-table__cell--photo {
  display: flex;
  align-items: flex-start;
  justify-content: left;
}

.parts-table__cell--compat {
  color: #8C8C8C;
}

.parts-table__head .parts-table__cell--compat {
  color: #2B2B2B;
}

.parts-table__photo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 0.3px solid #E2E2E2;
  background: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parts-table__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.parts-table__cell--num {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8C8C8C;
  width: var(--parts-num-size);
}

.parts-table__head .parts-table__cell--num {
  justify-content: center;
  color: #2B2B2B;
}

.parts-table__num {
  width: 29px;
  height: 30px;
  border-radius: 6px;
  border: 0.3px solid #BBBBBB;
  background: #FFFFFF;
  color: #2B2B2B;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: help;
  position: relative;
  margin-left: 0;
}

.parts-table__num:focus-visible {
  outline: 2px solid rgba(236, 24, 39, 0.35);
  outline-offset: 2px;
}

.parts-table__num::before,
.parts-table__num::after {
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease, visibility 120ms ease;
  pointer-events: none;
}

.parts-table__num::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 143px;
  height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: #ffffff;
  color: #2B2B2B;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 8px 16px -2px rgba(27, 33, 44, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.parts-table__num::before {
  content: "";
  position: absolute;
  right: calc(100% + 2px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(27, 33, 44, 0.12));
  z-index: 1;
}

.parts-table__num:hover::before,
.parts-table__num:hover::after,
.parts-table__num:focus::before,
.parts-table__num:focus::after,
.parts-table__num:focus-visible::before,
.parts-table__num:focus-visible::after,
.parts-table__num:active::before,
.parts-table__num:active::after {
  opacity: 1;
  visibility: visible;
}
.parts-table__cell--price {
  text-align: right;
  white-space: nowrap;
  padding-right: 12px;
}

.parts-table__cell--price.is-missing {
  color: #BBBBBB;
}

.parts-table__cell--action {
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

.parts-table__btn {
  border: 0;
  background: #EC1827;
  color: #ffffff;
  border-radius: 6px;
  height: 42px;
  padding: 14px 22px;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.parts-table__btn.is-in-cart {
  background: #FFFFFF;
  color: #EC1827;
  border: 1px solid rgba(236, 24, 39, 1);
}

.parts-table__btn.is-in-cart:hover {
  filter: none;
  background: rgba(236, 24, 39, 0.06);
}

.parts-table__btn:disabled {
  background: #E2E2E2;
  color: #8C8C8C;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.parts-table__btn:hover {
  filter: brightness(0.95);
}

.parts-table__btn:active {
  transform: translateY(1px);
  filter: brightness(0.90);
}

.parts-table__row--skeleton {
  pointer-events: none;
}

.parts-table__row--skeleton .parts-table__card {
  position: relative;
  overflow: hidden;
  background: #F8F9FA;
  border-color: #E2E2E2;
}

.parts-table__row--skeleton .parts-table__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(100%);
  animation: bike-media-shimmer 1.4s ease-in-out infinite;
}

.parts-table__skeleton-line {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: #E2E2E2;
  width: 100%;
}

.parts-table__skeleton-line--short {
  width: 70%;
}

.parts-table__skeleton-box {
  display: inline-block;
  border-radius: 6px;
  background: #E2E2E2;
}

.parts-table__skeleton-box--num {
  width: 29px;
  height: 30px;
}

.parts-table__skeleton-box--photo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.parts-table__skeleton-box--btn {
  width: 110px;
  max-width: 100%;
  height: 32px;
  border-radius: 6px;
}

.parts-table__empty {
  padding: 12px 14px;
  border-radius: 8px;
  border: 0.3px solid #E2E2E2;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: #BBBBBB;
}

.bike-card {
  height: 185px;

  background: #FFFFFF;
  border: 0.3px solid #BBBBBB;
  border-radius: 12px;

  box-shadow:
    0 0 1px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 10px 20px rgba(0, 0, 0, 0.04);

  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  text-decoration: none;
  color: inherit;

  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.bike-card:hover {
  box-shadow:
    0px 10.14px 20.27px 0px #0000000A,
    0px 1.01px 5.07px -4.05px #1B1B1B24,
    0px 1px 13.74px -6.08px #2525253B;
  transform: translateY(-1px);
}

.bike-card:active {
  transform: translateY(0);
}

.bike-card__media {
  width: 100%;
  height: 120px; 
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bike-card__media::before,
.bike-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.bike-card__media::before {
  background: #f2f2f2;
  z-index: 0;
}

.bike-card__media::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(100%);
  animation: bike-media-shimmer 1.4s ease-in-out infinite;
  z-index: 1;
}

.bike-card__media.is-loaded::before,
.bike-card__media.is-loaded::after {
  opacity: 0;
}

.bike-card__media.is-loaded::after {
  animation: none;
}

.bike-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  display: block;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 200ms ease;
}

.bike-card__media.is-loaded img {
  opacity: 1;
}

@keyframes bike-media-shimmer {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.bike-card__title{
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;   
  color: #2B2B2B;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;  
  overflow: hidden;
}


/* Футер */
.site-footer {
  background: #2B2B2B; /* General/Black */
  color: rgba(255, 255, 255, 0.90);
  margin-top: auto;
}

/* Внутренняя “высота 266” в реальности обеспечивается паддингами + контентом */
.site-footer__inner {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 40px; /* Figma gap: 40 */
}

/* Верхняя зона: слева навигация, справа логотип */
.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 205px; /* Figma gap: 205 (между nav и logo) */
}

/* Блок “навигация футер” */
.site-footer__nav {
  display: flex;
  align-items: flex-start;
  gap: 120px; /* на вашем скрине в Figma для nav: gap 120 */
  min-width: 0;
}

/* Колонка */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-col__title {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 14x;
  line-height: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 6px;
}

/* Ссылки футера */
.footer-link {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0;

  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  width: fit-content;
}

.footer-link:hover {
  color: #EC1827;
}

.footer-link:active {
  color: rgba(255, 255, 255, 0.90);
}

.footer-link:focus-visible {
  outline: 2px solid rgba(236, 24, 39, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-text {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.70);
  max-width: 240px; /* чтобы адрес красиво переносился */
}

/* Лого справа */
.site-footer__brand {
  flex: 0 0 auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer__logo {
  display: block;
  width: 160px;     /* при необходимости подгоните под макет */
  height: auto;
}

/* Нижняя зона */
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-link--policy {
  color: rgba(255, 255, 255, 0.60);
}

.footer-copy {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  color: rgba(255, 255, 255, 0.60);
}

/* Адаптив: чтобы не ломалось на узких */
@media (max-width: 1024px) {
  .site-footer__top {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__nav {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-text {
    max-width: 320px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .dd__menu{
    width: 100%;
  }

  .site-header__top {
    display: block;
  }

  .site-header__main {
    border-radius: 12px;
  }

  .site-header__main-row {
    height: auto;
    flex-wrap: wrap;
    row-gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    order: 1;
    width: 130px;
    height: 32px;
    padding-top: 1px;
    padding-bottom: 1px;
  }

  .brand__logo {
    height: 26px;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
    gap: 10px;
    height: auto;
  }

  .header-controls {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    height: auto;
    padding-top: 10px;
    border-top: 1px solid #E2E2E2;
    gap: 8px;
  }

  .header-btn {
    height: 34px;
    padding: 7px 12px;
    font-size: 11px;
    line-height: 11px;
  }

  .header-btn__icon {
    width: 14px;
    height: 14px;
  }

  .header-action__icon {
    width: 15px;
    height: 15px;
  }

  .header-action__label {
    font-size: 10px;
    line-height: 10px;
  }

  .header-action__badge {
    top: 0;
    left: 24px;
    height: 10px;
    min-width: 10px;
    font-size: 8px;
    line-height: 10px;
  }

  .header-search {
    height: 34px;
    flex: 1 1 320px;
    min-width: 280px;
  }

  .header-search__input {
    height: 34px;
    font-size: 11px;
    line-height: 11px;
    padding: 7px 10px 7px 30px;
  }

  .header-search__input::placeholder {
    font-size: 11px;
  }

  .header-search__icon {
    width: 16px;
    height: 16px;
    left: 8px;
  }

  .header-search__submit {
    display: none;
  }

  .catalog-grid {
    grid-template-columns: 240px 1fr;
    column-gap: 16px;
  }

  .catalog-filters__inner {
    padding: 16px 16px 100px;
    gap: 14px;
  }

  .filter-field {
    gap: 10px;
  }

  .filter-field__label {
    font-size: 12px;
    line-height: 12px;
  }

  .dd {
    width: 100%;
  }

  .dd__control {
    width: 100%;
    height: 36px;
    font-size: 11px;
    line-height: 11px;
    padding: 10px 28px 10px 10px;
  }

  .text-input {
    width: 100%;
    height: 36px;
    font-size: 11px;
    line-height: 11px;
    padding: 10px 10px;
  }

  .dd__chevron {
    width: 8px;
    height: 8px;
  }

  .popular-section {
    margin-bottom: 32px;
  }

  .popular_title {
    font-size: 16px;
    line-height: 16px;
    margin-bottom: 14px;
  }

  .popular-list {
    gap: 10px;
  }

  .popular-item {
    height: 34px;
    padding: 8px 14px;
    font-size: 12px;
    line-height: 12px;
  }
}

@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-skeleton-card:nth-child(n + 3) {
    display: none;
  }

  .part-diagram {
    height: 360px;
  }

  .parts-table__card {
    grid-template-columns: 56px minmax(0, 1fr) 80px minmax(110px, max-content);
  }
}

@media (max-width: 768px) {
  .breadcrumbs{
    display: none;
  }
  .site-header {
    top: 0;
  }

  .mobile-menu {
    display: block;
  }

  .site-header__top {
    display: none;
  }

  .site-header__container {
    padding-inline: 16px;
  }

  .site-header__main-row {
    height: 100px;
    padding-top: 0;
    padding-bottom: 0;
    gap: 12px;
  }

  .brand {
    width: 152px;
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .header-controls {
    display: none;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
    gap: 10px;
  }

  .part-diagram {
    height: 260px;
  }

  .header-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F2F2F2;
    flex-direction: row;
    gap: 0;
  }

  .header-action--menu {
    display: inline-flex;
  }

  .header-action__label {
    display: none;
  }

  .header-action__icon {
    width: 16px;
    height: 16px;
  }

  .site-header__main .header-action__icon,
  .mobile-menu__header .header-action__icon {
    filter: grayscale(1) brightness(0);
  }

  .header-action__badge {
    top: 4px;
    left: 26px;
  }

  .container {
    padding-inline: 16px;
  }

  .page-card {
    margin-top: 16px;
    margin-bottom: 16px;
    box-shadow: none;
  }

  .page-card__content {
    padding: 0;
  }
  .messengers__btn{
    width: 40px;
    height: 40px;
  }
  .messengers{
    height: 40px;
  }

  .page-title {
    margin-bottom: 20px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
    column-gap: 0;
    min-height: auto;
  }

  .catalog-filters__inner {
    position: static;
    top: auto;
    padding: 16px;
    gap: 16px;
  }

  .catalog-hint {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-hint__action {
    width: 100%;
    justify-content: center;
  }

  .parts-table {
    --parts-num-gap: 8px;
  }

  .dd--mobile {
    display: block;
  }

  .filter-list {
    display: none;
  }

  .parts-table__head {
    display: grid;
    height: 36px;
    padding: 0 12px 0 16px;
    font-size: 12px;
    line-height: 12px;
    align-items: center;
  }

  .parts-table__head > .parts-table__cell {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .parts-table__head .parts-table__card--head {
    padding: 0;
    gap: 0;
    align-items: center;
  }

  .parts-table__row {
    grid-template-columns: var(--parts-num-size) minmax(0, 1fr);
    align-items: center;
  }

  .parts-table__cell--num {
    align-self: center;
  }

  .parts-table__card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .parts-table__card--search {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
  }

  .parts-table__head .parts-table__cell--compat {
    display: none;
  }

  .parts-table__card--search .parts-table__cell--compat {
    grid-column: 2 / -1;
    grid-row: 2;
    font-size: 11px;
    color: #8C8C8C;
  }

  .parts-table__cell--price {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    padding-right: 0;
    font-weight: 600;
  }

  .parts-table__cell--photo {
    grid-row: 1;
  }

  .parts-table__photo {
    width: 42px;
    height: 42px;
  }

  .parts-table__cell--action {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  .parts-table__card--search .parts-table__cell--action {
    grid-row: 3;
  }

  .parts-table__btn {
    width: 100%;
  }

  .parts-table__num::after {
    left: calc(100% + 10px);
    right: auto;
  }

  .parts-table__num::before {
    left: calc(100% + 2px);
    right: auto;
    border-right-color: transparent;
    border-left-color: #ffffff;
  }

  .filter-field {
    gap: 12px;
  }

  .dd,
  .dd__control,
  .text-input {
    width: 100%;
  }

  .dd__control {
    height: 38px;
    font-size: 12px;
    line-height: 12px;
    padding: 10px 28px 10px 10px;
  }

  .text-input {
    height: 38px;
    font-size: 12px;
    line-height: 12px;
    padding: 10px 10px;
  }

  .dd__menu {
    width: 100%;
  }

  .dd__option {
    font-size: 12px;
    line-height: 12px;
  }

  .popular-section {
    margin-bottom: 24px;
    display: none;
  }

  .popular_title {
    font-size: 16px;
    line-height: 16px;
    margin-bottom: 12px;
  }

  .popular-list {
    gap: 10px;
  }

  .popular-item {
    height: 32px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 12px;
  }

  .catalog-section__title {
    margin-bottom: 16px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-skeleton-card {
    height: 170px;
  }

  .bike-card {
    height: 170px;
    padding: 6px;
  }

  .bike-card__media {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 768px) {

  .top-nav {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-actions__label {
    display: none;
  }
}

@media (min-width: 769px) {
  .header-action--menu {
    display: none;
  }
}
