/* Products page — Figma node 1:259 */

.products-tabs {
  background: var(--purple);
  min-height: 80px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-hero--video .page-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.products-tabs::-webkit-scrollbar {
  display: none;
}

.products-tabs__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  min-width: 100%;
  min-height: 80px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
  box-sizing: border-box;
  scroll-padding-inline: 24px;
}

.products-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 80px;
  padding: 0 12px 8px;
  border: none;
  background: none;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  line-height: 26px;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.9;
}

.products-tab:hover {
  opacity: 1;
}

.products-tab.is-active {
  font-weight: 700;
  opacity: 1;
}

.products-tab.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(146px, calc(100% - 12px));
  height: 5px;
  background: var(--white);
}

.products-catalog {
  padding: clamp(48px, 5vw, 70px) 0 clamp(56px, 6vw, 80px);
}

.products-catalog__title {
  margin: 0 0 clamp(36px, 4vw, 48px);
  text-align: center;
  line-height: 64px;
  color: var(--purple);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 24px;
  align-items: start;
}

.products-card {
  min-width: 0;
  width: 100%;
}

.products-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.products-card__link:hover .products-card__media {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.products-card__link:focus-visible .products-card__media {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.products-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 196 / 210;
  height: auto;
  flex: 0 0 auto;
  padding: 0;
  background: #f5f7fa;
  border: 1px solid #a3aab4;
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.products-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.4s ease, transform 0.45s ease;
}

.products-card__link:hover .products-card__media img,
.products-card__link:focus-visible .products-card__media img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.03);
}

.products-card__label {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 0 4px;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.products-card__label--multiline {
  line-height: 22px;
}

.products-card__label-line {
  display: block;
}

.products-card__status {
  display: block;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
}

.products-why {
  padding: 0 0 clamp(64px, 7vw, 88px);
}

.products-why__panel {
  width: min(1516px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(48px, 5vw, 70px) clamp(20px, 3vw, 42px) clamp(40px, 4vw, 64px);
  background: var(--teal);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}

.products-why__title {
  margin: 0 0 clamp(36px, 4vw, 48px);
  text-align: center;
  line-height: 64px;
}

.products-why__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
}

.products-why__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.products-why__icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.products-why__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.products-why__label {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  padding: 0 2px;
  box-sizing: border-box;
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 700;
  line-height: 1.27;
  text-align: center;
  color: var(--white);
  overflow: visible;
}

.products-why__label--multiline {
  line-height: 1.27;
}

.products-why__label-line {
  display: block;
}

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

  .products-why__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

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

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

  .products-catalog__title,
  .products-why__title {
    line-height: 1.15;
  }
}

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

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

  .products-tab {
    font-size: 15px;
    padding-inline: 10px;
  }
}

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

  .products-card__label {
    font-size: 13px;
    line-height: 1.3;
  }

  .products-why__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

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