/* v2-feed-carousel.css — rail + row slider (отгрузки, услуги, новости) */

:root {
  --v2-accent: #f4ce47;
  --v2-accent-dark: #d4ad2c;
  --v2-dark: #1e2229;
  --v2-text: #1a1a1a;
  --v2-muted: #6b7280;
  --v2-border: #e5e7eb;
  --v2-bg-muted: #f4f5f7;
  --v2-radius: 12px;
  --v2-radius-lg: 18px;
  --v2-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --v2-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.v2-shipments.v2-section {
  padding: 44px 0;
  background: var(--v2-bg-muted);
}

.v2-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.v2-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v2-muted);
  margin-bottom: 6px;
}

.v2-section__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--v2-text);
  margin: 0;
  line-height: 1.15;
}

.v2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.v2-btn--outline {
  background: transparent;
  color: var(--v2-text);
  border-color: var(--v2-border);
  padding: 10px 22px;
  font-size: 14px;
}

.v2-btn--outline:hover {
  border-color: var(--v2-text);
  background: var(--v2-text);
  color: #fff;
}

.v2-feed-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: stretch;
}

.v2-feed-layout__slider-wrap {
  min-width: 0;
}

a.v2-feed-rail {
  position: relative;
  border-radius: var(--v2-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  flex-shrink: 0;
  background: var(--v2-dark);
  text-decoration: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
}

a.v2-feed-rail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 30, 0.15) 0%, rgba(20, 24, 30, 0.82) 100%);
  pointer-events: none;
}

.v2-feed-rail__inner {
  position: relative;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-feed-rail__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v2-accent);
}

.v2-feed-rail__headline {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.v2-feed-rail__lead {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.v2-feed-rail__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

a.v2-feed-rail:hover .v2-feed-rail__cta {
  gap: 10px;
  color: var(--v2-accent);
}

.v2-feed__intro-slide {
  display: none !important;
}

.v2-row-slider {
  position: relative;
  padding: 0 48px;
  box-sizing: border-box;
}

.v2-row-slider .swiper {
  overflow: hidden;
}

.v2-slider-prev,
.v2-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--v2-border);
  background: #fff;
  color: var(--v2-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  box-shadow: var(--v2-shadow);
}

.v2-slider-prev { left: 0; }
.v2-slider-next { right: 0; }

.v2-slider-prev i,
.v2-slider-next i {
  display: none;
}

.v2-slider-prev::after,
.v2-slider-next::after {
  content: "" !important;
  font-family: inherit !important;
  font-size: 0 !important;
  display: block;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  box-sizing: border-box;
}

.v2-slider-next::after {
  transform: rotate(45deg);
  margin-left: -2px;
}

.v2-slider-prev::after {
  transform: rotate(-135deg);
  margin-right: -2px;
}

.v2-slider-prev:hover,
.v2-slider-next:hover {
  background: var(--v2-accent);
  border-color: var(--v2-accent);
  color: #111;
}

.v2-slider-prev.swiper-button-disabled,
.v2-slider-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.v2-shipments__swiper .swiper-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  box-sizing: border-box;
  align-items: stretch;
}

.v2-shipments__swiper .swiper-slide:not(.v2-feed__intro-slide) {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.v2-shipments__swiper .swiper-slide > * {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.v2-shipment-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--v2-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--v2-border);
  transition: box-shadow 0.2s;
  height: 100%;
}

.v2-shipment-card:hover {
  box-shadow: var(--v2-shadow-md);
}

.v2-shipment-card__img-wrap {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--v2-dark);
}

.v2-shipment-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.v2-shipment-card:hover .v2-shipment-card__img-wrap img {
  transform: scale(1.04);
}

.v2-shipment-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}

.v2-shipment-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--v2-text);
  margin: 0;
  line-height: 1.35;
  flex: 1;
  min-height: calc(1.35em * 3);
}

.v2-shipment-card__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v2-shipment-card__title a:hover {
  color: var(--v2-accent-dark);
}

.v2-shipment-card__date {
  font-size: 11px;
  color: var(--v2-muted);
  font-weight: 600;
  margin-top: auto;
  padding-top: 6px;
}

.v2-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  overflow: hidden;
  height: 100%;
}

.v2-product-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--v2-bg-muted);
  flex-shrink: 0;
}

.v2-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-product-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.v2-product-card__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--v2-text);
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.v2-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.v2-product-card__price--request {
  font-size: 12px;
  font-weight: 600;
  color: var(--v2-muted);
}

.v2-product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--v2-accent);
  color: #111;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 768px) {
  .v2-shipments .v2-feed-layout__slider-wrap {
    overflow: visible;
  }

  .v2-shipments .v2-row-slider {
    padding: 0;
    overflow: visible;
  }

  .v2-shipments .v2-row-slider .swiper {
    overflow: hidden;
  }

  .v2-shipments .v2-slider-prev,
  .v2-shipments .v2-slider-next {
    top: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--v2-border);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
    z-index: 12;
  }

  .v2-shipments .v2-slider-prev {
    left: -14px;
    right: auto;
  }

  .v2-shipments .v2-slider-next {
    right: -14px;
    left: auto;
  }

  .v2-shipments .v2-slider-prev:hover,
  .v2-shipments .v2-slider-next:hover {
    background: var(--v2-accent);
    border-color: var(--v2-accent);
  }

  .v2-shipments__swiper .swiper-slide.v2-feed__intro-slide {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
    flex: 0 0 0 !important;
  }
}

@media (max-width: 991px) {
  .v2-feed-layout {
    grid-template-columns: 200px 1fr;
  }

  .v2-feed-rail {
    min-height: 260px;
  }
}

@media (max-width: 767px) {
  .v2-shipments.v2-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .v2-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .v2-section__title {
    font-size: 20px;
  }

  .v2-feed-layout {
    display: block;
  }

  .v2-feed-layout a.v2-feed-rail {
    display: none !important;
  }

  .v2-shipments .v2-row-slider {
    padding-left: 0;
    padding-right: 0;
  }

  .v2-shipments .v2-row-slider .v2-slider-prev,
  .v2-shipments .v2-row-slider .v2-slider-next {
    display: none !important;
  }

  .v2-shipments__swiper {
    overflow: hidden;
    touch-action: pan-x;
  }

  .v2-shipments__swiper .swiper-slide {
    display: flex !important;
    height: auto !important;
  }

  .v2-feed__intro-slide {
    display: flex !important;
    height: auto;
  }

  .v2-shipments .v2-shipment-card {
    border-radius: 8px;
  }

  .v2-shipments .v2-shipment-card__img-wrap {
    aspect-ratio: 1 / 1;
  }

  .v2-shipments .v2-shipment-card__body {
    padding: 8px 10px 10px;
  }

  .v2-shipments .v2-shipment-card__title {
    font-size: 11px;
    min-height: 0;
  }

  .v2-shipments .v2-shipment-card__title a {
    -webkit-line-clamp: 2;
  }

  .v2-shipments .v2-shipment-card__date {
    font-size: 10px;
    padding-top: 0;
  }
}

.product-v2-shipments {
  overflow-x: clip;
}

.product-v2-shipments + .clients-section--product {
  margin-top: 0;
}
