/* ==========================================================================
   PODSTRONA: POZNAJMY SIĘ (RODZINNA AGENCJA WROCŁAW)
   Przebudowa układu 2026-10-05: otwarcie z kartą „Dlaczego możesz nam zaufać”,
   doradcy z osią kariery, wyróżniony krok 3, licencje + towarzystwa w jednym bloku,
   galeria wpleciona w sekcję „Prywatnie”.
   ========================================================================== */

/* --- 1. OTWARCIE --- */
.ak-about-page-intro {
  padding: 40px 0 56px;
  background-color: var(--ak-bg-white);
}

.ak-about-page-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Breadcrumbs */
.ak-breadcrumbs {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13.5px;
  color: var(--ak-text-gray);
  margin-bottom: 20px;
  text-align: left;
}

.ak-breadcrumbs a {
  color: var(--ak-teal-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ak-breadcrumbs a:hover {
  text-decoration: underline;
}

.ak-breadcrumbs span {
  margin: 0 6px;
  opacity: 0.6;
}

.ak-about-page-h1 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  color: var(--ak-text-dark);
  text-align: left;
  text-wrap: balance;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 28px 0;
  max-width: 24em;
}

.ak-about-page-h1 .ak-teal-highlight {
  color: var(--ak-teal-ink);
}

/* Układ otwarcia: tekst po lewej, karta zaufania po prawej */
.ak-pz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px;
  align-items: start;
}

.ak-about-page-subtitle {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--ak-navy-dark);
  text-align: left;
  line-height: 1.35;
  margin: 4px 0 18px 20px;
}

.ak-about-page-text-block {
  margin: 0 0 0 20px;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ak-text-gray);
}

.ak-about-page-text-block p {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.ak-about-page-text-block strong {
  font-weight: 700;
  color: var(--ak-navy-dark);
}

.ak-about-page-text-block a {
  color: var(--ak-teal-ink);
  text-underline-offset: 3px;
}

/* Pigułki kontaktu pod wstępem */
.ak-pz-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 32px 0 0 20px;
}

/* Karta „Dlaczego możesz nam zaufać” */
.ak-pz-dossier {
  background: var(--ak-bg-white);
  border-radius: 20px;
  box-shadow: var(--ak-shadow-card);
  overflow: hidden;
}

.ak-pz-dossier-h {
  margin: 0;
  padding: 18px 26px;
  background: var(--ak-navy-dark);
  color: var(--ak-text-inverse);
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.ak-pz-dossier-list {
  list-style: none;
  margin: 0;
  padding: 4px 26px 8px;
}

.ak-pz-dossier-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
}

.ak-pz-dossier-list li + li {
  border-top: 1px solid var(--ak-border-light);
}

.ak-pz-dossier-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ak-teal-action-gradient);
}

.ak-pz-dossier-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--ak-text-inverse);
}

.ak-pz-dossier-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ak-navy-dark);
}

.ak-pz-dossier-detail {
  margin: 0;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ak-text-gray);
  font-variant-numeric: tabular-nums;
}

.ak-pz-dossier-link {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ak-teal-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.ak-pz-dossier-link:hover {
  color: var(--ak-teal-action-hover);
  text-decoration-thickness: 2px;
}

.ak-pz-stars {
  display: inline-flex;
  gap: 1px;
}

.ak-pz-stars svg {
  width: 17px;
  height: 17px;
  fill: #f59e0b;
}

/* --- 2. SEKCJE TREŚCI (wspólne) --- */
.ak-pz-section {
  padding: 56px 0;
  background-color: var(--ak-bg-white);
}

.ak-pz-section--muted {
  background-color: var(--ak-bg-light);
}

.ak-pz-h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ak-navy-dark);
  text-align: left;
  text-wrap: balance;
  margin: 0 0 28px;
}

.ak-pz-section p,
.ak-pz-section li {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ak-text-gray);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.ak-pz-section a {
  color: var(--ak-teal-ink);
  text-underline-offset: 3px;
}

.ak-pz-section h3 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ak-navy-dark);
  text-align: left;
  margin: 0 0 6px;
}

/* --- 3. DORADCY: profil z osią kariery --- */
.ak-pz-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.ak-pz-person {
  display: flex;
  flex-direction: column;
  background: var(--ak-bg-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ak-shadow-card);
}

/* Miejsce na portret po sesji zdjęciowej */
.ak-pz-person-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ak-pz-person-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 30px 30px;
}

.ak-pz-section .ak-pz-person-body h3 {
  font-size: 24px;
}

.ak-pz-section .ak-pz-role {
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ak-teal-ink);
  margin: 0 0 20px;
  font-variant-numeric: tabular-nums;
}

