:root {
  --primary-color: #00367c;
  --base-text-color: #303030;
  --white-color: #ffffff;
  --gray-color: rgb(48 48 48 / 0.24);
  --black-50: rgb(0 0 0 / 0.5);
  --red-color: #f51d05;
  
  /* Расширенная палитра для живости */
  --primary-light: #0052b4;
  --primary-dark: #001f3f;
  --accent-glow: rgba(245, 29, 5, 0.15);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.16);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--base-text-color);
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  padding-top: 64px; /* Отступ для фиксированного хедера на мобильных */
}

@media (width >= 980px) {
  body {
    padding-top: 0; /* Убираем отступ на десктопе, где sticky работает нормально */
  }
}

.noScroll {
  overflow: hidden;
}

/* Stronger page lock when applied to html */
html.noScroll {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

/* Improve inner scrolling behavior */
.product__description {
  touch-action: pan-y;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white-color);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header__container {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: var(--white-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition-base);
}

.header__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px; /* Увеличенный размер на мобильных */
  transition: transform var(--transition-base), filter var(--transition-base);
  will-change: transform;
}

.header__logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 2px 4px rgba(0, 54, 124, 0.2));
}

.header__button {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  font-size: 0;
  background-color: transparent;
  border: none;
}

.header__button::before,
.header__button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--base-text-color);
  border-radius: 2px;
  transition-property: translate, transform;
  transition-duration: 250ms;
  transition-timing-function: ease;
}

.header__button::before {
  translate: 0 -4px;
  transform: rotate(0) scaleX(1);
  transition-delay: 250ms, 0ms;
}

.header__button::after {
  translate: 0 4px;
  transform: rotate(0) scaleX(1);
  transition-delay: 250ms, 0ms;
}

.open.header__button::before {
  translate: 0 0;
  transform: rotate(45deg) scaleX(0.8);
  transition-delay: 0ms, 250ms;
}

.open.header__button::after {
  translate: 0 0;
  transform: rotate(-45deg) scaleX(0.8);
  transition-delay: 0ms, 250ms;
}

.header__wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: -1;
  width: 100%;
  padding: 4px 12px 12px;
  background-color: var(--white-color);
  transform: translateY(-100%);
  transition: 350ms ease;
  /* Mobile menu edge outline */
  border: 1px solid var(--gray-color);
  border-top: none; /* join with header */
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.header__wrapper.open {
  transform: translateY(0);
}

.header__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  display: none;
  width: 100%;
  height: 100%;
  background-color: var(--black-50);
  opacity: 0;
  animation-name: hideBackdrop;
  animation-duration: 350ms;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

.header__backdrop.open {
  display: block;
  opacity: 1;
  animation-name: showBackdrop;
}

@keyframes showBackdrop {
  0% {
    display: none;
    opacity: 0;
  }
  50% {
    display: block;
    opacity: 0;
  }
  100% {
    display: block;
    opacity: 1;
  }
}

@keyframes hideBackdrop {
  0% {
    display: block;
    opacity: 1;
  }
  50% {
    display: block;
    opacity: 0;
  }
  100% {
    display: none;
    opacity: 0;
  }
}

.menu {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-color); /* Единственная разделительная линия */
}

/* Стилизация пунктов меню в адаптиве */
.menu__list li {
  margin-bottom: 4px;
  border-radius: 8px;
  transition: background-color var(--transition-base);
}

.menu__list li:last-child {
  margin-bottom: 0;
}

/* Убран фоновый эффект при ховере на li */
.menu__list li:hover {
  background: transparent;
}

.menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__link {
  position: relative;
  display: block;
  padding: 14px 16px; /* Одинаковые отступы сверху и снизу */
  color: var(--primary-color);
  text-decoration: none !important;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  transition: all var(--transition-base);
}

.menu__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--red-color), var(--primary-color));
  border-radius: 0 4px 4px 0;
  transition: height var(--transition-base);
}

.menu__link:hover::before {
  height: 70%;
}

.menu__link:hover {
  /* Убран фоновый эффект, оставлено только подчеркивание */
  background: transparent;
}





