/* ==============================================
   WODEX — style.css
   Wspólne komponenty cache'owane przez przeglądarkę.
   NIE pisz tu CSS specyficznego dla jednej strony.
   CSS unikalny dla strony → inline <style> w danym pliku PHP.
============================================== */

/* ─── ZMIENNE PROJEKTU ─── */
:root {
  /* Kolory — max 5 bazowych. Nowe tylko na wyraźne polecenie. */
  --c-primary:      #2196F3;     /* blue — przyciski, ikony, akcenty */
  --c-primary-rgb:  33, 150, 243; /* dla rgba(var(--c-primary-rgb), .X) */
  --c-primary-dark: #1565C0;     /* dark blue — hover na przyciskach */
  --c-navy:         #0D1B2A;     /* granat — ciemne tła */
  --c-navy-rgb:     13, 27, 42;  /* dla rgba(var(--c-navy-rgb), .X) */
  --c-text:         #1A2744;     /* główny kolor tekstu i nagłówków */
  --c-bg:           #EBF5FD;     /* jasne niebieskie tło */

  /* Typografia — 5 rozmiarów. Nowe tylko na wyraźne polecenie. */
  --t-xs:   0.8125rem;   /* ~13px — tagi, meta, etykiety */
  --t-sm:   0.875rem;    /* ~14px — tekst drugorzędny */
  --t-base: 0.9375rem;   /* ~15px — treść akapitów (domyślny) */
  --t-md:   1rem;        /* ~16px — lead text, h3 sekcji */
  --t-lg:   1.125rem;    /* ~18px — większe h3 */
}

/* Responsywna baza rem: desktop ~1.1× | tablet 1× | mobile ~0.9× */
html { font-size: 16px; }
@media (max-width: 960px) { html { font-size: 15px; } }
@media (max-width: 600px)  { html { font-size: 14px; } }


/* ─────────────────────────────────────────────
   READ-ICON (strzałka ↔ kropla wody)
───────────────────────────────────────────── */
.read-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.read-icon__arrow,
.read-icon__drop {
  width: 14px;
  height: 14px;
  transition: opacity .25s, transform .25s;
}
.read-icon__drop {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transform: scale(.6);
}


