/* Společné styly webu Medicentrum BIOMED – čistý moderní vzhled, strohé barvy */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #666666;
  --line: #e2e2e2;
  --navy: #1f1f1f;
  --navy-2: #2b2b2b;
  --brand: #333333;
  --brand-dark: #1a1a1a;
  --brand-soft: #efefef;
  --green: #1a1a1a;
  --green-light: #c4c4c4;
  --accent: #e8735a;
  --radius: 10px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; font-weight: 800;
  line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--green); color: #fff; text-decoration: none;
  padding: .9em 1.5em; border-radius: var(--radius); font-weight: 600; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #000000; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand-dark); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: var(--brand-soft); }

/* Označení „Web je v rekonstrukci“ – úplně vpravo nahoře */
nav.main { margin-left: auto; }
.construction { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-left: 20px;
  padding: 7px 14px 7px 11px; border: 1px solid #e8d9a8; border-radius: 999px; background: #fdf8e8;
  color: #6b5410; font-size: 13px; font-weight: 600; white-space: nowrap; }
.construction svg { flex: none; animation: tool-tap 2.4s ease-in-out infinite; transform-origin: 70% 30%; }
.construction .c-short { display: none; }
@keyframes tool-tap { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-18deg); } 86% { transform: rotate(6deg); } }

/* Horní lišta + hlavička */
.topbar { background: var(--navy); color: #b3b3b3; font-size: 13.5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .wrap { display: flex; gap: 28px; justify-content: flex-end; padding-block: 9px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--green-light); }
header.site {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 50px; height: auto; }
.logo strong { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 25px; display: block;
  line-height: 1; letter-spacing: .02em; color: #0b4a72; }
.logo strong span { color: #1f9a80; }
.logo small { color: #555; font-family: "Montserrat", sans-serif; font-size: 10.5px; letter-spacing: .3em;
  text-transform: uppercase; display: block; margin-bottom: 3px; }
nav.main ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s; }
nav.main > ul > li > a:hover { background: var(--bg-alt); color: var(--brand-dark); }
/* Rozbalovací menu Ambulance */
nav.main .has-sub { position: relative; }
nav.main .has-sub > a { display: inline-flex; align-items: center; gap: 4px; }
nav.main .caret { transition: transform .2s; }
nav.main .has-sub:hover .caret, nav.main .has-sub:focus-within .caret { transform: rotate(180deg); }
nav.main ul.sub { position: absolute; top: 100%; left: 0; min-width: 250px; margin-top: 10px;
  display: grid; gap: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s; z-index: 30; }
nav.main ul.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
nav.main .has-sub:hover ul.sub, nav.main .has-sub:focus-within ul.sub { opacity: 1; visibility: visible; transform: none; }
nav.main ul.sub a { display: block; padding: 10px 12px; white-space: nowrap; }
nav.main ul.sub a:hover, nav.main ul.sub a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* Úvod – tmavě modrý pás přes celou šířku */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; background: var(--navy); color: #fff; }
.hero::after { content: ""; position: absolute; right: -180px; top: -160px; width: 560px; height: 560px;
  border-radius: 50%; border: 90px solid rgba(255, 255, 255, .04); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-light);
  font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); color: #fff; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero p.lead { font-size: 19px; color: #c9c9c9; max-width: 32em; }
.hero p { color: #c9c9c9; }
.hero p b { color: #fff; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .btn.ghost { color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.hero-card {
  background: var(--surface); color: var(--ink); border-radius: 14px; padding: 30px;
  border: 1px solid var(--line);
}
.hero .hero-card { box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.hero-card h3 { font-size: 20px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--green); }
.hours small { font-weight: 400; color: var(--muted); }
.status { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600;
  background: var(--bg-alt); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.dot.open { background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.18); }
.hero-card .note { margin-bottom: 0; }

/* Sekce */
section { padding: 96px 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Ambulance – mřížka s čísly */
#ambulance { background: var(--bg-alt); }
.grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; counter-reset: amb; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: background .2s;
}
.grid .card { border: 0; border-radius: 0; padding: 34px 32px 30px; position: relative; counter-increment: amb; }
.grid .card::before { content: counter(amb, decimal-leading-zero); position: absolute; top: 30px; right: 32px;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 15px; color: #bdbdbd; letter-spacing: .04em; }
.grid .card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--green); transition: width .3s; }
.grid .card:hover { background: #fafafa; }
.grid .card:hover::after { width: 100%; }
.card .ico { width: 46px; height: 46px; border-radius: 10px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 22px; color: var(--brand); }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
a.card { display: block; text-decoration: none; color: inherit; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600;
  color: var(--brand-dark); font-size: 14.5px; }
a.card:hover .more { color: var(--green); }

/* Proč si vybrat */
.band { background: var(--surface); }
#kontakt.band { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; counter-reset: feat; }
.feature { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); counter-increment: feat; }
.feature .num { flex: none; font-size: 0; }
.feature .num::before { content: counter(feat, decimal-leading-zero); font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px; font-weight: 800; color: var(--green); }
.feature h3 { font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: 0; font-size: 16px; line-height: 1.45; margin: 0; }
.feature p { margin: 0; color: var(--muted); }
.photo {
  aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; position: relative;
  background: var(--bg-alt); display: grid; place-items: center;
}
.photo img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1px; background: var(--line);
  border-radius: 0 0 14px 14px; overflow: hidden; }
