/* ==========================================================================
   SEKCJA HERO (2026-10-01): H1, wybór produktu, scena podglądu, tekst SEO
   Kafle wybierają produkt, scena pokazuje zakres i prowadzi do formularza
   z ustawionym rodzajem ubezpieczenia. Treść SEO zostaje w tej samej sekcji.
   ========================================================================== */

@property --ak-lx {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 85%;
}

@property --ak-ly {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 10%;
}

.ak-hero-section {
  padding: 46px 0 64px;
  background-color: var(--ak-bg-white);
}

/* Rytm tła strony głównej (2026-10-02): biel i jasny turkus na przemian, ciemna stopka zamyka.
   Plik ładuje tylko strona główna, więc podstrony zachowują swoje tła. */
:root {
  --ak-bg-tint: #ecf4f4;
}

.ak-contact-section,
.ak-partners-section,
.ak-reviews-wrapper-section,
.ak-faq-section {
  background-color: var(--ak-bg-tint);
  border-top: 1px solid rgba(86, 168, 168, 0.14);
  border-bottom: 1px solid rgba(86, 168, 168, 0.14);
}

.ak-about-section,
.ak-area-section,
.ak-blog-section {
  background-color: var(--ak-bg-white);
}

.ak-hero-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Globalna reguła p (main.css) justuje i dzieli wyrazy; w hero tekst jest wyrównany do lewej */
.ak-hero-section p {
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* --- NAGŁÓWEK --- */
.ak-hero-head {
  width: 100%;
}

.ak-hero-h1 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(30px, 2.4vw + 18px, 54px);
  font-weight: 600;
  color: var(--ak-text-dark);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  text-align: left;
  text-wrap: pretty; /* pełna szerokość kontenera; balance skracał linie */
}

.ak-hero-h1 .ak-teal-text {
  color: var(--ak-teal-ink);
}

.ak-hero-h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  hyphens: manual; /* to akapit: globalna reguła p włącza dzielenie wyrazów */
  -webkit-hyphens: manual;
  font-size: clamp(17px, 0.6vw + 13px, 21px);
  font-weight: 600;
  color: var(--ak-navy-heading);
  line-height: 1.45;
  margin: 18px 0 0;
  text-align: left;
  text-wrap: balance;
}

.ak-hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ak-text-gray);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.ak-hero-rating b {
  color: var(--ak-navy-dark);
}

.ak-hero-rating:hover {
  color: var(--ak-teal-ink);
}

.ak-hero-rating:focus-visible {
  outline: 3px solid var(--ak-navy-dark);
  outline-offset: 4px;
}

.ak-hero-stars {
  display: inline-flex;
  gap: 1px;
}

.ak-hero-stars svg {
  width: 18px;
  height: 18px;
  fill: #f59e0b;
}

/* --- WYBÓR PRODUKTU --- */
.ak-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 34px;
  align-items: stretch;
}

.ak-picker-main {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--ak-bg-white);
  border: 1px solid var(--ak-border-light);
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.ak-picker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ak-picker-q {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ak-navy-heading);
  margin: 0;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* Kafle */
.ak-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(112px, 1fr);
  gap: 10px;
}

.ak-tiles--business {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(234px, 1fr);
}

/* Z JS widoczny jest tylko zestaw wybrany przełącznikiem; bez JS oba zestawy (wszystkie linki). */
.ak-picker.is-ready .ak-tiles:not(.is-active) {
  display: none;
}

.ak-tiles > li {
  display: flex;
}

.ak-tile {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 15px;
  border-radius: 16px;
  background: var(--ak-bg-light);
  border: 1px solid var(--ak-border-light);
  color: var(--ak-navy-dark);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.ak-tile::before {
  /* Wypełnienie wybranego kafla: gradient akcji wjeżdża od dołu */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--ak-teal-action-gradient);
  opacity: 0;
  clip-path: inset(100% 0 0 0 round 16px);
  transition:
    clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
}

