/* ==========================================================================
   Gabinet lek. med. Anny Leśnik-Kobos — arkusz stylów
   Identyfikacja: granat medyczny + biel + akcent turkusowo-niebieski,
   zieleń dla informacji pozytywnych, czerwień dla ostrzeżeń.
   ========================================================================== */

/* --- 1. Zmienne -------------------------------------------------------- */

:root {
  /* granaty i błękity */
  --navy-900: #082742;
  --navy-800: #0C3357;
  --navy-700: #114574;
  --navy-600: #175A94;
  --blue-600: #1273BE;
  --blue-500: #2C90DA;
  --blue-200: #BFDCF3;
  --blue-100: #E2F0FB;
  --blue-50:  #F2F8FD;

  /* akcenty */
  --green-700: #0B7A50;
  --green-600: #0E9462;
  --green-50:  #E6F6EF;
  --red-700:   #A81F32;
  --red-600:   #C62B3E;
  --red-50:    #FDECEE;
  --amber-600: #B4740A;
  --amber-50:  #FDF3E2;

  /* neutralne */
  --ink:     #0E2438;
  --ink-2:   #3D5670;
  --muted:   #68809A;
  --line:    #DBE6F0;
  --line-2:  #BFD2E2;
  --white:   #FFFFFF;
  --surface: #F5F9FD;

  --maxw:   1200px;
  --gutter: clamp(1.15rem, 4.5vw, 3.5rem);
  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;

  --shadow-sm: 0 1px 2px rgba(14, 36, 56, .06);
  --shadow:    0 2px 6px rgba(14, 36, 56, .06), 0 14px 32px -20px rgba(14, 36, 56, .30);
  --shadow-lg: 0 6px 16px rgba(14, 36, 56, .08), 0 40px 70px -44px rgba(14, 36, 56, .45);

  --sans: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --head: 'Figtree', var(--sans);
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  color-scheme: light;
}

/* --- 2. Reset ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue-100); color: var(--navy-800); }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- 3. Typografia ----------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--head);
  color: var(--navy-800);
  line-height: 1.15;
  letter-spacing: -.021em;
  text-wrap: balance;
}
h4 { font-family: var(--head); color: var(--navy-800); line-height: 1.3; }

h1 { font-size: clamp(2.05rem, 4.3vw, 3.15rem); font-weight: 800; letter-spacing: -.028em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); font-weight: 800; }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.38rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { text-wrap: pretty; }

/* etykieta sekcji: kwadracik + wersaliki */
.kicker {
  font-family: var(--head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.kicker::before {
  content: '';
  width: .55rem; height: .55rem;
  background: var(--blue-500);
  flex: none;
  transform: rotate(45deg);
}
.kicker--plain::before { display: none; }

.lede {
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  line-height: 1.62;
  color: var(--ink-2);
}

.num {
  font-family: var(--head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue-500);
}

.small { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.tiny  { font-size: .8rem; color: var(--muted); line-height: 1.55; }
strong, b { font-weight: 700; }

/* --- 4. Układ ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}
.wrap--narrow { max-width: 840px; }

.section { padding-block: clamp(3.5rem, 7.5vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.section--paper2 { background: var(--surface); }
.section--rule { border-top: 1px solid var(--line); }

/* nagłówek sekcji z niebieską belką z lewej */
.section-head {
  display: grid;
  gap: .9rem;
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
  padding-left: 1.25rem;
  border-left: 4px solid var(--blue-500);
}
.section-head .lede { margin-top: .2rem; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.25rem); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rule { height: 1px; background: var(--line); border: 0; }

/* --- 5. Przyciski ------------------------------------------------------ */

.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  max-width: 100%;
  padding: .85rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: 8px;
  font-family: var(--head);
  font-size: .97rem;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .16s, box-shadow .18s;
  box-shadow: 0 2px 0 rgba(8, 39, 66, .10);
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-700);
  border-color: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--navy-800); }

.btn--white { --btn-bg: #FFFFFF; --btn-fg: var(--navy-800); border-color: #FFFFFF; }
.btn--white:hover { background: var(--blue-100); border-color: var(--blue-100); color: var(--navy-800); }

.btn--red { --btn-bg: var(--red-600); }
.btn--red:hover { background: var(--red-700); border-color: var(--red-700); }

.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue-600);
  text-decoration: none;
  transition: gap .18s, color .18s;
}
.link-arrow::after { content: '→'; }
.link-arrow:hover { gap: .65rem; color: var(--navy-700); }