.stats div { background: var(--navy); color: #fff; padding: 22px 26px; }
.stats div strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 34px; line-height: 1.1; }
.stats div span { color: #b3b3b3; font-size: 14px; }
.split .photo { border-radius: 14px 14px 0 0; }
.split .stats { grid-template-columns: 1fr; margin-top: 0; border-radius: 14px; }
.split .stats div { padding: 34px 36px; }
.split .stats div strong { font-size: 52px; }

/* Tým */
#tym { background: var(--bg-alt); }
.team { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.person { display: flex; gap: 14px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.person b { display: block; line-height: 1.3; font-weight: 600; }
.person small { color: var(--muted); }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; font-family: "Plus Jakarta Sans", sans-serif; }
.person.lead { background: var(--navy); border-color: var(--navy); color: #fff; }
.person.lead small { color: #b3b3b3; }
.person.lead .avatar { background: rgba(255,255,255,.14); color: #fff; }

/* Aktuálně */
.news-section { padding-bottom: 72px; }
.news { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px;
  transition: border-color .2s, box-shadow .2s; }
.news-item:hover { border-color: #cfcfcf; box-shadow: var(--shadow); }
.news-item.warn { border-color: #f3c7bb; background: #fff8f5; }
.news-item h3 { font-size: 20px; margin-top: 14px; }
.news-item p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--green); background: #ececec; padding: 5px 10px; border-radius: 6px; }
.warn .tag { color: #a3412b; background: #fde5dd; }

/* Recenze */
#recenze { padding-top: 0; }
.review { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 48px;
  padding: 52px 56px; border-radius: 18px; background: var(--navy); color: #fff; }
.review::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px;
  border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); pointer-events: none; }
.review-text { position: relative; z-index: 1; max-width: 600px; }
.review h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 12px; }
.review p { color: #c9c9c9; font-size: 17px; margin: 0 0 22px; }
.stars { display: flex; gap: 4px; margin-bottom: 18px; }
.stars svg { width: 24px; height: 24px; fill: #f5b400; }
.review-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.review-steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; color: #e4e4e4; font-size: 15px; }
.review-steps li::before { content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e9e9; }
.review .qr { position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px 20px 16px; border-radius: 14px; background: #fff; color: var(--muted); text-decoration: none; text-align: center; }
.review .qr img { display: block; width: 180px; height: 180px; image-rendering: pixelated; }
.review .qr small { font-size: 13px; font-weight: 500; max-width: 170px; }
@media (max-width: 760px) {
  .review { flex-direction: column; align-items: stretch; padding: 34px 24px; gap: 32px; }
  .review .qr { align-self: center; }
}

/* Pro pacienty */
.info { display: grid; grid-template-columns: 1fr; gap: 20px; }
.info .ins { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.info .card { padding: 32px; }
.info .card h3 { font-size: 20px; }
.ins { list-style: none; padding: 0 !important; display: grid; gap: 0; }
.ins li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ins li:last-child { border-bottom: 0; }
.ins b { display: inline-block; min-width: 3em; color: var(--green); font-weight: 700; }

/* Kontakt */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: end; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); display: grid; place-items: center; }
.contact-list b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 360px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.note { font-size: 13px; color: var(--muted); }

/* Patička */
footer { background: var(--navy); color: #b3b3b3; padding: 64px 0 28px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; letter-spacing: 0; }
footer a { color: #b3b3b3; text-decoration: none; }
footer a:hover { color: var(--green-light); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: 13px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* Podstránky ambulancí */
.page-hero { padding: 56px 0 60px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -140px; top: -180px; width: 440px; height: 440px;
  border-radius: 50%; border: 70px solid rgba(255, 255, 255, .04); }
.crumbs { font-size: 14px; color: #9a9a9a; margin-bottom: 26px; position: relative; z-index: 1; }
.crumbs a { color: #b3b3b3; }
.crumbs span { color: #fff; }
.page-title { display: flex; gap: 22px; align-items: center; position: relative; z-index: 1; }
.page-title .ico { flex: none; width: 68px; height: 68px; border-radius: 14px; background: rgba(255,255,255,.08);
  color: var(--green-light); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); }
.page-title h1 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 6px; color: #fff; }
.page-title .lead { margin: 0; font-size: 18px; color: #c9c9c9; }
.page-body { padding: 56px 0 96px; }
.page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.page-content .intro { font-size: 18.5px; margin-top: 0; color: #333333; }
.page-content h2 { font-size: 28px; margin-top: 40px; }
.page-content ul.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.page-content ul.services li { background: var(--surface); padding: 18px 22px 18px 52px; color: var(--muted);
  border-bottom: 1px solid var(--line); position: relative; }
.page-content ul.services li:last-child { border-bottom: 0; }
.page-content ul.services li::before { content: ""; position: absolute; left: 22px; top: 25px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.page-content ul.services b { color: var(--ink); font-weight: 600; }
.callout { background: #ececec; color: #1a1a1a; border-radius: 10px; padding: 14px 18px; font-weight: 500; }
.page-side { display: grid; gap: 20px; position: sticky; top: 100px; }
.side-btn { width: 100%; justify-content: center; margin-top: 18px; }
.page-side .note { text-align: center; margin: 10px 0 0; }
.staff { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.staff h3 { font-size: 18px; }
.staff ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.staff .person { padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); border-color: transparent; }
.staff .avatar { width: 40px; height: 40px; font-size: 14px; border-radius: 10px; background: var(--surface); }
.other { background: var(--bg-alt); border-radius: 14px; padding: 24px; }
.other h3 { font-size: 18px; }
.other ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.other a { display: block; text-decoration: none; font-weight: 500; color: var(--ink); padding: 7px 0; }
.other a:hover { color: var(--green); }

@media (max-width: 1000px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-side { position: static; }
  .hero .wrap, .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .info { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .menu-toggle { display: block; order: 3; margin-left: 6px; }
  .construction { order: 2; margin-left: auto; }
  nav.main { position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); display: none; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; padding: 14px 16px; gap: 2px; align-items: stretch; }
  nav.main a { display: block; }
  nav.main ul.sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 6px 14px; padding: 0 0 0 8px; min-width: 0; gap: 0; }
  nav.main ul.sub::before { display: none; }
  nav.main ul.sub a { padding: 7px 10px; font-size: 14.5px; }
  nav.main .caret { display: none; }
  nav.main { max-height: calc(100vh - 76px); overflow-y: auto; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
@media (max-width: 620px) {
  .grid, .team, .features, .info .ins { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .topbar .wrap { justify-content: center; gap: 16px; } .topbar span { display: none; }
  .page-title { flex-direction: column; align-items: flex-start; gap: 16px; }
  .construction { font-size: 11.5px; padding: 4px 9px 4px 8px; gap: 5px; margin-left: 8px; }
  .construction svg { width: 13px; height: 13px; }
  .logo-mark { width: 40px; }
  .logo strong { font-size: 20px; }
  .logo small { font-size: 9px; letter-spacing: .22em; }
  .construction .c-long { display: none; }
  .construction .c-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }
