/* ==========================================================================
   KasaRazDwa.pl — arkusz stylów (PROTOTYP)
   Kierunek: „refined editorial fintech" — czysto, ostro, z wyrazistą hierarchią.
   Typografia: Bricolage Grotesque (nagłówki) + Hanken Grotesk (treść).
   Paleta wg briefu: turkus #345C64, złoty #CFA23A, biel. Mobile-first.
   ========================================================================== */

:root {
  --teal:        #345C64;
  --teal-ink:    #233F47;   /* nagłówki */
  --teal-700:    #2B4C54;
  --teal-800:    #1E363C;   /* stopka */
  --teal-50:     #ECF2F3;
  --teal-100:    #D7E4E6;
  --gold:        #CFA23A;
  --gold-600:    #B68A28;
  --gold-50:     #FBF4E2;
  --green:       #1FA56A;

  /* Medale TOP-3 */
  --silver:      #9AA1A9;
  --silver-600:  #79808A;
  --silver-50:   #F1F3F5;
  --bronze:      #B6793F;
  --bronze-600:  #95622F;
  --bronze-50:   #F8EFE6;

  --white:       #FFFFFF;
  --bg:          #FFFFFF;   /* tło strony — czysta biel (brief) */
  --bg-soft:     #F5F8F8;
  --ink:         #233037;
  --muted:       #5F6B70;
  --muted-2:     #8A9296;
  --line:        #E6EBEC;
  --line-2:      #D6DEDF;

  --r-btn:       8px;       /* przyciski/inputy — mniej zaokrąglone */
  --r-chip:      6px;
  --r-card:      14px;
  --r-panel:     18px;

  --shadow-sm:   0 1px 2px rgba(28,42,45,.05), 0 1px 3px rgba(28,42,45,.05);
  --shadow-md:   0 8px 24px rgba(28,42,45,.09);
  --shadow-lg:   0 26px 64px rgba(28,42,45,.18);

  --container:   1140px;
  --header-h:    74px;

  /* Tabela ofert (desktop): ranga | logo | nazwa | 3× wartość | akcje */
  --offer-cols: 40px 44px minmax(150px,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(150px,auto);

  --font:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Bricolage Grotesque", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ------------------------------ Eyebrow --------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font);
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--center { justify-content: center; }

/* ------------------------------ Wordmark -------------------------------- */
.brand { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.brand__name { color: var(--teal-ink); }
.brand__tld { color: var(--gold); }

/* -------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border: 1.5px solid transparent; border-radius: var(--r-btn);
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--gold { background: var(--gold); color: #2c2400; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-600); border-color: var(--gold-600); box-shadow: 0 6px 18px rgba(207,162,58,.35); }
.btn--primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-700); border-color: var(--teal-700); box-shadow: 0 6px 18px rgba(52,92,100,.28); }
.btn--outline { background: #fff; color: var(--teal); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--teal); background: var(--teal-50); }

/* -------------------------------- Header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-link { font-weight: 600; font-size: .95rem; color: var(--ink); padding: 8px 0; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .2s ease; }
.nav-link:hover { color: var(--teal); }
.nav-link:hover::after { right: 0; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; }
.menu-toggle span { display: block; height: 2.5px; width: 100%; background: var(--teal); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: 52px 0 104px;
  background: linear-gradient(157deg, #E2ECEC 0%, #EDF3F3 46%, #F4F8F8 100%);
}
.hero__grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(52,92,100,.07) 1.3px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 25%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 25%, #000 30%, transparent 75%); }
.hero__blob { position: absolute; left: -160px; top: 40px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(207,162,58,.14), rgba(207,162,58,0) 70%); pointer-events: none; }
/* Diagonalne odcięcie hero od dalszej części */
.hero__cut { position: absolute; left: 0; right: 0; bottom: -1px; height: 78px; background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.hero__cut::before { content: ""; position: absolute; left: 0; right: 0; bottom: 78px; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(207,162,58,.5)); transform-origin: left;
  transform: rotate(-2.0deg); transform-box: fill-box; }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hero__content .eyebrow { margin-bottom: 18px; }
.hero__title { font-size: clamp(2.2rem, 7vw, 3.5rem); font-weight: 800; color: var(--teal-ink); letter-spacing: -.03em; }
.hero__text { margin-top: 20px; font-size: 1.05rem; color: var(--muted); max-width: 33em; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__dots { display: block; margin-top: 32px; width: 116px; height: 60px;
  background-image: radial-gradient(var(--gold) 38%, transparent 42%); background-size: 19px 19px; opacity: .85; }

.hero__visual { position: relative; justify-self: center; width: min(420px, 88vw); aspect-ratio: 1; }
.hero__rings { position: absolute; inset: -9%; width: 118%; height: 118%; }
.hero__photo { position: absolute; inset: 4%; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip { position: absolute; background: #fff; box-shadow: var(--shadow-md); border-radius: 12px; z-index: 2; }
.hero__chip--rrso { top: 6%; left: -6%; padding: 11px 16px; border-left: 4px solid var(--gold); }
.hero__chip-k { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.hero__chip--rrso strong { font-family: var(--display); font-size: 1.45rem; font-weight: 800; color: var(--teal); }
.hero__chip--count { bottom: 7%; right: -5%; display: flex; align-items: center; gap: 8px; padding: 10px 15px; font-size: .85rem; font-weight: 600; color: var(--teal-ink); }
.hero__chip--count svg { width: 19px; height: 19px; color: var(--green); flex: 0 0 auto; }

/* ----------------------------- Section head ----------------------------- */
.section-head { max-width: 680px; margin: 0 auto 30px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 2.6rem); font-weight: 800; color: var(--teal-ink); }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 1.04rem; }

/* -------------------------------- Offers -------------------------------- */
.offers { position: relative; padding: 8px 0 58px; background: var(--bg); }
.offers-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-md); padding: 12px 14px 16px; overflow: hidden; }

/* Taby */
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 6px 4px 14px; border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.filters::-webkit-scrollbar { height: 5px; }
.filters::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.filter-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: var(--r-btn); border: 1.5px solid transparent; background: transparent;
  color: var(--muted); font-weight: 700; font-size: .76rem; letter-spacing: .03em; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter-tab svg { width: 17px; height: 17px; flex: 0 0 auto; }
.filter-tab:hover { color: var(--teal); background: var(--teal-50); }
.filter-tab.is-active { background: var(--teal); color: #fff; }

/* Afordancja przewijania tabów: cienie krawędziowe + strzałka „w prawo".
   Pokazują się tylko gdy taby faktycznie wystają poza ekran (klasy z app.js). */
.filters-wrap { position: relative; }
.filters-wrap::before, .filters-wrap::after {
  content: ""; position: absolute; top: 2px; bottom: 16px; width: 38px; z-index: 2;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.filters-wrap::before { left: 0;  background: linear-gradient(90deg,  #fff 28%, rgba(255,255,255,0)); }
.filters-wrap::after  { right: 0; background: linear-gradient(270deg, #fff 28%, rgba(255,255,255,0)); }
.filters-wrap.can-left::before  { opacity: 1; }
.filters-wrap.can-right::after  { opacity: 1; }
.filters-arrow {
  position: absolute; top: 9px; display: none;
  width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-2); background: #fff;
  color: var(--teal); box-shadow: var(--shadow-sm); z-index: 3;
}
.filters-arrow--right { right: 4px; }
.filters-arrow--left  { left: 4px; }
.filters-arrow svg { width: 16px; height: 16px; }
.filters-arrow:hover { background: var(--teal-50); border-color: var(--teal); }
.filters-wrap.can-right .filters-arrow--right { display: inline-flex; animation: krd-nudge-right 1.5s ease-in-out infinite; }
.filters-wrap.can-left  .filters-arrow--left  { display: inline-flex; animation: krd-nudge-left  1.5s ease-in-out infinite; }
@keyframes krd-nudge-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes krd-nudge-left  { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-3px); } }

/* Nagłówek kolumn */
.offers-head { display: none; }

.offers-list { display: flex; flex-direction: column; }

/* Wiersz oferty */
.offer-row { position: relative; background: var(--row-bg, #fff); border-bottom: 1px solid var(--line); padding: 16px 12px; transition: background-color .15s ease; }
.offer-row:last-child { border-bottom: 0; }
.offer-row:hover { background: var(--teal-50); }
.offer-row--top::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--medal-color, var(--gold)); border-radius: 0 3px 3px 0; }

/* TOP-3 medale: 1 złoto, 2 srebro, 3 brąz — delikatne tło wiersza + kolor akcentu */
.offer-row--gold   { --medal-color: var(--gold);   --row-bg: var(--gold-50); }
.offer-row--silver { --medal-color: var(--silver); --row-bg: var(--silver-50); }
.offer-row--bronze { --medal-color: var(--bronze); --row-bg: var(--bronze-50); }

.offer-rank { width: 30px; height: 30px; border-radius: var(--r-chip); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: .9rem; background: var(--bg-soft); color: var(--muted-2); }
.offer-rank--gold   { background: var(--gold); color: #2c2400; box-shadow: 0 2px 6px rgba(207,162,58,.4); }
.offer-rank--silver { background: linear-gradient(150deg, #CBD0D6, #969DA6); color: #262b30; box-shadow: 0 2px 6px rgba(150,158,167,.45); }
.offer-rank--bronze { background: linear-gradient(150deg, #CD9469, #A2622F); color: #fff; box-shadow: 0 2px 6px rgba(176,118,62,.42); }

.offer-logo { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.offer-logo img { width: 100%; height: 100%; object-fit: contain; }
.offer-logo__mono { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--teal-50); color: var(--teal); font-family: var(--display); font-weight: 800; font-size: 1.15rem; }

.offer-name { font-family: var(--display); font-weight: 700; font-size: 1.04rem; color: var(--teal-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 3px 8px; border-radius: var(--r-chip);
  font-family: var(--font); font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge--new { background: var(--gold-50); color: var(--gold-600); box-shadow: inset 0 0 0 1px rgba(207,162,58,.35); }
.badge--accept { background: var(--teal-50); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(52,92,100,.22); }

.offer-val { display: flex; flex-direction: column; }
.col-label { font-size: .72rem; color: var(--muted-2); font-weight: 600; }
.col-num { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.offer-val--accent .col-num { font-family: var(--display); color: var(--teal); font-weight: 800; font-size: 1.32rem; line-height: 1.1; }

.offer-act { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.offer-cta { width: 100%; padding: 11px 14px; font-size: .92rem; }
.offer-warunki { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .82rem; padding: 2px; }
.offer-warunki .chev { transition: transform .2s ease; }
.offer-warunki[aria-expanded="true"] .chev { transform: rotate(180deg); }
.offer-warunki[aria-expanded="true"] { color: var(--teal); }

.offer-conditions { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.offer-conditions > div { overflow: hidden; }
.offer-conditions.is-open { grid-template-rows: 1fr; }
.offer-conditions p { margin-top: 12px; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--r-chip); font-size: .9rem; color: var(--muted); }

.offers-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.offers-note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: center; margin: 18px 10px 4px; font-size: .78rem; color: var(--muted-2); }
.offers-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }

/* --------------------------------- USP ---------------------------------- */
.usp { display: flex; gap: 16px; align-items: center; }
.usp-grid { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 26px; display: grid; grid-template-columns: 1fr; gap: 22px; }
.usp__icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(52,92,100,.28); }
.usp__icon svg { width: 27px; height: 27px; }
.usp:nth-child(2) .usp__icon { background: var(--gold); color: #2c2400; box-shadow: 0 8px 18px rgba(207,162,58,.32); }
.usp__title { font-family: var(--display); font-size: 1.08rem; font-weight: 700; color: var(--teal-ink); }
.usp__text { margin-top: 4px; font-size: .92rem; color: var(--muted); }

/* --------------------------------- Blog --------------------------------- */
.blog { padding: 56px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-50); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.article-cat { font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--gold-600); }
.article-title { font-family: var(--display); font-size: 1.12rem; font-weight: 700; color: var(--teal-ink); line-height: 1.32; }
.article-meta { margin-top: auto; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.article-meta .clock { width: 14px; height: 14px; color: var(--muted-2); }
.blog__more { margin-top: 32px; text-align: center; }

/* -------------------------------- Footer -------------------------------- */
.site-footer { background: var(--teal-800); color: rgba(255,255,255,.72); border-top: 3px solid var(--gold); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 34px; padding: 50px 24px 38px; }
.brand--footer { font-size: 1.55rem; }
.brand--footer .brand__name { color: #fff; }
.footer__desc { margin-top: 16px; font-size: .92rem; line-height: 1.7; max-width: 30em; }
.footer__heading { font-family: var(--display); font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer__links li { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__links a { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: .92rem; color: rgba(255,255,255,.78); transition: color .15s ease, padding .15s ease; }
.footer__links a:hover { color: var(--gold); padding-left: 5px; }
.footer__links span { color: var(--gold); font-size: 1.15rem; }
.footer__linkbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 0; background: none; border: 0; text-align: left; font: inherit; font-size: .92rem; color: rgba(255,255,255,.78); cursor: pointer; transition: color .15s ease, padding .15s ease; }
.footer__linkbtn span { color: var(--gold); font-size: 1.15rem; }
.footer__linkbtn:hover { color: var(--gold); padding-left: 5px; }

.footer__company-bar { border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.12); }
.footer__company-inner { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center; padding: 18px 24px; }
.footer__company { font-size: .82rem; color: rgba(255,255,255,.55); text-align: center; }

/* ----------------------------- Zapis do bazy ---------------------------- */
.lead { padding: 56px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-md); padding: 30px 22px; max-width: 760px; margin: 0 auto; }
.lead-card__head { text-align: center; margin-bottom: 24px; }
.lead-card__head .eyebrow { margin-bottom: 12px; }
.lead-card__head .section-title { font-size: clamp(1.4rem, 3.4vw, 1.95rem); }

.lead-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lead-field { display: flex; flex-direction: column; gap: 6px; }
.lead-field__label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.lead-field input { width: 100%; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-btn); padding: 13px 15px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.lead-field input::placeholder { color: var(--muted-2); }
.lead-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(52,92,100,.14); }
.lead-field--error input, .lead-field--error input:focus { border-color: #d0322e; box-shadow: 0 0 0 3px rgba(208,50,46,.12); }

.lead-error { font-size: .8rem; font-weight: 600; color: #d0322e; background: #fff1f1; border: 1.5px solid #f5c2c2; border-radius: var(--r-chip); padding: 9px 14px; margin-top: 12px; }

/* Walidacja e-maila — stany pola (port z EkspertAut) */
.email-message { font-size: .8rem; font-weight: 600; border-radius: var(--r-chip); padding: 9px 14px; margin-top: 12px; }
.email-message--error { color: #d0322e; background: #fff1f1; border: 1.5px solid #f5c2c2; }
.email-message--warning { color: #9a5b09; background: #fff7ec; border: 1.5px solid #f3d8a8; }
input.email-error, input.email-error:focus { border-color: #d0322e; box-shadow: 0 0 0 3px rgba(208,50,46,.12); }
input.email-warning, input.email-warning:focus { border-color: #d98a2b; box-shadow: 0 0 0 3px rgba(217,138,43,.14); }
.email-suggest { background: none; border: none; padding: 0; margin: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.email-suggest:hover { text-decoration: none; }

/* Zgody marketingowe */
.consents { display: grid; gap: 11px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.consents__error { font-size: .8rem; font-weight: 600; color: #d0322e; background: #fff1f1; border: 1.5px solid #f5c2c2; border-radius: var(--r-chip); padding: 9px 14px; }
.consent { display: flex; gap: 11px; font-size: .8rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--teal); cursor: pointer; }
.consent--select-all { font-weight: 700; color: var(--ink); font-size: .85rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.consent--error input { outline: 2px solid #d0322e; outline-offset: 1px; border-radius: 3px; }
.req { color: #d0322e; font-weight: 700; margin-right: 1px; }
.consent-link { background: none; border: none; padding: 0; font: inherit; font-size: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; line-height: inherit; }
.consent-link:hover { color: var(--teal-700); }

.lead-submit { width: 100%; margin-top: 22px; }

.lead-status { text-align: center; padding: 24px 10px 12px; }
.lead-status__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%; background: var(--teal-50); color: var(--green); }
.lead-status__icon svg { width: 30px; height: 30px; }
.lead-status h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--teal-ink); margin-bottom: 8px; }
.lead-status p { margin: 0 auto; max-width: 420px; color: var(--muted); font-size: .98rem; }

/* -------------------------------- Modale -------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(30,54,60,.6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: var(--r-panel); padding: 32px 30px 28px; max-width: 480px; width: 100%; position: relative; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; margin-bottom: 18px; padding-right: 28px; color: var(--teal-ink); }
.modal__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.modal__list li { font-size: .9rem; color: var(--muted); line-height: 1.5; padding: 9px 12px; background: var(--bg-soft); border-radius: var(--r-chip); }
.modal__list strong { color: var(--ink); }
.modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 6px; transition: background .14s ease, color .14s ease; }
.modal__close:hover { background: var(--line); color: var(--ink); }

.modal--legal { max-width: 760px; }
.modal--legal h2 { font-family: var(--display); font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; padding-right: 32px; line-height: 1.3; color: var(--teal-ink); }
.modal--legal .modal__subtitle { font-size: .85rem; color: var(--muted); margin: 0 0 20px; }
.modal--legal h3 { font-family: var(--display); font-size: .95rem; font-weight: 700; margin: 22px 0 8px; color: var(--teal-ink); padding-right: 0; }
.modal--legal p { font-size: .85rem; color: var(--muted); margin: 0 0 10px; line-height: 1.65; }
.modal--legal strong { color: var(--ink); }
.modal--legal ul, .modal--legal ol { margin: 0 0 10px; padding-left: 20px; }
.modal--legal li { font-size: .85rem; color: var(--muted); line-height: 1.65; margin-bottom: 5px; }
.modal--legal .toc { list-style: decimal; }
.modal--legal .toc li { font-weight: 500; }

/* ------------------------------- Focus a11y ----------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, .filter-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* =============================== Responsive ============================== */

/* Mobilny wiersz oferty: osobna karta (więcej „poukładania" zamiast płaskiej listy) */
@media (max-width: 859px) {
  .offers-panel { padding: 12px 12px 16px; }
  .offers-list { gap: 12px; }
  .offer-row { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "rank logo name" "vals vals vals" "act act act" "cond cond cond"; gap: 12px; align-items: center; padding: 16px 14px;
    border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
  .offer-row:last-child { border-bottom: 1px solid var(--line); } /* karta zachowuje pełną ramkę */
  .offer-rank { grid-area: rank; }
  .offer-logo { grid-area: logo; }
  .offer-name { grid-area: name; }
  .offer-vals { grid-area: vals; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
  .offer-act { grid-area: act; }
  .offer-conditions { grid-area: cond; }
  .offer-val--accent .col-num { font-size: 1.18rem; }

  /* TOP-3 wyróżnione kartą: mocniejszy cień + ramka w kolorze medalu */
  .offer-row--gold, .offer-row--silver, .offer-row--bronze { box-shadow: 0 6px 16px rgba(28,42,45,.10); }
  .offer-row--gold   { border-color: rgba(207,162,58,.50); }
  .offer-row--silver { border-color: rgba(150,158,167,.55); }
  .offer-row--bronze { border-color: rgba(176,118,62,.50); }

  /* Naprzemienne tło kart: białe / jasnoszare — pomijając medalowy TOP-3 */
  .offer-row:nth-child(even):not(.offer-row--gold):not(.offer-row--silver):not(.offer-row--bronze) { --row-bg: #EDF1F2; }
}

@media (min-width: 600px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .lead-card { padding: 36px 40px; }
  .lead-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 600px) and (max-width: 859px) {
  .usp-grid { grid-template-columns: 1fr; }
}

/* Desktop: tabela ofert + większy hero */
@media (min-width: 860px) {
  .hero { padding: 62px 0 120px; }
  .hero__inner { grid-template-columns: 1fr 1.04fr; gap: 40px; }
  .hero__visual { justify-self: end; width: min(480px, 44vw); }

  .offers-panel { padding: 10px 22px 18px; }
  .offers-head { display: grid; grid-template-columns: var(--offer-cols); gap: 18px; align-items: center;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 12px 12px; margin: 12px 0 4px; }
  .offers-head > div { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
  .oh-offer { grid-column: span 3; }

  .offer-row { display: grid; grid-template-columns: var(--offer-cols); gap: 18px; align-items: center; padding: 14px 12px; }
  .offer-row:nth-child(even):not(.offer-row--gold):not(.offer-row--silver):not(.offer-row--bronze) { --row-bg: #FAFCFC; }
  .offer-row:hover { background: var(--teal-50); }
  .offer-vals { display: contents; }
  .col-label { display: none; }
  .offer-act { grid-column: 7; }
  .offer-conditions { grid-column: 1 / -1; }
  .usp-grid { grid-template-columns: repeat(3, 1fr); padding: 30px 32px; }

  .footer__inner { grid-template-columns: 2fr 1fr; }
}

/* Menu mobilne */
@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 10px 24px 22px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 16px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ============================ BLOG (strona /blog) ============================ */
.blog--page { min-height: 62vh; padding-top: 48px; }
.blog-state { text-align: center; color: var(--muted); padding: 30px 0; font-size: 1.02rem; }

/* ======================= WPIS (strona /blog/<slug>) ======================= */
.post { padding-bottom: 64px; }
.post__hero { width: 100%; background: var(--teal-50); }
.post__cover { display: block; width: 100%; max-width: var(--container); margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post__wrap { max-width: 760px; }
.post__back { display: inline-block; margin: 26px 0 18px; color: var(--teal); font-weight: 600; font-size: .92rem; text-decoration: none; }
.post__back:hover { color: var(--gold-600); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.post__meta .article-cat { font-size: .72rem; letter-spacing: .1em; font-weight: 800; color: var(--gold-600); }
.post__dot { color: var(--line-2); }
.post__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4.6vw, 2.7rem); line-height: 1.16; color: var(--teal-ink); margin-bottom: 26px; }

/* Proza wpisu */
.post__body { color: var(--ink); font-size: 1.09rem; line-height: 1.75; }
.post__body > * + * { margin-top: 1.15em; }
.post__body h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--teal-ink); margin-top: 1.8em; line-height: 1.3; }
.post__body h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--teal-ink); margin-top: 1.5em; }
.post__body ul, .post__body ol { padding-left: 1.35em; }
.post__body li { margin-top: .5em; }
.post__body li::marker { color: var(--gold-600); }
.post__body a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.post__body a:hover { color: var(--gold-600); }
.post__body strong, .post__body b { color: var(--teal-ink); font-weight: 700; }
.post__body blockquote { margin: 1.3em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.post__body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.post__body pre { background: var(--bg-soft); padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
.post__body pre code { background: none; padding: 0; }
.post__body hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

.post__source { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted-2); }
.post__source a { color: var(--teal); }
.post__cta { margin-top: 32px; }
.post-state { padding: 64px 24px; text-align: center; }
.post-state .section-title { margin-bottom: 10px; }
.post-state .btn { margin-top: 20px; }

@media (min-width: 760px) {
  .post__cover { aspect-ratio: 21 / 9; }
}