/* --- 6. Pasek użytkowy i pasek komunikatu ------------------------------ */

.topbar {
  background: var(--navy-900);
  color: #B9CFE2;
  font-size: .84rem;
}
.topbar__in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem 1.6rem;
}
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { width: .95rem; height: .95rem; color: var(--blue-500); flex: none; }
.topbar a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__sep { margin-left: auto; }
@media (max-width: 720px) {
  .topbar__hide { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__sep { margin: unset;}
}

.alertbar {
  background: var(--red-600);
  color: #FFF1F2;
  font-size: .89rem;
  position: relative;
  z-index: 60;
}
.alertbar__in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .65rem var(--gutter);
  display: flex;
  align-items: center;
  gap: .7rem 1rem;
  flex-wrap: wrap;
}
.alertbar__dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: #FFC9CE; flex: none;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 201, 206, .65); }
  70%  { box-shadow: 0 0 0 .55rem rgba(255, 201, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 201, 206, 0); }
}
.alertbar p { margin: 0; flex: 1 1 22rem; }
.alertbar a { color: #FFFFFF; font-weight: 700; }
.alertbar__close {
  background: transparent; border: 0; color: inherit;
  opacity: .8; cursor: pointer; padding: .15rem .35rem; line-height: 1;
  font-size: 1.2rem; border-radius: 4px;
}
.alertbar__close:hover { opacity: 1; background: rgba(255,255,255,.14); }

/* --- 7. Nagłówek ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 8px 24px -18px rgba(8, 39, 66, .55); }

.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: .9rem;
  transition: padding .25s;
}
.site-header.is-stuck .nav { padding-block: .5rem; }

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand__mark { width: 2.4rem; height: 2.4rem; color: var(--blue-600); flex: none; }
.brand__text { display: grid; line-height: 1.18; min-width: 0; }
.brand__name {
  font-family: var(--head);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand__role {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-600);
  white-space: nowrap;
}

.nav__links { display: none; gap: .1rem; align-items: center; }
@media (min-width: 1080px) { .nav__links { display: flex; } }

.nav__link {
  padding: .5rem .6rem;
  font-family: var(--head);
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 6px;
  position: relative;
  white-space: nowrap;
  transition: color .18s, background-color .18s;
}
.nav__link:hover { color: var(--navy-800); background: var(--blue-50); }
.nav__link.is-active { color: var(--blue-600); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: .6rem; right: .6rem; bottom: .18rem;
  height: 2.5px;
  background: var(--blue-500);
  border-radius: 2px;
}

.nav__cta { display: none; }
@media (min-width: 700px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem;
  background: var(--blue-50);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
}
@media (min-width: 1080px) { .nav__toggle { display: none; } }
.nav__toggle span {
  display: block; width: 1.05rem; height: 2px; background: var(--navy-800);
  position: relative; transition: transform .25s, background-color .2s;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--navy-800);
  transition: transform .25s, top .2s;
}
.nav__toggle span::before { top: -.36rem; }
.nav__toggle span::after  { top: .36rem; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.3,.8,.3,1);
  background: var(--white);
  border-top: 1px solid transparent;
}
.drawer.is-open { grid-template-rows: 1fr; border-top-color: var(--line); }
.drawer__in { overflow: hidden; }
.drawer__list {
  list-style: none; margin: 0;
  padding: .4rem var(--gutter) 1.4rem;
  max-width: var(--maxw); margin-inline: auto;
}
.drawer__list a {
  display: block;
  padding: .78rem .1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-800);
}
.drawer__list a:hover { color: var(--blue-600); }
.drawer .btn { margin-top: 1rem; }

/* --- 8. Hero ----------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(2.25rem, 5vw, 4.25rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(1100px 520px at 88% -8%, var(--blue-100), transparent 62%),
    linear-gradient(180deg, var(--blue-50) 0%, #FFFFFF 78%);
  overflow: hidden;
}
.hero::before {
  /* delikatna siatka punktów — kliniczny, spokojny wzór */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--blue-200) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(115deg, rgba(0,0,0,.55), transparent 55%);
  mask-image: linear-gradient(115deg, rgba(0,0,0,.55), transparent 55%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: clamp(2.25rem, 4.5vw, 3.75rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.06fr .94fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
}

.hero__title { margin-top: 1.1rem; }
.hero__title em { font-style: normal; color: var(--blue-600); }
.hero__lede { margin-top: 1.35rem; max-width: 35rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

.hero__facts {
  list-style: none; padding: 0;
  margin-top: 2.25rem;
  display: grid; gap: 1rem;
}
@media (min-width: 560px) { .hero__facts { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.hero__facts li { padding-top: .85rem; border-top: 3px solid var(--blue-200); }
.hero__facts b {
  display: block;
  font-family: var(--head);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy-700);
  letter-spacing: -.025em;
}
.hero__facts span { display: block; margin-top: .4rem; font-size: .85rem; color: var(--muted); line-height: 1.45; }

.hero__media { position: relative; }
.hero__photo {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--blue-100);
  border: 1px solid var(--line);
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% 50%;
}
.hero__photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 39, 66, .68), rgba(8, 39, 66, 0) 42%);
  pointer-events: none;
}
.hero__caption {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 1rem;
  z-index: 2;
  color: #EAF3FA;
  font-size: .84rem;
  line-height: 1.45;
}

