/*
Theme Name: Kompas Kredytowy
Theme URI: https://bskredyty.pl/
Author: Bartłomiej Świć
Description: Lekki motyw strony bskredyty.pl – Kompas Kredytowy, Bartłomiej Świć, Niezależny Ekspert Kredytowy. Własny nagłówek, stopka, blog, gotowe wzorce stron i formularz Contact Form 7 z ochroną przed botami.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kompas
*/
/* Inter z własnego serwera (SIL Open Font License), znaki łacińskie i polskie */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-300.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff") format("woff"); }
/* Kompas Kredytowy — wersja jasna.
   Layout: white, airy pages with navy type; navy reserved for the stats band, calculator band and footer; one blue accent. */
:root {
  --navy: #F7F9FC;      /* tło strony (jasne, chłodne) */
  --deep: #EDF2F8;      /* sekcje naprzemienne */
  --card: #FFFFFF;      /* karty */
  --ink: #1B2A4A;       /* tekst: granat marki */
  --muted: #55627A;     /* tekst pomocniczy */
  --accent: #2E6FB8;    /* akcent marki */
  --accent-ink: #2E6FB8;
  --line: rgba(27, 42, 74, 0.12);
  --brand: #1B2A4A;     /* granatowe pasy i stopka */
  --brand-2: #263A61;
  --on-brand: #F2F5FA;
  --on-brand-muted: #A7B4CA;
  --shadow: 0 1px 2px rgba(27,42,74,.06), 0 8px 24px rgba(27,42,74,.06);
  --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 5vw, 3.6rem);
  --radius: 14px;
  --wrap: 1160px;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); font-weight: 300; line-height: 1.08; }