.ak-tiles--business .ak-tile::before {
  background: linear-gradient(150deg, #2b4a66, #254059 55%, #1a3044);
}

.ak-tile > * {
  position: relative;
}

.ak-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(86, 168, 168, 0.15);
  transition: background-color 0.25s ease;
}

.ak-tile-icon svg {
  width: 23px;
  height: 23px;
  fill: var(--ak-teal-ink);
  transition: fill 0.25s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-tile-label {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.ak-tile-sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ak-text-gray);
  margin-top: -6px;
  transition: color 0.25s ease;
}

.ak-tiles--business .ak-tile {
  justify-content: flex-end;
  padding: 18px;
}

.ak-tiles--business .ak-tile-icon {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.ak-tiles--business .ak-tile-icon svg {
  width: 27px;
  height: 27px;
}

.ak-tiles--business .ak-tile-label {
  font-size: 20px;
}

@media (hover: hover) {
  .ak-tile:hover {
    background-color: var(--ak-bg-white);
    border-color: rgba(47, 116, 130, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(31, 95, 104, 0.16);
  }

  .ak-tile:hover .ak-tile-icon svg {
    transform: scale(1.1);
  }
}

.ak-tile:focus-visible {
  outline: 3px solid var(--ak-navy-dark);
  outline-offset: 3px;
}

.ak-tile.is-selected {
  color: var(--ak-text-inverse);
  border-color: transparent;
  box-shadow: 0 10px 24px -8px rgba(31, 95, 104, 0.55);
}

.ak-tile.is-selected::before {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 16px);
}

.ak-tile.is-selected .ak-tile-icon {
  background: rgba(255, 255, 255, 0.16);
}

.ak-tile.is-selected .ak-tile-icon svg {
  fill: var(--ak-text-inverse);
}

.ak-tile.is-selected .ak-tile-sub {
  color: rgba(255, 255, 255, 0.86);
}

/* Ósme pole: link do pełnej oferty (nie jest wyborem produktu) */
.ak-tile-all {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 15px;
  border-radius: 16px;
  border: 1.5px dashed rgba(47, 116, 130, 0.4);
  color: var(--ak-teal-ink);
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ak-tile-all-go {
  order: -1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(47, 116, 130, 0.35);
}

.ak-tile-all-go svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-tile-all:hover {
  background-color: rgba(86, 168, 168, 0.08);
  border-color: var(--ak-teal-ink);
}

.ak-tile-all:hover .ak-tile-all-go svg {
  transform: translateX(3px);
}

.ak-tile-all:focus-visible {
  outline: 3px solid var(--ak-navy-dark);
  outline-offset: 3px;
}

/* Jednorazowa „fala” po wejściu: pokazuje, że kafle reagują */
.ak-tiles.is-nudging .ak-tile:not(.is-selected) {
  animation: akTileNudge 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes akTileNudge {
  0%, 100% { transform: none; }
  35% {
    transform: translateY(-5px);
    border-color: rgba(47, 116, 130, 0.4);
    background-color: var(--ak-bg-white);
  }
}

/* --- PRZEŁĄCZNIK „DLA CIEBIE / DLA FIRMY” --- */
.ak-hero-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  background-color: var(--ak-surface-muted);
  border-radius: 99px;
  padding: 5px;
  position: relative;
  width: 100%;
  max-width: 330px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ak-toggle-btn {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #526072; /* nieaktywna zakładka: 5,9:1 na tle #f1f5f9 */
  padding: 10px 14px;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.ak-toggle-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.ak-toggle-btn:focus-visible {
  outline: 3px solid var(--ak-navy-dark);
  outline-offset: 2px;
}

.ak-toggle-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  background: var(--ak-bg-white);
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.ak-toggle-btn.is-active,
.ak-toggle-btn:hover:not(.is-active) {
  color: var(--ak-teal-ink);
}

.ak-hero-toggle[data-active="business"] .ak-toggle-indicator {
  transform: translateX(100%);
}

/* --- SCENA PODGLĄDU --- */
.ak-stage {
  --ak-stage-a: #2f7482;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 32px 24px;
  border-radius: 24px;
  color: var(--ak-text-inverse);
  background: linear-gradient(155deg, #2f7482 0%, #1f5f68 55%, #1b4f5e 100%);
  box-shadow: 0 24px 48px -20px rgba(19, 39, 51, 0.5), 0 6px 14px -6px rgba(19, 39, 51, 0.2);
}

/* Tło trybu „Dla Firmy” wchodzi przenikaniem (gradientów nie da się animować wprost) */
.ak-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(155deg, #2b4a66 0%, #254059 50%, #152c3b 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ak-picker[data-mode="business"] .ak-stage::before {
  opacity: 1;
}

/* Światło sceny przesuwa się do każdego wybranego produktu */
.ak-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  --ak-lx: var(--ak-stage-lx, 85%);
  --ak-ly: var(--ak-stage-ly, 10%);
  background: radial-gradient(circle at var(--ak-lx) var(--ak-ly), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 52%);
  transition: --ak-lx 1.1s cubic-bezier(0.16, 1, 0.3, 1), --ak-ly 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-stage-mark {
  position: absolute;
  z-index: -1;
  right: -34px;
  bottom: 38px;
  width: 250px;
  height: 250px;
  fill: rgba(255, 255, 255, 0.08);
  transform: rotate(-9deg);
  pointer-events: none;
}

.ak-stage-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ak-stage-title {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(22px, 1vw + 12px, 27px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ak-text-inverse);
  margin: 0 0 18px;
  min-height: 2.4em;
  max-width: 92%;
  text-wrap: balance;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.ak-stage-risks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
  min-height: calc(5 * 1.4em + 4 * 9px);
  align-content: start;
}

.ak-stage-risks li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
}

.ak-stage-risks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 14px no-repeat,
    rgba(255, 255, 255, 0.17);
}

.ak-stage-more {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 400;
}

.ak-stage-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

/* Pigułka na ciemnym tle: odwrócony wzorzec pigułki kontaktu (biała, turkusowy tekst) */
.ak-stage-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 10px;
  border-radius: 50px;
  background: var(--ak-bg-white);
  color: var(--ak-teal-action-hover);
  text-decoration: none;
  box-shadow: 0 10px 22px -8px rgba(5, 20, 28, 0.55);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-stage-cta::after {
  /* połysk przy najechaniu, jak w pigułkach kontaktu */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: 0;
  background: linear-gradient(100deg, rgba(86, 168, 168, 0) 0%, rgba(86, 168, 168, 0.18) 50%, rgba(86, 168, 168, 0) 100%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.ak-stage-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -10px rgba(5, 20, 28, 0.6);
}

.ak-stage-cta:hover::after {
  transform: translateX(320%);
}

.ak-stage-cta:focus-visible,
.ak-stage-link:focus-visible {
  outline: 3px solid var(--ak-text-inverse);
  outline-offset: 3px;
}

.ak-stage-cta-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ak-teal-action-gradient);
}

.ak-stage-cta-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--ak-text-inverse);
}