.hero__badge {
  position: absolute;
  left: -.85rem; top: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 6px;
  padding: .5rem .9rem;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--head);
  font-size: .82rem; font-weight: 700;
  color: var(--navy-800);
  box-shadow: var(--shadow);
  z-index: 3;
}
.hero__badge .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); flex: none; }

/* --- 9. Pasek szybkich informacji -------------------------------------- */

.quickbar { background: var(--navy-800); color: #CBDDEC; }
.quickbar__list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
}
@media (min-width: 820px) { .quickbar__list { grid-template-columns: repeat(3, 1fr); } }
.quickbar__list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
@media (min-width: 820px) {
  .quickbar__list li { border-bottom: 0; border-left: 1px solid rgba(255,255,255,.13); padding-inline: 1.9rem; }
  .quickbar__list li:first-child { border-left: 0; padding-left: 0; }
  .quickbar__list li:last-child { padding-right: 0; }
}
@media (max-width: 819px) { .quickbar__list li:last-child { border-bottom: 0; } }
.quickbar__ico {
  width: 2.5rem; height: 2.5rem; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  color: #7FC0F0;
}
.quickbar__ico svg { width: 1.3rem; height: 1.3rem; stroke-width: 1.8; }
.quickbar h4 {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: #8FB0CB; font-weight: 700; margin-bottom: .3rem;
}
.quickbar strong {
  display: block;
  font-family: var(--head);
  font-size: 1.28rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.quickbar a { color: #FFFFFF; text-decoration: none; }
.quickbar a:hover { text-decoration: underline; }
.quickbar p { font-size: .87rem; margin-top: .25rem; color: #A9C3D8; }

/* --- 10. Bio ----------------------------------------------------------- */

.bio { display: grid; gap: clamp(2rem, 4.5vw, 3.75rem); align-items: start; }

.bio__aside {
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-500);
  border-radius: var(--r);
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.bio__aside h3 { font-size: 1.1rem; }

.deflist { margin: .4rem 0 0; }
.deflist div { display: grid; gap: .1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.deflist div:last-child { border-bottom: 0; padding-bottom: 0; }
.deflist dt {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.deflist dd { margin: 0; font-size: .95rem; color: var(--ink); }
.deflist a { color: var(--blue-600); }
@media (min-width: 720px) {
  .bio .deflist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .bio .deflist div { border-bottom: 0; }
}
@media (min-width: 1080px) {
  .bio .deflist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--ink-2); }
.prose h2 { margin-top: 2.9rem; }
.prose h2:first-child, .prose > .kicker + h2 { margin-top: 0; }
.prose h2 + p, .prose h2 + ul, .prose h2 + ol { margin-top: .85rem; }
.prose h3 { margin-top: 2.2rem; color: var(--navy-700); }
.prose h3 + p, .prose h3 + ul, .prose h3 + ol { margin-top: .65rem; }
.prose a { color: var(--blue-600); text-decoration-color: var(--blue-200); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ol { padding-left: 1.3rem; color: var(--ink-2); }
.prose li + li { margin-top: .5rem; }
.prose ul { list-style: none; padding-left: 0; color: var(--ink-2); }
.prose ul > li { position: relative; padding-left: 1.6rem; }
.prose ul > li::before {
  content: '';
  position: absolute;
  left: .1rem; top: .58em;
  width: .5rem; height: .5rem;
  border-radius: 2px;
  background: var(--blue-500);
}
.prose code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--blue-50);
  border: 1px solid var(--line);
  padding: .08em .35em;
  border-radius: 4px;
}

.pull {
  margin: 2.2rem 0;
  padding: 1.35rem 1.5rem;
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy-700);
}

/* --- 11. Karty --------------------------------------------------------- */

.cards { display: grid; gap: 1.15rem; }
@media (min-width: 720px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.45rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--blue-200); transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
}
.card__icon svg { width: 1.6rem; height: 1.6rem; stroke-width: 1.8; }
.card p { color: var(--ink-2); font-size: .96rem; }

.card__list {
  list-style: none; padding: 0; margin: .2rem 0 0;
  font-size: .93rem; color: var(--ink-2);
}
.card__list li {
  padding: .5rem 0;
  border-top: 1px solid var(--line);
  display: flex; gap: .6rem; align-items: flex-start;
  line-height: 1.5;
}
.card__list li::before {
  content: '';
  margin-top: .45em;
  width: .45rem; height: .45rem;
  border-radius: 2px;
  background: var(--blue-500);
  flex: none;
}

.card--accent { background: var(--navy-800); border-color: var(--navy-800); }
.card--accent h3 { color: #FFFFFF; }
.card--accent p { color: #B9CFE2; }
.card--accent .card__icon { background: rgba(255,255,255,.12); color: #7FC0F0; }
.card--accent .card__list { color: #C7DAE9; }
.card--accent .card__list li { border-top-color: rgba(255,255,255,.15); }
.card--accent .card__list li::before { background: #4FA6E8; }
.card--accent:hover { border-color: var(--navy-800); }

/* --- 12. Kroki wizyty -------------------------------------------------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: s; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; } }

.steps li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem 1.35rem 1.5rem;
}
.steps li::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  position: absolute;
  top: -.95rem; left: 1.35rem;
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: #FFFFFF;
  font-family: var(--head);
  font-size: .76rem;
  font-weight: 800;
}
.steps__n {
  display: block;
  margin: .55rem 0 .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.steps h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.steps p { font-size: .92rem; color: var(--ink-2); }
.steps a { color: var(--blue-600); }

/* --- 13. Galeria ------------------------------------------------------- */

.gallery { display: grid; gap: 1rem; }
@media (min-width: 820px) { .gallery { grid-template-columns: 1.45fr 1fr; align-items: stretch; } }

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--blue-100);
  cursor: zoom-in;
  border: 1px solid var(--line);
  padding: 0;
  display: block;
  width: 100%;
  text-align: left;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 15rem;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.shot:hover img { transform: scale(1.04); }
.shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: 2.4rem 1.1rem .9rem;
  background: linear-gradient(to top, rgba(8, 39, 66, .88), rgba(8, 39, 66, 0));
  color: #EAF3FA;
  font-size: .85rem;
  line-height: 1.45;
}

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 26, 42, .94);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity .28s, visibility .28s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 6px; }
.lightbox figcaption { color: #C7DAE9; font-size: .9rem; text-align: center; margin-top: 1rem; max-width: 40rem; }

/* blokada przewijania tła przy otwartym powiększeniu */
html.is-locked, html.is-locked body { overflow: hidden; }

/* punkt odniesienia dla cienia przyklejonego nagłówka (wstawiany przez skrypt) */
.scroll-sentinel { position: absolute; top: 0; width: 1px; height: 1px; }

/* pole pomocnicze używane przy kopiowaniu numeru w starszych przeglądarkach */
.clip-helper { position: absolute; left: -9999px; top: 0; opacity: 0; }
.lightbox__close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 2.75rem; height: 2.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }

/* --- 14. FAQ ----------------------------------------------------------- */

.faq { border-top: 2px solid var(--navy-800); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details[open] { background: var(--blue-50); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 1rem;
  position: relative;
  font-family: var(--head);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy-800);
  transition: color .18s, background-color .18s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-600); background: var(--blue-50); }
.faq summary::after {
  content: '';
  position: absolute;
  right: 1.1rem; top: 50%;
  width: .78rem; height: .78rem;
  margin-top: -.39rem;
  background:
    linear-gradient(var(--blue-600), var(--blue-600)) center/100% 2px no-repeat,
    linear-gradient(var(--blue-600), var(--blue-600)) center/2px 100% no-repeat;
  transition: transform .26s cubic-bezier(.3,.8,.3,1);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body { padding: 0 2.5rem 1.4rem 1rem; }
.faq__body p, .faq__body li { color: var(--ink-2); font-size: .97rem; }
.faq__body a { color: var(--blue-600); }
.faq__body > * + * { margin-top: .75rem; }
.faq__body ul { margin: 0; padding-left: 1.2rem; }

/* --- 15. Kontakt ------------------------------------------------------- */

.contact { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: .92fr 1.08fr; } }

.contact__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-500);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact__row {
  padding: 1.3rem 1.45rem;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact__row:last-child { border-bottom: 0; }
.contact__row > svg { width: 1.3rem; height: 1.3rem; color: var(--blue-600); flex: none; margin-top: .25rem; }
.contact__row h4 {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: .35rem;
}
.contact__row a { color: var(--ink); }

.phone-big {
  font-family: var(--head);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -.025em;
  text-decoration: none;
  display: inline-block;
  color: var(--navy-700);
}
.phone-big:hover { color: var(--blue-600); }

.copy-btn {
  background: var(--blue-50); border: 1px solid var(--line-2);
  border-radius: 6px; padding: .28rem .65rem;
  font-size: .76rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  margin-left: .5rem; vertical-align: middle;
  transition: border-color .18s, color .18s, background-color .18s;
}
@media (max-width: 699px) {
  .copy-btn { display: block; margin: .35rem 0 0; }
}
.copy-btn:hover { border-color: var(--blue-500); color: var(--blue-600); }
.copy-btn.is-done { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }

.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours td { padding: .32rem 0; vertical-align: top; }
.hours td:first-child { color: var(--muted); width: 8.5rem; }
.hours tr.is-today td { color: var(--blue-600); font-weight: 700; }

.map {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-50);
  min-height: 22rem;
}
.map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; }
.map__foot {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: center; justify-content: space-between;
  padding: .8rem 1.1rem;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r) var(--r);
  background: var(--white);
  font-size: .86rem;
  margin-top: -1px;
}

