/* Home page styles */

/* Search Widget */
.search-widget {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-widget.opened {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-widget__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.search-widget__header {
  position: relative;
  background-color: var(--color-primary);
  padding: 20px 0;
  z-index: 1001;
}

.search-widget__inputcontainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-widget__input-wrapper {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

.search-widget__blockinput {
  position: relative;
  border: 1px solid #ffffff;
  border-radius: 4px;
  background-color: transparent;
}

.search-widget__form {
  display: flex;
  align-items: center;
  position: relative;
}

.search-widget__input {
  flex: 1;
  padding: 15px 50px 15px 20px;
  font-size: 18px;
  color: #ffffff;
  background-color: transparent;
  border: none;
  outline: none;
  font-family: var(--font-family);
}

.search-widget__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-widget__search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-widget__search-icon svg {
  display: block;
}

.search-widget__clear-icon {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-widget__clear-icon svg {
  display: block;
}

.search-widget__close-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-widget__close-icon svg {
  display: block;
}

/* Responsive */
@media screen and (max-width: 960px) {
  .search-widget__inputcontainer {
    flex-direction: column;
    gap: 15px;
  }

  .search-widget__input-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .search-widget__close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
  }
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  max-width: 400px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.cookie-notice.opened {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-notice.closed {
  display: none;
}

.cookie-notice__wrapper {
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  padding: 20px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.cookie-notice__text {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5;
  text-align: left;
}

.cookie-notice__link {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition-base);
}

.cookie-notice__link:hover {
  color: var(--color-accent);
}

.cookie-notice__close-button {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.cookie-notice__close-button svg {
  display: block;
}

/* Responsive */
@media screen and (max-width: 640px) {
  .cookie-notice {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .cookie-notice__wrapper {
    padding: 15px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 60px 0 30px;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.hero-section__bg-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-section__bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

.hero-section__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(20, 38, 52, 0.7);
  z-index: 1;
}

.hero-section .container {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-section__content {
  max-width: 560px;
  margin-left: 0;
}

.hero-section__title {
  font-size: 34px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
}

.hero-section__description {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}

@media screen and (min-width: 900px) {
  .hero-section {
    min-height: 337px;
  }

  .hero-section__title {
    font-size: 40px;
  }
}

@media screen and (max-width: 980px) {
  .hero-section {
    min-height: 500px;
  }
}

/* Catalog Section */
.catalog-section {
  padding: 30px 0 60px;
}

.catalog-section__title {
  font-size: 30px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 30px;
}

/* Product Cards */
.product-cards {
  margin-top: 30px;
}

.product-cards__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-cards__item {
  cursor: pointer;
}

.product-cards__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.product-cards__link:hover,
.product-cards__link:focus,
.product-cards__link:active {
  color: inherit;
  text-decoration: none;
}

.product-cards__specs {
  color: var(--color-text);
}
.product-cards__specs * {
  color: inherit;
}

.product-cards__content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-cards__image-wrapper {
  position: relative;
  padding-bottom: 76.923076923077%; /* 400/520 aspect ratio */
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 1/1;
  margin-bottom: 15px;
}

.product-cards__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
}

.product-cards__image_first {
  opacity: 1;
  z-index: 1;
}

.product-cards__image_hover {
  opacity: 0;
  z-index: 2;
}

/* ВРЕМЕННО ОТКЛЮЧЕНО: Функция показа гифок при наведении
   Чтобы вернуть функциональность, раскомментируйте следующие стили:
.product-cards__item:hover .product-cards__image_first {
  opacity: 0;
}

.product-cards__item:hover .product-cards__image_hover {
  opacity: 1;
}
*/

.product-cards__text-wrapper {
  flex: 1;
}

.product-cards__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 10px;
  transition: color var(--transition-base);
}

.product-cards__description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.product-cards__separator {
  grid-column: 1 / -1;
  margin-bottom: 40px;
  height: 0;
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .product-cards__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 980px) {
  .product-cards__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 640px) {
  .product-cards__container {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 30px 0 15px;
  }

  .catalog-section {
    padding: 15px 0 30px;
  }

  .catalog-section__title {
    font-size: 24px;
  }
}

/* About Section */
.about-section {
  padding-top: 30px;
  padding-bottom: 60px;
}
@media screen and (max-width: 640px) {
    .about-section {
        padding-bottom: 40px;
    }
}
.section__title {
  color: #142634;
  font-weight: 500;
  text-align: center;
  padding-top: 4px;
  padding-bottom: 14px;
}

@media screen and (min-width: 480px) {
  .section__title {
    font-size: 30px;
  }
}

.section__subtitle {
  font-size: 18px;
  text-align: center;
  margin-top: -6px;
  padding-bottom: 12px;
}

.section__subtitle strong {
  color: #174783;
}

.about-section__content {
  max-width: 100%;
}

/* Page Content - общий класс для текстовых блоков */
.page-content {
  font-size: 16px;
  padding-top: 8px;
  padding-bottom: 6px;
}

.page-content p {
  margin: 0 0 1em 0;
}

.page-content p:last-child {
  margin-bottom: 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin: 0 0 0.5em 0;
  font-weight: 500;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1em 0;
  padding-left: 20px;
  list-style-type: disc;
}

.page-content li {
  margin-bottom: 0.5em;
}

.page-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.page-content a:hover {
  color: var(--color-accent-hover);
}

.page-content strong {
  font-weight: 700;
}



/* Logo Section (rec879874705) */
.logo-section {
  padding-top: 0;
  padding-bottom: 0;
}

.logo-section__wrapper {
  text-align: center;
}

.logo-section__image {
  max-width: 342px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Statistics Section (rec868715147) */
.statistics-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.statistics-section__grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.statistics-section__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.statistics-section__number-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.statistics-section__number {
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.statistics-section__digit {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.statistics-section__line {
  position: absolute;
  top: 20px;
  left: 40px;
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

.statistics-section__item:last-child .statistics-section__line,
.statistics-section__item:last-child .statistics-section__line_mobile {
  display: none;
}

.statistics-section__line_mobile {
  display: none;
}

.statistics-section__text-wrapper {
  text-align: left;
  margin-right: 10px;
}

.statistics-section__title {
  font-size: 24px;
  color: #142634;
  font-weight: 400;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.statistics-section__text {
  font-size: 16px;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

/* Responsive */
@media screen and (max-width: 960px) {
  .statistics-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .statistics-section__item:nth-child(2n) .statistics-section__line {
    display: none;
  }

  .statistics-section__item:last-child .statistics-section__line_mobile {
    display: none;
  }

  .statistics-section__line_mobile {
    display: block;
    position: absolute;
    top: 50%;
    left: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
  }
}

@media screen and (max-width: 576px) {
  .statistics-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .statistics-section__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .statistics-section__line,
  .statistics-section__line_mobile {
    display: none !important;
  }
}

/* Forklifts Info Section */
.forklifts-info-section {
  padding-top: 30px;
}

.forklifts-info-section__title {
  color: #174783;
  font-weight: 500;
  text-align: left;
  margin: 0;
}

@media screen and (min-width: 480px) {
  .forklifts-info-section__title {
    font-size: 30px;
  }
}

.forklifts-info-section__description {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Forklifts Details Section */
.forklifts-details-section {
  padding-top: 15px;
}

.forklifts-details-section .page-content {
  font-size: 16px;
}

.forklifts-details-section .page-content p {
  margin-bottom: 0;
}

.forklifts-details-section .page-content p + p {
  margin-top: 0;
}


/* Responsive */
@media screen and (max-width: 640px) {
  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 10px;
    right: 10px;
  }

  .messengers-widget {
    bottom: 10px;
    right: 10px;
  }

  .messengers-widget__toggle {
    width: 50px;
    height: 50px;
  }

  .messengers-widget__item {
    width: 45px;
    height: 45px;
  }
}

/* Catalog Button Section */
.catalog-button-section {
  padding-top: 30px;
  padding-bottom: 30px;
}

.catalog-button-section__wrapper {
  text-align: center;
}


/* Service Title Section */
.service-title-section {
  padding-top: 30px;
}

.service-title-section .section__title {
  text-align: left;
}

/* Service Image Section */
.service-image-section {
  padding-top: 0;
  padding-bottom: 0;
}

.service-image-section__wrapper {
  text-align: center;
}

.service-image-section__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Partners Section */
.partners-section {
  padding-bottom: 60px;
}

.partners-section .section__title {
  text-align: left;
}

.partners-section__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  padding-top: 60px;
}

.partners-section__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.partners-section__logo {
  max-width: 100px;
  height: auto;
  display: block;
}

/* Responsive for Partners Section */
@media screen and (max-width: 960px) {
  .partners-section__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 640px) {
  .partners-section {
    padding-bottom: 40px;
  }

  .partners-section__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 40px;
  }
}

@media screen and (max-width: 576px) {
  .partners-section {
    padding-bottom: 40px;
  }

  .partners-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-top: 40px;
  }
}

