/* ===== Układanka | koncepcja =====
   Tła w kolorze Układanki #049fe4 (--brand) mają grafitowy tekst #1c2630 (--on-brand): kontrast 5,17:1.
   Niebieski TEKST na białym tle (linki, ceny, menu) ma ciemniejszy odcień #0377aa (--blue): kontrast 4,97:1.
   Oba zestawienia spełniają WCAG AA.
   Tła: biały lub jasny błękit, bez żółtych akcentów. */
/* Czcionka Jost z własnego serwera (bez połączeń z Google Fonts); zmienna: grubości 100-900 */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/jost-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/jost-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/jost-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #049fe4;     /* kolor Układanki: tła i elementy ozdobne */
  --on-brand: #1c2630; /* tekst na tle #049fe4 (kontrast 5,17:1) */
  --blue: #0377aa;      /* niebieski tekst na białym tle (kontrast 4,97:1) */
  --blue-d: #0377aa;
  --blue-dd: #0377aa;
  --sky: #0377aa;
  --blue-l: #e8f6fd;    /* jasny błękit na tła */
  --navy: #1c2630;      /* nagłówki: grafit jak napis w logo */

  --bg: #fbfdff;
  --surface: #ffffff;
  --text: #26313c;
  --muted: #5d6b78;
  --line: #e3edf3;

  --r: 18px;
  --shadow: 0 6px 24px rgba(4, 80, 120, .08);
  /* Tw Cen MT: wymaga licencji webfont do osadzenia; Jost to darmowy, zbliżony zamiennik */
  --font: "Tw Cen MT", "Tw Cen MT Std", "Jost", "Century Gothic", sans-serif;
  --font-h: var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 18px; }
img { max-width: 100%; display: block; }
a { color: var(--blue-d); }
h1, h2, h3 { font-family: var(--font-h); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.section { padding: 64px 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-d); font-size: .85rem; margin: 0 0 .6em; }
.placeholder-note { display: none; }
.show-braki .placeholder-note { display: inline-block; background: var(--blue-l); color: var(--navy); border: 1px dashed var(--blue); border-radius: 8px; padding: 2px 8px; font-size: .85rem; }

/* ---------- topbar ---------- */
.topbar { background: var(--brand); color: var(--on-brand); font-size: .88rem; }
.topbar__inner { display: flex; gap: 22px; align-items: center; justify-content: flex-end; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; }
.topbar__item { display: inline-flex; align-items: center; min-height: 28px; }
.topbar a:hover { color: var(--on-brand); text-decoration: underline; }
.topbar__fb { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.35); }

/* ---------- brand ---------- */
.brand { display: flex; justify-content: center; align-items: center; padding: 14px 16px 10px; position: relative; background: var(--surface); }
.brand__link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__logo { width: 150px; height: 150px; object-fit: contain; transition: transform .4s; }
.brand__link:hover .brand__logo { transform: scale(1.03); }
.brand__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand__name { display: block; font-family: var(--font-h); font-weight: 700; font-size: 2.4rem; letter-spacing: .06em; color: var(--navy); line-height: 1; }
.brand__sub { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-d); margin-top: 4px; }

/* ---------- nav ---------- */
.nav { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(31,42,68,.05); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav .nav__list.wrap { margin-inline: auto; }  /* wyśrodkowanie paska menu (reguła wyżej zerowała marginesy) */
.nav__list { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.nav__list > li { position: relative; }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 16px 16px; font-weight: 700; color: var(--navy); text-decoration: none; font-size: .98rem; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: color .2s, border-color .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--blue); border-color: var(--blue); }
.nav .nav__link--cta { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 9px 20px; margin: 0 0 0 10px; border: 0; }
.nav .nav__link--cta:hover, .nav .nav__link--cta.is-active { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 12px rgba(4,159,228,.35); }
.caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform .2s; }
.has-sub:hover > .nav__link .caret, .has-sub.open > .nav__link .caret { transform: rotate(180deg); }
.sub-toggle { display: none; }

