/* Главная: основные изделия */

/* Экран 4 — основные изделия */
.products { display: flex; flex-direction: column; gap: 3.75rem; padding: .6875rem 3.75rem 5rem; }
.products__top { display: flex; align-items: flex-start; gap: 2.5625rem; }
.products__main { flex: none; width: 71.3125rem; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 2.5rem; }
.products__panels { width: 67.6875rem; max-width: 100%; display: grid; }
/* изображение изделия (ПК и планшет): по блоку на изделие, виден блок активной вкладки */
.products__visuals { flex: none; display: grid; }
.products__visual { grid-area: 1 / 1; animation: fade-in .3s ease both; }
.products__visual[hidden] { display: none; }
/* запасная картинка видна, если перед ней нет видео (у элемента нет ролика) */
.products__photo--video + .products__photo--static { display: none; }
@media (prefers-reduced-motion: reduce) {
  .products__photo--video { display: none; }
  .products__photo--video + .products__photo--static { display: block; }
}
.products__top { position: relative; z-index: 0; }
.products__top::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 70.7rem;
  top: 1.4rem;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(231, 124, 28, .18), rgba(231, 124, 28, 0) 72%);
  pointer-events: none;
}
.products__photo {
  flex: none;
  width: 33.628rem;
  height: 42.819rem;
  object-fit: contain;
  filter: drop-shadow(0 0 6.25rem rgba(231, 124, 28, .32));
}
/* фото ракеты внутри панели — только для мобильного макета */
.product__photo-mob { display: none; }
.product__shot { display: contents; }
.product__arrow { display: none; }
.product { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; animation: fade-in .3s ease both; }
.product[hidden] { display: flex; visibility: hidden; pointer-events: none; }
.product__head { display: flex; align-items: baseline; gap: 1.375rem; }
.product__name,
.product__sep {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
}
.product__type { font-size: 1.625rem; line-height: 1.3; }
.product__lead { margin-top: 1.375rem; width: 65.8125rem; max-width: 100%; font-size: 1.25rem; line-height: 1.2; }
.product__specs-title { margin-top: 3.75rem; font-size: 1.625rem; line-height: 1.875rem; font-weight: 300; }
.product__empty { margin-top: 1.25rem; font-size: 1.25rem; line-height: 1.2; opacity: .7; }
.product__rule { width: 100%; margin-top: 1.875rem; height: 2px; background: var(--white); }
.product .product__btn { margin-top: 1.875rem; }
@media (min-width: 1280px) {
  .product .product__btn { margin-top: auto; }
  .product > :nth-last-child(2) { margin-bottom: 1.875rem; }
}
.specs {
  margin-top: 1.875rem;
  display: grid;
  grid-template-columns: 14.25rem 14.25rem 20.75rem;
  column-gap: 5rem;
  row-gap: 1.25rem;               /* прежний зазор терм → значение */
}
.specs__item { display: contents; }
.specs__term {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* текст сверху, линия по низу ячейки */
  font-size: 1.25rem;
  line-height: 1.875rem;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 2px solid var(--orange);
  padding-bottom: .625rem;
}
.specs__value {
  grid-row: 2;
  align-self: start;
  margin: 0;
  font-size: 2.5rem;
  line-height: 2.5rem;   /* было 3.125rem — по замечанию заказчика межстрочное ужато */
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
}
.specs__value-alt { display: block; margin-top: .625rem; opacity: .5; }
/* Табы изделий */
.product-tabs { display: flex; gap: 1.9375rem; width: 117rem; max-width: 100%; }
.product-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.product-tab__line { height: 2px; background: var(--white); transition: background-color .2s ease; }
.product-tab:hover .product-tab__line,
.product-tab:focus-visible .product-tab__line { background: var(--orange); }
.product-tab__label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.75rem;
  padding: 0 .625rem;
  background: rgba(253, 255, 254, .3);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 2.5rem;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .2s ease;
}
.product-tab:hover .product-tab__label,
.product-tab:focus-visible .product-tab__label { background: var(--orange); }
.product-tab.is-active .product-tab__line { background: var(--orange); }
.product-tab.is-active .product-tab__label { background: var(--orange); font-weight: 600; }

