/**
 * pysiecreviews - "Co mówią opiekunowie" (homepage) + formularz zgłaszania.
 * 1:1 z surowego pliku źródłowego makiety (linie 470-501), tokeny z custom.css.
 * Padding boczny clamp(16px,4vw,32px) - dosłowna wartość z makiety dla tej sekcji.
 */

.pysiec-reviews {
  width: 100%;
  min-width: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 4vw, 32px) clamp(32px, 5vw, 56px);
  box-sizing: border-box;
}

.pysiec-reviews__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.pysiec-reviews__heading {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.02em;
  color: var(--pysiec-text, #1a1a18);
  margin: 0;
}

.pysiec-reviews__summary {
  font-size: 14px;
  color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-reviews__summary strong {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-size: 17px;
}

.pysiec-reviews__all-link {
  color: var(--pysiec-brand, #b08858);
  font-weight: 700;
  text-decoration: none;
}

.pysiec-reviews__all-link:hover,
.pysiec-reviews__all-link:focus-visible {
  color: var(--pysiec-brand-hover, #9b7346);
}

/* Karuzela grup po 3 opinie - rotacja w reviews.js, gdy jest ich więcej niż 3
   (na żądanie użytkownika, sesja 2026-09-17). */
.pysiec-reviews__carousel {
  position: relative;
}

.pysiec-reviews__slide {
  display: none;
}

.pysiec-reviews__slide.is-active {
  display: block;
  animation: pysiec-reviews-fade .5s ease;
}

@keyframes pysiec-reviews-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pysiec-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.pysiec-reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--pysiec-radius-pill, 999px);
  border: 0;
  padding: 0;
  background: var(--pysiec-line-20, rgba(62, 47, 35, .2));
  cursor: pointer;
}

.pysiec-reviews__dot.is-active {
  background: var(--pysiec-brand, #b08858);
}

.pysiec-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.pysiec-reviews__card {
  background: #fff;
  border: 1px solid var(--pysiec-line-20, rgba(62, 47, 35, .2));
  border-radius: var(--pysiec-radius-lg, 20px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.pysiec-reviews__stars {
  color: var(--pysiec-brand, #b08858);
  font-size: 15px;
  letter-spacing: .18em;
}

.pysiec-reviews__quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--pysiec-text, #1a1a18);
  margin: 12px 0 0;
}

.pysiec-reviews__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.pysiec-reviews__avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: repeating-linear-gradient(135deg, var(--pysiec-cream, #e8dcc5) 0 6px, #f0e7d5 6px 12px);
  flex: 0 0 auto;
}

.pysiec-reviews__author-text {
  font-size: 13px;
  line-height: 1.35;
}

.pysiec-reviews__author-text strong {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
}

.pysiec-reviews__verified {
  color: #56663a;
  font-weight: 600;
}

.pysiec-reviews__empty {
  background: repeating-linear-gradient(135deg, var(--pysiec-cream, #e8dcc5) 0 14px, #f0e7d5 14px 28px);
  border: 1px solid var(--pysiec-line-20, rgba(62, 47, 35, .2));
  border-radius: var(--pysiec-radius-xl, 22px);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  text-align: left;
}

.pysiec-reviews__empty-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 260px;
  min-width: 0;
}

.pysiec-reviews__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: #fff;
  font-size: 19px;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(62, 47, 35, .1);
}

.pysiec-reviews__empty-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 2px;
  color: var(--pysiec-text, #1a1a18);
}

.pysiec-reviews__empty-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--pysiec-espresso, #3e2f23);
  opacity: .85;
}

.pysiec-reviews__empty-cta {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: var(--pysiec-brand, #b08858);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(138, 101, 53, .28);
}

.pysiec-reviews__empty-cta:hover,
.pysiec-reviews__empty-cta:focus-visible {
  background: var(--pysiec-brand-hover, #9b7346);
}

/* === Formularz zgłaszania (submit.tpl) === */
.pysiec-reviewform {
  max-width: 640px;
}

.pysiec-reviewform__intro {
  margin-bottom: 20px;
}

.pysiec-reviewform__stats {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-size: 17px;
  color: var(--pysiec-text, #1a1a18);
  margin: 0 0 6px;
}

.pysiec-reviewform__note {
  font-size: 14px;
  color: var(--pysiec-espresso, #3e2f23);
  opacity: .8;
  margin: 0;
}

.pysiec-reviewform__alert {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.pysiec-reviewform__alert--success {
  background: rgba(143, 163, 92, .16);
  color: #3e2f23;
}

.pysiec-reviewform__alert--error {
  background: rgba(217, 167, 160, .22);
  color: #3e2f23;
}

.pysiec-reviewform__alert--error ul {
  margin: 0;
  padding-left: 18px;
}

.pysiec-reviewform__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.pysiec-reviewform__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pysiec-reviewform__row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-reviewform__row input,
.pysiec-reviewform__row select,
.pysiec-reviewform__row textarea {
  height: 46px;
  border: 1px solid var(--pysiec-line-28, rgba(62, 47, 35, .28));
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  background: var(--pysiec-bg, #faf8f3);
  color: var(--pysiec-text, #1a1a18);
  box-sizing: border-box;
}

.pysiec-reviewform__row textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.pysiec-reviewform__row input:focus,
.pysiec-reviewform__row select:focus,
.pysiec-reviewform__row textarea:focus {
  outline: none;
  border-color: var(--pysiec-brand, #b08858);
  background: #fff;
}

.pysiec-reviewform__submit {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: var(--pysiec-brand, #b08858);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.pysiec-reviewform__submit:hover,
.pysiec-reviewform__submit:focus-visible {
  background: var(--pysiec-brand-hover, #9b7346);
  color: #fff;
}

.pysiec-reviewform__login-gate {
  background: var(--pysiec-cream, #e8dcc5);
  border-radius: var(--pysiec-radius-xl, 22px);
  padding: 28px 24px;
  margin-bottom: 40px;
  text-align: center;
}

.pysiec-reviewform__login-gate p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--pysiec-espresso, #3e2f23);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.pysiec-reviewform__list-heading {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 18px;
}