/* rozwijane „suwaczki” */
.sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; border-top: 3px solid var(--brand); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub li { position: relative; }
.sub a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.sub a:hover { background: var(--blue-l); color: var(--blue-d); }
/* poziom 3 – kadra: Żuromin ▸ / Nidzica ▸ */
.sub .sub { top: -8px; left: 100%; border-radius: var(--r); border-top: 0; border-left: 3px solid var(--brand); }
.sub li:hover > .sub, .sub li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub .caret { transform: rotate(-90deg); }

.burger { display: none; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--blue-l); cursor: pointer; }
.burger span { display: block; width: 22px; height: 3px; margin: 4px auto; background: var(--navy); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- pages ---------- */
.page { display: none; animation: fadeIn .35s ease; }
.page.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, #ffffff 0%, var(--blue-l) 100%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 70px 0 110px; }
.hl { color: var(--blue); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.trust { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; color: var(--muted); flex-wrap: wrap; }
.trust strong { display: block; font-family: var(--font-h); font-size: 1.6rem; color: var(--navy); }
.puzzle-art { width: 100%; height: auto; overflow: visible; cursor: pointer; }
/* Układanie puzzli: kawałek startuje rozrzucony (zmienne ustawia app.js) i płynnie wraca na miejsce */
.piece { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)); opacity: var(--op, 1);
  transition: transform 2.4s cubic-bezier(.22, .9, .3, 1), opacity 1.2s ease; transition-delay: var(--delay, 0s); }
.piece__edge { fill: none; stroke: #fff; stroke-width: 2.5; transition: stroke-opacity 1.5s ease; }
.piece__shadow { fill: none; stroke: rgba(4, 80, 120, .18); stroke-width: 6; transition: opacity 1.5s ease; }
.jigsaw--scatter .piece { transition: none; }
.jigsaw--done .piece__edge { stroke-opacity: .35; }
.jigsaw--done .piece__shadow { opacity: 0; }
.jigsaw--done #jigsaw-pieces { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.frame { fill: none; stroke: var(--brand); stroke-width: 4; opacity: 0; transition: opacity 1.2s ease; }
.jigsaw--done .frame { opacity: 1; }
.wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; background: var(--bg); clip-path: path("M0 30 C 240 70 480 0 720 30 S 1200 60 1440 20 L 1440 60 L 0 60 Z"); clip-path: ellipse(75% 100% at 50% 100%); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, box-shadow .15s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px rgba(4,159,228,.32); }
.btn--primary:hover { box-shadow: 0 10px 22px rgba(4,159,228,.4); }
.btn--ghost { border-color: var(--blue); color: var(--blue-d); background: #fff; }
.btn--ghost:hover { background: var(--blue-l); }

/* ---------- about ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about--full { max-width: 78ch; margin: 0 auto; }
.about p { margin: 0 0 1em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.about .eyebrow, .about .about__quote { text-align: left; }
.about__quote { font-size: 1.35rem; font-weight: 700; color: var(--blue); border-left: 4px solid var(--brand); padding: 4px 0 4px 16px; }
.values-strip { list-style: none; margin: -36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 2; }

/* Zdjęcie właścicielek obok misji */
.owners { margin: 0; position: sticky; top: 90px; }
.owners__frame { aspect-ratio: 4 / 5; border: 3px dashed var(--blue); border-radius: var(--r); background: var(--blue-l);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  color: var(--blue); font-weight: 700; font-size: 1.2rem; }
.owners__frame-ico { font-size: 2.6rem; }
.owners figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-weight: 600; }