.ak-pz-section .ak-pz-edu {
  text-align: left;
  margin: 0 0 22px;
  padding: 12px 16px;
  background: var(--ak-bg-light);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ak-navy-dark);
}

.ak-pz-edu span {
  display: block;
  margin-bottom: 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ak-text-muted);
}

/* Oś kariery */
.ak-pz-career {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.ak-pz-section .ak-pz-career li {
  position: relative;
  padding: 0 0 20px 32px;
  text-align: left;
  font-size: 16px;
  line-height: 1.55;
}

.ak-pz-career li:last-child {
  padding-bottom: 0;
}

/* Punkt na osi */
.ak-pz-career li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ak-teal-ink);
  background: var(--ak-bg-white);
  box-sizing: border-box;
}

/* Linia łącząca punkty */
.ak-pz-career li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: rgba(86, 168, 168, 0.35);
}

.ak-pz-career li.is-now::before {
  background: var(--ak-teal-ink);
}

.ak-pz-career-where {
  display: block;
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ak-teal-ink);
  line-height: 1.4;
}

.ak-pz-career-what {
  display: block;
}

.ak-pz-career li.is-now .ak-pz-career-what {
  color: var(--ak-navy-dark);
  font-weight: 600;
}

.ak-pz-section .ak-pz-person-note {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--ak-border-light);
  font-size: 16.5px;
  line-height: 1.6;
}

/* --- 4. JAK PRACUJEMY --- */
.ak-pz-steps {
  list-style: none;
  counter-reset: ak-pz-step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.ak-pz-steps li {
  counter-increment: ak-pz-step;
  position: relative;
  padding: 18px 24px 18px 76px;
  background: var(--ak-bg-white);
  border: 1px solid var(--ak-border-light);
  border-radius: 16px;
}

.ak-pz-steps li::before {
  content: counter(ak-pz-step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ak-teal-action);
  color: var(--ak-text-inverse);
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Linia łącząca numery kroków */
.ak-pz-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 37px;
  top: 58px;
  bottom: -32px;
  width: 2px;
  border-radius: 2px;
  background: rgba(86, 168, 168, 0.35);
}

.ak-pz-steps strong {
  color: var(--ak-navy-dark);
}

/* Krok 3 – sedno pracy */
.ak-pz-steps li.is-key {
  background: rgba(86, 168, 168, 0.08);
  border-color: var(--ak-teal-ink);
}

.ak-pz-steps li.is-key::before {
  top: 50px;
}

.ak-pz-steps li.is-key::after {
  top: 90px;
}

/* Linia nad wyróżnionym krokiem sięga jego obniżonego numeru */
.ak-pz-steps li:nth-child(2)::after {
  bottom: -64px;
}

.ak-pz-step-tag {
  display: block;
  width: fit-content;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--ak-teal-action);
  color: var(--ak-text-inverse);
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* --- 5. LICENCJE, TOWARZYSTWA I ZASADY --- */
.ak-pz-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ak-pz-fact {
  padding: 24px 26px 24px;
  background: var(--ak-bg-white);
  border: 1px solid var(--ak-border-light);
  border-radius: 16px;
}

.ak-pz-fact--wide {
  grid-column: 1 / -1;
}

.ak-pz-fact p {
  margin: 0;
}

.ak-pz-section .ak-pz-logos-h {
  margin: 28px 0 16px;
  font-size: 18px;
}

.ak-pz-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.ak-pz-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 10px 14px;
  background: var(--ak-bg-white);
  border: 1px solid var(--ak-border-light);
  border-radius: 14px;
}

.ak-pz-logos img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- 6. PRYWATNIE: trzy części ze zdjęciami --- */
.ak-pz-private {
  padding-bottom: 72px;
}

.ak-pz-beat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.ak-pz-beat + .ak-pz-beat {
  margin-top: 56px;
}

.ak-pz-beat--flip {
  grid-template-columns: auto minmax(0, 1fr);
}

.ak-pz-beat--flip .ak-pz-beat-text {
  order: 2;
}

.ak-pz-beat-text {
  max-width: 34em;
}

.ak-pz-beat-text p {
  margin: 0;
}

.ak-pz-section .ak-pz-beat-text h3 {
  font-size: 26px;
  margin: 0 0 10px;
}

.ak-pz-section .ak-pz-beat-lead {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ak-navy-dark);
  text-align: left;
}

/* Zdjęcia: stała wysokość rzędu, szerokość z proporcji kadru */
.ak-pz-beat-photos {
  display: grid;
  gap: 14px;
}

.ak-pz-beat-photos--1 {
  grid-template-columns: 1fr;
  width: 560px;
}

.ak-pz-beat-photos--2w {
  grid-template-columns: 1fr 1fr;
  width: 640px;
}

.ak-pz-beat-photos--3 {
  grid-template-columns: repeat(3, 1fr);
  width: 560px;
}

