/* Prywatny Ośrodek Terapii Uzależnień – nowoczesna wersja statyczna.
   Kolory z logo: niebieski #008AC9 (i jego ciemniejsze odcienie), złoto #DD9933 / logo. */

:root {
  --granat: #0473AD;      /* głęboki niebieski z logo (biały tekst czytelny) */
  --granat-ciemny: #055683;
  --niebieski: #008AC9;    /* niebieski z logo */
  --zloto: #E3A33B;
  --zloto-jasne: #F4C542;
  --tekst: #1F2544;
  --tekst-jasny: #5A6180;
  --tlo: #FFFFFF;
  --tlo-jasne: #F4F6FB;
  --linia: #E3E7F2;
  --promien: 16px;
  --cien: 0 10px 30px rgba(0, 138, 201, .10);
  --szerokosc: 1180px;
  --margines: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--tekst);
  background: var(--tlo);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--niebieski); }
a:hover { color: var(--granat); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--tekst); }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: .6em 1em; }
.skip-link:focus { left: 1rem; top: 1rem; }

.kontener { max-width: var(--szerokosc); margin: 0 auto; padding: 0 var(--margines); }
.waski { max-width: 860px; }

/* ---------- przyciski ---------- */
.przycisk {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--zloto); color: #1b1b1b;
  font-weight: 800; text-decoration: none;
  padding: .85em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800;
  transition: transform .15s, background .2s;
}
.przycisk:hover { background: var(--zloto-jasne); color: #1b1b1b; transform: translateY(-1px); }
.przycisk-jasny { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.przycisk-jasny:hover { background: #fff; color: var(--granat); }
.przycisk-maly { padding: .55em 1.1em; font-size: 15px; }

/* ---------- nagłówek ---------- */
.naglowek {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.naglowek.przewiniety { box-shadow: 0 4px 20px rgba(20, 30, 90, .08); border-color: var(--linia); }
.naglowek-wnetrze { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.naglowek-tel { white-space: nowrap; flex: none; }
.marka { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--granat); flex: none; }
.marka img { width: 44px; height: auto; }
.marka span { font-weight: 800; line-height: 1.15; font-size: 16px; }
.menu { margin-left: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.menu a {
  display: block; padding: .45em .6em; border-radius: 8px; white-space: nowrap;
  font-size: 15px; font-weight: 700; color: var(--tekst); text-decoration: none;
}
.menu a:hover, .menu a.aktywny { color: var(--granat); background: var(--tlo-jasne); }
.menu-przelacznik { display: none; }

@media (max-width: 1360px) {
  .menu a { font-size: 14.5px; padding: .45em .45em; }
  .naglowek-tel span { display: none; }
  .naglowek-tel { padding: .7em; }
}
@media (max-width: 1160px) {
  .naglowek-tel { padding: .55em 1.1em; }
  .naglowek-tel { margin-left: auto; }
  .naglowek-tel span { display: inline; }
  .menu-przelacznik {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px;
    background: var(--tlo-jasne); cursor: pointer;
  }
  .menu-przelacznik span { display: block; height: 2px; background: var(--granat); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-przelacznik[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-przelacznik[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-przelacznik[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--linia);
    box-shadow: 0 20px 30px rgba(20,30,90,.1);
    display: none; margin: 0;
  }
  .menu.otwarte { display: block; }
  .menu ul { flex-direction: column; padding: 8px var(--margines) 16px; }
  .menu a { font-size: 17px; padding: .7em .6em; }
}
@media (max-width: 560px) {
  :root { --margines: 16px; }
  .naglowek-tel span { display: none; }
  .naglowek-tel { padding: .7em; }
  .marka span { font-size: 14px; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--granat-ciemny); }
.hero-tlo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 67% 8%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,86,131,.9) 0%, rgba(0,138,201,.6) 45%, rgba(0,138,201,.05) 80%);
}
.hero-wnetrze { position: relative; z-index: 1; padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(80px, 12vw, 150px); }
.hero h1 { color: #fff; max-width: 13em; }
.hero-nadtytul { text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 800; color: var(--zloto-jasne); }
.hero-lead { font-size: clamp(18px, 2vw, 21px); max-width: 34em; opacity: .95; }
.hero-przyciski { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 700px) {
  /* na telefonie postać na szczycie zostaje odsłonięta, tekst niżej */
  .hero-tlo { height: 340px; object-position: 62% 0%; }
  .hero::after { background: linear-gradient(180deg, rgba(5,86,131,0) 0px, rgba(5,86,131,.15) 200px, var(--granat-ciemny) 340px); }
  .hero-wnetrze { padding-top: 250px; padding-bottom: 56px; }
}

/* ---------- sekcje ---------- */
.sekcja { padding: clamp(64px, 9vw, 110px) 0; }
.sekcja-jasna { background: var(--tlo-jasne); }
.sekcja-granat { background: var(--granat); color: #fff; }
.sekcja-granat h2, .sekcja-granat h3 { color: #fff; }
.sekcja-granat a { color: var(--zloto-jasne); }
.nadtytul {
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800;
  color: var(--niebieski); margin-bottom: .8em;
}
.nadtytul a { color: inherit; text-decoration: none; }
.sekcja-granat .nadtytul { color: var(--zloto-jasne); }
.lead { font-size: 19px; color: var(--tekst); }
.sekcja-granat .lead { color: #fff; }
.dwie-kolumny { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.trzy-kolumny { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.odstep-gora { margin-top: 56px; }
@media (max-width: 900px) {
  .dwie-kolumny, .trzy-kolumny { grid-template-columns: 1fr; }
}

.karta {
  background: #fff; border: 1px solid var(--linia); border-radius: var(--promien);
  padding: 28px; box-shadow: var(--cien);
}
.karta h3:not(:first-child) { margin-top: 1.2em; }
.karty-oferty { display: grid; gap: 20px; }
.karta-na-granacie { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); box-shadow: none; }
.h3-duze { font-size: 22px; }
.przypis { color: var(--tekst-jasny); font-size: 15px; margin-top: 1em; }

.lista { list-style: none; padding: 0; margin: 0 0 1em; }
.lista li { position: relative; padding-left: 1.6em; margin-bottom: .45em; }
.lista li::before {
  content: ""; position: absolute; left: .2em; top: .62em;
  width: .5em; height: .5em; border-radius: 50%; background: var(--zloto);
}
.znaczniki { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.znaczniki li { background: var(--tlo-jasne); color: var(--granat); font-weight: 700; font-size: 15px; padding: .35em .9em; border-radius: 999px; }

.fakty { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fakty li { border-left: 3px solid var(--zloto); padding: 4px 0 4px 14px; }
.fakty strong { display: block; color: var(--niebieski); font-size: 19px; }
.fakty span { font-size: 14px; color: var(--tekst-jasny); line-height: 1.4; display: block; }
@media (max-width: 560px) { .fakty { grid-template-columns: 1fr; } }

/* ---------- zespół ---------- */
.zespol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.osoba { background: #fff; border-radius: var(--promien); padding: 28px; border: 1px solid var(--linia); box-shadow: var(--cien); }
.osoba img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--niebieski); }
.osoba h3 { font-size: 21px; margin-bottom: .2em; }
.osoba-tel { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.osoba-bio { font-size: 15.5px; color: var(--tekst-jasny); }
@media (min-width: 1000px) { .zespol { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .zespol { grid-template-columns: 1fr; } }

/* ---------- etapy ---------- */
.etapy { list-style: none; padding: 0; margin: 0; counter-reset: etap; }
.etapy li { position: relative; padding: 0 0 26px 64px; counter-increment: etap; }
.etapy li::before {
  content: counter(etap); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--granat); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.etapy li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 4px; width: 2px; background: var(--linia); }
.etapy strong { display: block; font-size: 18px; }
.etap-czas { display: block; font-size: 14px; font-weight: 700; color: var(--niebieski); margin-bottom: .3em; }

/* ---------- cechy uzależnienia ---------- */
.uwaga { background: rgba(255,255,255,.1); border-left: 4px solid var(--zloto-jasne); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.rosliny { max-width: 280px; margin-top: 28px; opacity: .9; }
.sekcja-granat .lista li::before { background: var(--zloto-jasne); }

/* ---------- rozwijane ---------- */
.rozwijane { border: 1px solid var(--linia); border-radius: 12px; background: #fff; margin-top: 14px; }
.rozwijane summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 800; position: relative; color: var(--granat);
}
.rozwijane summary::-webkit-details-marker { display: none; }
.rozwijane summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--tlo-jasne);
  display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1;
}
.rozwijane[open] summary::after { content: "–"; }
.rozwijane > *:not(summary) { margin-left: 22px; margin-right: 22px; }
.rozwijane > :last-child { margin-bottom: 20px; }
.sfery dt { font-weight: 800; color: var(--granat); margin-top: .8em; }
.sfery dd { margin: 0 0 .4em; }

/* ---------- galeria ---------- */
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.galeria a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tlo-jasne); }
.galeria a:first-child { grid-row: span 2; grid-column: span 2; aspect-ratio: auto; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galeria a:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .galeria a:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 3; }
}

.podglad {
  position: fixed; inset: 0; z-index: 500; background: rgba(3, 40, 62, .95);
  display: flex; align-items: center; justify-content: center;
}
.podglad[hidden] { display: none; }
.podglad img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.podglad button { position: absolute; background: none; border: 0; color: #fff; font-size: 46px; line-height: 1; cursor: pointer; padding: .2em .45em; }
.podglad button:hover { color: var(--zloto-jasne); }
.podglad-zamknij { top: 10px; right: 10px; font-size: 38px !important; }
.podglad-wstecz { left: 6px; top: 50%; transform: translateY(-50%); }
.podglad-dalej { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- publikacje ---------- */
.publikacje { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.publikacje a {
  display: flex; gap: 16px; align-items: flex-start; height: 100%;
  background: #fff; border: 1px solid var(--linia); border-radius: 12px; padding: 18px 20px;
  text-decoration: none; color: var(--tekst); transition: border-color .2s, box-shadow .2s;
}
.publikacje a:hover { border-color: var(--niebieski); box-shadow: var(--cien); }
.pub-ikona { width: 42px; height: 42px; border-radius: 10px; background: #FDEBEC; color: #D8343F; display: flex; align-items: center; justify-content: center; flex: none; }
.pub-ikona svg { width: 24px; height: 24px; }
.pub-tekst strong { display: block; line-height: 1.35; margin-bottom: .25em; }
.pub-tekst span { font-size: 14px; color: var(--tekst-jasny); }
@media (max-width: 800px) { .publikacje { grid-template-columns: 1fr; } }

/* ---------- kontakt ---------- */
.kontakt-lista { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px; }
.kontakt-lista li { display: flex; gap: 14px; align-items: flex-start; }
.kontakt-lista svg { width: 22px; height: 22px; margin-top: 3px; color: var(--zloto-jasne); }
.kontakt-lista a { color: #fff; font-weight: 700; }
.zespol-krotko { opacity: .85; font-size: 15px; }
.mapa { border-radius: var(--promien); overflow: hidden; min-height: 380px; background: rgba(255,255,255,.08); position: relative; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa-zaslona {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  background: rgba(255,255,255,.06) radial-gradient(circle at 50% 40%, rgba(255,255,255,.12), transparent 60%);
}
.mapa-zaslona p { margin: 0; opacity: .85; }
.mapa-zaslona a { font-size: 15px; }

/* ---------- podstrony ---------- */
.podstrona { padding: 64px 0 90px; }
.tekst-prawny h2, .tekst-prawny h3 { margin-top: 1.6em; font-size: 21px; }
.tekst-prawny ul, .tekst-prawny ol { padding-left: 1.3em; }

/* ---------- stopka ---------- */
.stopka { background: var(--granat-ciemny); color: rgba(255,255,255,.85); padding: 56px 0 24px; font-size: 15px; }
.stopka a { color: #fff; }
.stopka a:hover { color: var(--zloto-jasne); }
.stopka-siatka { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.stopka-marka { display: flex; align-items: center; gap: 12px; font-weight: 800; color: #fff; font-size: 17px; }
.stopka-marka img { width: 36px; height: auto; }
.stopka-tytul { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 800; color: var(--zloto-jasne); margin-bottom: .6em; }
.stopka-dol { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: 14px; opacity: .75; }
@media (max-width: 800px) { .stopka-siatka { grid-template-columns: 1fr; gap: 12px; } }

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