/* Opinie Google */
.reviews { text-align: center; }
.reviews__switch { margin: 6px auto 26px; }
.reviews__switch button { font: inherit; font-weight: 700; padding: 9px 22px; border-radius: 999px; border: 0; background: transparent; color: var(--navy); cursor: pointer; }
.reviews__switch button.is-active { background: var(--brand); color: var(--on-brand); }
.reviews__summary { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 700; color: var(--navy); }
.reviews__score { font-size: 2rem; color: var(--blue); }
.stars { color: #f5b301; letter-spacing: 2px; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; text-align: left; }
.review { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__head img, .review__avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.review__avatar { display: grid; place-items: center; background: var(--blue-l); color: var(--blue); font-weight: 700; }
.review__name { font-weight: 700; color: var(--navy); line-height: 1.2; }
.review__name small { display: block; color: var(--muted); font-weight: 400; }
.review p { margin: 0; color: var(--text); }
.reviews__empty { max-width: 560px; margin: 0 auto; color: var(--muted); }
.reviews__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.reviews__credit { margin-top: 14px; font-size: .8rem; color: var(--muted); }

/* Przełącznik języka */
.lang { display: inline-flex; gap: 2px; background: rgba(255,255,255,.35); border-radius: 999px; padding: 3px; margin-right: auto; }
.lang button { font: inherit; font-size: .8rem; font-weight: 700; color: var(--on-brand); background: transparent; border: 0; border-radius: 999px; padding: 3px 10px; cursor: pointer; letter-spacing: .04em; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--blue); }
.value { display: flex; gap: 16px; background: var(--surface); padding: 18px; border-radius: var(--r); box-shadow: var(--shadow); }
.value { align-items: center; }
.value h3, .value__title { margin: 0; font-size: 1.15rem; font-family: var(--font-h); font-weight: 700; color: var(--navy); line-height: 1.15; }
.value p { margin: 0; color: var(--muted); }
.value__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, white); color: var(--blue); font-size: 1.4rem; font-weight: 700; }