h1 strong { font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 300; line-height: 1.15; }
h2 strong { font-weight: 600; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent-ink); font-weight: 600;
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b { font-weight: 600; font-size: 0.98rem; }
.brand-name span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2a64a6; }
.btn-ghost { border-color: rgba(27,42,74,.3); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--deep); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 720px; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-text { display: grid; gap: 26px; min-width: 0; }
.free-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.free-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; object-position: 25% 40%; width: 100%; }
.hero-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: color-mix(in srgb, var(--deep) 82%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  font-size: 0.88rem; line-height: 1.4;
}
.hero-photo figcaption b { display: block; font-size: 0.98rem; }
.hero-photo figcaption span { color: var(--muted); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 36px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: grid; gap: 4px; }
.stat b { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

/* Offer */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.offer {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-width: 0;
  border: 1px solid transparent; transition: border-color .2s;
}
.offer:hover { border-color: rgba(46,111,184,.45); }
.offer .bearing { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.offer p { color: var(--muted); font-size: 0.96rem; }
.offer a { font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.offer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Why */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% 50%; }
.split > * { min-width: 0; }
.why-list { display: grid; gap: 0; margin-top: 36px; }
.why-item { display: grid; grid-template-columns: 1fr; gap: 6px; padding-block: 22px; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item p { color: var(--muted); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step; padding: 26px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); display: grid; gap: 10px; align-content: start;
}
.steps li::before {
  content: "Etap " counter(step); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600;
}
.steps p { color: var(--muted); font-size: 0.96rem; }

/* Starter pack */
.pack {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
  background: var(--card); border-radius: 20px; padding: clamp(28px, 5vw, 56px);
}
.pack ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pack li { display: flex; gap: 12px; color: var(--muted); }
.pack li::before { content: ""; width: 14px; height: 1px; background: var(--accent-ink); margin-top: 0.85em; flex: none; }
.pack > * { min-width: 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 18px; align-content: space-between; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.review figcaption { font-size: 0.9rem; color: var(--muted); }
.review figcaption b { color: var(--ink); font-weight: 600; }
.reviews-more { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }
.reviews-more a { color: var(--ink); }

/* FAQ */
.faq { display: grid; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding-block: 22px; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; color: var(--accent-ink); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 65ch; }

/* CTA band */
.cta-band { text-align: left; }
.cta-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; border-top: 1px solid var(--line); padding-top: 48px; }
.cta-box h2 { max-width: 18ch; }
.phone-big { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 300; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; text-decoration: none; }

/* Page hero (subpages) */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.page-hero .wrap { display: grid; gap: 18px; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid > * { min-width: 0; }
.about-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 25% 50%; position: sticky; top: 96px; }
.prose { display: grid; gap: 18px; max-width: 65ch; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose h2 { margin-top: 24px; font-size: var(--step-3); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 12px; }
.fact { background: var(--card); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; }
.fact b { font-size: 1.6rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.85rem; color: var(--muted); }

/* Calculator */
.widget-slot {
  border: 1.5px dashed rgba(46,111,184,.45); border-radius: 20px; min-height: 360px;
  display: grid; place-items: center; text-align: center; padding: 40px 24px; gap: 8px;
}
.widget-slot p { color: var(--muted); max-width: 46ch; }
.calc-note { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-grid > * { min-width: 0; }
form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
label { font-size: 0.88rem; font-weight: 600; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--deep);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-ink); }
textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.form-status { font-size: 0.92rem; color: var(--accent-ink); min-height: 1.4em; }
.contact-card { background: var(--card); border-radius: 20px; padding: 32px 28px; display: grid; gap: 24px; }
.contact-line { display: grid; gap: 2px; }
.contact-line span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.contact-line a, .contact-line p { font-size: 1.15rem; text-decoration: none; user-select: all; }
.contact-line a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { background: var(--card); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.post .series { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.post p { color: var(--muted); font-size: 0.96rem; }
.post .tag { font-size: 0.78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; justify-self: start; }
.series-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.series-list span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid > * { min-width: 0; display: grid; gap: 10px; align-content: start; }
.footer-grid h3 { color: var(--ink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }

/* Mobile call bar */
.call-bar { display: none; }

@media (max-width: 960px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .reviews, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--ink); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .site-header:not(.open) .nav { display: none; }
  .hero-grid, .split, .pack, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid img { position: static; aspect-ratio: 1 / 1; }
  .split img { aspect-ratio: 1 / 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--deep) 94%, transparent); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .call-bar .btn { padding: 12px 10px; }
  body { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .offer-grid, .steps, .reviews, .blog-grid, .row-2, .facts { grid-template-columns: 1fr; }
  .brand-name span { display: none; }
}

/* ---- Wersja jasna: nadpisania ---- */
.offer, .post, .contact-card, .fact { border: 1px solid var(--line); box-shadow: var(--shadow); }
.review, .steps li { background: var(--card); }
.hero-photo figcaption { background: rgba(255,255,255,.88); }
input, select, textarea { background: #fff; }
.pack { background: var(--brand); color: var(--on-brand); }
.pack .lead, .pack li { color: var(--on-brand-muted); }
.pack .eyebrow { color: #8DB8EA; }
.pack li::before { background: #8DB8EA; }
.stats { background: var(--brand); color: var(--on-brand); border: 0; }
.stats .stat span { color: var(--on-brand-muted); }
.calc-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%); color: var(--on-brand); padding-block: clamp(48px, 7vw, 80px); }
.calc-band .eyebrow { color: #8DB8EA; }
.calc-band .lead { color: var(--on-brand-muted); }
.calc-band-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.site-footer { background: var(--brand); color: var(--on-brand-muted); border-top: 0; }
.site-footer .brand-name b, .footer-grid h3 { color: var(--on-brand); }
.site-footer .brand-mark { border-color: var(--on-brand); color: var(--on-brand); }
.site-footer a:hover { color: var(--on-brand); }
.footer-bottom { border-top-color: rgba(242,245,250,.14); }
.site-header { background: rgba(255,255,255,.92); }
.offer .bearing { display: inline-flex; justify-self: start; background: var(--deep); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 820px) {
  .nav { background: #fff; }
  .call-bar { background: rgba(255,255,255,.95); }
}

.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }

.brand-logo { width: 54px; height: auto; flex: none; }
@media (max-width: 560px) { .brand-logo { width: 38px; } }

.stars { color: #E0A526; letter-spacing: 2px; font-size: 0.95rem; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); }
.rating b { font-size: 1.6rem; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; }
.review blockquote { font-size: 1rem; }

.review { grid-template-rows: auto 1fr auto; align-content: stretch; gap: 14px; }

/* Opinie: jeden rząd, przewijanie w poziomie */
.reviews {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews .review { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; min-width: 0; }
.reviews-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.reviews-bar .reviews-more { margin: 0; }
.reviews-nav { display: flex; gap: 10px; }
.rev-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font: inherit; font-size: 1.2rem; cursor: pointer; transition: border-color .2s, opacity .2s;
}
.rev-btn:hover:not(:disabled) { border-color: var(--accent); }
.rev-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 960px) { .reviews .review { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .reviews .review { flex-basis: 86%; } .reviews { grid-template-columns: none; } }

/* ---- Rzut mieszkania jako delikatne tło ---- */
.hero, .page-hero, .calc-band { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before, .calc-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/plan-granat.svg") no-repeat;
  background-size: min(1180px, 110%) auto;
  background-position: right -140px center;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.page-hero::before { background-position: right -220px top -60px; opacity: 0.06; }
.calc-band::before { background-image: url("img/plan-biale.svg"); background-position: right -120px center; opacity: 0.08; }
@media (max-width: 820px) {
  .hero::before { background-size: 900px auto; background-position: center bottom -60px; opacity: 0.06;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
  .page-hero::before { background-size: 760px auto; background-position: right -260px top -40px; }
}

/* ---- Portret w kole ---- */
.hero-photo { justify-self: center; width: min(100%, 440px); }
.hero-photo img {
  border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.7), 0 24px 60px rgba(27,42,74,.16);
}
.hero-photo figcaption {
  left: 50%; right: auto; bottom: 6%; transform: translateX(-50%);
  white-space: nowrap; text-align: center; border-radius: 999px; padding: 10px 22px;
  box-shadow: var(--shadow);
}
.about-grid img { border-radius: 50%; aspect-ratio: 1 / 1; object-position: center; box-shadow: 0 24px 60px rgba(27,42,74,.14); }
@media (max-width: 820px) { .about-grid img { width: min(100%, 360px); justify-self: center; } }

.why-note { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }
.prose-lead { font-size: 1.35rem !important; color: var(--ink) !important; font-weight: 300; letter-spacing: -0.01em; }

/* delikatniej + wygaszenie krawędzi */
.hero::before { opacity: 0.045; }
.page-hero::before {
  opacity: 0.04;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000 30%, transparent 75%);
}
.calc-band::before { opacity: 0.06; }
@media (max-width: 820px) { .hero::before { opacity: 0.04; } }

/* Ikonki mediów społecznościowych w stopce */
.socials { display: flex; gap: 10px; margin-top: 8px; }
.social {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(242,245,250,.28); color: var(--on-brand, #F2F5FA); transition: background .2s, border-color .2s;
}
.social svg { width: 18px; height: 18px; }
.social:hover { background: rgba(242,245,250,.1); border-color: rgba(242,245,250,.6); }

/* Pole-pułapka na boty: niewidoczne dla ludzi i czytników ekranu */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Pasek liczb: trzy wartości */
.stats-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat:last-child { grid-column: 1 / -1; }
}

/* ================= WARIANT 2 — krócej i prościej na telefonie ================= */

/* Mały portret z podpisem u góry sekcji powitalnej (tylko telefon) */
.mini-id { display: none; }
.mini-id img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(27,42,74,.15); }
.mini-id span { display: grid; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.mini-id b { color: var(--ink); font-size: 1rem; font-weight: 600; }

/* Jeden pas „Zanim złożysz wniosek”: pakiet + kalkulator */
.tools { background: var(--brand); color: var(--on-brand); position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 8vw, 96px); }
.tools::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/plan-biale.svg") no-repeat right -120px center / min(1180px, 110%) auto; opacity: 0.04;
}
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: rgba(242,245,250,.06); border: 1px solid rgba(242,245,250,.14); min-width: 0; }
.tool .eyebrow { color: #8DB8EA; }
.tool h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tool p { color: var(--on-brand-muted); }
.tool-link { color: var(--on-brand); font-weight: 600; text-decoration: none; justify-self: start; border-bottom: 1px solid rgba(242,245,250,.4); padding-bottom: 2px; }
.tool-link:hover { border-color: var(--on-brand); }

@media (max-width: 820px) {
  section { padding-block: 52px; }
  .section-head { margin-bottom: 28px; gap: 10px; }

  /* Pierwszy ekran: portret mały u góry, duże zdjęcie znika */
  .mini-id { display: flex; align-items: center; gap: 14px; }
  .hero { padding-block: 28px 40px; }
  .hero-text { gap: 18px; }
  .hero-photo { display: none; }

  /* Oferta 2×2, zwięzłe kafelki */
  .offer-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .offer { padding: 16px 14px; gap: 8px; }
  .offer .bearing { font-size: 0.65rem; padding: 3px 8px; }
  .offer h3 { font-size: 0.98rem; }
  .offer p { font-size: 0.85rem; line-height: 1.5; }

  /* Dlaczego ja: bez dużego zdjęcia */
  .split > img { display: none; }
  .why-list { margin-top: 20px; }
  .why-item { padding-block: 16px; }

  /* Proces jako zwarta, numerowana lista */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li {
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    padding: 0 0 18px 44px; position: relative; gap: 2px;
  }
  .steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand); color: var(--on-brand); font-size: 0.8rem; letter-spacing: 0;
  }
  .steps li::after {
    content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--line);
  }
  .steps li:last-child::after { display: none; }
  .steps h3 { font-size: 1rem; }
  .steps p { font-size: 0.92rem; }

  .tools-grid { grid-template-columns: 1fr; }
  .faq summary { padding-block: 16px; font-size: 1rem; }
  .cta-box { padding-top: 32px; }
}
@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }
}

