/* AUTO-DOKTOR — szkic 01-design
   Paleta: "warsztat klasyczny" (grafit + pomarańcz) z akcentem "przychodni" (turkus). */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url(fonts/barlow-condensed-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url(fonts/barlow-condensed-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap;
  src: url(fonts/barlow-condensed-latin-ext-800.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap;
  src: url(fonts/barlow-condensed-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2212, U+2605; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2212, U+2605; }

:root {
  --bg: #16171a;
  --surface: #1f2024;
  --surface-2: #292b30;
  --line: #34363c;
  --text: #f2f1ee;
  --muted: #a9acb2;
  --primary: #ff6b1a;        /* pomarańcz warsztatowy: przyciski, wyróżnienia */
  --primary-hover: #ff8340;
  --on-primary: #16171a;
  --accent: #14b8a6;         /* turkus "przychodni": logo, EKG, nazwy oddziałów */
  --radius: 14px;
  --wrap: 1160px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --callbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  padding-bottom: var(--callbar-h);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.2rem); text-transform: uppercase; }
h2 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; }
h3 { font-weight: 700; font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.todo { color: #ffd166; font-style: italic; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1.15rem/1 var(--head); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(242,241,238,.35); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 1.05rem; }

/* ---------- górny pasek ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,23,26,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo__mark { width: 36px; height: 36px; }
.logo__txt { font: 800 1.6rem/1 var(--head); letter-spacing: .03em; }
.logo__txt b { color: var(--primary); font-weight: 800; }
.logo__dash { color: var(--accent); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }
.topbar__call { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .topbar__call { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero picture, .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { object-fit: cover; object-position: center 40%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22,23,26,.35) 0%, rgba(22,23,26,.55) 45%, rgba(22,23,26,.97) 100%),
    linear-gradient(90deg, rgba(22,23,26,.75) 0%, rgba(22,23,26,0) 70%);
}
.hero__in { padding-top: 96px; padding-bottom: 72px; }
.hero h1 { max-width: 18ch; }
.hl { color: var(--primary); }
.lead { font-size: 1.2rem; color: #d9dade; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; background: rgba(20,184,166,.15); color: #5eead4;
  border: 1px solid rgba(20,184,166,.45); font-weight: 600; font-size: .95rem;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(20,184,166,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(20,184,166,0); } 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); } }
.rating { display: inline-flex; align-items: baseline; gap: 10px; color: var(--text); text-decoration: none; }
.rating__num { font: 800 1.8rem/1 var(--head); }
.rating__stars { color: #ffc400; letter-spacing: 2px; }
.rating__txt { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ekg { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sekcje ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.kicker { color: var(--accent); font: 700 1rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; }
.kicker::before { content: "+ "; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; border-top: 4px solid var(--primary);
}
.card__ico { width: 44px; height: 44px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.card h3 { margin-bottom: .2em; }
.card__dept { color: var(--accent); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8em; }
.card p:last-child { color: #d3d4d8; margin: 0; }

.spec { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 560px) { .spec { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .spec { grid-template-columns: repeat(4, 1fr); } }
.spec__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); }
.spec__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.spec__item:hover img { transform: scale(1.04); }
.spec__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(22,23,26,.95) 55%);
}
.spec__item b { display: block; font: 800 1.7rem/1 var(--head); text-transform: uppercase; color: var(--primary); }
.spec__item span { color: #e0e1e4; }

.gallery { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery li { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 90vh; }
.lightbox::backdrop { background: rgba(10,10,12,.92); }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; }
.lightbox__close {
  position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--primary); color: var(--on-primary); font-size: 2rem; line-height: 1; cursor: pointer;
}

.about { display: grid; gap: 28px; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 18px 18px 18px 56px; background: var(--surface-2); border-radius: var(--radius); }
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; border-radius: 6px; background: var(--accent);
  -webkit-mask: linear-gradient(#000 0 0) center/4px 14px no-repeat, linear-gradient(#000 0 0) center/14px 4px no-repeat;
          mask: linear-gradient(#000 0 0) center/4px 14px no-repeat, linear-gradient(#000 0 0) center/14px 4px no-repeat;
}
.checks b { color: var(--text); }

.reviews__lead { margin: 16px 0 28px; }
.intro { margin: 12px 0 28px; }
.about p + p { margin-top: 0; }

.contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.info { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 24px 0; }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 600; }
.info small { color: var(--muted); font-size: inherit; font-weight: 400; }
.info a { color: var(--text); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.hours caption { text-align: left; font: 700 1.3rem/1.2 var(--head); text-transform: uppercase; margin-bottom: 8px; }
.hours caption .todo { font: italic 400 .95rem var(--body); text-transform: none; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 600; }
.map {
  min-height: 340px; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;
}
.map p { color: var(--muted); max-width: 34ch; margin: 0; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); }
.map.is-loaded { padding: 0; border: 0; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .95rem; }
.footer a { color: var(--text); }
.footer p { margin: 0 0 4px; }

/* ---------- pasek "Zadzwoń" na mobile ---------- */
.callbar { display: none; }
@media (max-width: 899px) {
  :root { --callbar-h: 72px; }
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 2fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(22,23,26,.95); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px;
    font: 700 1.2rem/1 var(--head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
    color: var(--text); background: var(--surface-2);
  }
  .callbar .callbar__main { background: var(--primary); color: var(--on-primary); }
}