.band { background: var(--brand); padding: 64px 0; }
.band > .wrap > h2 { color: var(--on-brand); }
.band .btn--primary { background: #fff; color: var(--blue); box-shadow: none; }
.band .btn--primary:hover { box-shadow: 0 8px 20px rgba(0,0,0,.12); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; margin: 28px 0; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); border-top: 5px solid var(--c, var(--blue)); transition: transform .2s; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-4px); }
.card__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, white); color: var(--c); margin-bottom: 14px; }
.card__ico svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- page head ---------- */
.page-head { background: color-mix(in srgb, var(--c, var(--blue)) 16%, var(--bg)); padding: 48px 0 40px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background: var(--c, var(--blue)); opacity: .18; border-radius: 40% 60% 55% 45%; }
.page-head h1 { margin-bottom: .2em; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.crumbs a:hover { color: var(--blue); }
.crumbs__sep { margin: 0 6px; opacity: .6; }

/* ---------- diagnoza steps ---------- */
/* Nagłówek Diagnozy: zdjęcie serca z puzzli po prawej, płynnie wtopione w błękit */
.page-head--serce { background: #d4eefb; padding: 64px 0 56px; }
.page-head--serce .wrap { position: relative; z-index: 1; }
.page-head--serce .lead { max-width: 40ch; }
.page-head--serce::after { inset: 0 0 0 auto; width: 62%; height: auto; border-radius: 0; opacity: 1; background: url("diagnoza-serce.jpg") center 40% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }

/* Sekcja „Jak wygląda proces?”: dwa logotypy w tle, karty półprzezroczyste */
.diag-process { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); }
.diag-bg { position: absolute; z-index: -1; opacity: .5; mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.diag-bg--logo { width: 340px; left: max(-40px, calc(50% - 680px)); top: 40px; animation: drift-a 16s ease-in-out infinite; }
.diag-bg--dlonie { width: 380px; right: max(-40px, calc(50% - 700px)); bottom: 30px; animation: drift-b 19s ease-in-out infinite; }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(18px, 26px) rotate(4deg); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0) rotate(3deg) scale(1); } 50% { transform: translate(-22px, -18px) rotate(-3deg) scale(1.04); } }
.diag-process .steps li a { background: rgba(255, 255, 255, .62); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); box-shadow: 0 6px 24px rgba(4, 80, 120, .06); }
.diag-process .steps li a:hover { background: rgba(255, 255, 255, .8); }
.diag-process .info-box { background: rgba(232, 246, 253, .6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }

.steps { list-style: none; padding: 0; margin: 36px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li a { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); padding: 22px; border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: inherit; height: 100%; transition: transform .2s; }
.steps li a:hover { transform: translateY(-4px); }
.steps__num { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.info-box { background: var(--blue-l); border-left: 5px solid var(--brand); padding: 18px 22px; border-radius: 12px; }

.sub-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.side-nav { position: sticky; top: 80px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px; }
.side-nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.side-nav a::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.side-nav a:hover { background: var(--blue-l); }
.side-nav a.is-active { background: var(--brand); color: var(--on-brand); }
.side-nav a.is-active::before { background: var(--on-brand); }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose .next { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.doc-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.doc-list li a { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); font-weight: 700; }
.doc-list li a span { margin-left: auto; font-size: .8rem; color: var(--muted); }

/* ---------- branches ---------- */
.branches-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.branch-card { position: relative; padding: 36px; border-radius: var(--r); background: color-mix(in srgb, var(--c) 14%, white); text-decoration: none; color: var(--navy); overflow: hidden; transition: transform .2s; }
.branch-card:hover { transform: translateY(-4px); }
.branch-card h3, .branch-card h2 { font-size: 2rem; margin: 6px 0 4px; }
.branch-card p { margin: 0; color: var(--muted); }
.branch-card__tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
.branch-card .arrow { position: absolute; right: 30px; bottom: 26px; font-size: 2rem; color: var(--blue); }
.branch-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.branch-detail iframe, .contact-card iframe { width: 100%; height: 260px; border: 0; border-radius: 14px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts b { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-l); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; }
.tag { padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; }

/* ---------- team ---------- */
.switch { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); margin-bottom: 30px; }
.switch a { padding: 9px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--navy); }
.switch a.is-active { background: var(--brand); color: var(--on-brand); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.person { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; text-align: center; scroll-margin-top: 90px; }
.person:target { outline: 4px solid var(--blue); }
.person__photo { aspect-ratio: 4 / 5; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 25%, white); font-family: var(--font-h); font-size: 3.4rem; font-weight: 700; color: var(--blue); position: relative; }
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; }
.person__body { padding: 18px 18px 22px; }
.person__body h3, .person__body h2 { margin: 0 0 2px; font-size: 1.25rem; }
.person__role { color: var(--muted); font-weight: 600; font-size: .95rem; margin: 0; }
.person__body p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- prices ---------- */
.page-head__text { max-width: 46ch; color: var(--text); margin: 0; }
.page-head--serce .lead { max-width: 46ch; }

/* Bezpłatne konsultacje */
.free-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 48px; }
.free-hours__card { background: var(--brand); color: var(--on-brand); border-radius: var(--r); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.free-hours__card h2 { color: var(--on-brand); margin-bottom: 8px; }
.free-hours__when { margin: 0; font-size: 1.15rem; }
.free-hours__when span { display: block; }
.free-hours__when strong { display: block; font-size: 2rem; }
.free-hours__note { margin: 8px 0 0; opacity: .9; }
.owners-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 22px; margin-top: 18px; }
.owner-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--navy); transition: transform .2s; }
.owner-card:hover { transform: translateY(-4px); }
.owner-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: #fff; }
.owner-card__body { display: block; padding: 16px 18px 20px; text-align: center; }
.owner-card__body strong { display: block; font-size: 1.15rem; }
.owner-card__phone { display: inline-block; margin-top: 6px; color: var(--blue); font-weight: 700; font-size: 1.15rem; }

/* Dokumenty */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.doc { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 20px; flex-wrap: wrap; }
.doc__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); flex: none; }
.doc__ico svg { width: 24px; height: 24px; }
.doc__title { flex: 1 1 280px; font-weight: 700; color: var(--navy); }
.doc__links { display: flex; gap: 8px; flex-wrap: wrap; }
.btn--sm { padding: 8px 16px; font-size: .92rem; }

