/* Дополнения к оригинальным стилям: то, что раньше делали скрипты */
.footer, .navbar-footer, .navbar-contacts { display: none !important; }

/* слайдер на главной */
.hero__swiper .swiper-wrapper { transition: transform .6s ease; }
.ks-dots { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; gap: 10px; justify-content: center; z-index: 3; }
.ks-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.ks-dots button.on { background: #fff; }

/* лента логотипов */
.carousel .swiper-wrapper.ks-marquee { width: max-content; animation: ks-marquee 40s linear infinite; }
.carousel .swiper-wrapper.ks-marquee .swiper-slide { width: auto; padding: 0 30px; }
@keyframes ks-marquee { to { transform: translateX(-50%); } }

/* галерея товара на телефоне: горизонтальная прокрутка вместо swiper */
.preview .swiper.preview__swiper .swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.preview .swiper.preview__swiper .swiper-wrapper::-webkit-scrollbar { display: none; }
.preview .swiper.preview__swiper .swiper-slide { scroll-snap-align: start; flex: 0 0 100%; aspect-ratio: 3/4; }
.preview .swiper.preview__swiper .swiper-pagination { display: none; }

/* поиск */
.search.sidebar .search__container { padding-inline: 15px; }
.ks-search { position: relative; padding: 10px 0 14px; }
.ks-search__input { width: 100%; border: 0; border-bottom: 1px solid #d8d8d8; padding: 15px 10px; font: 400 16px/1.2 Roboto, sans-serif; outline: 0; background: transparent; }
.ks-results { list-style: none; margin: 0; padding: 0 10px 0 0; display: grid; gap: 24px 20px; grid-template-columns: repeat(4, 1fr); overflow-y: auto; color: #000; }
.ks-results li a { display: grid; gap: 4px; color: inherit; text-decoration: none; font-size: 14px; }
.ks-results img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #f3f3f3; }
.ks-results__code { color: #888; font-size: 12px; }
.ks-results b { font-weight: 700; }
.ks-results em { font-style: normal; color: #1a8a3c; font-size: 12px; }
.ks-results__empty { grid-column: 1 / -1; color: #888; padding: 20px 0; }
@media (max-width: 900px) { .ks-results { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ks-results { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } }

/* остатки по размерам видны сразу (на оригинале — только при наведении) */
.selection-size__list .selection-size__item { display: flex; flex-direction: column; align-items: center; }
.selection-size__hint-quantity { position: static; order: 2; opacity: 1; transform: none; background: none; color: #555; font-size: 12px; padding: 4px 0 0; top: auto; left: auto; }
.selection-size__hint-quantity:after { display: none; }

/* карточка товара на телефоне: обычная прокрутка вместо выезжающей панели */
@media only screen and (max-width: 680px) {
  body { overflow: auto !important; }
  .main { height: auto !important; }
  section.product { position: relative !important; inset: auto !important; height: calc(100dvh - 60px); }
  .mobil-wrapper-content { position: static !important; inset: auto !important; transform: none !important; height: auto !important; overflow: visible !important; box-shadow: none !important; padding: 24px 15px 40px !important; }
  .mobil-wrapper-content:before, .mobil-wrapper-content:after { display: none !important; }
  .mobil-wrapper-content .scrollToTop-mobile { display: none !important; }
  #partanMobil .block-color, #partanMobil .selection-size, #partanMobil .product-info__btns { display: block !important; }
  #partanMobil .selection-size__list.tab-content { display: flex; }
  #partanMobil .product-info__btns .btn-static_white { width: 100%; }
}
@media only screen and (max-width: 680px) {
  #partanMobil .block-color__list { display: flex !important; flex-wrap: wrap; gap: 9px 5px; }
  #partanMobil .block-color { margin-bottom: 25px; }
}
