/* cievnylekar.sk – modernizovaná statická verzia
   Farby odvodené z loga a pôvodnej šablóny am-creative (#B9211C, gradient boxov #F85A57 → #ED302C → #B8211C) */

@font-face {
  font-family: "Aller";
  src: url("/assets/fonts/Aller_Lt.woff2") format("woff2"),
       url("/assets/fonts/Aller_Lt.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --red: #b9211c;
  --red-dark: #8f1914;
  --red-mid: #ed302c;
  --red-light: #f85a57;
  --red-tint: #fbeeed;
  --blue: #1677b8;
  --text: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e4e5ea;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --banner-bg: #e7e8ec;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(30, 20, 20, .08);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Aller", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .15s; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red-mid); outline-offset: 2px; border-radius: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { width: 130px; height: 63px; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 14px; font: inherit; font-size: 1rem; cursor: pointer;
}
.nav-toggle-bars { width: 20px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .2s; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .sub-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--red); text-decoration: none;
  font: inherit; font-size: 1.02rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > .sub-toggle:hover,
.main-nav > ul > li:focus-within > a, .main-nav > ul > li:focus-within > .sub-toggle,
.main-nav > ul > li:hover > a, .main-nav > ul > li:hover > .sub-toggle { background: var(--red-tint); }
.main-nav a[aria-current="page"], .main-nav .is-active > a, .main-nav .is-active > .sub-toggle { background: var(--red); color: #fff; }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.has-sub .split { display: flex; align-items: center; }
.has-sub .split > a { padding-right: 6px; }
.has-sub .split > .sub-toggle { padding-left: 4px; padding-right: 10px; }
.has-sub.is-active .split > a, .has-sub.is-active .split > .sub-toggle { background: var(--red); color: #fff; }
.has-sub.is-active .split > a { border-radius: 8px 0 0 8px; }
.has-sub.is-active .split > .sub-toggle { border-radius: 0 8px 8px 0; }

.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.submenu a { color: var(--text); padding: 9px 12px; font-weight: 400; }
.submenu a:hover { background: var(--red-tint); color: var(--red); }
.submenu a[aria-current="page"] { background: var(--red-tint); color: var(--red); font-weight: 600; }

@media (hover: hover) and (min-width: 1001px) {
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
}
.has-sub.open > .submenu { opacity: 1; visibility: visible; transform: none; }

/* ---------- Hero slider ---------- */
.hero { background: var(--banner-bg); position: relative; overflow: hidden; }
.hero-track { position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 1000 / 475; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-current { opacity: 1; z-index: 1; }
.slide picture, .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.slide-caption {
  position: absolute; left: 4%; bottom: 36%; max-width: 46%;
  color: var(--red);
}
.slide-title { font-family: var(--font-brand); font-style: italic; font-size: clamp(1.3rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 .3em; font-weight: 400; }
.slide-text { margin: 0; font-size: clamp(.9rem, 1.5vw, 1.1rem); color: #4a4a4a; }
.slide-1 .slide-caption { background: rgba(255,255,255,.82); padding: 14px 18px; border-radius: var(--radius); }
.slide-2 .slide-caption { bottom: 18%; }
.hero-dots { position: absolute; z-index: 3; right: 20px; top: 16px; display: flex; gap: 8px; }
.hero-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--red); background: #fff; padding: 0; cursor: pointer; }
.hero-dots button[aria-current="true"] { background: var(--red); }

/* ---------- Info boxes ---------- */
.info-strip { position: relative; z-index: 5; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(185, 33, 28, .25); }
.has-hero .info-strip { margin-top: -70px; }
.page-band + .info-strip { margin-top: -40px; }
.info-box { color: #fff; padding: 20px 24px 22px; }
.info-box:nth-child(1) { background: linear-gradient(160deg, #f86b68, #f2443f); }
.info-box:nth-child(2) { background: linear-gradient(160deg, #ef3a36, #d92a25); }
.info-box:nth-child(3) { background: linear-gradient(160deg, #c8261f, #a51b16); }
.info-box h2 { font-family: var(--font-brand); font-style: italic; font-weight: 400; font-size: 1.5rem; margin: 0 0 8px; color: #fff; }
.info-box p { margin: 0 0 6px; font-size: .98rem; }
.info-box a { color: #fff; }
.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours td { padding: 1px 0; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--red-tint); color: var(--red-dark); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--red); }
.info-box .btn { margin-top: 8px; }

/* ---------- Page band (subpages) ---------- */
.page-band { background: linear-gradient(180deg, var(--banner-bg), #f3f4f6); padding: 34px 0 64px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #aaa; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Layout ---------- */
.main-wrap { padding: 44px 0 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.layout.full { grid-template-columns: minmax(0, 1fr); }

/* ---------- Content ---------- */
.content h1 {
  display: inline-block;
  font-family: var(--font-brand); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2;
  color: #fff; background: var(--red);
  padding: 6px 16px 8px; border-radius: 6px; margin: 0 0 22px;
}
.content h2 { color: var(--red); font-size: 1.3rem; line-height: 1.3; margin: 1.8em 0 .5em; }
.content h1 + h2 { margin-top: .4em; }
.content p { margin: 0 0 1em; }
.content strong { color: #2a2a2a; }
.content ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.content li { margin-bottom: .45em; }
.content li::marker { color: var(--red); }
.content .lead { font-size: 1.15rem; color: #2a2a2a; }
.content .caps { text-transform: uppercase; font-weight: 700; color: var(--red); letter-spacing: .01em; }
.content .note { background: var(--bg-soft); border-left: 4px solid var(--red); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.questionnaire { list-style: none; padding: 0 !important; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.questionnaire li { margin: 0 !important; padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.questionnaire li:last-child { border-bottom: 0; }
.questionnaire .opts { white-space: nowrap; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.price-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:nth-child(even) td { background: #fafafb; }
.price-table td:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: var(--red); width: 1%; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 1em 0 1.5em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.figure { margin: 0 0 1.5em; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.figure a { display: block; }
.booking-frame { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.booking-alt { font-size: .95rem; color: var(--muted); }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 100px; }
.sidebar h2 {
  display: inline-block; font-family: var(--font-brand); font-style: italic; font-weight: 400;
  font-size: 1.4rem; color: #fff; background: var(--red); padding: 4px 14px 6px; border-radius: 6px; margin: 0 0 18px;
}
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); }
.person img { width: 100%; aspect-ratio: 192 / 118; object-fit: cover; }
.person-body { padding: 14px 16px 16px; font-size: .95rem; color: var(--muted); }
.person-name { margin: 0; color: var(--red); font-size: 1.05rem; font-weight: 700; }
.person-role { margin: 0 0 10px; font-style: italic; }
.person-cv { list-style: none; margin: 0; padding: 0; }
.person-cv li { padding: 6px 0; border-top: 1px dashed var(--line); line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer { background: #2b2b2e; color: #c9c9cf; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding: 44px 0 30px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 10px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.site-footer li { margin-bottom: 5px; break-inside: avoid; }
.footer-bar { background: linear-gradient(90deg, #f2443f, #b9211c); color: #fff; }
.footer-bar .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.footer-bar p { margin: 0; }
.footer-bar .center { text-align: center; }
.footer-bar .right { text-align: right; }

/* ---------- Contact dialog ---------- */
dialog.contact-dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.contact-dialog::backdrop { background: rgba(20, 10, 10, .55); }
.dialog-head { background: linear-gradient(120deg, #f2443f, #b9211c); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { margin: 0; font-family: var(--font-brand); font-style: italic; font-weight: 400; font-size: 1.5rem; }
.dialog-close { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.dialog-body { padding: 20px 22px 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.field input, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfd0d6; border-radius: 8px; }
.field input:focus, .field textarea:focus { border-color: var(--red); outline: 2px solid rgba(185,33,28,.2); }
.req { color: var(--red); }
.form-hint { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 40px 0; }
.error-code { font-family: var(--font-brand); font-style: italic; font-size: 5rem; color: var(--red); line-height: 1; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 76px); overflow-y: auto;
    display: none;
  }
  .nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; }
  .main-nav a, .main-nav .sub-toggle { padding: 12px 14px; font-size: 1.05rem; }
  .has-sub .split { justify-content: space-between; }
  .has-sub .split > a { flex: 1; }
  .has-sub .split > .sub-toggle { padding: 12px 16px; }
  .has-sub > .sub-toggle.only { width: 100%; justify-content: space-between; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--red-tint); border-radius: 0; margin: 2px 0 6px 14px; padding: 0 0 0 6px; display: none; min-width: 0; }
  .has-sub.open > .submenu { display: block; }
  .has-sub.open .caret { transform: rotate(-135deg) translate(-2px, -2px); }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sidebar { position: static; }
  .people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .person { margin: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .info-grid { grid-template-columns: 1fr; }
  .has-hero .info-strip { margin-top: -20px; }
  .slide-caption { max-width: 60%; bottom: auto; top: 8%; }
  .slide-1 .slide-caption { padding: 8px 10px; }
  .slide-text { display: none; }
  .hero-dots { top: auto; bottom: 10px; right: 50%; transform: translateX(50%); }
  .main-wrap { padding: 30px 0 48px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bar .container { grid-template-columns: 1fr; text-align: center; }
  .footer-bar .right, .footer-bar .center { text-align: center; }
  .booking-frame { height: 1100px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .people { grid-template-columns: 1fr; }
  .logo img { width: 110px; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .hero, .info-strip, .sidebar, .site-footer, .page-band { display: none !important; }
  .layout { display: block; }
  a { color: inherit; }
}
.info-box a.btn-light { color: var(--red); text-decoration: none; }
.info-box a.btn-light:hover { color: var(--red-dark); }
.site-footer a.btn-outline { text-decoration: none; }
.site-footer a.btn-outline:hover { color: var(--red); }