.ak-stage-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ak-stage-cta-title {
  font-size: 17px;
  font-weight: 700;
}

.ak-stage-cta-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--ak-text-gray);
}

.ak-stage-cta-sub .ak-stage-name {
  color: var(--ak-teal-ink);
  font-weight: 700;
}

/* Zakup online ze zniżką (tylko produkty z linkiem partnerskim) */
.ak-stage-buy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--ak-text-inverse);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ak-stage-buy[hidden] {
  display: none;
}

.ak-stage-buy svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ak-stage-buy:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: var(--ak-text-inverse);
}

.ak-stage-buy:focus-visible {
  outline: 3px solid var(--ak-text-inverse);
  outline-offset: 3px;
}

.ak-stage-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ak-text-inverse);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 5px;
  border-radius: 6px;
  transition: text-decoration-color 0.2s ease;
}

.ak-stage-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-stage-link:hover {
  text-decoration-color: var(--ak-text-inverse);
}

.ak-stage-link:hover svg {
  transform: translateX(4px);
}

.ak-stage-facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.ak-stage-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.ak-stage-facts svg {
  width: 17px;
  height: 17px;
  fill: #9fd4d5;
}

.ak-stage-facts--business,
.ak-picker[data-mode="business"] .ak-stage-facts--individual {
  display: none;
}

