/* ==========================================================================
   PODSTRONA: OFERTA UBEZPIECZEŃ (A&K WAWRO WROCŁAW)
   Układ 1:1 z opublikowaną wersją Hostinger + Nowoczesny Design System
   ========================================================================== */

/* --- 1. SEKCJA HERO / INTRO PODSTRONY --- */
.ak-offer-hero-section {
  padding: 40px 0 25px;
  background-color: var(--ak-bg-white);
}

.ak-offer-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;
}

/* Nagłówek H1 */
.ak-offer-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: normal;
  -webkit-text-wrap: normal;
  line-height: 1.25;
  margin: 0 0 16px 0;
  width: 100%;
  max-width: 100%;
}

.ak-offer-h1 .ak-teal-highlight {
  color: var(--ak-teal-ink);
}

/* Intro akapit */
.ak-offer-intro {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ak-text-gray);
  margin: 0 0 30px;
  width: 90%;
  max-width: 90%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .ak-offer-intro {
    margin-left: 20px;
  }
}

/* --- 1B. SEKCJA KATEGORII UBEZPIECZEŃ (9 KAFELKÓW PRODUKTOWYCH) --- */
.ak-offer-categories-section {
  padding: 10px 0 50px;
  background-color: var(--ak-bg-white);
}

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


/* Nagłówek H2 sekcji kategorii oferty */
.ak-offer-categories-header {
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px 0;
  text-align: left;
}

.ak-offer-categories-h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.3;
  margin: 0 0 14px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .ak-offer-categories-h2 {
    margin-left: 20px;
    width: calc(100% - 20px);
  }
}

