/* =========================================================
   O nas — style podstrony (Figma: frame "O nas", 56:2)
   ========================================================= */

/* ---------- Banner ---------- */
.about-banner__frame {
  height: 600px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.about-banner__frame img { width: 100%; height: 100%; object-fit: cover; }
/* Zdjęcie ma znak wodny w lewym dolnym rogu (ok. 91–98% wysokości).
   Od ~1350px kadr "cover" sam go ucina (jak w Figmie); poniżej obraz jest
   wyższy od ramki o 15%, więc dolne ~13% zawsze zostaje poza kadrem. */
@media (max-width: 1350px) {
  .about-banner__frame img { height: 115%; }
}

/* ---------- Historia ---------- */
.about-story { padding-block: 120px; }
.about-story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.about-story__titles { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.about-story__titles .eyebrow { letter-spacing: .117em; }
.about-story__title {
  font-size: 48px;
  line-height: 54px;
  font-weight: 300;
  letter-spacing: -2px;
}
.about-story__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 34px;
  font-size: 17px;
  line-height: 28px;
  color: var(--c-muted);
}
.signature { display: flex; align-items: center; gap: 14px; padding-top: 12px; }
.signature__photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #e6e6e0;
  flex-shrink: 0;
}
.signature__name { display: block; font-size: 15px; line-height: 18px; font-weight: 500; color: var(--c-ink); }
.signature__role { display: block; margin-top: 2px; font-size: 13px; line-height: 16px; color: var(--c-muted); }

/* ---------- Dlaczego Ideal Form ---------- */
.about-usp { padding-block: 72px; }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 48px;
  margin-top: 32px;
}
.usp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 23px 0 32px;            /* 24 w Figmie; obrys w Figmie nie zwiększa wysokości */
  border-top: 1px solid #dcdcd9;
  line-height: 24px;
}
.usp__title { font-size: 17px; font-weight: 500; letter-spacing: -.005em; }
.usp__text { font-size: 15px; color: var(--c-muted); }

/* ---------- Opinie — karuzela ---------- */
.reviews-carousel { overflow: hidden; }
.rc-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.rc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 18px;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.rc-arrow:hover { border-color: var(--c-ink); }
.rc-arrow--dark { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.rc-arrow--dark:hover { background: #000; }

/* viewport sięga do prawej krawędzi okna (karty "wychodzą" za kontener) */
.rc-viewport {
  margin-top: 48px;
  margin-right: calc((100vw - 100%) / -2);
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  border-radius: 16px 0 0 16px;
}
.rc-viewport:focus-visible { outline-offset: 4px; }
.rc-viewport.is-dragging { cursor: grabbing; }
.rc-viewport.is-dragging .rc-track { transition: none; }
.rc-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.rc {
  flex: 0 0 340px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  background: var(--c-white);
  color: var(--c-ink);
  user-select: none;
  transition: flex-basis .5s cubic-bezier(.22, .61, .36, 1), background-color .4s, color .4s, padding .4s;
}
.rc__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: -4px; }
.rc__stars { font-size: 14px; line-height: 17px; letter-spacing: 2px; color: var(--c-green); }
.rc__src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--c-soft);
  font-size: 11px;
  line-height: 13px;
  font-weight: 500;
}
.rc__src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff5a00; }
.rc__src--facebook::before { background: #1877f2; }
.rc__text {
  flex: 1;
  font-size: 17px;
  line-height: 26px;
}
.rc:not(.is-featured) .rc__text::before { content: "„"; }
.rc:not(.is-featured) .rc__text::after { content: "”"; }
.rc__author { display: flex; align-items: center; gap: 12px; }
.rc__author .avatar { width: 36px; height: 36px; font-size: 13px; font-weight: 600; }
.rc__name { display: block; font-size: 14px; line-height: 17px; font-weight: 500; }
.rc__date { display: block; margin-top: 2px; font-size: 12px; line-height: 15px; color: var(--c-muted); }
.rc__stars--bottom { display: none; margin-left: auto; font-size: 15px; line-height: 18px; }

/* karta wyróżniona (aktywna) */
.rc.is-featured {
  flex-basis: 560px;
  padding: 40px 44px;
  background: var(--c-ink);
  color: var(--c-white);
}
.rc.is-featured .rc__top { display: none; }
.rc.is-featured .rc__text {
  font-size: 24px;
  line-height: 33px;
  font-weight: 300;
  letter-spacing: -.5px;
}
.rc.is-featured .rc__text::before {
  content: "“";
  display: block;
  margin-bottom: 8px;
  font-size: 96px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-green);
  height: 72px;
}
.rc.is-featured .rc__date { color: rgba(255, 255, 255, .6); }
.rc.is-featured .rc__stars--bottom { display: block; }

.rc-footer {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
}
.rc-counter { font-size: 13px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-progress { position: relative; flex: 1; height: 2px; background: var(--c-line); overflow: hidden; }
.rc-progress__bar {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 120px;
  background: var(--c-ink);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.rc-links { display: flex; gap: 24px; line-height: 16px; }

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .about-banner__frame { height: 480px; }
  .about-story { padding-block: 88px; }
  .about-story__inner { grid-template-columns: 1fr; gap: 24px; }
  .about-story__title { font-size: 40px; line-height: 46px; letter-spacing: -1.5px; }
  .about-story__copy { padding-top: 0; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .steps-head__lead br { display: none; }
  .rc-footer { flex-wrap: wrap; gap: 16px 24px; }
  .rc-progress { flex-basis: calc(100% - 80px); }
  .rc-links { width: 100%; }
}

@media (max-width: 640px) {
  .about-banner__frame { height: 300px; }
  .about-story { padding-block: 56px; }
  .about-story__title { font-size: 32px; line-height: 38px; letter-spacing: -1px; }
  .about-story__copy { font-size: 16px; line-height: 26px; }
  .about-usp { padding-block: 56px; }
  .usp-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .usp { padding: 20px 0 24px; }
  .section--72 { padding-block: 56px; }

  .reviews-carousel .section-head { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
  .rc-arrow { width: 44px; height: 44px; }
  .rc-viewport { margin-top: 32px; }
  .rc { flex-basis: min(300px, 80vw); min-height: 360px; padding: 24px; }
  .rc.is-featured { flex-basis: min(560px, 86vw); padding: 28px 24px; }   /* następna karta lekko wystaje */
  .rc.is-featured .rc__text { font-size: 20px; line-height: 28px; }
  .rc.is-featured .rc__text::before { font-size: 72px; line-height: 56px; height: 56px; }
  .rc-links { flex-wrap: wrap; gap: 12px 24px; }
}
