/* Bubeník s.r.o. – ortopedická ambulancia
   Farby odvodené z pôvodného loga a hlavičky (modrý gradient #6490b2 → #c3d6e4, akcent #7aafda, červená #b71c1c). */
:root {
  --blue-900: #24435e;
  --blue-700: #3c6a91;
  --blue-600: #4f7ea6;
  --blue-500: #6490b2;   /* farba pozadia loga / hlavičky */
  --blue-300: #7aafda;   /* pôvodná akcentová farba */
  --blue-100: #e3edf5;
  --blue-50:  #f3f7fa;
  --red-700:  #b71c1c;
  --red-50:   #fdecec;
  --text:     #34404a;
  --muted:    #5e6b76;
  --white:    #fff;
  --radius:   14px;
  --shadow:   0 10px 30px rgba(36, 67, 94, .12), 0 2px 6px rgba(36, 67, 94, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--blue-50);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--blue-900); }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }
h1, h2 { line-height: 1.25; color: var(--blue-900); margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3.2vw + .8rem, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #6a93b6 0%, #739bbd 100%);
  box-shadow: 0 2px 14px rgba(36, 67, 94, .25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: block; flex: 0 0 auto; border-radius: 6px; }
.brand img { width: 118px; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 2px 8px rgba(36,67,94,.25); } /* logo v pôvodných proporciách 196×118 */
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
  display: block; padding: 10px 18px; border-radius: 999px;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.02rem;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: rgba(255, 255, 255, .16); color: var(--white); }
.site-nav a[aria-current="page"] { background: var(--white); color: var(--blue-700); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .header-inner { min-height: 64px; }
  .brand img { width: 92px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .15); color: var(--white);
    border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
    padding: 9px 16px; font: 600 1rem var(--font); cursor: pointer; min-height: 44px;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #5d88ab; box-shadow: 0 12px 20px rgba(36, 67, 94, .25);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 4px; }
  .site-nav a { border-radius: 10px; padding: 13px 16px; }
  /* bez JS je menu stále viditeľné */
  .no-js .site-nav { position: static; display: block; box-shadow: none; background: transparent; }
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
}

/* ---------- Hero (úvod) ---------- */
.hero {
  background: linear-gradient(180deg, #6e98b9 0%, #92b4cd 55%, #c4d7e5 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; gap: 24px; padding-top: 40px; }
.hero-text { padding-bottom: 48px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .85rem; margin-bottom: .4em; opacity: .95; }
.hero h1 { color: var(--white); text-shadow: 0 1px 2px rgba(36, 67, 94, .25); }
.hero-address { font-size: 1.05rem; max-width: 34em; color: #f4f8fb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-photo img {
  width: 100%; max-width: 560px; margin-left: auto;
  --fade-x: linear-gradient(90deg, transparent 0, #000 28%, #000 88%, transparent 100%);
  --fade-y: linear-gradient(180deg, transparent 0, #000 35%);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
          mask-image: var(--fade-x), var(--fade-y);
          mask-composite: intersect;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: 999px;
  font-weight: 650; text-decoration: none; line-height: 1.2; text-align: center;
  transition: transform .15s, box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--red-700); color: var(--white); box-shadow: 0 6px 16px rgba(183, 28, 28, .28); }
.btn-accent:hover { background: #9d1717; color: var(--white); }
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-900); color: var(--white); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .85); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--blue-700); }
.btn-ghost-dark { border: 2px solid var(--blue-600); color: var(--blue-700); }
.btn-ghost-dark:hover { background: var(--blue-600); color: var(--white); }

/* ---------- Karty ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: -6px; padding-top: 44px; padding-bottom: 56px; align-items: stretch;
}
.card {
  position: relative; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 44px 24px 24px; text-align: center;
}
.card-icon {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; padding: 8px; background: var(--white); border-radius: 50%;
  box-shadow: 0 4px 12px rgba(36, 67, 94, .15);
}
.card h2 { color: var(--blue-600); padding-bottom: .6em; border-bottom: 1px solid var(--blue-100); }
.card p { color: var(--muted); }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; text-align: center; }
.hours th, .hours td { padding: 5px 6px; }
.hours thead th { color: var(--blue-600); font-weight: 600; font-size: .85rem; text-transform: lowercase; }
.hours tbody th { text-align: left; color: var(--blue-900); font-weight: 650; white-space: nowrap; vertical-align: top; padding-top: 9px; }
.hours tr.day > * { border-top: 1px solid var(--blue-100); padding-top: 9px; }
.hours .note { color: var(--blue-700); font-weight: 600; }
.hours .small { font-size: .85rem; color: var(--muted); line-height: 1.4; }

.phone-big { font-size: 1.7rem; font-weight: 700; margin: .2em 0 .5em; }
.phone-big a { color: var(--blue-600); text-decoration: none; }
.phone-big a:hover { color: var(--blue-900); }
.booking a { color: var(--red-700); font-style: italic; text-decoration: underline; font-weight: 600; }
.booking a:hover { color: #8a1414; }
.alert {
  background: var(--red-50); color: var(--red-700); border-left: 4px solid var(--red-700);
  border-radius: 8px; padding: 10px 14px; font-weight: 700; font-size: .95rem; text-align: left;
}
.card .alert { color: var(--red-700); text-align: center; border-left: 0; border-top: 3px solid var(--red-700); }

/* ---------- Podstránky ---------- */
.page-head { background: linear-gradient(180deg, #6e98b9 0%, #a7c3d8 100%); padding: 40px 0 34px; }
.page-head h1 { color: var(--white); margin: 0; }
.section { padding-top: 36px; padding-bottom: 56px; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); }

.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.contact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.contact-list { margin: 0 0 18px; }
.contact-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--blue-100); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; color: var(--blue-700); font-weight: 600; overflow-wrap: anywhere; }
.contact-list address { font-style: normal; }
.addr-new { color: var(--red-700); }
.map { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 8px; }
.map .small { margin: 10px 6px 4px; font-size: .9rem; color: var(--muted); }
.notfound { min-height: 30vh; }
.notfound .btn { margin: 0 8px 8px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--blue-100); color: #8a949c; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.footer-col { margin: 0; }
.footer-center { text-align: center; }
.footer-right { text-align: right; }
.site-footer a { color: var(--blue-600); text-decoration: none; }
.site-footer a:hover { color: var(--blue-900); text-decoration: underline; }
.site-footer img { display: inline-block; vertical-align: -1px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 26, 36, .92);
  display: flex; align-items: center; justify-content: center; padding: 56px 64px;
  opacity: 0; transition: opacity .2s;
}
.lightbox.is-visible { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #e8eef3; margin-top: 12px; font-size: .95rem; text-align: center; }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .12); color: var(--white); border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card-featured { grid-column: 1 / -1; order: -1; }
  .cards { row-gap: 44px; }
}
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 28px; gap: 0; }
  .hero-text { padding-bottom: 8px; }
  .hero-photo img { max-width: 440px; margin: 0 auto; --fade-x: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .map iframe { height: 300px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox { padding: 56px 8px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
}
@media (max-width: 380px) {
  .hours { font-size: .88rem; }
  .card { padding-left: 14px; padding-right: 14px; }
}
@media print {
  .site-header { position: static; box-shadow: none; }
  .nav-toggle, .hero-actions, .map iframe { display: none; }
}