.header__contacts {
  padding-top: 16px; /* Отступ сверху */
  margin-top: 4px;
  display: flex;
  flex-direction: column; /* Размещаем контакты вертикально */
  gap: 8px; /* Отступ между телефоном и email */
  /* Убрана вторая разделительная линия */
}

.header__link {
  position: relative;
  display: block; /* Изменено с inline-block на block для вертикального размещения */
  padding: 8px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--primary-color);
  transition: color var(--transition-base);
}

.header__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #f40601;
  transition: width 0.3s ease, left 0.3s ease;
}

.header__link:hover {
  color: var(--primary-light);
}

.header__link:hover::after {
  width: 100%;
  left: 0;
}

.slider {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  /* Фиксированная высота для выравнивания видео и картинок */
  height: auto;
}

.slider__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Видео одинаковой высоты с картинками */
.slider__video {
  width: 100%;
  height: 450px; /* Фиксированная высота для адаптива */
  object-fit: cover;
  display: block;
  object-position: center;
}

.slider__item {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__item.slider__item--active {
  position: relative;
  z-index: 0;
  opacity: 1;
}

.slider__image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
}

.slider__image img {
  display: block;
  width: 100%;
  height: 450px; /* Фиксированная высота для адаптива */
  object-fit: cover;
  object-position: center;
}

/* removed video/hero additions */

.slider__text {
  position: absolute;
  bottom: 30px;
  left: 12px;
  z-index: 1;
  width: 296px;
  margin: 0;
  padding: 16px 20px;
  font-family: Jost, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--white-color);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(8px);
  border-left: 4px solid var(--red-color);
  border-radius: 2px;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  transform: translateY(10px);
  transition: 250ms ease;
}

.slider__item--active .slider__text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 250ms;
}

.slider__controls {
  display: none;
}

.slider__dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slider__dot-button {
  width: 6px;
  height: 6px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background-color: var(--white-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  filter: drop-shadow(0px 2px 2px var(--gray-color));
  transition: all var(--transition-base);
}

.slider__dot-button:hover {
  opacity: 0.8;
  transform: scale(1.3);
}

.slider__dot--active {
  opacity: 1;
  background: linear-gradient(135deg, var(--red-color), #ff4500);
  box-shadow: 0 0 8px var(--accent-glow);
}

.features {
  padding: 16px 0;
}

.features__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  transition: transform var(--transition-base);
  border-radius: 8px;
}

.features__item > div:last-child {
  flex: 1;
  min-width: 0;
}

.features__item:hover {
  transform: translateY(-2px);
  /* Убрана фоновая заливка при ховере */
}

.features__item img {
  flex-shrink: 0;
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  transition: transform var(--transition-smooth);
  will-change: transform;
}

.features__item:hover img {
  transform: scale(1.08) rotate(2deg);
}

/* removed icon frame */
.features__item .gloss-container {
  /* Allow icon to render outside its wrapper on hover/focus without cropping */
  overflow: visible;
}

.features__name {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--primary-color);
  transition: color var(--transition-base);
  min-height: 44px; /* Фиксированная минимальная высота для выравнивания (2 строки) */
  display: flex;
  align-items: flex-start;
}

.features__item:hover .features__name {
  color: var(--primary-light);
}

.features__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
}

.about {
  position: relative;
  z-index: 1;
  color: var(--white-color);
  background-color: var(--primary-color);
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.about::before { display: none; }
.about::after { display: none; }

.about__video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.about__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about__video-overlay {
  position: absolute;
  inset: 0;
  /* Наложение тонкого градиента + легкое размытие для глубины фонового видео */
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.60) 0%,
      rgba(0, 0, 0, 0.70) 40%,
      rgba(0, 0, 0, 0.80) 100%
    );
  backdrop-filter: blur(1.5px);
}

.about__container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 12px;
}

.about__title {
  margin: 0 0 40px;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  letter-spacing: 0.2px;
  opacity: 0;
  will-change: transform, opacity;
}

/* Убрано подчеркивание у заголовка about */
.about__title::after {
  display: none;
}