/* --- 16. Notki, alerty, listy ------------------------------------------ */

.note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-500);
  background: var(--blue-50);
  padding: 1.05rem 1.25rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .95rem;
  color: var(--ink-2);
}
.note strong { color: var(--navy-800); }
.note a { color: var(--blue-600); }
.note--teal { border-left-color: var(--green-600); background: var(--green-50); border-color: #CBE9DA; }
.note--claret { border-left-color: var(--red-600); background: var(--red-50); border-color: #F5D2D6; }
.note--claret strong { color: var(--red-700); }

.callout {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2.15rem);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.callout--claret { border-color: #F0C8CD; background: var(--red-50); border-top: 4px solid var(--red-600); }
.callout--claret h3 { color: var(--red-700); }
.callout--claret .checklist li::before { background: var(--red-600); }
.callout--claret .checklist strong { color: var(--red-700); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .95rem; counter-reset: c; }
.checklist li {
  position: relative;
  padding-left: 2.6rem;
  min-height: 1.7rem;
  font-size: .97rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.checklist li::before {
  counter-increment: c;
  content: counter(c);
  position: absolute;
  left: 0; top: .1rem;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--blue-600);
  color: #FFFFFF;
  font-family: var(--head);
  font-size: .8rem; font-weight: 800;
  display: grid; place-items: center;
}
.checklist strong { color: var(--navy-800); }
.checklist a { color: var(--blue-600); }

.tag {
  display: inline-block;
  font-family: var(--head);
  font-size: .69rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
  padding: .3rem .6rem;
  border-radius: 4px;
  background: var(--blue-100);
  color: var(--navy-700);
}
.tag--claret { background: var(--red-50); color: var(--red-700); }
.tag--wood { background: var(--amber-50); color: var(--amber-600); }

/* --- 17. Poradnik ------------------------------------------------------ */

.articles { display: grid; gap: 0; border-top: 2px solid var(--navy-800); }
.article-row {
  display: grid;
  gap: .3rem 1.75rem;
  padding: 1.4rem .75rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  align-items: baseline;
  transition: background-color .2s, padding-left .2s;
}
@media (min-width: 760px) {
  .article-row { grid-template-columns: 10rem 1fr auto; }
  .article-row:hover { background: var(--blue-50); padding-left: 1.1rem; }
}
.article-row h3 { font-size: 1.2rem; transition: color .18s; }
.article-row:hover h3 { color: var(--blue-600); }
.article-row p { font-size: .92rem; color: var(--muted); margin-top: .25rem; }
.article-row .tag { align-self: start; justify-self: start; }
.article-row .num { justify-self: end; }

.toc {
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-500);
  border-radius: var(--r);
  padding: 1.2rem 1.3rem;
  background: var(--white);
  font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 960px) { .toc { position: sticky; top: 7rem; } }
.toc h4 { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a {
  display: block; padding: .52rem 0; text-decoration: none; color: var(--ink-2); font-weight: 600;
  transition: color .18s, padding-left .18s;
}
.toc a:hover { color: var(--blue-600); padding-left: .3rem; }

.layout-aside { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); align-items: start; }
@media (min-width: 960px) { .layout-aside { grid-template-columns: 17rem 1fr; } }
@media (min-width: 960px) { .layout-aside--right { grid-template-columns: 1fr 17rem; } }

/* --- 18. Nagłówek strony wewnętrznej ----------------------------------- */

.pagehead {
  padding-block: clamp(2.5rem, 5.5vw, 4.25rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 85% -20%, var(--blue-100), transparent 60%),
    var(--blue-50);
}
.pagehead__in { display: grid; gap: 1rem; max-width: 48rem; justify-items: start; }
.pagehead__in > * { max-width: 100%; }

/* pasek okruszków — granatowy, jak w serwisach przychodni */
.crumbbar { background: var(--navy-800); }
.crumbs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: .84rem; color: #9DBAD2;
  list-style: none;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .7rem var(--gutter);
}
.crumbs a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: '›'; margin-right: .4rem; color: #5D84A6; }

/* --- 18b. Oś czasu, pismo, źródła -------------------------------------- */

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: .42rem; top: .7rem; bottom: 1.6rem;
  width: 2px; background: var(--blue-200);
}
.timeline li { position: relative; padding: 0 0 1.6rem 2.1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: 0; top: .48rem;
  width: .88rem; height: .88rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-500);
}
.timeline li.is-mark::before { background: var(--red-600); border-color: var(--red-600); }
.timeline time {
  display: block;
  font-family: var(--head);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .25rem;
}
.timeline p { font-size: .96rem; color: var(--ink-2); }
.timeline strong { color: var(--navy-800); }
.timeline a { color: var(--blue-600); }