.price-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.price-group { margin: 0; }
.price-group h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
.price-group h2::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--brand); }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.price-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-sub td { background: var(--brand); color: var(--on-brand); font-weight: 700; padding: 9px 20px; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--blue); white-space: nowrap; }
.price-table .price-sub td { text-align: left; color: var(--on-brand); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; background: color-mix(in srgb, var(--c) 30%, white); display: grid; place-items: center; cursor: zoom-in; }
.gallery figure.big { grid-column: span 2; grid-row: span 2; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure svg { width: 40%; opacity: .55; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--navy); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 22px; }
.contact-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; border-top: 6px solid var(--c); }
.contact-card a { font-weight: 700; text-decoration: none; }
/* WhatsApp: ikony w kolorze przewodnim */
.phones { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.phones li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wa { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-l); color: var(--blue); margin-left: auto; transition: transform .15s, box-shadow .15s; }
.wa:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(4, 159, 228, .3); }
.wa svg, .wa-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.wa-box { margin: 4px 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--blue-l); }
.wa-box__label { margin: 0 0 10px; font-weight: 700; color: var(--navy); }
.wa-box__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.wa-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 700; text-decoration: none; transition: box-shadow .15s; }
.wa-btn:hover { box-shadow: 0 4px 12px rgba(4, 159, 228, .3); }

.form { display: grid; gap: 12px; }
.form .form__consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.form__consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.form__info { margin: 0; font-size: .85rem; color: var(--muted); }

/* Mapa Google dopiero po kliknięciu */
.map-slot { min-height: 260px; border-radius: 14px; overflow: hidden; }
.map-consent { height: 100%; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: var(--blue-l); border-radius: 14px; }
.map-consent p { margin: 0; font-size: .85rem; color: var(--muted); max-width: 36ch; }