.about__items {
  display: grid;
  grid-gap: 20px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.about__items li {
  padding-top: 20px;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
  border-top: 3px solid var(--red-color);
  opacity: 1; /* visible by default, no cascade reveal */
  transition: none;
}

.about__items li:hover {
  transform: none; /* no hover shift */
}

.about__wrapper {
  display: grid;
  grid-gap: 30px;
}

.about__wrapper > div {
  opacity: 0;
}

.about__caption {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.about__list {
  display: grid;
  grid-gap: 12px;
  margin: 0;
  padding-left: 25px;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Initial hidden state for animated About lists (advantages and trust) */
[data-about-four] .about__list li,
[data-about-five] .about__list li {
  opacity: 0;
  transform: translateY(8px);
}

/* Red bullets for About section lists */
.about__list {
  list-style: disc;
}

.about__list li::marker {
  color: var(--red-color);
}

.about__text {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.products {
  padding: 40px 0;
}

.promo-video {
  padding: 20px 0 0;
}

.promo-video__container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 12px;
}

.promo-video__media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.08);
}

.products__container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 12px;
}

.products__title {
  margin: 0 0 16px;
  padding: 0 12px 20px;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  color: var(--primary-color);
  position: relative;
  /* Заголовок видим сразу */
}

/* Анимированное подчеркивание заголовка Продукция */
.products__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 160px; /* Увеличена длина подчеркивания */
  height: 2px; /* Уменьшена толщина */
  background: var(--red-color);
  border-radius: 2px;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Активация анимации подчеркивания при появлении в видимой области */
.products__title--visible::after {
  transform: translateX(-50%) scaleX(1);
}

.products__list {
  display: grid;
  grid-gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.products__item {
  position: relative;
  z-index: 1;
  display: none;
  opacity: 0;
  overflow: hidden;
}

.products__item--active {
  display: block;
  animation: showProduct 350ms ease forwards;
}

.product__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 12px;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--gray-color);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.08);
}

.product__name {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}

.product__description {
  display: grid;
  grid-gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  overscroll-behavior: contain; /* Блокирует "проваливание" скролла на страницу в адаптиве */
}

/* Стили скроллбара для WebKit (Chrome, Safari, Edge) */
.product__description::-webkit-scrollbar {
  width: 8px;
  display: block;
}

.product__description::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.product__description::-webkit-scrollbar-thumb {
  background-color: rgba(244, 6, 1, 0.9);
  border-radius: 4px;
  min-height: 40px;
}

.product__description::-webkit-scrollbar-thumb:hover {
  background-color: rgba(244, 6, 1, 1);
}

.product__description p {
  margin: 0;
}

/* Firefox - скроллбар */
.product__description {
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 6, 1, 0.9) rgba(255, 255, 255, 0.2);
}

/* Скроллируемое описание для мобильных устройств от 375px до 768px */
@media (min-width: 375px) and (max-width: 767px) {
  .products__item {
    position: relative;
  }
  
  .products__item.product-active .product__description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 16px;
    padding-right: 8px;
    background: linear-gradient(to top, rgba(2,56,126,0.85) 0%, rgba(2,56,126,0.80) 100%);
    color: #fff;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; /* smooth iOS */
    z-index: 10;
    border-radius: 12px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    display: block;
    box-sizing: border-box;
    /* Синее свечение вниз */
    box-shadow: 0 8px 24px rgba(2, 56, 126, 0.6), 
                0 16px 48px rgba(2, 56, 126, 0.4),
                0 24px 64px rgba(2, 56, 126, 0.2);
  }
  
  /* Скрываем описание по умолчанию в мобильной версии */
  .products__item:not(.product-active) .product__description {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  /* Название карточки не мешает клику на изображение */
  .products__item .product__name {
    pointer-events: none;
    user-select: none;
    position: relative;
    z-index: 5;
  }
  
  /* Изображение получает все клики */
  .products__item .product__image {
    cursor: pointer;
    position: relative;
    z-index: 1;
  }
  
  /* Контейнер изображения */
  .products__item .product__image-wrapper {
    position: relative;
    z-index: 2;
  }
  
  /* Видимый скроллбар для мобильных */
  .products__item.product-active .product__description::-webkit-scrollbar {
    width: 8px;
    display: block !important;
  }
  
  .products__item.product-active .product__description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }
  
  .products__item.product-active .product__description::-webkit-scrollbar-thumb {
    background-color: rgba(244, 6, 1, 0.9);
    border-radius: 4px;
  }
  
  /* Firefox */
  .products__item.product-active .product__description {
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 6, 1, 0.9) rgba(255, 255, 255, 0.2);
  }

  /* Soften features icon animation on mobile */
  .features__item:hover img,
  .features__item:focus img {
    transform: scale(1.03) rotate(0deg);
  }
}