/* ─────────────────────────────────────────────
   BLOK SEO (.cm-seo-block)
───────────────────────────────────────────── */
.cm-seo-block { padding: 5em 0; background: #fff; }
.cm-seo-block h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-navy);
  margin: 0 0 20px;
  line-height: 1.2;
}
.cm-seo-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  margin: 36px 0 12px;
  line-height: 1.3;
}
.cm-seo-block p { font-size: var(--t-base); color: #444; line-height: 1.85; margin-bottom: 16px; }


/* ─────────────────────────────────────────────
   KAFELKI SEGMENTÓW (.segment-*)
───────────────────────────────────────────── */
.segment-section { padding: 4em 0; background: #F8FAFF; }
.segment-header { text-align: center; margin-bottom: 40px; }
.segment-header__eyebrow {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--c-primary);
  background: #DCEEFB;
  border-radius: 5px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.segment-header h2 { font-size: 28px; font-weight: 800; color: var(--c-text); line-height: 1.15; }

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

.segment-tile {
  border-radius: 24px;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.segment-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(var(--c-primary-rgb), .12);
}
.segment-tile--home { background: #F0F6FE; border: 1px solid #D5E6F7; }
.segment-tile--biz  { background: #0747A3; }

.segment-tile__deco { position: absolute; border-radius: 50%; pointer-events: none; }
.segment-tile--home .segment-tile__deco1 { width: 240px; height: 240px; background: rgba(var(--c-primary-rgb), .08); top: -80px; right: -70px; }
.segment-tile--home .segment-tile__deco2 { width: 140px; height: 140px; background: rgba(var(--c-primary-rgb), .06); bottom: -40px; right: 100px; }
.segment-tile--biz  .segment-tile__deco1 { width: 280px; height: 280px; background: rgba(var(--c-primary-rgb), .12); top: -90px; right: -90px; }
.segment-tile--biz  .segment-tile__deco2 { width: 160px; height: 160px; background: rgba(23,80,149,.3); bottom: -50px; left: 60px; }

.segment-tile__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.segment-tile__icon:hover { transform: translateY(-6px); }
.segment-tile--home .segment-tile__icon { background: var(--c-primary); color: #fff; }
.segment-tile--biz  .segment-tile__icon { background: rgba(255,255,255,.15); color: #fff; }
.segment-tile__icon svg { width: 34px; height: 34px; }

.segment-tile__title { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; position: relative; z-index: 1; }
.segment-tile--home .segment-tile__title { color: var(--c-navy); }
.segment-tile--biz  .segment-tile__title { color: #fff; }

.segment-tile__desc { font-size: var(--t-base); line-height: 1.75; margin-bottom: 28px; position: relative; z-index: 1; }
.segment-tile--home .segment-tile__desc { color: #546E7A; }
.segment-tile--biz  .segment-tile__desc { color: rgba(255,255,255,.65); }

.segment-tile__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; position: relative; z-index: 1; }
.segment-tile__tag {
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .2s;
}
.segment-tile__tag:hover { transform: translateY(-4px); }
.segment-tile--home .segment-tile__tag { background: #fff; color: var(--c-primary-dark); border: 1px solid #BBDEFB; }
.segment-tile--biz  .segment-tile__tag { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }

.segment-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-base);
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 12px;
  align-self: flex-start;
  margin-top: auto;
  position: relative;
  z-index: 1;
  transition: background .2s, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.segment-tile--home .segment-tile__cta { background: var(--c-primary); color: #fff; }
.segment-tile--home .segment-tile__cta:hover { background: var(--c-primary-dark); transform: translateY(-6px); }
.segment-tile--biz  .segment-tile__cta { background: var(--c-primary); color: #fff; }
.segment-tile--biz  .segment-tile__cta:hover { background: var(--c-primary-dark); transform: translateY(-6px); }

.segment-tile:hover .read-icon__arrow { opacity: 0; }
.segment-tile:hover .read-icon__drop  { opacity: 1; transform: scale(1); }
.segment-tile__cta .read-icon__drop { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 768px) {
  .segment-grid { grid-template-columns: 1fr; }
  .segment-tile { padding: 36px 28px; }
}
@media (max-width: 600px) { .segment-tile { padding: 1em; } }


/* ─────────────────────────────────────────────
   DLACZEGO WODEX (.why-*)
───────────────────────────────────────────── */
.why-section { padding: 5em 0; background: #fff; }
.why-inner { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
.why-lead { position: sticky; top: 72px; }
.why-lead__eyebrow {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--c-primary);
  background: #DCEEFB;
  border-radius: 5px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.why-lead h2 { font-size: 30px; font-weight: 800; color: var(--c-text); line-height: 1.2; margin-bottom: 16px; }
.why-lead p  { font-size: var(--t-base); color: #546E7A; line-height: 1.75; margin-bottom: 32px; }
.why-lead__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--c-primary);
  color: #fff;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: var(--t-base);
  font-weight: 700;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .2s;
}
.why-lead__cta:hover { transform: translateY(-6px); background: var(--c-primary-dark); }

.why-items { display: flex; flex-direction: column; }
.why-item { display: flex; align-items: flex-start; gap: 20px; padding: 22px 0; border-bottom: 1px solid #EFF2F7; }
.why-item:first-child { border-top: 1px solid #EFF2F7; }
.why-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--c-bg);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.why-item:hover .why-item__icon { transform: translateY(-6px); }
.why-item__icon svg { width: 24px; height: 24px; }
.why-item__title { font-size: var(--t-md); font-weight: 700; color: var(--c-text); margin-bottom: 5px; }
.why-item__desc  { font-size: var(--t-sm); color: #666; line-height: 1.65; }

@media (max-width: 960px) {
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-lead { position: static; }
  .why-lead__cta { display: flex; width: fit-content; margin: 0 auto; }
}


/* ─────────────────────────────────────────────
   FAQ (.sw-faq)
───────────────────────────────────────────── */
.sw-faq { padding: 5em 0; background: #F8FAFF; }
.sw-faq__header { text-align: center; margin-bottom: 48px; }
.sw-faq__header h2 { font-size: 28px; font-weight: 800; color: var(--c-navy); line-height: 1.15; }
.sw-faq__list { max-width: 780px; margin: 0 auto; }
.sw-faq__item { border-bottom: 1px solid #E4EAF4; }
.sw-faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--c-navy);
}
.sw-faq__q svg { width: 20px; height: 20px; fill: var(--c-primary); flex-shrink: 0; transition: transform .3s; margin-top: 2px; }
.sw-faq__item.open .sw-faq__q svg { transform: rotate(180deg); }
.sw-faq__a { display: none; padding-bottom: 20px; font-size: var(--t-sm); color: #555; line-height: 1.75; }
.sw-faq__item.open .sw-faq__a { display: block; }


/* ─────────────────────────────────────────────
   MAPA (.sw-map) — tylko strony lokalizacyjne
───────────────────────────────────────────── */
.sw-map { padding: 5em 0; background: #fff; }
.sw-map__frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #DDE6F0;
  height: 400px;
}
.sw-map__frame iframe { width: 100%; height: 100%; display: block; border: 0; }


/* ─────────────────────────────────────────────
   CTA KOŃCOWE (.sw-cta)
───────────────────────────────────────────── */
.sw-cta {
  background: linear-gradient(135deg, var(--c-navy) 0%, #1A3A5C 60%, var(--c-primary-dark) 100%);
  padding: 5em 0;
  position: relative;
  overflow: hidden;
}
.sw-cta::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(var(--c-primary-rgb), .1);
  top: -160px;
  right: -140px;
  pointer-events: none;
}
.sw-cta::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}
.sw-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.sw-cta__left h2 { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 18px; }
.sw-cta__left h2 span { color: #64B5F6; }
.sw-cta__left p { font-size: var(--t-md); color: rgba(255,255,255,.72); line-height: 1.75; }
.sw-cta__right { display: flex; flex-direction: column; gap: 14px; }
.sw-cta__btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--c-primary);
  color: #fff;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: var(--t-md);
  font-weight: 700;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .2s;
  text-align: center;
}
.sw-cta__btn-main:hover { transform: translateY(-6px); background: var(--c-primary-dark); }
.sw-cta__btn-main svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.sw-cta__btn-sec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 17px 32px;
  border-radius: 12px;
  font-size: var(--t-base);
  font-weight: 600;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .2s;
  text-align: center;
}
.sw-cta__btn-sec:hover { transform: translateY(-6px); background: rgba(255,255,255,.18); }
.sw-cta__btn-sec svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

@media (max-width: 860px) {
  .sw-cta__inner { grid-template-columns: 1fr; }
  .sw-cta__left h2 { font-size: 24px; }
}

/* ─── POWIĄZANE TEMATY (.related-topics) ─── */
.related-topics { padding: 56px 0; background: #F8FBFF; border-top: 1px solid #E8EFF8; }
.related-topics__header { text-align: center; margin-bottom: 32px; }
.related-topics__title { font-size: 26px; font-weight: 800; color: #1A2744; margin-bottom: 10px; }
.related-topics__home-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #AAB4C0; text-decoration: none; transition: color .2s; }
.related-topics__home-link:hover { color: #2196F3; }
.related-topics__card--hub { border-color: #BBDEFB; background: #F0F6FE; }
.related-topics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-topics__card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #E3EDF8; border-radius: 14px;
  padding: 18px 16px; text-decoration: none;
  transition: box-shadow .2s, transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s;
}
.related-topics__card:hover { box-shadow: 0 6px 24px rgba(33,150,243,.12); transform: translateY(-4px); border-color: #90CAF9; }
.related-topics__icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(33,150,243,.1); color: #2196F3;
  display: flex; align-items: center; justify-content: center;
}
.related-topics__icon svg { width: 20px; height: 20px; }
.related-topics__text { flex: 1; min-width: 0; }
.related-topics__text strong { display: block; font-size: 13.5px; font-weight: 700; color: #1A2744; line-height: 1.3; margin-bottom: 3px; }
.related-topics__text span { font-size: 12px; color: #7A90A8; line-height: 1.4; }
.related-topics__arrow { flex-shrink: 0; color: #2196F3; }
@media (max-width: 960px) { .related-topics__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .related-topics__grid { grid-template-columns: 1fr; } }
