/* Centrum Medyczne F-Med: wspólny styl strony.
   Źródło: strona/styl-strony_adhd_fmed.md (brief, aktualizacja 24.10.2026), WCAG 2.2 AA. */

/* Font Nunito lokalnie (OFL, @fontsource-variable/nunito 5.2.7) */
@font-face{font-family:"Nunito";font-style:normal;font-display:swap;font-weight:200 1000;src:url("/assets/nunito-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Nunito";font-style:normal;font-display:swap;font-weight:200 1000;src:url("/assets/nunito-latin-wght-normal.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{
  --bg:#FBF8F5;          /* tło strony */
  --bg-alt:#F3EDE7;      /* tło co drugiej sekcji */
  --card:#FFFFFF;        /* karty */
  --text:#2A2426;        /* tekst główny */
  --muted:#6B6064;       /* tekst pomocniczy */
  --line:#E7DED7;        /* ramki */
  --accent:#D0103A;      /* akcent / CTA, Pantone 199 C */
  --accent-hover:#A80D2F;
  --tint:#FBE7EB;        /* tło etykiet i ikon */
  --dark:#2A2426;        /* stopka */
  --container:1120px;
  --section:clamp(64px,8vw,112px);
  --radius:16px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:104px}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Nunito",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{font-weight:800;line-height:1.15;margin:0;letter-spacing:-0.01em}
h1{font-size:56px;line-height:1.1}
h2{font-size:36px}
h3{font-size:22px}
p{margin:0}
.container{max-width:var(--container);margin:0 auto;padding:0 24px}
.section{padding:var(--section) 0}
.section--alt{background:var(--bg-alt)}
.section h2{margin-bottom:32px}
.text{max-width:640px}
.text p+p{margin-top:16px}
.plain{list-style:none;margin:0;padding:0}
.mt{margin-top:16px}
.mt-lg{margin-top:40px}

/* Dostępność */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:16px;top:-80px;z-index:100;background:var(--dark);color:#fff;padding:12px 20px;border-radius:8px;font-weight:700;text-decoration:none}
.skip-link:focus{top:16px}
:focus-visible{outline:2px solid var(--text);outline-offset:3px;border-radius:4px}
.footer :focus-visible{outline-color:#fff}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}

/* Ikony liniowe w kółku */
.icon{flex:none;width:52px;height:52px;border-radius:50%;background:var(--tint);color:var(--accent);display:grid;place-items:center}
.icon svg{width:24px;height:24px}
svg.i{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Przyciski */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 30px;border-radius:999px;background:var(--accent);color:#fff;font-weight:700;font-size:17px;text-decoration:none;border:1.5px solid var(--accent)}
.btn:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.btn svg{width:22px;height:22px}
.btn--ghost{background:var(--card);color:var(--text);border-color:var(--text)}
.btn--ghost:hover{background:var(--bg-alt);border-color:var(--text)}
.btn--small{min-height:44px;padding:0 24px;font-size:16px}
.cta-row{display:flex;flex-wrap:wrap;gap:16px}
.note{margin-top:16px;color:var(--muted);font-size:16px}
.link{color:var(--accent);font-weight:700;text-decoration:none}
.link:hover{text-decoration:underline}

/* Pasek górny i menu */
.topbar{background:var(--bg-alt);font-size:15px}
.topbar .container{display:flex;flex-wrap:wrap;gap:8px 40px;min-height:44px;align-items:center}
.topbar a,.topbar span{display:inline-flex;align-items:center;gap:10px;text-decoration:none;min-height:24px}
.topbar a:hover{text-decoration:underline}
.topbar svg{width:18px;height:18px;color:var(--accent)}
.header{position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--line)}
.header .container{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px}
.logo img{height:60px;width:auto}
.nav{display:flex;align-items:center;gap:32px}
.nav a:not(.btn){display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:17px;font-weight:600}
.nav a:not(.btn):hover,.nav a[aria-current="page"]{color:var(--accent)}
.nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:6px}
.menu-toggle{display:none;align-items:center;gap:8px;min-height:44px;background:none;border:0;padding:8px;color:var(--text);font:inherit;font-weight:700;cursor:pointer}
.menu-toggle svg{width:28px;height:28px}

/* Hero (strona główna) */
.hero{background:linear-gradient(180deg,var(--bg) 0%,#F6EEEA 100%);padding:72px 0 var(--section)}
.hero h1{max-width:820px;margin-bottom:20px}
.hero .lead{font-size:20px;max-width:720px;margin-bottom:36px}
.hero-points{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:0 0 40px;padding:0;list-style:none}
.hero-points li{display:flex;align-items:center;gap:14px;font-size:16px;line-height:1.45}

/* Nagłówek podstrony */
.page-head{background:linear-gradient(180deg,var(--bg) 0%,#F6EEEA 100%);padding:56px 0 48px;border-bottom:1px solid var(--line)}
.page-head h1{font-size:44px;margin-bottom:16px}
.page-head .lead{font-size:19px;max-width:720px}
.crumbs{margin:0 0 20px;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px;font-size:15px;color:var(--muted)}
.crumbs li+li::before{content:"›";margin-right:8px}
.crumbs a{text-decoration:none;display:inline-flex;min-height:24px;align-items:center}
.crumbs a:hover{text-decoration:underline}

/* Karty */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.grid{display:grid;gap:24px}
.grid--2{grid-template-columns:repeat(2,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}

/* Karty poradni */
.clinic{display:flex;flex-direction:column;gap:12px}
.clinic h3 a{text-decoration:none}
.clinic h3 a:hover{color:var(--accent)}
.clinic .who{color:var(--muted);font-size:16px;line-height:1.45}
.clinic .price{font-size:16px}
.clinic .link{margin-top:auto}

/* Kroki */
.steps{counter-reset:krok;display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:0;padding:0;list-style:none}
.steps li{counter-increment:krok;display:flex;gap:16px;align-items:flex-start;font-size:18px}
.steps li::before{content:counter(krok);flex:none;width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;font-weight:800;display:grid;place-items:center}

/* Listy */
.list{margin:0;padding-left:22px;max-width:760px}
.list li+li{margin-top:8px}
.list li::marker{color:var(--accent)}
.partners{display:flex;flex-wrap:wrap;gap:12px 32px;margin:0;padding:0;list-style:none;color:var(--muted);font-weight:700;font-size:19px}

/* Osoba */
.person{display:flex;gap:28px;align-items:center}
.person-photo{flex:none;width:200px;height:200px;object-fit:cover;border-radius:50%}
.person .icon{width:96px;height:96px}
.person .icon svg{width:44px;height:44px}
.person h3{margin-bottom:6px}
.person p{color:var(--muted);font-size:17px}

/* Ramka informacyjna */
.notice{border-left:4px solid var(--accent);background:var(--card);border-radius:0 12px 12px 0;padding:20px 24px;max-width:760px}
.notice strong{font-weight:800}

/* Cennik */
.prices{width:100%;max-width:760px;border-collapse:collapse;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:17px}
.prices caption{text-align:left;font-weight:800;font-size:22px;padding:0 0 16px}
.prices th,.prices td{padding:16px 24px;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.prices thead th{border-top:0;background:var(--bg-alt);font-size:15px;color:var(--text)}
.prices td:last-child,.prices th:last-child{text-align:right;white-space:nowrap}
.prices + .prices{margin-top:40px}
.prices-block + .prices-block{margin-top:48px}

/* FAQ */
.faq{max-width:760px;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:56px;padding:16px 0;font-weight:700;font-size:19px;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;width:32px;height:32px;border-radius:50%;background:var(--tint);color:var(--accent);display:grid;place-items:center;font-size:22px;line-height:1}
.faq details[open] summary::after{content:"−"}
.faq details p{padding:0 0 20px;max-width:680px}

/* Certyfikaty */
.certs{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.cert{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-decoration:none}
.cert-img{position:relative;display:block;aspect-ratio:4/3;background:var(--bg-alt)}
.cert-img img{position:absolute;inset:16px;width:calc(100% - 32px);height:calc(100% - 32px);object-fit:contain}
.cert-cap{padding:14px 18px 18px;font-size:15px;line-height:1.45}
.cert-cap strong{display:block;font-size:16px;margin-bottom:2px}
.cert-cap span{color:var(--muted)}

/* Kontakt */
.contact-card{display:flex;flex-direction:column;gap:14px}
.contact-card p{color:var(--muted);font-size:16px}
.contact-card .link{margin-top:auto;word-break:break-word}

/* Tekst prawny */
.legal{max-width:760px}
.legal h2{font-size:22px;margin:40px 0 10px}
.legal p{margin:0 0 12px}
.legal a{color:var(--accent)}
.stamp{display:inline-block;background:var(--tint);color:var(--accent);font-weight:700;font-size:15px;padding:4px 14px;border-radius:999px;margin-bottom:8px}

/* Stopka */
.footer{background:var(--dark);color:#fff;padding:64px 0 40px;font-size:16px}
.footer-grid{display:grid;grid-template-columns:1fr 1.2fr 1fr 1.4fr;gap:32px}
.footer img{height:60px;width:auto;margin-bottom:16px}
.footer h2{font-size:17px;margin-bottom:12px}
.footer p+p{margin-top:8px}
.footer a{text-decoration:none}
.footer a:hover{text-decoration:underline}
.footer .company{font-size:14px;line-height:1.55;color:rgba(255,255,255,.85)}
.footer-links{display:flex;flex-wrap:wrap;gap:8px 24px;margin:40px 0 0;padding:24px 0 0;list-style:none;border-top:1px solid rgba(255,255,255,.2);font-size:15px}
.footer-links a{display:inline-flex;min-height:24px;align-items:center}

/* Pasek „Zadzwoń” przypięty na telefonie */
.call-bar{display:none}

/* Ruch: tylko gdy użytkownik nie ogranicza animacji */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  .btn,.card,.cert{transition:background .2s,border-color .2s,transform .2s,box-shadow .2s}
  a.card:hover,.cert:hover,.clinic:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(42,36,38,.08)}
}

/* Tablet */
@media (max-width:1024px){
  h1{font-size:44px}
  .hero-points{grid-template-columns:1fr}
  .grid--4{grid-template-columns:repeat(2,1fr)}
  .grid--3,.certs{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
/* Telefon */
@media (max-width:760px){
  html{scroll-padding-top:88px;scroll-padding-bottom:96px}
  body{font-size:17px;padding-bottom:84px}
  h1,.page-head h1{font-size:34px}
  h2{font-size:28px}
  .section h2{margin-bottom:24px}
  .topbar{display:none}
  .header .container{min-height:72px}
  .logo img{height:44px}
  .js .menu-toggle{display:inline-flex}
  .nav{flex-wrap:wrap;gap:0 20px}
  .js .nav{display:none;position:absolute;top:72px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:var(--bg);border-bottom:1px solid var(--line);padding:8px 24px 20px}
  .js .nav.is-open{display:flex}
  .js .nav a:not(.btn){border-bottom:1px solid var(--line)}
  .js .nav .btn{margin-top:16px}
  .header .container{flex-wrap:wrap}
  .hero{padding-top:40px}
  .hero .lead{font-size:18px}
  .cta-row .btn{width:100%}
  .grid--2,.grid--3,.grid--4,.certs{grid-template-columns:1fr}
  .person{flex-direction:column;align-items:flex-start;gap:20px}
  .person-photo{width:160px;height:160px}
  .prices th,.prices td{padding:14px 16px}
  .prices td:last-child,.prices th:last-child{white-space:normal}
  .footer-grid{grid-template-columns:1fr}
  .call-bar{display:flex;position:fixed;left:12px;right:12px;bottom:12px;z-index:30;min-height:56px;border-radius:12px;align-items:center;justify-content:center;gap:12px;background:var(--accent);color:#fff;font-weight:800;font-size:19px;text-decoration:none;box-shadow:0 6px 20px rgba(42,36,38,.18)}
  .call-bar svg{width:24px;height:24px}
}