/* FAQ: przycisk „Pokaż więcej pytań” */
.faq-extra { display: grid; }
.faq-toggle {
  justify-self: start; margin-top: 20px; background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.faq-toggle:hover { border-color: var(--accent); }
/* Blog: tytuły jako linki */
.post h3 a { text-decoration: none; }
.post h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-more { font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--accent); }

/* „Dlaczego ja” bez zdjęcia: cztery filary 2×2 */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); display: grid; gap: 8px; align-content: start; min-width: 0;
}
.why-card h3 { font-size: 1.15rem; }
.why-card p { color: var(--muted); }
#dlaczego .why-note { margin-top: 24px; }

@media (max-width: 820px) {
  .why-grid { grid-template-columns: 1fr; gap: 10px; }
  .why-card { padding: 18px; }
}

/* Kalkulator Lendi */
.calc-widget { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(8px, 2vw, 20px); min-height: 480px; box-shadow: var(--shadow); overflow: hidden; }
.calc-widget .lendi-widget { width: 100%; }
@media (max-width: 560px) { .calc-widget { padding: 0; border-radius: 14px; } }


/* ================= WordPress ================= */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Stopka: dodatkowa linia prawna */
.footer-legal { font-size: 0.8rem; color: var(--on-brand-muted); margin-top: 28px; line-height: 1.6; }

