/* CPO Reviews Slider — стили карусели отзывов (все классы с префиксом cpors) */
.cpors {
  --s-accent: #02778b; --s-ink: #1c2530; --s-muted: #5b6978; --s-line: #e2e8ee;
  box-sizing: border-box; max-width: 1100px; margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif; color: var(--s-ink);
}
.cpors * { box-sizing: border-box; font-family: inherit; }
.cpors__head { display: flex; flex-direction: column; gap: 22px; margin: 0 0 18px; }
.cpors__titlewrap { text-align: center; }
.cpors h2.cpors__title { margin: 0; padding: 0; font-size: 24px; line-height: 1.25; font-weight: 400; letter-spacing: normal; text-transform: none; color: #3b4755; }
/* Украшение под заголовком, как в старом блоке: три точки и короткая линия */
.cpors__deco { position: relative; display: block; width: 82px; height: 6px; margin: 16px auto 0;
  background:
    radial-gradient(circle, var(--s-accent) 2.6px, transparent 3px) 0 0 / 6px 6px no-repeat,
    radial-gradient(circle, var(--s-accent) 2.6px, transparent 3px) 14px 0 / 6px 6px no-repeat,
    radial-gradient(circle, var(--s-accent) 2.6px, transparent 3px) 28px 0 / 6px 6px no-repeat; }
.cpors__deco::after { content: ""; position: absolute; right: 0; top: 0; width: 40px; height: 6px; border-radius: 3px; background: var(--s-accent); }
.cpors__ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cpors a.cpors__all { margin-right: 8px; font-weight: 600; text-decoration: none; color: var(--s-accent); }
.cpors a.cpors__all:hover { text-decoration: underline; }
.cpors button.cpors__btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  font-size: 24px; line-height: 1; color: var(--s-accent); background: #fff;
  border: 1px solid var(--s-line); border-radius: 50%; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.cpors button.cpors__btn::before { content: ""; display: block; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 4px; }
.cpors button.cpors__btn[data-cpors-dir="1"]::before { transform: rotate(-135deg); margin-left: 0; margin-right: 4px; }
.cpors button.cpors__btn:hover:not(:disabled) { background: var(--s-accent); border-color: var(--s-accent); color: #fff; }
.cpors button.cpors__btn:disabled { opacity: .4; cursor: default; }
.cpors button:focus-visible, .cpors a:focus-visible, .cpors__track:focus-visible { outline: 3px solid #a9c624; outline-offset: 3px; }

/* Карточки одной высоты: сетка растягивает их до самой высокой */
.cpors__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px; align-items: stretch;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 20px; scrollbar-width: none;
}
.cpors__track::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .cpors__track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .cpors__track { grid-auto-columns: 88%; gap: 16px; } }

.cpors__card {
  --c: #02778b;
  position: relative; display: flex; flex-direction: column; scroll-snap-align: start;
  padding: 30px 26px 22px; background: #fff;
  border: 1px solid var(--s-line); border-top: 4px solid var(--c); border-radius: 20px;
  transition: box-shadow .2s, transform .2s;
}
.cpors__card:nth-child(3n+2) { --c: #a9c624; }
.cpors__card:nth-child(3n+3) { --c: #1b9ac0; }
.cpors__card:hover, .cpors__card:focus-within { box-shadow: 0 16px 32px -22px rgba(2, 119, 139, .55); transform: translateY(-2px); }
.cpors__card::before { content: "\201C"; position: absolute; top: 4px; right: 20px; font: 700 76px/1 Georgia, serif; color: #e6f2f7; pointer-events: none; }
.cpors p.cpors__text {
  position: relative; margin: 0 0 14px; font-size: 15.5px; line-height: 1.65; color: #3b4755;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.cpors a.cpors__more { align-self: flex-start; margin-bottom: 20px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--s-accent); }
.cpors a.cpors__more:hover { text-decoration: underline; }
.cpors a.cpors__more::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.cpors__who { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--s-line); }
.cpors__avatar { flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: #e6f2f7; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--s-line); }
.cpors .cpors__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 25%; }
.cpors__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--s-accent); font-weight: 700; font-size: 1.3rem; }
.cpors__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cpors__meta strong { font-size: 15px; color: var(--s-ink); }
.cpors__meta span { font-size: 13px; color: var(--s-muted); }
@media (prefers-reduced-motion: reduce) { .cpors__card, .cpors button { transition: none; } .cpors__card:hover { transform: none; } }
