
button,
input,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 900px) {
  .hero__decor {
    display: none !important;
  }

  .hero {
    height: auto;
    padding: 28px 0 34px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero__content {
    padding-top: 10px;
  }

  .hero__title {
    font-size: 40px;
    line-height: 44px;
  }

  .hero__subtitle {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 24px;
  }

  .hero__items {
    height: auto;
    margin-bottom: 0px;
  }

  .hero__marquee {
    position: relative;
    overflow: hidden;
    height: 360px; 
    margin-bottom: 20px;
    padding: 0;
  }

  .hero__marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: heroMarqueeTrack 18s linear infinite;
  }

  .hero__marquee-group {
    display: flex;
    align-items: center;
    gap: 22px; 
    padding-right: 22px; 
    flex: 0 0 auto;
  }

  .hero__marquee .hero__item {
    width: clamp(200px, 44vw, 320px);
    height: 360px;
    object-fit: contain;
    object-position: center;
    transform: none !important;
    flex: 0 0 auto;
    pointer-events: auto;
    cursor: pointer;
  }

  .hero__link {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: inline-flex;
    margin: -40px 16px 0 16px;
  }
}

@keyframes heroMarqueeTrack {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .hero__marquee {
    height: 360px;
  }
  .hero__marquee-group {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .cases {
    padding: 56px 0 16px;
  }

  .cases__scroll {
    margin-left: 0 !important;
    height: auto !important;
  }

  .cases__sticky {
    position: static !important;
    height: 70vh !important;
    min-height: 280px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .cases__track {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    padding: 0 24px !important;
    transform: none !important;
    width: max-content !important;
  }

  .case-card {
    padding: 0 !important;
  }
}




@media (max-width: 520px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 520px) {
  .product-title {
    font-size: 34px;
  }

  .product-model {
    font-size: 18px;
  }

  .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