.products__pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 0;
}

@media (max-width: 767px) {
  /* Ensure softened features icon animation across all small widths */
  .features__item:hover img,
  .features__item:focus img {
    transform: scale(1.03) rotate(0deg);
  }

  /* Add light rotation on tap for achievements icons */
  .features__item:active img {
    transform: scale(1.03) rotate(10deg);
  }

  /* Larger headings for achievements on mobile */
  .features__name {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 2px; /* reduce space above features__text */
  }

  /* About section: shorter centered red separators on mobile */
  .about__items li {
    border-top: none; /* remove full-width line */
    padding-top: 12px; /* compact spacing */
  }

  .about__items li::before {
    content: '';
    display: block;
    width: 64px; /* shorter line */
    height: 3px;
    background: var(--red-color);
    margin: 0 auto 12px; /* centered */
    border-radius: 2px;
  }
}

.products__pagination-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--base-text-color);
  background-color: #eaeaea;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.products__pagination-button:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-soft);
}

.products__pagination-button--active {
  color: var(--white-color);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 54, 124, 0.3);
}

/* Catalog tiles: frame + hover text styling */
.products__item {
  background-color: var(--white-color);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: 250ms ease;
}

.products__item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
}

/* Название товара */
.product__name {
  transition: color 250ms, font-size 250ms ease; /* убрали padding из transition */
  font-size: 1rem; /* базовый размер */
  line-height: 1.2em; 
  height: 2.4em; /* фиксируем высоту на 2 строки */
  overflow: hidden; /* обрезаем лишний текст */
  text-overflow: ellipsis; /* многоточие если не помещается */
}

/* Ховер */
.products__item:hover .product__name,
.products__item:focus .product__name {
  color: var(--primary-color);
  font-size: 1.0rem; /* уменьшаем шрифт без изменения высоты блока */
  padding-left: 8px; /* отступ при ховере */
  padding-right: 8px; /* отступ при ховере */
  text-transform: uppercase;
  letter-spacing: 0.03em;
}



/* folded-corner elements removed */

