/* ==========================================================================
   SEKCJA DORADCY (POZNAJ KAROLINĘ I ARKA) – UKŁAD 1:1 ZE SCREENEM
   ========================================================================== */

.ak-about-section {
  padding: 50px 0 70px;
  background-color: var(--ak-bg-white);
}

.ak-about-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Układ dwukolumnowy */
.ak-about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 55px;
}

.ak-about-col {
  display: flex;
  flex-direction: column;
}

/* Lewa Kolumna: H2, Tekst 1, Zdjęcie Karoliny */
.ak-about-h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 600;
  color: var(--ak-text-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 22px 0;
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  width: 100%;
}

.ak-about-col-left .ak-about-text {
  margin-bottom: 28px;
}

@media (min-width: 769px) {
  .ak-about-col-left .ak-about-text {
    margin-left: 20px;
  }
}

/* Prawa Kolumna: Zdjęcie Arka na samej górze, Tekst 2 wyśrodkowany do zdjęcia Karoliny */
.ak-about-col-right .ak-about-img-wrap {
  margin-bottom: 0;
}

/* Komputer (2026-10-01): wspólna siatka zamiast dwóch niezależnych kolumn + skryptu alignAboutText.
   Kolumny są "przezroczyste" (display: contents), więc ich elementy układają się w jednej siatce:
     H2        | zdjęcie Arka
     akapit 1  | zdjęcie Arka
     Karolina  | akapit 2  ← wyśrodkowany w pionie względem zdjęcia Karoliny, bez mierzenia w JS */
@media (min-width: 851px) {
  .ak-about-cols {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "h2     photoA"
      "text1  photoA"
      "photoK text2";
    column-gap: 52px;
    row-gap: 0;
  }

  .ak-about-col {
    display: contents;
  }

  .ak-about-h2 { grid-area: h2; }
  .ak-about-col-left .ak-about-text { grid-area: text1; }
  .ak-about-col-left .ak-about-img-wrap { grid-area: photoK; }
  .ak-about-col-right .ak-about-img-wrap { grid-area: photoA; align-self: start; }

  .ak-about-col-right .ak-about-text {
    grid-area: text2;
    align-self: center;
    margin-left: 20px;
  }
}

.ak-about-text {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ak-text-gray); /* #56585e */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.ak-about-text p {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Kontenery zdjęć */
.ak-about-img-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ak-about-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ak-about-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 95, 104, 0.15);
}

/* Dolny blok: Stawiamy na relacje - nagłówek na pełną szerokość 1150px (jak w Hero) */
.ak-about-relations {
  width: 100%;
  margin: 30px auto 0;
  text-align: left;
  padding-top: 10px;
}

/* H3 w kolorze #254059 */
.ak-about-h3 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  line-height: 1.35;
  margin: 0 0 20px 0;
  width: 100%;
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  box-sizing: border-box;
}

/* Kolumna tekstu - spójna z sekcją Hero */
.ak-about-relations-content {
  width: 100%;
  margin: 0;
  text-align: left;
  box-sizing: border-box;
}

.ak-about-desc {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.68;
  color: var(--ak-text-gray);
  margin: 0 0 20px 20px;
  width: 90%;
  max-width: 90%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  box-sizing: border-box;
}

.ak-about-desc strong {
  font-weight: 700;
  color: var(--ak-navy-dark);
}

.ak-about-cta-prompt {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ak-navy-dark);
  margin: 0 0 28px 20px;
  width: 90%;
  max-width: 90%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  box-sizing: border-box;
}

/* Przycisk Poznaj naszą historię - wycentrowany */
.ak-about-btn-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.ak-btn-about {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  background: var(--ak-teal-action-gradient);
  color: var(--ak-text-inverse);
  text-decoration: none;
  padding: 12px 26px 12px 14px;
  border-radius: 50px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 8px 20px -6px rgba(31, 95, 104, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  appearance: none;
  outline: none;
  cursor: pointer;
  text-align: left;
}

.ak-btn-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-200%) skewX(-25deg);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.ak-btn-about:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 26px -6px rgba(31, 95, 104, 0.55);
}

.ak-btn-about:hover::before {
  transform: translateX(400%) skewX(-25deg);
}

.ak-btn-about:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 4px 10px -4px rgba(31, 95, 104, 0.45);
}

.ak-btn-icon-about {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.ak-btn-icon-about svg {
  width: 22px;
  height: 22px;
  fill: var(--ak-text-inverse);
}

.ak-btn-content-about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  position: relative;
  z-index: 2;
}

.ak-btn-title-about {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.ak-btn-subtitle-about {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 850px) {
  .ak-about-section {
    padding: 35px 0 50px;
  }

  .ak-about-cols {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
    margin-bottom: 35px;
  }

  .ak-about-col {
    display: contents;
  }

  /* Kolejność elementów na mobile (1:1 ze screenem referencyjnym):
     1. Nagłówek H2
     2. Zdjęcie Arka
     3. Akapit 1 (Poznajcie team...)
     4. Zdjęcie Karoliny
     5. Akapit 2 (Szanujemy Twój czas...)
  */
  .ak-about-h2 {
    order: 1;
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
    margin: 0 auto 20px;
    max-width: 480px;
  }

  .ak-about-col-right .ak-about-img-wrap {
    order: 2;
    margin: 0 auto 20px;
    width: 100%;
  }

  .ak-about-col-left .ak-about-text {
    order: 3;
    margin: 0 auto 24px;
    max-width: 520px;
    text-align: center;
  }

  .ak-about-col-left .ak-about-img-wrap {
    order: 4;
    margin: 0 auto 20px;
    width: 100%;
  }

  .ak-about-col-right .ak-about-text {
    order: 5;
    margin: 0 auto 28px !important;
    max-width: 520px;
    text-align: center;
  }

  .ak-about-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--ak-text-gray);
    text-align: center;
  }

  .ak-about-text p {
    text-align: center;
  }

  .ak-about-photo {
    max-width: 290px;
    margin: 0 auto;
    border-radius: 20px;
  }

  .ak-about-relations {
    padding-top: 0;
    text-align: center;
    margin: 0 auto;
  }

  .ak-about-h3 {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 14px;
    text-align: center;
  }

  .ak-about-desc {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 auto 18px;
    text-align: center;
  }

  .ak-about-cta-prompt {
    font-size: 16px;
    margin: 0 auto 20px;
    text-align: center;
  }

  .ak-about-btn-wrap {
    justify-content: center;
  }

  .ak-btn-about {
    max-width: 320px;
    padding: 10px 20px 10px 12px;
  }

  .ak-btn-icon-about {
    width: 38px;
    height: 38px;
    margin-right: 12px;
  }

  .ak-btn-icon-about svg {
    width: 18px;
    height: 18px;
  }

  .ak-btn-title-about {
    font-size: 15px;
  }

  .ak-btn-subtitle-about {
    font-size: 12.5px;
  }
}
