/* KartS Opinions Slider
   --------------------------------------------------------------- */
.kos-slider {
  --kos-primary: var(--gcid-primary-color, #0059ff);
  --kos-radius: 16px;
  --kos-bg: #ececef;
  --kos-title: #0b0d12;
  --kos-text: #5a5f6b;
  --kos-lines: 4;

  position: relative;
  margin: 0 auto;
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  box-sizing: border-box;
}
.kos-slider *,
.kos-slider *::before,
.kos-slider *::after {
  box-sizing: border-box;
}

/* Viewport / track ------------------------------------------------ */
.kos-viewport {
  overflow: hidden;
  background: var(--kos-bg);
  border-radius: var(--kos-radius);
}
.kos-track {
  display: flex;
  will-change: transform;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide ----------------------------------------------------------- */
.kos-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 36px;
  padding: 28px;
}
.kos-media {
  border-radius: 12px;
  overflow: hidden;
  background: #c9cace;
}
.kos-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 11;
}

/* Body ------------------------------------------------------------ */
.kos-body {
  min-width: 0;
  padding-right: 8px;
}
.kos-title {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--kos-title);
}

/* Stars (jedna grafika 5★, przycinana do oceny) ------------------- */
.kos-stars {
  position: relative;
  display: inline-block;
  height: 22px;
  margin: 0 0 16px;
  line-height: 0;
}
.kos-stars__bg {
  display: block;
  height: 22px;
  width: auto;
  max-width: none;
  opacity: 0.22;
}
.kos-stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  overflow: hidden;
  white-space: nowrap;
}
.kos-stars__fill img {
  display: block;
  height: 22px;
  width: auto;
  max-width: none;
}

/* Treść + read more ----------------------------------------------- */
.kos-text {
  color: var(--kos-text);
  font-size: 15px;
  line-height: 1.62;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: var(--kos-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kos-text.is-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.kos-text > :first-child {
  margin-top: 0;
}
.kos-text > :last-child {
  margin-bottom: 0;
}

.kos-readmore {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 4px 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--kos-title);
}
.kos-readmore:hover {
  text-decoration: underline;
}

/* Osoba ----------------------------------------------------------- */
.kos-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}
.kos-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kos-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kos-person__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.kos-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--kos-title);
}
.kos-role {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #474d52;
}

/* Przycisk "Zobacz projekt" --------------------------------------- */
.kos-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  font-weight: 500;
  color: var(--kos-primary);
  font-size: 14px;
  line-height: 100%;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid #0059ff;
  transition: all 300ms ease 0ms;
}
.kos-btn .kos-chevron {
  width: 16px;
  height: 16px;
}
.kos-btn:hover,
.kos-btn:focus-visible {
  background-color: #0059ff;
  color: #fff;
}

/* Strzałki --------------------------------------------------------- */
.kos-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #0b0d12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 13, 18, 0.12);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease;
}
.kos-arrow:hover {
  color: var(--kos-primary);
  box-shadow: 0 8px 22px rgba(11, 13, 18, 0.18);
}
.kos-arrow:active {
  transform: translateY(-50%) scale(0.94);
}
.kos-arrow--prev {
  left: 14px;
}
.kos-arrow--next {
  right: 14px;
}
.kos-arrow:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

/* Dots ------------------------------------------------------------- */
.kos-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.kos-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c4c6cc;
  cursor: pointer;
  transition:
    width 200ms ease,
    background 200ms ease;
}
.kos-dots button.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--kos-primary);
}

/* Focus ------------------------------------------------------------ */
.kos-slider :focus-visible {
  outline: 2px solid var(--kos-primary);
  outline-offset: 2px;
}

/* Responsive ------------------------------------------------------- */
@media (max-width: 860px) {
  .kos-slide {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }
  .kos-media__img {
    aspect-ratio: 16 / 10;
  }
  .kos-arrow {
    width: 38px;
    height: 38px;
  }
  .kos-arrow--prev {
    left: 8px;
  }
  .kos-arrow--next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kos-track {
    transition: none;
  }
  .kos-arrow {
    transition: none;
  }
}