/* Адаптив (< 1280 px — раскладка вне макета, */
@media (max-width: 1279px) {
  .products { padding-left: 1rem; padding-right: 1rem; }
  /* Изделия — текст слева, ракета справа, табы в один ряд */
  .products { padding-top: 1rem; padding-bottom: 2.5rem; gap: 1.5rem; }
  .products__top { flex-direction: row; align-items: flex-start; gap: 1rem; }
  .products__top::after { display: none; }
  .products__main { flex: 1 1 auto; min-width: 0; width: auto; gap: 1rem; }
  .products__panels { width: 100%; }
  .products__visuals { flex: 0 0 26%; width: 26%; }
  .products__photo { width: 100%; height: auto; }
  .product__head { flex-wrap: wrap; gap: .625rem; }
  .product__name,
  .product__sep { font-size: 1.25rem; }
  .product__type { font-size: .9375rem; }
  .product__lead { width: auto; margin-top: .75rem; font-size: .8125rem; line-height: 1.4; }
  .product__specs-title { margin-top: 1.25rem; font-size: 1rem; line-height: 1.3; }
  .specs { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
  .specs__item { display: flex; flex-direction: column; flex: 1 1 calc(50% - .5rem); width: auto; min-width: 0; gap: .625rem; }
  .specs__term { display: block; }
  .specs__item--wide { flex: 0 0 100%; width: 100%; }
  .specs__term { font-size: .75rem; line-height: 1.2; padding-bottom: .5rem; }
  .specs__value { font-size: 1.125rem; line-height: 1.3; }
  .specs__value-alt { margin-top: .25rem; }
  .product__rule { margin-top: 1.25rem; }
  .product .product__btn { margin-top: 1rem; height: 2.5rem; font-size: .8125rem; }
  .product-tabs { flex-wrap: nowrap; gap: .375rem; }
  .product-tab { flex: 1 1 0; min-width: 0; gap: .375rem; }
  .product-tab__label { height: 2.75rem; padding: 0 .25rem; font-size: .625rem; line-height: 1.15; }
}

/* Шапка планшета — мобильная: бургер слева, */
@media (max-width: 767px) {
  .product .product__btn { width: 100%; max-width: none; height: 48px; font-size: 14px; }
  /* --- экран 4: основные изделия --- */
  .products { padding: 1px 20px 40px; gap: 20px; }
  .products__top { flex-direction: column; align-items: stretch; gap: 20px; }
  .products__main { width: 100%; gap: 20px; }
  .products__panels { width: 100%; }
  .products__visuals { display: none; }
  /* отступы вокруг ракеты ужаты по замечанию заказчика (было 22 сверху и 40 снизу) */
  .product__photo-mob { display: block; width: 142px; height: 172px; margin: 10px auto 0; object-fit: contain; }
  .product__shot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    gap: 10px;
    margin-top: 10px;
  }
  .product__photo-mob { margin: 0; }
  .product__arrow {
    display: block;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent no-repeat center / 100% 100%;
    cursor: pointer;
    transition: transform .15s ease;
  }
  .product__arrow--prev { background-image: url(../../../img/arrow-left.svg); }
  .product__arrow--next { background-image: url(../../../img/arrow-right.svg); }
  .product__arrow:active { transform: scale(.94); }
  /* статичный рендер — если у изделия нет ролика и при «уменьшенной анимации» (блок ниже) */
  .product__photo-mob--video + .product__photo-mob--static { display: none; }
  .product[hidden] { display: none; }
  /* панель при переключении вкладок показывается сразу, без fade-in */
  .product { animation: none; }
  .product__head { flex-wrap: wrap; align-items: baseline; gap: 10px; }
  .product__name { font-size: 20px; line-height: 36px; }
  .product__sep { font-size: 26px; line-height: 30px; }
  .product__type { font-size: 18px; line-height: 30px; font-weight: 300; }
  .product__lead { width: auto; margin-top: 20px; font-size: 14px; line-height: 20px; }
  .product__specs-title { margin-top: 20px; font-size: 20px; line-height: 30px; font-weight: 400; }
  .product__empty { font-size: 14px; line-height: 20px; }
  .specs { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); column-gap: 20px; row-gap: 0; margin-top: 20px; }  /* колонки по 150, на экране уже 360 сужаются */
  .specs__item { display: contents; }
  .specs__term { display: flex; padding-bottom: 10px; font-size: 14px; line-height: 14px; border-bottom-width: 1px; }
  .specs__value { margin-top: 10px; font-size: 20px; line-height: 40px; font-weight: 400; }
  .specs__item--wide .specs__term { grid-area: 3 / 1 / 4 / 3; margin-top: 17px; line-height: 24px; }
  .specs__item--wide .specs__value { grid-area: 4 / 1 / 5 / 3; }
  /* в макете между «4,11 м» и приглушёнными значениями зазор 10 (node 840:3966) */
  .specs__value-alt { margin-top: 10px; line-height: 30px; }
  .product__rule { margin-top: 20px; height: 1px; }
  .product .product__btn { margin-top: 20px; }
  /* табы — горизонтальная лента с прокруткой, плашка 155×48 */
  .product-tabs {
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .product-tab { flex: 0 0 155px; min-width: 155px; gap: 9px; scroll-snap-align: start; }
  .product-tab__line { height: 1px; }
  .product-tab__label { height: 48px; padding: 0 8px; font-size: 14px; line-height: 20px; border-radius: 0; }
  /* активный таб в мобильном макете — Bold (на десктопе Semibold) */
  .product-tab.is-active .product-tab__label { font-weight: 700; }
}

/* Внутренние страницы: мобильная версия */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .product__photo-mob--video { display: none; }
  .product__photo-mob--video + .product__photo-mob--static { display: block; }
}