@keyframes showProduct {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* animations removed */

.contacts {
  position: relative;
  color: var(--white-color);
  background-color: var(--primary-color);
  overflow: hidden;
}

.contacts__container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.contacts__wrapper {
  padding: 40px 12px 16px; /* reduce bottom padding to avoid visible edge */
}

.contacts__title {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 20px;
}

/* Анимированное подчеркивание заголовка Контакты */
.contacts__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; /* Выравнивание по левому краю как у текста */
  transform: scaleX(0);
  transform-origin: left; /* Анимация из левого края */
  width: 100px;
  height: 2px; /* Уменьшена толщина */
  background: var(--red-color);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(245, 29, 5, 0.5);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Активация анимации при появлении в видимой области */
.contacts__title--visible::after {
  transform: scaleX(1);
}

.contacts__logo {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.2;
}

.contacts__block:not(:last-child) {
  margin-bottom: 16px;
}

.contacts__caption {
  margin: 0 0 4px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0.6;
}

.contacts__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.contacts__text a {
  color: var(--white-color);
  text-decoration: none;
}

.contacts__map {
  height: 320px;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0; /* prevent inline gap rendering */
  background-color: var(--primary-color); /* unify background with section */
}

/* Remove any possible line around the embedded map */
.contacts__map,
.contacts__map iframe {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* === АНИМАЦИЯ ЗВЕЗД ДЛЯ БЛОКА КОНТАКТЫ === */
.star-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background-color: rgba(173, 216, 230, 0.95); /* Яркий светло-голубой цвет звезд */
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 4px rgba(173, 216, 230, 0.8), 0 0 8px rgba(173, 216, 230, 0.4); /* Свечение звезд */
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
  will-change: transform, opacity;
}

/* Ensure no visual gap between contacts and footer */
.contacts { margin-bottom: 0; }
.footer { margin-top: 0; }

.footer__container {
  display: flex;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 12px;
}

.footer__logo {
  display: block;
  width: 180px; /* Размер как у логотипа в хедере */
  height: auto;
}

.footer__nav,
.footer__phone {
  display: none;
}

.footer__mygento {
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
  padding-left: 20px; /* Отступ от логотипа сайта в адаптиве */
}

.footer__mygento img {
  display: block;
  width: 60px;
  height: auto;
}

/* Bottom-only footer styles */
.footer {
  background: var(--white-color);
}

.footer__bottom {
  border-top: none !important;
  background: var(--white-color);
}

/* Guard against any decorative lines */
.footer__bottom::before,
.footer__bottom::after {
  content: none !important;
  display: none !important;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 12px;
}

.footer__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.footer__links-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__link-right {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}

.footer__link-right:hover {
  text-decoration: underline;
}



/* Кнопка стрелки */
/* Кнопка "Вверх" */
.arrow-up {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.arrow-up.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Псевдоэлемент со стрелкой */
.arrow-up::before {
  content: none;
  display: none;
}




/* Hover эффект */
.arrow-up:hover {
  background-color: var(--primary-color);
}



.arrow-up:hover {
  background-color: var(--primary-color);
}






@media (width >= 768px) {
  .slider__image img {
    min-height: 420px; /* Минимальная высота как у видео */
  }

  .slider__video {
    min-height: 420px;
  }

  .features__list {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .features__item {
    flex-direction: column;
    justify-content: flex-start;
    width: 250px;
  }

  .features__name,
  .features__text {
    text-align: center;
  }

  .features__name {
    align-items: center;
    justify-content: center;
  }

  .about__title {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 26px;
  }

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

  .about__items li {
    padding-top: 0;
    padding-left: 20px;
    font-size: 16px;
    border-top: none;
    border-left: 3px solid var(--red-color);
    position: relative;
  }

  /* Убраны красные точки - дублируют вертикальные полосы */
  .about__items li::before {
    display: none;
  }

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

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

  .product__image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    aspect-ratio: 1 / 1;
  }

  .product__description {
    padding: 20px;
    line-height: 1.5;
    /* Синее свечение вниз */
    box-shadow: 0 8px 24px rgba(2, 56, 126, 0.7), 
                0 16px 48px rgba(2, 56, 126, 0.5),
                0 24px 64px rgba(2, 56, 126, 0.3);
    max-height: 400px; /* Ограничиваем высоту для скролла на планшетах */
    overflow-y: auto; /* Включаем вертикальный скролл */
    overscroll-behavior: contain; /* Блокирует "проваливание" скролла */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
  }

.products__item:hover .product__description,
.products__item:focus .product__description {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

  /* Tease state for visible items (no pointer events) */
  .products__item--tease .product__description {
    opacity: 0.75;
    pointer-events: none;
    animation: teasePeek 1200ms ease;
  }

  .products__pagination {
    margin-top: 40px;
  }

  .contacts {
    position: relative;
  }

  .contacts__wrapper {
    width: 320px;
  }

  .contacts__map {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(50vw + 60px);
    height: 100%;
  }
}

@media (width >= 980px) {
  html,
  body {
    scroll-padding-top: 80px;
  }

  .header {
    position: sticky;
    left: auto;
    right: auto;
    z-index: 2;
  }

  .header__container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px;
  }

  .header__logo {
    width: 280px; /* Увеличенный размер на десктопе */
    max-width: none;
    cursor: pointer;
  }

  .header__button,
  .header__backdrop {
    display: none !important;
  }

  .header__wrapper {
    position: static;
    z-index: 0;
    display: flex;
    align-items: center;
    width: auto;
    margin-left: auto;
    padding: 0;
    background-color: transparent;
    transform: none;
    border: none;
    box-shadow: none;
  }

  .menu {
    padding: 0;
    border-bottom: none;
    border-right: 1px solid var(--gray-color);
  }

  .menu__list {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .menu__list li {
    margin-bottom: 0; /* Убираем отступы между пунктами на десктопе */
  }

  .menu__link {
    position: relative;
    padding: 8px 20px;
    display: inline-block;
  }

  /* Убираем стили адаптива для десктопа */
  .menu__link::before {
    display: none;
  }

  /* Анимация подчеркивания для десктопа */
  .menu__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #f40601;
    transition: width 0.3s ease, left 0.3s ease;
  }

  .menu__link:hover {
    background: transparent;
  }

  .menu__link:hover::after {
    width: 90%;
    left: 5%;
  }

  .header__contacts {
    padding: 0;
  }

  .header__link {
    padding: 8px 20px;
  }

  .header__link--mail {
    display: none;
  }

  .slider__text {
    left: 40px;
    bottom: 60px;
    font-size: 20px;
  }

  /* removed hero responsive */

  .slider__item:nth-child(1) .slider__text {
    width: 410px;
  }

  .slider__item:nth-child(2) .slider__text {
    left: auto;
    right: 40px;
    width: 350px;
  }

  .slider__item:nth-child(3) .slider__text,
  .slider__item:nth-child(4) .slider__text {
    width: 320px;
  }

  .slider__controls {
    display: flex;
    justify-content: space-between;
  }

  .slider__button {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 250ms ease;
  }

  .slider__button img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .slider__button--prev {
    left: 20px;
    rotate: 180deg;
  }

  .slider__button--next {
    right: 20px;
  }

  .features {
    padding: 40px 0;
  }

  .features__list {
    gap: 24px;
  }

  .features__item {
    width: 300px;
    padding: 24px 16px;
  }

  .features__item img {
    width: 80px;
    height: 80px;
  }

  /* removed icon frame responsive */

  .features__name {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .features__text {
    font-size: 14px;
  }

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer__logo-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.footer__logo {
  display: block;
  height: auto;
  width: 220px; /* Уменьшенный размер логотипа в футере на десктопе */
}


.footer__logo-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine 5s infinite; /* Увеличена длительность */
  animation-delay: 1s; /* Пауза 1 секунда перед началом */
  pointer-events: none;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 120%; }
  100% { left: 120%; }
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 20px; /* отступы между элементами */
}

.footer__list {
  display: flex;
  gap: 15px;
}




  .footer__nav,
  .footer__phone {
    display: block;
  }

  .footer__list {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .footer__link {
    font-size: 16px;
    line-height: 1.5;
    color: var(--base-text-color);
    text-decoration: none;
  }

  .footer__phone {
    margin-left: 20px;
    padding-left: 20px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    color: var(--primary-color);
    border-left: 1px solid var(--gray-color);
  }

  .footer__mygento {
    margin-left: 30px;
  }

  .arrow-up {
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (width >= 1200px) {
  .slider__image img {
    height: 700px; /* Фиксированная высота слайдера */
  }

  .slider__video {
    height: 700px; /* Фиксированная высота слайдера */
    min-height: auto;
  }

  .header__container {
    padding: 20px 0;
  }

  .about__container {
    padding: 80px 0;
  }

  .about__title {
    margin-bottom: 80px;
    font-size: 38px;
    text-wrap: auto;
  }

  .about__items {
    grid-gap: 40px;
    margin-bottom: 80px;
  }

  .about__items li {
    display: flex;
    align-items: center;
    padding-left: 40px;
    font-size: 20px;
  }

  .about__wrapper {
    grid-gap: 100px;
  }

  .about__caption,
  .about__list,
  .about__text {
    font-size: 20px;
  }

  .products {
    padding: 80px 0;
  }

  .products__container {
    padding: 0;
  }

  .products__title {
    margin-bottom: 40px;
    font-size: 32px;
  }

  .products__list {
    grid-gap: 40px;
    grid-template-columns: repeat(3, 1fr);
  }

  .product__name {
    font-size: 22px;
  }

  .product__description {
    font-size: 18px;
  }

  .contacts__wrapper {
    padding: 50px 0;
  }

  .contacts__title {
    margin-bottom: 24px;
    font-size: 24px;
  }

  .contacts__logo,
  .contacts__block:not(:last-child) {
    margin-bottom: 24px;
  }

  .contacts__caption {
    font-size: 16px;
  }

  .contacts__text {
    font-size: 18px;
  }

  .contacts__map {
    width: calc(50vw + 200px);
  }
}

@media (width >= 1440px) {
  .slider__text {
    bottom: 90px;
    padding: 32px;
    font-size: 32px;
    line-height: 1.2;
  }

  /* removed hero large responsive */

  .slider__item:nth-child(1) .slider__text {
    width: 670px;
  }

  .slider__item:nth-child(2) .slider__text {
    right: 80px;
    width: 560px;
  }

  .slider__item:nth-child(3) .slider__text,
  .slider__item:nth-child(4) .slider__text {
    width: 520px;
  }

  .slider__button {
    width: 64px;
    height: 64px;
  }

  .slider__button--prev {
    left: 40px;
  }

  .slider__button--next {
    right: 40px;
  }

  .slider__dots {
    bottom: 40px;
  }

  .slider__dot-button {
    width: 8px;
    height: 8px;
  }

  .features {
    padding-bottom: 10px;
  }

  .features__item {
    gap: 24px;
    width: 370px;
  }

  .features__item img {
    width: 100px;
    height: 100px;
  }

  .features__name {
    font-size: 28px;
  }

  .footer__container {
    padding: 20px 0;
  }
}

@media (hover: hover) {
  .contacts__text a,
  .footer__link,
  .footer__phone {
    position: relative;
    text-decoration: none; /* убираем стандартное подчеркивание */
    display: inline-block;
  }

  .contacts__text a::after,
  .footer__link::after,
  .footer__phone::after {
    content: '';
    position: absolute;
    left: 50%;        /* стартуем с центра */
    bottom: 0;
    height: 2px;      /* одинаковая толщина */
    width: 0;
    background-color: #f40601;
    transition: width 0.3s ease, left 0.3s ease;
  }

  .contacts__text a:hover::after,
  .footer__link:hover::after,
  .footer__phone:hover::after {
    width: 100%;
    left: 0;          /* растягиваем к краям */
  }
}


  .slider__button:hover {
    scale: 0.9;
  }

  .products__pagination-button:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
  }

  .arrow-up:hover {
    background-color: var(--primary-color);
  }

/* ❄ Снежинки */
.snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* чтобы клики проходили сквозь */
  z-index: 9999; /* поверх всего */
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1em;
  opacity: 0.8;
  user-select: none;
  pointer-events: none;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}












.footer__bottom{margin-top:2px;padding:0;border-top:1px solid #e0e0e0}
.footer__bottom-inner{display:flex;justify-content:space-between;align-items:center;font-size:12px;line-height:1;color:#666}
.footer__copy{margin:0}
.footer__links-right{display:flex;gap:6px}
.footer__link-right{color:#666;text-decoration:none}
.footer__link-right:hover{text-decoration:underline}
@media(max-width:600px){.footer__bottom-inner{flex-direction:column;text-align:left;align-items:flex-start;gap:8px}.footer__links-right{flex-direction:column;gap:8px;align-items:flex-start}}

.snow{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999;overflow:hidden}.snowflake{position:absolute;top:-10px;color:#fff;font-size:1em;opacity:.8;user-select:none;pointer-events:none;animation:fall linear infinite}@keyframes fall{0%{transform:translateY(0) rotate(0deg)}100%{transform:translateY(100vh) rotate(360deg)}}


/* Глянец для иконок и логотипа */
.gloss-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.gloss-container img {
  display: block;
  width: 100%;
  height: auto;
}

/* Анимация глянца для логотипа в хедере (как в футере) */
.header__logo .gloss-container::after,
.gloss-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine 5s infinite;
  animation-delay: 1s; /* Пауза 1 секунда перед началом */
  pointer-events: none;
}

/* Убрана последовательная анимация глянца для иконок в блоке features */
.features__item .gloss-container::after {
  display: none; /* Отключаем анимацию глянца для достижений */
}

@keyframes glossMove {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.products__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth), 
              border-color var(--transition-base),
              box-shadow var(--transition-smooth);
}

/* Эффект глянца для карточек продукции - на области картинки */
.product__image-wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-100%) rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10; /* Поверх всего */
}

/* Активация анимации глянца */
.products__item.gloss-active .product__image-wrapper::after {
  opacity: 1;
  animation: productGloss 2s ease-in-out;
}

@keyframes productGloss {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.products__item:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-strong), 0 0 20px rgba(0, 54, 124, 0.3);
}

/* Картинка */
.product__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: filter var(--transition-smooth), transform var(--transition-smooth);
}