/* faksymile pisma — celowo szeryfowe, żeby czytało się jak dokument */
.letter {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
  box-shadow: var(--shadow);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.01rem;
  line-height: 1.7;
  color: #2D4155;
}
.letter > * + * { margin-top: 1rem; }
.letter__meta { text-align: right; font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.letter__from { font-family: var(--sans); font-size: .92rem; color: var(--ink); line-height: 1.5; font-weight: 600; }
.letter h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--navy-800);
  text-align: center;
  letter-spacing: 0;
  margin-block: 1.9rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.letter h3 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-top: 1.8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.letter ul { margin: 0; padding-left: 1.2rem; }
.letter li + li { margin-top: .3rem; }
.letter__sign { margin-top: 2.3rem; font-size: 1.12rem; color: var(--ink); }
.letter__sign span { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: .4rem; }

.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; font-size: .9rem; }
.sources li { position: relative; padding-left: 1.5rem; color: var(--muted); line-height: 1.55; }
.sources li::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--blue-500); }
.sources a { color: var(--navy-700); font-weight: 600; }

/* --- 19. Stopka -------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: #A9C3D8;
  padding-block: clamp(2.75rem, 5.5vw, 4rem) 1.75rem;
  font-size: .93rem;
}
.site-footer a { color: #DCE9F3; text-decoration-color: rgba(220,233,243,.35); }
.site-footer a:hover { color: #FFFFFF; text-decoration-color: currentColor; }
.footer__grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer__grid h4 {
  color: #FFFFFF;
  font-family: var(--head);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 800; margin-bottom: .9rem;
}
.footer__brand {
  font-family: var(--head);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__bottom {
  padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: .7rem 1.5rem;
  justify-content: space-between;
  font-size: .82rem;
  color: #7C9AB4;
}
.footer__bottom a { color: #7C9AB4; }
.site-footer .phone-big { color: #FFFFFF; }
.site-footer .phone-big:hover { color: #8FCBF5; }

/* --- 20. Drobne -------------------------------------------------------- */

