.product-hero,
.products-page {
  font-family: Arial, Helvetica, sans-serif;
}

.product-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: #26334b;
  background-image: var(--product-hero-image);
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.product-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 45, 69, 0.46);
}

.product-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding-top: 77px;
}

.product-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 69px;
}

.product-breadcrumb {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.product-breadcrumb a:hover,
.product-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.products-page {
  background: #ffffff;
}

.products-page__layout {
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  gap: 57px;
  align-items: start;
  padding-top: 30px;
  padding-bottom: 83px;
  position: relative;
}

.product-sidebar {
  width: 100%;
  padding: 0px 10px 20px;
  background: #ffffff;
  position: sticky;
  left: 0;
  top: 100px;
}

.product-sidebar__list,
.product-sidebar__children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-sidebar__item {
  position: relative;
}

.product-sidebar__row {
  position: relative;
  min-height: 53px;
  display: flex;
  align-items: flex-start;
}

.product-sidebar__row::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #0567cc;
  transition: all 0.6s;
}

.product-sidebar__row > a {
  min-width: 0;
  flex: 1;
  padding: 14px 36px 14px 0;
  color: #312e39;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  transition: color 180ms ease;
}

.product-sidebar__row > a:hover,
.product-sidebar__row > a:focus-visible
 {
  color: #0567cc;
}

.product-sidebar__item.is-active > .product-sidebar__row > a,
.product-sidebar__item.is-expanded > .product-sidebar__row > a{
   color: #0567cc;
   font-weight: 600;
}

.product-sidebar__item:hover > .product-sidebar__row::after {
  width: 100%;
}

.product-sidebar__item.is-expanded > .product-sidebar__row::after {
  width: 100%;
}

.product-sidebar__toggle {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  color: #858a93;
}

.product-sidebar__toggle span {
  display: block;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
}

.product-sidebar__toggle:focus-visible {
  outline: 2px solid #0567cc;
  outline-offset: 1px;
}

.product-sidebar__children {
  padding: 8px 0 10px 14px;
}

.product-sidebar__children:empty {
  padding: 0;
}

.product-sidebar__children[hidden] {
  display: none;
}

.product-sidebar__children a {
  position: relative;
  display: block;
  padding: 8px 14px;
  color: #666666;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.product-sidebar__children a::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 0;
  width: 5px;
  height: 1px;
  background: #a8acb2;
}

.product-sidebar__children a:hover,
.product-sidebar__children a:focus-visible,
.product-sidebar__children a.is-active {
  color: #0567cc;
}

.products-page__main {
  min-width: 0;
}

.products-page__header h1 {
  margin: 0;
  color: #222222;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

.products-page__header p {
  margin: 20px 0 0;
  color: #666666;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  gap: 30px 25px;
  margin-top: 49px;
}

.products-grid--with-intro {
  margin-top: 9px;
}

.products-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  background: #ffffff;
}

.products-card > a {
  display: block;
  height: 100%;
}

.products-card__image {
  display: block;
  width: 100%;
  height: 338px;
  overflow: hidden;
  background: #ffffff;
}

.products-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms var(--ease);
}

.products-card h2 {
  height: 70px;
  margin: 0;
  padding: 12px 14px;
  overflow: hidden;
  color: #333333;
  transition: color 240ms var(--ease);
  font-family: 'CustomFont', 'CustomFont', Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.products-card:hover .products-card__image img,
.products-card:focus-within .products-card__image img {
  transform: scale(1.035);
}

.products-card:hover h2,
.products-card:focus-within h2 {
  color: #0567cc;
}

.products-card:focus-within {
  outline: 2px solid #0567cc;
  outline-offset: 2px;
}

.products-empty {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 49px;
  border: 1px solid #e3e3e3;
  color: #666666;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 16px;
}

@media (max-width: 1499px) {
  .products-page__layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 36px;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-card {
    height: auto;
    min-height: 0;
  }

  .products-card__image {
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 1199px) {
  .product-hero {
    height: 260px;
  }

  .product-hero__content {
    padding-top: 64px;
  }

  .product-hero h1 {
    font-size: 48px;
    line-height: 58px;
  }

  .products-page__layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 70px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-hero {
    height: 210px;
  }

  .product-hero__content {
    padding-top: 48px;
  }

  .product-hero h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 44px;
    overflow-wrap: anywhere;
  }

  .product-breadcrumb {
    min-height: 30px;
    font-size: 13px;
  }

  .products-page__layout {
    display: block;
    padding-top: 24px;
    padding-bottom: 54px;
  }

  .product-sidebar {
    margin-bottom: 30px;
    padding: 0;
  }

  .product-sidebar__list {
    border-top: 1px solid #e3e3e3;
  }

  .product-sidebar__row {
    border-bottom-color: #e3e3e3;
  }

  .product-sidebar__row > a {
    padding-left: 4px;
  }

  .product-sidebar__toggle {
    right: 2px;
  }

  .products-page__header h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .products-page__header p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 27px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 28px;
  }

  .products-card h2 {
    height: 62px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 22px;
    -webkit-line-clamp: 2;
  }

  .products-empty {
    min-height: 220px;
    margin-top: 28px;
  }
}

@media (max-width: 479px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-card__image img {
    transition: none;
  }
}

@media (max-width: 767px) {
  .product-hero { height: 180px; }
  .product-hero__content { padding-top: 38px; }
  .product-hero h1 { font-size: 30px; line-height: 38px; }
  .products-page__layout { padding-top: 20px; padding-bottom: 42px; }
  .product-sidebar { margin-bottom: 24px; }
  .products-page__header h1 { font-size: 21px; line-height: 29px; }
  .products-page__header p { margin-top: 10px; line-height: 24px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin-top: 22px; }
  .products-card h2 { height: 58px; padding: 8px 7px; font-size: 13px; line-height: 20px; }
}

@media (max-width: 479px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
