/* Slider marek partnerskich — OpenCart-style carousel */
.brands-slider {
  position: relative;
  padding: 4rem 0 4.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.75), rgba(10, 16, 32, 0.95));
  border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.brands-slider__glow {
  position: absolute;
  width: 480px;
  height: 280px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0, 102, 255, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.7;
}

.brands-slider__inner {
  position: relative;
  z-index: 1;
}

.brands-slider__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.brands-slider__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.55rem;
}

.brands-slider__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}

.brands-slider__sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

.brands-carousel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 3.25rem;
}

.brands-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.brands-carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.brands-carousel__track.is-dragging {
  transition: none;
}

.brands-carousel__slide {
  flex: 0 0 calc(100% / var(--brands-per-view, 4));
  padding: 0 0.625rem;
  box-sizing: border-box;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 1.25rem 1rem;
  background: rgba(17, 26, 46, 0.65);
  border: 1px solid rgba(0, 102, 255, 0.14);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 rgba(0, 102, 255, 0);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.brand-card:hover,
.brand-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.45);
  background: rgba(22, 34, 58, 0.85);
  box-shadow: 0 8px 28px rgba(0, 102, 255, 0.18), 0 0 24px rgba(0, 102, 255, 0.08);
}

.brand-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  outline: none;
}

.brand-card__logo {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: brightness(0.95) contrast(1.05);
  opacity: 0.88;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* Uploaded partner logos with dark/black matte — blend into tile */
.brand-card__logo--blend {
  mix-blend-mode: screen;
  filter: none;
}

.brand-card:hover .brand-card__logo,
.brand-card:focus-within .brand-card__logo {
  opacity: 1;
  filter: brightness(1.05) drop-shadow(0 0 8px rgba(0, 102, 255, 0.35));
  transform: scale(1.04);
}

.brand-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brands-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 102, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 16, 32, 0.85);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  z-index: 2;
}

.brands-carousel__nav:hover {
  background: rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.6);
  box-shadow: 0 0 18px rgba(0, 102, 255, 0.25);
  color: #fff;
}

.brands-carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.brands-carousel__nav--prev { left: 0; }
.brands-carousel__nav--next { right: 0; }

.brands-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.brands-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.brands-carousel__dot:hover {
  background: rgba(0, 102, 255, 0.5);
}

.brands-carousel__dot.is-active {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.55);
  transform: scale(1.15);
}

@media (max-width: 1024px) {
  .brands-carousel {
    padding: 0 2.75rem;
  }

  .brand-card {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .brands-slider {
    padding: 3rem 0 3.5rem;
  }

  .brands-carousel {
    padding: 0 2.25rem;
  }

  .brands-carousel__nav {
    width: 36px;
    height: 36px;
  }

  .brand-card {
    height: 88px;
    padding: 0.85rem;
  }

  .brand-card__logo {
    max-height: 42px;
  }
}

@media (max-width: 480px) {
  .brands-carousel {
    padding: 0 1.75rem;
  }

  .brands-carousel__nav {
    width: 32px;
    height: 32px;
  }
}