.ak-picker[data-mode="business"] .ak-stage-facts--business {
  display: flex;
}

/* Zmiana produktu: treść wchodzi warstwami, znak produktu obraca się na miejsce */
.ak-stage.is-entering .ak-stage-title {
  animation: akStageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ak-stage.is-entering .ak-stage-risks li {
  animation: akStageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(60ms + var(--i, 0) * 45ms);
}

.ak-stage.is-entering .ak-stage-cta-sub {
  animation: akStageIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.ak-stage.is-entering .ak-stage-mark {
  animation: akMarkIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes akStageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(5px);
  }
}

@keyframes akMarkIn {
  from {
    opacity: 0;
    transform: rotate(-32deg) scale(0.72);
  }
}

/* Formularz: krótkie podświetlenie pola ustawionego z hero */
.ak-form-group.is-prefilled .ak-select {
  animation: akPrefill 1.8s ease-out;
}

@keyframes akPrefill {
  0%, 30% {
    border-color: var(--ak-teal-ink);
    box-shadow: 0 0 0 4px rgba(47, 116, 130, 0.28);
    background-color: var(--ak-bg-white);
  }
}

/* --- DRUGI POZIOM: TEKST WPROWADZAJĄCY I PANELE SEO --- */
.ak-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px 48px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(86, 168, 168, 0.22);
}

.ak-hero-intro,
.ak-panel p {
  font-size: 17px;
  font-weight: 500;
  color: var(--ak-text-gray);
  line-height: 1.7;
  margin: 0;
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.ak-hero-intro {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ak-navy-dark);
}

.ak-hero-intro strong {
  font-weight: 700;
  color: var(--ak-teal-ink);
}