/* --- 1B. SEKCJA OFERTY (KARTY FLIP 3D Z HOSTINGERA) --- */
.ak-oferta-wrapper {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.ak-oferta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .ak-oferta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ak-oferta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ak-flip-container {
  background-color: transparent;
  perspective: 1000px;
  position: relative;
  width: 100%;
  min-height: 450px;
}

/* Pole wyboru ukryte wizualnie, ale osiągalne klawiaturą (Tab + Spacja obraca kartę) — 2026-10-01 */
.ak-flip-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.ak-flip-toggle:focus-visible ~ .ak-flip-inner .ak-action-btn,
.ak-flip-toggle:focus-visible ~ .ak-flip-inner .ak-action-btn-back {
  outline: 3px solid var(--ak-navy-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

.ak-flip-inner {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); /* płynny obrót, bez sprężystego przestrzelenia */
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.ak-flip-toggle:checked ~ .ak-flip-inner {
  transform: rotateY(180deg);
}

.ak-flip-front,
.ak-flip-back {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  background-color: var(--ak-bg-white);
  border-radius: 16px;
  padding: 28px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 2px solid var(--ak-bg-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.ak-flip-front:hover,
.ak-flip-back:hover {
  box-shadow: 0 12px 24px rgba(31, 95, 104, 0.16);
  border-color: var(--ak-teal-ink);
}

.ak-flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(to bottom, var(--ak-bg-white), #f4f9f9);
  border-color: #e0f2f1;
}

/* --- UKŁAD GÓRY KARTY (SEO Link na froncie) --- */
.ak-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 20px;
}

.ak-card-header-row .ak-icon-box {
  margin-bottom: 0;
}

.ak-front-corner-link {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ak-teal-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: rgba(31, 95, 104, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
  transition:  transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.ak-front-corner-link:hover {
  background: rgba(31, 95, 104, 0.15);
  color: var(--ak-navy-dark);
  transform: translateY(-2px);
}

.ak-icon-box {
  background: var(--ak-teal-action-gradient);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ak-text-inverse);
  box-shadow: 0 4px 10px rgba(31, 95, 104, 0.2);
  flex-shrink: 0;
}

.ak-icon-box svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.ak-title {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: var(--ak-navy-dark);
  line-height: 1.3;
  text-align: left;
}

.ak-title-back {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: var(--ak-teal-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.ak-desc {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #52525b;
  margin: 0 0 20px 0;
  flex-grow: 1;
  text-align: left;
}

.ak-action-btn,
.ak-action-btn-back {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ak-teal-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-top: auto;
  padding: 8px 0;
  transition: color 0.3s ease;
  text-decoration: none;
}

.ak-action-btn:hover {
  color: #2d6b6d;
}

.ak-action-btn-back {
  color: var(--ak-text-muted);
}

.ak-action-btn-back:hover {
  color: var(--ak-navy-dark);
}

@media (max-width: 767px) {
  .ak-flip-container {
    min-height: 350px;
  }

  .ak-flip-front,
  .ak-flip-back {
    align-items: center;
    text-align: center;
  }

  .ak-card-header-row {
    width: 100%;
  }

  .ak-title {
    text-align: center;
    width: 100%;
  }

  .ak-title-back {
    text-align: center;
    width: 100%;
  }

  .ak-desc {
    font-size: 15px;
    flex-grow: 0;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
  }

  .ak-action-btn,
  .ak-action-btn-back {
    margin-top: auto;
    align-self: center;
  }
}

/* --- 2. SEKCJA UBEZPIECZEŃ ONLINE / KARTY PARTNERSKIE --- */
.ak-affiliate-section {
  padding: 20px 0 60px;
  background-color: var(--ak-bg-white);
}

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

.ak-affiliate-header {
  width: 100%;
  max-width: 100%;
  margin: 0 0 35px 0;
  text-align: left;
}

.ak-affiliate-h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--ak-text-dark);
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.3;
  margin: 0 0 14px 0;
  width: 100%;
  max-width: 100%;
}

.ak-affiliate-sub {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  color: var(--ak-navy-dark);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.4;
  margin: 0 0 28px 0;
  width: 90%;
  max-width: 90%;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .ak-affiliate-sub {
    margin-left: 20px;
  }
}

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

/* Siatka kart partnerskich */
.ak-affiliate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  margin: 0 auto;
}

.ak-affiliate-card {
  background-color: var(--ak-bg-white);
  border-radius: 20px;
  padding: 34px 30px;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border: 1.5px solid #edf2f7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ak-affiliate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(31, 95, 104, 0.16);
  border-color: var(--ak-teal-ink);
}

.ak-badge {
  background-color: #e6f4f4;
  color: #266b73;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ak-affiliate-icon {
  background: var(--ak-teal-action-gradient);
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ak-text-inverse);
  box-shadow: 0 6px 14px rgba(31, 95, 104, 0.25);
}

.ak-affiliate-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.ak-affiliate-title {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: var(--ak-navy-dark);
  line-height: 1.3;
  text-align: left;
}

.ak-affiliate-desc {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.65;
  color: #52525b;
  margin: 0 0 24px 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  width: 100%;
  max-width: 100%;
}

.ak-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  width: 100%;
  flex-grow: 1;
}

.ak-benefits li {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #3f3f46;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
  text-align: left;
}

.ak-benefits li svg {
  width: 19px;
  height: 19px;
  fill: var(--ak-teal-ink);
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 3px;
}

.ak-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--ak-teal-action-gradient);
  color: var(--ak-text-inverse);
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 12px;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-weight: 700;
  font-size: 16px;
  transition:  transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 6px 16px rgba(31, 95, 104, 0.3);
  box-sizing: border-box;
}

.ak-cta-btn:hover {
  background: linear-gradient(135deg, var(--ak-teal-action-hover), #174a51);
  box-shadow: 0 10px 22px rgba(31, 95, 104, 0.45);
  transform: translateY(-2px);
  color: var(--ak-text-inverse);
}

/* --- 3. SEKCJA WYBIERZ FORMĘ KONTAKTU --- */
.ak-offer-contact-cta {
  padding: 30px 0 70px;
  background-color: var(--ak-bg-white);
  border-top: 1px solid rgba(86, 168, 168, 0.15);
}

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

.ak-offer-contact-h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.3;
  margin: 0 0 28px 0;
  width: 100%;
  max-width: 100%;
}

.wawro-wrapper-x9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.wawro-btn-x9 {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  background: var(--ak-teal-action-gradient);
  color: var(--ak-text-inverse);
  text-decoration: none;
  padding: 13px 22px 13px 15px;
  border-radius: 50px;
  box-shadow: 0 8px 20px -6px rgba(31, 95, 104, 0.45);
  transition:  transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

.wawro-btn-x9::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;
}

