/* SILENKO: страница /catalog/ — портировано с главного сайта, классы с префиксом sk-cat- во избежание конфликтов с нативными .car-card/.btn шаблона */

.sk-cat-sub {
  font-size: 16px;
  color: #707D85;
  margin: -4px 0 0;
  max-width: 720px;
}

/* ========== BUTTONS ========== */
.sk-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.sk-cat-btn--red {
  background: #CF0F18;
  color: #fff;
  border-color: #CF0F18;
}
.sk-cat-btn--red:hover { background: #a80c14; border-color: #a80c14; }
.sk-cat-btn--outline {
  background: transparent;
  color: #121212;
  border-color: #121212;
}
.sk-cat-btn--outline:hover { background: #121212; color: #fff; }
.sk-cat-btn--outline.btn--white {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.sk-cat-btn--outline.btn--white:hover { background: rgba(255,255,255,.15); }
.btn--text {
  background: none;
  border: none;
  color: #707D85;
  padding: 10px 0;
  font-size: 14px;
}
.btn--text:hover { color: #121212; }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--header { padding: 11px 22px; font-size: 14px; font-weight: 600; }
.btn--lg { padding: 16px 36px; font-size: 16px; }
.sk-cat-btn--full { width: 100%; }


.sk-cat-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,.1);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  color: #121212;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.sk-cat-slider-arrow:hover { background: #CF0F18; color: #fff; border-color: #CF0F18; }
.sk-cat-slider-arrow--prev { left: -20px; }
.sk-cat-slider-arrow--next { right: -20px; }
.sk-cat-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.sk-cat-slider-dots .sk-cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  transition: all .2s;
}
.sk-cat-slider-dots .sk-cat-dot.active { background: #CF0F18; width: 24px; border-radius: 4px; }

/* ========== CATALOG ========== */
.sk-cat-catalog {
  padding: 80px 0;
  background: #fffff1;
}

.sk-cat-show-all-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}
.sk-cat-show-all-wrap.hidden { display: none; }
.sk-cat-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 32px;
}
.sk-cat-filter-prices {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  min-width: 0;
  max-width: 100%;
}
.sk-cat-filter-prices::-webkit-scrollbar { display: none; }
.sk-cat-filter-prices .sk-cat-filter-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.sk-cat-filter-btn {
  padding: 10px 20px;
  border: 1.5px solid #CF0F18;
  border-radius: 999px;
  background: #fff;
  color: #CF0F18;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.sk-cat-filter-btn:hover { background: rgba(207,15,24,.08); }
.sk-cat-filter-btn.active { background: #CF0F18; color: #fff; }
.sk-cat-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.sk-cat-sort label { font-size: 14px; color: #707D85; }
.sk-cat-sort select {
  padding: 10px 16px;
  border: 1.5px solid #E3E0DB;
  border-radius: 8px;
  background: #fff;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  cursor: pointer;
}
@media (max-width: 768px) {
  .sk-cat-controls { flex-direction: column; align-items: stretch; }
  .sk-cat-filter-prices {
    gap: 12px 10px;
  }
  .sk-cat-filter-btn {
    padding: 15px 22px;
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid #1a1a1a;
    border-radius: 999px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    white-space: nowrap;
  }
  .sk-cat-filter-btn:hover { background: #fafafa; }
  .sk-cat-filter-btn.active { background: #CF0F18; border-color: #CF0F18; color: #fff; }
  .sk-cat-sort { justify-content: space-between; }
}

/* Desktop: grid */
.sk-cat-wrap { position: relative; }
.sk-cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sk-cat-arrow { display: none; }
.sk-cat-dots { display: none; }
.sk-cat-cta {
  margin-top: 40px !important;
  background: #f7f7f7 !important;
  border-radius: 12px !important;
  padding: 48px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 14px !important;
}
.sk-cat-cta-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #111 !important;
  margin: 0 !important;
}
.sk-cat-cta-sub {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #333 !important;
  max-width: 560px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.sk-cat-cta .sk-cat-btn {
  margin-top: 16px !important;
  padding: 18px 52px !important;
  font-size: 17px !important;
}
.sk-cat-card--hidden, .sk-cat-card--capped { display: none !important; }
.sk-cat-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.sk-cat-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.13); transform: translateY(-3px); }
.sk-cat-card__img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
  display: block;
}
.sk-cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sk-cat-card--video .sk-cat-card__video-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #121212;
}
.sk-cat-card--video .sk-cat-card__video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(207, 15, 24, .9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  padding-left: 4px;
}
.play-btn--sm { width: 48px; height: 48px; font-size: 18px; }
.youtube-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
}
.sk-cat-card__info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.sk-cat-card__name {
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 4px;
  color: #121212;
}
.sk-cat-card__meta { font-size: 13px; color: #707D85; margin-bottom: 8px; }
.sk-cat-card__price {
  font-size: 20px;
  font-weight: 800;
  color: #CF0F18;
  margin-bottom: 6px;
}
.sk-cat-card__more {
  display: block;
  font-size: 13px;
  color: #555;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.25);
  margin-bottom: 10px;
  cursor: pointer;
  transition: color .2s;
  margin-top: auto;
}
.sk-cat-card__more:hover { color: #CF0F18; text-decoration-color: #CF0F18; }
.sk-cat-card__link {
  display: block;
  font-size: 13px;
  color: #707D85;
  text-decoration: underline;
  margin-bottom: 14px;
}
.sk-cat-card__link:hover { color: #CF0F18; }



@media (max-width: 768px) {
  .sk-cat-catalog { padding: 48px 0; }
  .sk-cat-wrap { overflow: hidden; padding: 0 44px; }
  .sk-cat-cards {
    display: flex;
    gap: 14px;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
    grid-template-columns: unset;
  }
  .sk-cat-arrow { display: flex; }
  .sk-cat-dots { display: flex; }
  .sk-cat-card { flex: 0 0 256px; min-width: 256px; }
}
@media (max-width: 480px) {
  .sk-cat-card { flex: 0 0 240px; }
}

/* ========== CAR DETAIL MODAL ========== */
.sk-cat-modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; }
.sk-cat-modal.open { display: flex; }
.sk-cat-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.sk-cat-modal__box {
  position: relative;
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.sk-cat-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: none;
  font-size: 24px; font-weight: 700; cursor: pointer;
  color: #CF0F18; z-index: 2;
  line-height: 1;
}
.sk-cat-modal__close:hover { color: #b71c1c; }

/* Slider */
.sk-cat-modal__slider { position: relative; background: #111; border-radius: 8px 8px 0 0; overflow: hidden; }
.sk-cat-modal__track-wrap { overflow: hidden; }
.sk-cat-modal__track {
  display: flex;
  transition: transform .3s ease;
}
.sk-cat-modal__slide { flex: 0 0 100%; }
.sk-cat-modal__slide img { width: 100%; height: 300px; object-fit: cover; display: block; }
.sk-cat-modal__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  line-height: 1;
}
.sk-cat-modal__arrow--prev { left: 10px; }
.sk-cat-modal__arrow--next { right: 10px; }
.sk-cat-modal__arrow:hover { background: rgba(0,0,0,.7); }
.sk-cat-modal__dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.sk-cat-modal__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s;
}
.sk-cat-modal__dot.active { background: #fff; }

/* Info */
.sk-cat-modal__info { padding: 20px 24px 24px; }
.sk-cat-modal__name { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.sk-cat-modal__price { font-size: 22px; font-weight: 800; color: #CF0F18; text-align: center; margin-bottom: 16px; }
.sk-cat-modal__specs {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sk-cat-modal__specs li {
  font-size: 13px;
  color: #333;
  padding-left: 18px;
  position: relative;
}
.sk-cat-modal__specs li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4285f4;
}
.sk-cat-modal__desc {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}
.sk-cat-modal__form { margin-top: 4px; }
.sk-cat-modal__form-label {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}
.sk-cat-modal__form-row {
  display: flex;
  gap: 8px;
}
.sk-cat-modal__form-input {
  flex: 1;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.sk-cat-modal__form-input:focus { border-color: #e8203a; }

@media (max-width: 600px) {
  .sk-cat-modal { padding: 20px; }
  .sk-cat-modal__box { width: 88%; max-width: 380px; max-height: 78vh; border-radius: 14px; }
  .sk-cat-modal__slide img { height: 170px; }
  .sk-cat-modal__info { padding: 14px 16px 18px; }
  .sk-cat-modal__name { font-size: 15px; }
  .sk-cat-modal__price { font-size: 17px; margin-bottom: 10px; }
}