/* Akapity drugiego poziomu: wyjustowane jak w całej witrynie (od 769px) */
@media (min-width: 769px) {
  .ak-hero-section .ak-hero-intro,
  .ak-hero-section .ak-panel p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

.ak-panel strong {
  font-weight: 700;
  color: var(--ak-navy-dark);
}

.ak-seo-link {
  color: var(--ak-teal-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.ak-seo-link:hover {
  color: var(--ak-navy-dark);
}

.ak-panels-container {
  position: relative;
}

.ak-panel {
  display: none;
}

/* Panel aktywny jest widoczny od razu; animacja tylko przy przełączeniu (.is-entering z main.js) */
.ak-panel.is-active {
  display: block;
}

.ak-panel.is-entering {
  animation: fadeUpPanel 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUpPanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */

@media (max-width: 1024px) {
  .ak-picker {
    grid-template-columns: 1fr;
  }

  .ak-stage {
    min-height: 0;
  }

  .ak-stage-risks {
    min-height: 0;
  }

  .ak-tiles--business {
    grid-auto-rows: minmax(150px, 1fr);
  }
}

@media (max-width: 768px) {
  .ak-hero-section {
    padding: 28px 0 40px;
  }

  .ak-hero-head {
    text-align: center;
  }

  .ak-hero-h1 {
    font-size: clamp(25px, 6.4vw, 32px);
    line-height: 1.18;
    text-align: center;
  }

  .ak-hero-section .ak-hero-h2 {
    font-size: 16px;
    margin-top: 12px;
    text-align: center;
  }

  .ak-hero-rating {
    font-size: 14px;
    margin-top: 12px;
  }

  .ak-hero-stars svg {
    width: 16px;
    height: 16px;
  }

  .ak-picker {
    margin-top: 24px;
    gap: 14px;
  }

  .ak-picker-main {
    padding: 16px;
    border-radius: 20px;
  }

  .ak-picker-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .ak-hero-section .ak-picker-q {
    font-size: 20px;
    text-align: center;
  }

  .ak-hero-toggle {
    max-width: none;
  }

  .ak-tiles,
  .ak-tiles--business {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 8px;
  }

  .ak-tiles > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .ak-tile,
  .ak-tiles--business .ak-tile {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    min-height: 60px;
    border-radius: 14px;
  }

  .ak-tile::before,
  .ak-tile.is-selected::before {
    clip-path: inset(0 0 0 0 round 14px);
  }

  .ak-tile:not(.is-selected)::before {
    clip-path: inset(100% 0 0 0 round 14px);
  }

  .ak-tile-all {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 60px;
    border-radius: 14px;
  }

  .ak-tile-all-go {
    order: 0;
    width: 30px;
    height: 30px;
    margin-left: auto;
  }

  .ak-tile-icon,
  .ak-tiles--business .ak-tile-icon {
    position: relative;
    top: auto;
    left: auto;
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .ak-tile-icon svg,
  .ak-tiles--business .ak-tile-icon svg {
    width: 21px;
    height: 21px;
  }

  .ak-tile-label,
  .ak-tiles--business .ak-tile-label {
    flex: 1;
    min-width: 0;
    font-size: 15.5px;
  }

  .ak-tile-sub {
    display: none;
  }

  .ak-stage {
    padding: 24px 20px 20px;
    border-radius: 20px;
  }

  .ak-stage-mark {
    width: 190px;
    height: 190px;
    right: -40px;
    bottom: auto;
    top: -30px;
  }

  .ak-stage-title {
    font-size: 21px;
    min-height: 0;
    max-width: 100%;
  }

  .ak-stage-risks li {
    font-size: 15px;
  }

  .ak-stage-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ak-stage-cta {
    padding: 8px 18px 8px 8px;
  }

  .ak-stage-cta-icon {
    width: 40px;
    height: 40px;
  }

  .ak-stage-link {
    align-self: center;
  }

  .ak-stage-buy {
    justify-content: center;
  }

  .ak-stage-facts {
    justify-content: center;
    gap: 8px 14px;
  }

  .ak-stage-facts li {
    font-size: 13px;
  }

  .ak-hero-content {
    grid-template-columns: 1fr;
    margin-top: 32px;
    padding-top: 24px;
  }

  .ak-panel p {
    font-size: 16px;
  }

  .ak-hero-intro {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .ak-toggle-btn {
    font-size: 14px;
    padding: 10px 8px;
    gap: 6px;
  }

  .ak-tile-label,
  .ak-tiles--business .ak-tile-label {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ak-tile,
  .ak-tile::before,
  .ak-tile-icon svg,
  .ak-stage-cta,
  .ak-stage-cta::after,
  .ak-stage-link svg,
  .ak-tile-all-go svg,
  .ak-stage::after,
  .ak-toggle-indicator {
    transition: none;
  }

  .ak-tile:hover,
  .ak-stage-cta:hover {
    transform: none;
  }

  .ak-tile:hover .ak-tile-icon svg,
  .ak-stage-link:hover svg {
    transform: none;
  }

  .ak-stage-cta::after {
    display: none;
  }

  .ak-tiles.is-nudging .ak-tile,
  .ak-stage.is-entering .ak-stage-title,
  .ak-stage.is-entering .ak-stage-risks li,
  .ak-stage.is-entering .ak-stage-cta-sub,
  .ak-stage.is-entering .ak-stage-mark,
  .ak-panel.is-entering,
  .ak-form-group.is-prefilled .ak-select {
    animation: none;
  }
}

/* Mobile (2026-10-02): tekst pod przełącznikiem „Dla Ciebie / Dla Firmy” wyśrodkowany jak w całej witrynie */
@media (max-width: 768px) {
  .ak-hero-section .ak-hero-intro,
  .ak-hero-section .ak-panel p {
    text-align: center;
  }
}