.skip {
  position: absolute; left: .75rem; top: .75rem;
  transform: translateY(-160%);
  background: var(--navy-800); color: #fff;
  padding: .65rem 1.1rem; border-radius: 6px;
  z-index: 200; text-decoration: none; font-size: .9rem;
  transition: transform .2s;
}
.skip:focus { transform: translateY(0); }

.totop {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 2.9rem; height: 2.9rem;
  border-radius: 8px;
  background: var(--navy-800); color: #FFFFFF;
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(.6rem);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 40;
}
.totop:hover { background: var(--blue-600); }
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 1.1rem; height: 1.1rem; }

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: var(--navy-800);
  color: #FFFFFF;
  padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: 0 -8px 26px -18px rgba(0,0,0,.8);
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.3,.8,.3,1);
}
.callbar.is-visible { transform: none; }
@media (min-width: 700px) { .callbar { display: none; } }
.callbar strong { font-family: var(--head); font-size: 1.15rem; font-weight: 800; display: block; letter-spacing: -.02em; }
.callbar span { font-size: .7rem; color: #9DBAD2; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- 21. Animacje wejścia ---------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- 22. Klasy narzędziowe --------------------------------------------- */
/* Zastępują atrybuty style="..." w HTML. Dzięki temu nagłówek
   Content-Security-Policy może zabronić stylów inline (bez 'unsafe-inline').
   Nazwa .mt-N oznacza margin-top równy N/10 rem. */

.mt-5  { margin-top: .5rem; }
.mt-6  { margin-top: .6rem; }
.mt-9  { margin-top: .9rem; }
.mt-10 { margin-top: 1rem; }
.mt-11 { margin-top: 1.1rem; }
.mt-12 { margin-top: 1.2rem; }
.mt-14 { margin-top: 1.4rem; }
.mt-16 { margin-top: 1.6rem; }
.mt-18 { margin-top: 1.8rem; }
.mt-20 { margin-top: 2rem; }
.mt-22 { margin-top: 2.2rem; }
.mt-25 { margin-top: 2.5rem; }
.mt-30 { margin-top: 3rem; }
.mt-35 { margin-top: 3.5rem; }
.mt-cta { margin-top: clamp(3rem, 7vw, 5rem); }
.mb-14 { margin-bottom: 1.4rem; }
.mb-18 { margin-bottom: 1.8rem; }

.h-tight { margin: .7rem 0 .8rem; }
.sub-list { margin: .6rem 0 0; padding-left: 1.1rem; }
.text-body { color: var(--ink-2); }
.text-center { text-align: center; }
.grow { flex: 1; }
.icon-inline { width: 1em; height: 1em; }
.kicker--center { justify-content: center; }
.grid-2--center { align-items: center; }
.section--flush { padding-top: 0; }
.rule--gap { margin-block: clamp(2.5rem, 6vw, 4.5rem); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row--center { justify-content: center; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-center { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.err-mark { margin: 0 auto 1.5rem; color: var(--blue-600); }

.footer__about { margin-top: .9rem; max-width: 26rem; }
.footer__phone { margin-top: 1.1rem; }

/* opóźnienia animacji wejścia */
.d-1 { --d:  80ms; }
.d-2 { --d: 100ms; }
.d-3 { --d: 120ms; }
.d-4 { --d: 160ms; }
.d-5 { --d: 180ms; }
.d-6 { --d: 240ms; }

/* --- 23. Druk ---------------------------------------------------------- */

@media print {
  .topbar, .alertbar, .site-header, .crumbbar, .totop, .callbar, .map, .map__foot,
  .lightbox, .site-footer .footer__grid, .toc { display: none !important; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .section { padding-block: 1rem; }
  .layout-aside, .layout-aside--right { grid-template-columns: 1fr !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
  .faq details { break-inside: avoid; }
  .faq details:not([open]) .faq__body { display: block; }
  .letter { box-shadow: none; border: 0; padding: 0; }
}