/* Standardy ochrony małoletnich */
.som h2 { font-size: 1.3rem; margin-top: 1.8em; }
.som h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
.som-meta { background: var(--blue-l); border-left: 5px solid var(--brand); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.som-meta dl { margin: 0; display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 6px 18px; }
.som-meta dt { font-weight: 700; color: var(--navy); }
.som-meta dd { margin: 0; }
.som-version { color: var(--muted); font-size: .95rem; }
.lang-note { background: var(--blue-l); border-radius: 12px; padding: 10px 14px; font-weight: 700; color: var(--navy); }
html[lang="pl"] .lang-note { display: none; }
@media (max-width: 600px) { .som-meta dl { grid-template-columns: 1fr; } .som-meta dd { margin-bottom: 8px; } }

/* Standardy: wersja dla dzieci */
.som-jump { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.kids-som { background: linear-gradient(160deg, #fff 0%, var(--blue-l) 100%); border: 3px solid var(--brand); border-radius: 24px; padding: 28px; margin-bottom: 40px; scroll-margin-top: 90px; }
.kids-som__head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.kids-som__head img { border-radius: 50%; background: #fff; flex: none; }
.kids-som__head h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--blue); }
.kids-som__head p { margin: 4px 0 0; font-size: 1.15rem; font-weight: 600; }
.kids-som__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kid-rule { background: #fff; border-radius: 18px; padding: 18px 18px 14px; box-shadow: var(--shadow); }
.kid-rule__ico { font-size: 2.2rem; line-height: 1; }
.kid-rule h3 { font-size: 1.2rem; margin: 8px 0; color: var(--navy); }
.kid-rule ul { margin: 0; padding-left: 1.1em; }
.kid-rule li { margin: 6px 0; font-size: 1.05rem; line-height: 1.45; }
.kid-rule--warn { border-top: 5px solid var(--brand); }
.kid-rule--help { border-top: 5px solid var(--brand); background: #fff; }
.kids-som__contact { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; margin-top: 20px; background: var(--brand); color: var(--on-brand); border-radius: 18px; padding: 18px; }
.kids-som__person { margin: 0; text-align: center; }
.kids-som__person img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; margin: 0 auto 8px; border: 4px solid #fff; }
.kids-som__person strong { display: block; font-size: 1.1rem; }
.kids-som__person span { font-size: .9rem; }
.kids-som__phones h3 { color: var(--on-brand); font-size: 1.2rem; margin: 0 0 10px; }
.kids-som__phones ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kids-som__phones li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.kids-som__phones strong { font-size: 1.6rem; min-width: 150px; }
.kids-som__print { margin: 16px 0 0; }
.som-full-title { scroll-margin-top: 90px; border-top: 2px solid var(--line); padding-top: 28px; }
@media (max-width: 600px) { .kids-som { padding: 18px; } .kids-som__contact { grid-template-columns: 1fr; } }

/* Druk plakatu: tylko wersja dla dzieci */
@media print {
  body.print-kids * { visibility: hidden; }
  body.print-kids .kids-som, body.print-kids .kids-som * { visibility: visible; }
  body.print-kids .kids-som { position: absolute; left: 0; top: 0; width: 100%; margin: 0; border-width: 2px; }
  body.print-kids .kids-som .placeholder-note, body.print-kids .kids-som__print { display: none; }
  body.print-kids .kid-rule { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  body.print-kids .kids-som__contact { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== Dostępność: widoczny fokus klawiatury i link „Przejdź do treści” ===== */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Podstrony usług, blog, elementy SEO ===== */
.hero__title { font-family: var(--font-h); color: var(--navy); line-height: 1.15; font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; margin: 0 0 .5em; }
.hero h1.eyebrow { line-height: 1.4; }
.h3 { font-size: 1.25rem; }
.small { font-size: .9rem; color: var(--muted); }
.intro { max-width: 75ch; font-size: 1.05rem; }
.card__more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--blue); }
.svc h2 { margin-top: 1.6em; font-size: 1.5rem; }
.svc h2:first-of-type { margin-top: .4em; }
.prose a:not(.btn):not(.card):not(.post-card):not(.staff-chip):not(.where-chip) { color: var(--blue); }
.cta-box { margin: 32px 0; padding: 22px 24px; border-radius: var(--r); background: var(--brand); color: var(--on-brand); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between; }
.cta-box p { margin: 0; font-weight: 700; font-size: 1.1rem; max-width: 46ch; }
.cta-box__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-box .btn--primary { background: #fff; color: var(--blue); box-shadow: none; }
.cta-box .btn--ghost { background: transparent; color: var(--on-brand); border-color: var(--on-brand); }
.where { display: flex; gap: 12px; flex-wrap: wrap; }
.where-chip { display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px; background: var(--blue-l); text-decoration: none; color: var(--navy); border: 2px solid transparent; }
.where-chip:hover { border-color: var(--blue); }
.where-chip span { font-size: .9rem; color: var(--muted); }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.staff-chip { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--navy); }
.staff-chip img { width: 48px; height: 60px; object-fit: cover; object-position: top; border-radius: 10px; background: #fff; flex: none; }
.staff-chip__ini { width: 48px; height: 60px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); font-weight: 700; flex: none; }
.staff-chip strong { display: block; line-height: 1.2; }
.staff-chip small { color: var(--muted); font-size: .82rem; line-height: 1.3; display: block; }
.price-table--mini { max-width: 560px; }
.faq details { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); margin: 10px 0; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 18px 0 26px; }
.post-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; text-decoration: none; color: inherit; border-top: 5px solid var(--brand); transition: transform .2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.post-card__cat { align-self: flex-start; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.post-card__meta { font-size: .85rem; color: var(--muted); }
.blog-teaser { text-align: left; }
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.post-meta { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.post { max-width: 72ch; }
.post h2 { margin-top: 1.6em; font-size: 1.45rem; }
.post h3 { margin-top: 1.2em; }
.disclaimer { font-size: .9rem; color: var(--muted); border-left: 4px solid var(--line); padding-left: 12px; margin-top: 28px; }
.crisis { background: #fdecec; border-left: 5px solid #c0392b; padding: 14px 18px; border-radius: 12px; }

/* Polityka prywatności */
.policy h2 { font-size: 1.35rem; margin-top: 1.6em; }
.policy h2:first-child { margin-top: 0; }

/* Lista braków (?braki) */
.missing-panel { position: fixed; right: 16px; bottom: 16px; z-index: 100; width: min(440px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: #fff; border: 3px solid var(--blue); border-radius: var(--r); box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 18px 20px; font-size: .9rem; }
.missing-panel h2 { font-size: 1.2rem; margin: 0 0 8px; }
.missing-panel ol { margin: 0; padding-left: 1.3em; }
.missing-panel li { margin: 4px 0; }
.missing-panel button { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.form input, .form select, .form textarea { font: inherit; padding: 11px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28, 38, 48, .25); }
.form__msg { margin: 0; font-weight: 700; color: var(--blue); }
.form__msg.is-error { color: #c0392b; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* ---------- footer ---------- */
.footer { background: var(--brand); color: var(--on-brand); margin-top: 40px; font-size: .95rem; }
.footer a { color: var(--on-brand); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 30px; padding: 44px 0; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { background: #fff; border-radius: 50%; padding: 2px; width: 72px; height: 72px; }
.footer strong { color: var(--on-brand); }
.footer__legal { padding: 0 0 18px; font-size: .85rem; opacity: .95; }
.footer__legal p { margin: 0 0 4px; }
.footer__bottom { text-align: center; padding: 14px; border-top: 1px solid rgba(28,38,48,.25); font-size: .85rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__link { padding: 16px 11px; font-size: .92rem; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .brand { justify-content: center; }
  .brand__logo { width: 96px; height: 96px; }
  .nav { display: none; position: sticky; max-height: calc(100vh - 0px); overflow: auto; }
  .nav.open { display: block; }
  .nav__list { flex-direction: column; width: 100%; }
  .nav__list > li { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; }
  .nav__link { padding: 14px 16px; border: 0; margin: 0; }
  .nav .nav__link--cta { margin: 10px 16px; justify-content: center; }
  .nav__list { align-items: stretch; }
  .nav__link .caret { display: none; }
  .sub-toggle { display: block; width: 52px; border: 0; background: transparent; cursor: pointer; position: relative; }
  .sub-toggle::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--navy); transition: transform .2s; }
  .has-sub.open > .sub-toggle::after { transform: rotate(180deg); }
  .sub, .sub .sub { position: static; grid-column: 1 / -1; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 16px; display: none; min-width: 0; background: transparent; }
  .has-sub.open > .sub { display: block; }
  .sub .caret { display: none; }
  .sub .sub { display: block; padding-left: 14px; }
  .sub .sub a { font-weight: 600; font-size: .92rem; color: var(--muted); }

  .hero__inner, .two-col, .branch-detail, .sub-layout { grid-template-columns: 1fr; }
  .hero__inner { padding: 40px 0 90px; }
  .hero__art { max-width: 340px; margin: 0 auto; order: -1; }
  .owners { position: static; max-width: 460px; margin: 8px auto 0; }
  .page-head--serce::after { width: 100%; opacity: .35; -webkit-mask-image: none; mask-image: none; }
  .diag-bg--logo { width: 220px; left: -50px; top: 60px; }
  .diag-bg--dlonie { width: 240px; right: -50px; bottom: 40px; }
  .cards--3, .cards--4, .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card--form { grid-column: 1 / -1; }
  .side-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .price-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .brand__logo { width: 84px; height: 84px; }
  .hero__art { max-width: 260px; }
  .hero__inner { padding-top: 24px; gap: 16px; }
  .topbar__inner { justify-content: center; gap: 14px; }
  .section { padding: 44px 0; }
  .cards--3, .cards--4, .steps, .branches-teaser, .contact-grid, .values-strip, .free-hours, .owners-contact { grid-template-columns: 1fr; }
  .values-strip { margin-top: -24px; gap: 10px; }
  .lang { margin-right: 0; }
  .gallery { grid-auto-rows: 150px; }
  .gallery figure.big { grid-row: span 1; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