.ak-pz-beat-photos--4 {
  grid-template-columns: repeat(4, 1fr);
  width: 680px;
}

.ak-pz-beat-photos figure {
  margin: 0;
  min-height: 0;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--ak-surface-muted);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.ak-pz-beat-photos figure.is-wide {
  aspect-ratio: 4 / 3;
}

.ak-pz-beat-photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ak-pz-section .ak-pz-private-cta {
  margin: 56px 0 0;
  text-align: left;
}

.ak-pz-private-cta a {
  font-weight: 700;
}

/* --- TABLET: otwarcie i części „Prywatnie” w jednej kolumnie --- */
@media (max-width: 1024px) {
  .ak-pz-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .ak-pz-dossier {
    max-width: 620px;
  }
  .ak-pz-beat,
  .ak-pz-beat--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .ak-pz-beat--flip .ak-pz-beat-text {
    order: 0;
  }
  .ak-pz-beat-photos {
    width: 100%;
  }
  .ak-pz-beat-photos--1 {
    max-width: 640px;
  }
}

/* --- TELEFON: wszystko wyśrodkowane --- */
@media (max-width: 850px) {
  .ak-about-page-intro {
    padding: 25px 0 40px;
  }
  .ak-breadcrumbs {
    text-align: center;
    margin-bottom: 14px;
  }
  .ak-about-page-h1 {
    font-size: 24px;
    margin: 0 auto 14px;
    text-align: center;
  }
  .ak-about-page-subtitle {
    font-size: 18px;
    margin: 0 0 14px;
    text-align: center;
  }
  .ak-about-page-text-block {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
  }
  .ak-about-page-text-block p {
    text-align: center;
  }
  .ak-pz-hero-actions {
    align-items: center;
    margin: 24px 0 0;
  }
  .ak-pz-dossier {
    max-width: none;
  }
  .ak-pz-dossier-h {
    text-align: center;
    font-size: 19px;
    padding: 16px 20px;
  }
  .ak-pz-dossier-list {
    padding: 2px 20px 6px;
  }
  .ak-pz-dossier-list li {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
    padding: 18px 0;
    text-align: center;
  }
  .ak-pz-dossier-title {
    justify-content: center;
  }

  .ak-pz-section {
    padding: 40px 0;
  }
  .ak-pz-h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 22px;
  }
  .ak-pz-section p,
  .ak-pz-section li {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
  }
  .ak-pz-section h3,
  .ak-pz-section .ak-pz-role,
  .ak-pz-section .ak-pz-edu,
  .ak-pz-section .ak-pz-beat-lead,
  .ak-pz-section .ak-pz-private-cta {
    text-align: center;
  }

  .ak-pz-people {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .ak-pz-person-body {
    padding: 24px 20px 24px;
  }
  .ak-pz-section .ak-pz-person-body h3 {
    font-size: 22px;
  }
  /* Oś kariery na telefonie: punkt nad wpisem, bez linii bocznej */
  .ak-pz-section .ak-pz-career li {
    padding: 0 0 16px;
    text-align: center;
    font-size: 15.5px;
  }
  .ak-pz-career li::before {
    position: static;
    display: block;
    margin: 0 auto 6px;
  }
  .ak-pz-career li:not(:last-child)::after {
    display: none;
  }

  .ak-pz-steps li,
  .ak-pz-steps li.is-key {
    padding: 62px 18px 18px;
  }
  .ak-pz-steps li::before,
  .ak-pz-steps li.is-key::before {
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
  }
  .ak-pz-steps li:not(:last-child)::after {
    display: none;
  }
  .ak-pz-step-tag {
    margin: 0 auto 10px;
  }

  .ak-pz-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .ak-pz-fact {
    padding: 22px 18px;
  }
  .ak-pz-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ak-pz-logos li {
    height: 68px;
  }
  .ak-pz-logos img {
    max-height: 44px;
  }

  .ak-pz-private {
    padding-bottom: 48px;
  }
  .ak-pz-beat + .ak-pz-beat {
    margin-top: 40px;
  }
  .ak-pz-beat-text {
    max-width: none;
  }
  .ak-pz-section .ak-pz-beat-text h3 {
    font-size: 22px;
  }
  .ak-pz-beat-photos {
    gap: 10px;
  }
  .ak-pz-beat-photos--2w {
    grid-template-columns: 1fr;
  }
  .ak-pz-beat-photos--4 {
    grid-template-columns: 1fr 1fr;
  }
  .ak-pz-beat-photos figure {
    border-radius: 14px;
  }
  .ak-pz-section .ak-pz-private-cta {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ak-breadcrumbs a,
  .ak-pz-dossier-link {
    transition: none;
  }
}