.wawro-btn-x9:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px -6px rgba(31, 95, 104, 0.55);
  color: var(--ak-text-inverse);
}

.wawro-btn-x9:hover::before {
  transform: translateX(400%) skewX(-25deg);
}

.wawro-icon-x9 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  margin-right: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

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

.wawro-content-x9 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.wawro-title-x9 {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
  color: var(--ak-text-inverse);
}

/* Rola „podpis przycisku” z DESIGN.md (2026-10-01): 13px, zwykłe litery, pełna biel (wcześniej 9–11px wersalikami) */
.wawro-sub-x9 {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ak-text-inverse);
}

/* --- RESPONSYWNOŚĆ DLA MOBILE (< 768px) --- */
@media (max-width: 768px) {
  .ak-offer-categories-header {
    text-align: center;
    margin: 0 auto 20px;
    width: 100%;
  }

  .ak-offer-categories-h2 {
    font-size: 22px;
    margin: 0 auto 10px;
    text-align: center;
    width: 100%;
  }
  .ak-offer-hero-section {
    padding: 25px 0 15px;
  }

  .ak-breadcrumbs {
    text-align: center;
    margin-bottom: 14px;
  }

  .ak-offer-h1 {
    font-size: 24px;
    margin: 0 auto 10px;
    text-align: center;
    width: 100%;
  }

  .ak-offer-intro {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .ak-affiliate-section {
    padding: 10px 0 40px;
  }

  .ak-affiliate-header {
    text-align: center;
    margin: 0 auto 25px;
    width: 100%;
  }

  .ak-affiliate-h2 {
    font-size: 22px;
    margin: 0 auto 8px;
    text-align: center;
    width: 100%;
  }

  .ak-affiliate-sub {
    font-size: 16px;
    margin: 0 auto 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .ak-affiliate-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ak-affiliate-card {
    padding: 26px 20px;
    align-items: center;
    text-align: center;
  }

  .ak-affiliate-title {
    font-size: 20px;
    text-align: center;
    width: 100%;
  }

  .ak-affiliate-desc {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 100%;
  }

  .ak-benefits li {
    font-size: 15px;
    text-align: left;
  }

  .ak-offer-contact-cta {
    padding: 25px 0 45px;
  }

  .ak-offer-contact-h2 {
    font-size: 21px;
    text-align: center;
    margin: 0 auto 22px;
    width: 100%;
  }

  .wawro-wrapper-x9 {
    align-items: center;
    gap: 12px;
  }

  .wawro-btn-x9 {
    padding: 11px 18px 11px 12px;
    max-width: 330px;
  }

  .wawro-icon-x9 {
    width: 38px;
    height: 38px;
    margin-right: 14px;
  }

  .wawro-icon-x9 svg {
    width: 18px;
    height: 18px;
  }

  .wawro-title-x9 {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .wawro-sub-x9 {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   OGRANICZONY RUCH (2026-10-01, etap B): bez przechylania 3D kart, unoszenia ikon,
   połysku i animowanego rozwijania; zmiany koloru i cienia zostają jako informacja zwrotna.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  [class*="-card"],
  [class*="-card"] .visual-container,
  [class*="-card"] .icon-layer,
  [class*="-card"] .price-tag-callout,
  .card-text-wrapper {
    transition-duration: 0.01s !important;
  }
  [class*="-card"]:hover .icon-layer {
    transform: none !important;
  }
  [class*="-card"]::before {
    display: none;
  }
}

/* Niewidoczna strona karty wypada z kolejności Tab i z czytników ekranu (2026-10-01).
   Zamiana widoczności w połowie obrotu (0,3 s), więc animacja wygląda jak dotąd. */
.ak-flip-front,
.ak-flip-back {
  transition: box-shadow 0.3s ease, border-color 0.3s ease, visibility 0s linear 0.3s;
}

.ak-flip-toggle:not(:checked) ~ .ak-flip-inner .ak-flip-back,
.ak-flip-toggle:checked ~ .ak-flip-inner .ak-flip-front {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ak-flip-inner {
    transition: none;
  }
  .ak-flip-front,
  .ak-flip-back {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }
}