.products__item:hover .product__image {
  filter: brightness(90%) contrast(1.05);
}

/* Название продукта вне скролла */
.product__name {
  margin: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  z-index: 3;
  position: relative;
  color: #000000;
  transition: transform var(--transition-base);
}

/* Опускание названия при ховере */
.products__item:hover .product__name {
  transform: translateY(8px);
}

/* Описание строго в рамках картинки */
.product__description {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  padding-right: 8px; /* Место для скроллбара */
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain; /* Блокирует "проваливание" скролла на страницу */
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%); /* Появляется снизу */
  transform-origin: center center; /* Масштабирование от центра */
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
  border-radius: 12px 12px 0 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(2,56,126,0.85) 0%, rgba(2,56,126,0.80) 100%);
}

/* Обертка для картинки и описания */
.product__image-wrapper {
  position: relative; /* Контекст для абсолютного позиционирования описания */
  overflow: visible; /* Позволяет свечению выходить за пределы */
  border-radius: 12px 12px 0 0;
}

.product__image {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.product__name {
  position: relative;
  z-index: 0;
}

/* Описание позиционируется относительно обертки (картинки) */
.product__description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Появление описания при hover */
.products__item:hover .product__description {
  opacity: 1;
  transform: translateY(0); /* Без масштабирования, чтобы скроллбар оставался на месте */
  /* Синее свечение вниз - очень деликатное */
  filter: drop-shadow(0 8px 15px rgba(2, 56, 126, 0.18))
          drop-shadow(0 15px 25px rgba(2, 56, 126, 0.1))
          drop-shadow(0 22px 40px rgba(2, 56, 126, 0.05));
}





.promo-video{padding:20px 0 0}.promo-video__container{max-width:1160px;margin:0 auto;padding:0 12px}.promo-video__media{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 6px 16px rgba(0,0,0,.08)}

/* Дублирующий код удален - стили видео выше */


.button {
  position: relative;       /* нужно для псевдоэлемента */
  color: inherit;           /* цвет текста */
  text-decoration: none;    /* убираем стандартное подчеркивание */
  padding-bottom: 4px;      /* немного места для линии */
  transition: color 0.3s;   /* плавное изменение цвета текста */
}

.button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;              /* толщина подчеркивания */
  width: 0%;                /* начальная ширина */
  background-color: #f40601;
  transition: width 0.3s ease; /* анимация появления */
}