/* Treść wpisów i zwykłych stron */
.entry { max-width: 72ch; }
.entry h2 { font-size: var(--step-3); }
.entry h3 { margin-top: 12px; font-size: var(--step-2); font-weight: 600; }
.entry ul, .entry ol { margin: 0; padding-left: 1.3em; color: var(--muted); display: grid; gap: 6px; font-size: 1.05rem; }
.entry li::marker { color: var(--accent); }
.entry a { color: var(--accent); text-underline-offset: 3px; }
.entry img { border-radius: var(--radius); }
.entry figure { margin: 0; }
.entry figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.entry blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.entry .wp-block-table { overflow-x: auto; margin: 0; }
.entry table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry iframe, .entry video { max-width: 100%; }
.aligncenter { margin-inline: auto; }
.single-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.back-link { margin-top: 16px; }
.back-link a { font-weight: 600; text-decoration: none; }

/* Blog: lista */
.post-thumb { display: block; margin: -28px -24px 4px; }
.post-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.post { overflow: hidden; }
.series-list a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; color: var(--muted); text-decoration: none; background: var(--card); }
.series-list a:hover { color: var(--ink); border-color: var(--ink); }
.series-list a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--card); }
.page-numbers.current { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Formularz Contact Form 7 */
.wpcf7 { min-width: 0; }
.wpcf7 form { display: grid; gap: 18px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 .consent .wpcf7-list-item { margin: 0; }
.wpcf7 .consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.wpcf7 .consent input { width: auto; margin-top: 4px; }
.wpcf7 .consent a { color: var(--ink); }
.wpcf7-not-valid-tip { color: #B42318; font-size: 0.85rem; margin-top: 6px; display: block; }
.wpcf7 .wpcf7-not-valid { border-color: #B42318; }
.wpcf7 input[type="submit"] { width: auto; }
.wpcf7 .actions { align-items: center; }
.wpcf7-spinner { margin: 0 0 0 8px; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); font-size: 0.92rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2E7D4F; background: #EEF8F1; color: #1F6B40; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output { border-color: #E3A008; background: #FFF8E6; color: #7A5200; }
.form-fallback { display: grid; gap: 18px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; }
.admin-note { font-size: 0.85rem; color: #7A5200; background: #FFF8E6; border-radius: 10px; padding: 10px 14px; }
.wpcf7 input[type="submit"]:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