.button:hover::after {
  width: 100%;              /* подчеркивание растягивается на всю ширину */
}

/* ===== Custom red scrollbar for adaptive product cards (mobile) ===== */
/* Hide native scrollbar in mobile overlay and show custom red track/thumb instead */
@media (max-width: 767px) {
  /* Achievements: reduce space between title and description */
  .features__name {
    margin-bottom: 2px;
  }
  /* Hide WebKit scrollbar (Chrome, Safari, Android browsers) */
  .products__item.product-active .product__description::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
  }
  /* Hide Firefox scrollbar */
  .products__item.product-active .product__description {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
  }

  /* Base container for custom scrollbar fixed to the image wrapper (non-scrolling) */
  .products__item .product__image-wrapper .custom-scrollbar {
    position: absolute;
    top: 8px;
    right: 4px;
    bottom: 8px;
    width: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    pointer-events: none;
    z-index: 11; /* above .product__description (z-index: 2) */
    display: none; /* shown only when product is active */
  }

  .products__item.product-active .product__image-wrapper .custom-scrollbar {
    display: block;
  }

  .products__item .product__image-wrapper .custom-scrollbar__thumb {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 24px; /* will be overridden via JS */
    background: #f40601; /* red thumb */
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(244, 6, 1, 0.35);
  }
}
