/* ==========================================================================
   Imunologicka — design system (see /design.md for the source spec)
   Vanilla CSS, no framework, no build step.
   ========================================================================== */

/* ---- Fonts (self-hosted, latin + latin-ext for SK diacritics) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Regular-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Medium-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Medium-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-SemiBold-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-SemiBold-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold-latin-ext.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- 1. Tokens ----------------------------------------------------------- */
:root {
  --color-bg:            #F2F4F3; /* White Smoke */
  --color-fg:             #0A0908; /* Black */
  --color-fg-muted:       rgba(10, 9, 8, 0.7);

  --color-primary:        #5E503F; /* Stone Brown */
  --color-primary-hover:  #4A3F31;
  --color-primary-fg:     #FFFFFF;

  --color-beige:          #E0DCD6; /* Dusty Taupe 25 % on White Smoke */
  --color-taupe:          #A9927D; /* Dusty Taupe */
  --color-card:           #F8F9F9;
  --color-muted:          #E8E8EA;
  --color-border:         #E0DCD6;

  --color-dark:           #22333B; /* Jet Black */
  --color-dark-2:         #2C414B;
  --color-footer:         #22333B;

  --color-danger:         #E0402E;

  --radius-card:   1.25rem;
  --radius-chip:   0.75rem;
  --radius-full:   9999px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);

  --section-padding-y: 6rem;
  --section-padding-y-sm: 3rem;
  --container-max: 1280px;
  --container-pad: 1.5rem;

  --font-main: "Poppins", "Segoe UI", system-ui, sans-serif;
}

/* ---- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---- 2. Typography -------------------------------------------------------- */
/* Desktop targets (reached around 1200px viewport width, then capped):
   H1 3rem, H2 2.25rem, H3 1.5rem. Below that, each scales down toward its
   mobile minimum so headings never feel cramped or oversized. */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; }
/* At least 8px top margin so a .badge sitting right above a heading always
   has breathing room, without relying on the badge's own bottom margin. */
h1, h2, h3 { margin-top: 8px; }
h1 { font-size: clamp(2rem, 1.5rem + 3vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 2.4vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem); }
.h-hero {
  font-size: clamp(2rem, 1.5rem + 3vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-fg);
}
h2.h-hero { font-size: clamp(1.5rem, 1.2rem + 2.4vw, 2.5rem); }
.h-accent { color: var(--color-taupe); }

/* ---- 3. Shape language ----------------------------------------------------- */
.deco-sunburst {
  position: absolute;
  width: 240px;
  height: 240px;
  opacity: 0.07;
  pointer-events: none;
  background: repeating-conic-gradient(
    var(--color-primary) 0deg 2deg,
    transparent 2deg 10deg
  );
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
}
.deco-sunburst--top-right { top: -60px; right: -60px; }
.deco-sunburst--bottom-left { bottom: -60px; left: -60px; }

.bg-dotted {
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 18px 18px;
}

.wave-divider { display: block; width: 100%; }

/* ---- 4. Components ---------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--color-primary); color: var(--color-primary-fg); }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--secondary { background: transparent; color: var(--color-fg); border-color: var(--color-border); }
.btn--secondary:hover { background: var(--color-beige); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--color-beige);
  border: 1px solid var(--color-border);
  color: var(--color-fg);
}

/* Cards */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
form.card:hover { box-shadow: var(--shadow-xs); transform: none; }
.card img {
  border-radius: var(--radius-chip);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
}
/* Full-bleed photo at the top of a card (/sluzby): no gap left, right or top. */
.card__media { position: relative; margin: -1.5rem -1.5rem 1.25rem; border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0; overflow: hidden; }
.card .card__media img { display: block; margin: 0; border-radius: 0; }
/* Service icon sits on the photo, bottom-right, to save vertical space. */
.card .card__media .card__media-icon { position: absolute; right: 1rem; bottom: 1rem; margin: 0; background: #fff; box-shadow: var(--shadow-md); }
.card img.is-muted { filter: grayscale(1); }
.card .icon-chip { margin-bottom: 0.75rem; }
/* Whole card clickable: the card's single "Viac informácií →" link is
   stretched over it (::after), so screen readers still get one short link. */
.card--link { position: relative; }
.card--link .more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card--link .more:focus-visible { outline: none; }
.card--link:has(.more:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--color-fg-muted); font-size: 0.9375rem; margin: 0; }
/* Right-aligned "see all" text link under a homepage section (FAQ →
   /casto-kladene-otazky, reviews → /o-nas#recenzie). --narrow matches the
   720px FAQ column so the link lines up with its right edge. */
.section-more { text-align: right; margin: 1.5rem 0 0; }
.section-more--narrow { max-width: 720px; margin-inline: auto; }
.section-more a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.section-more a:hover { color: var(--color-taupe); }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}
/* Pin "Viac informácií →" to the card bottom so links line up across a grid row
   (grid items in a row share the tallest card's height). */
.card--link { display: flex; flex-direction: column; }
.card--link p { margin-bottom: 0.75rem; }
.card--link .more { margin-top: auto; align-self: flex-start; }
/* Wide one-row card under a grid (homepage: klinické skúšania → /o-nas). */
.callout { flex-direction: row; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.card.callout .icon-chip { flex: 0 0 auto; margin: 0; }
.callout__body { flex: 1; }
.card--link.callout p { margin: 0; }
.card--link.callout .more { margin: 0; align-self: center; white-space: nowrap; }
@media (max-width: 640px) {
  .callout { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .card--link.callout .more { align-self: flex-start; }
}

/* Icon chip */
.icon-chip {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-beige);
  color: var(--color-primary);
  border-radius: var(--radius-chip);
  flex: 0 0 auto;
}
.icon-chip svg { width: 22px; height: 22px; stroke-width: 1.75; }
.icon-chip--sm { width: 36px; height: 36px; }
.icon-chip--sm svg { width: 16px; height: 16px; }

/* Stats */
.stat__number { font-size: 2rem; font-weight: 700; color: var(--color-primary); line-height: 1; }
.stat__label { font-size: 0.875rem; color: var(--color-fg-muted); margin-top: 0.25rem; }

/* Numbered steps */
.step { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem 0; }
.step__number {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-beige);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: var(--radius-chip);
}

/* Header / nav */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 12px rgba(10, 9, 8, 0.06); }
.topbar { background: var(--color-bg); font-size: 0.8125rem; }
.topbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.5rem var(--container-pad);
  display: flex;
  gap: 1.5rem;
}
.topbar__inner span { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar__inner svg { flex: 0 0 auto; }
.topbar__social {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  opacity: 0.8;
}
.topbar__social:hover { opacity: 1; color: var(--color-primary); }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; }
.logo__img { display: block; height: 44px; width: auto; }
/* Phones: same size as the logo in the off-canvas header. */
@media (max-width: 760px) { .logo__img { height: 34px; } }
.navbar__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-panel { display: contents; }
.nav-panel__header { display: none; }
.nav-panel__extra { display: none; }

.nav-menu { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
/* Thin vertical divider centered in the gap between top-level items (desktop
   only — the mobile off-canvas list stacks vertically, see max-width: 1100px). */
@media (min-width: 1101px) {
  .nav-menu { align-items: center; gap: var(--nav-gap); --nav-gap: 1.5rem; }
  .nav-menu > li { position: relative; }
  .nav-menu > li + li::before {
    content: "";
    position: absolute;
    left: calc(var(--nav-gap) / -2);
    top: 50%;
    width: 1px;
    height: 1.1em;
    background: var(--color-border);
    transform: translateY(-50%);
  }
}
@media (min-width: 1200px) { .nav-menu { --nav-gap: 2.5rem; } }
.nav-link { background: none; border: none; font: inherit; font-weight: 500; cursor: pointer; color: var(--color-fg); }
/* Active item (and "Služby" while on any service page, see syncNav in
   app.js): color, on desktop and in the off-canvas. */
.nav-link.is-active,
.dropdown__item.is-active { color: var(--color-taupe); }
@media (hover: hover) {
  .nav-link:hover { color: var(--color-taupe); }
}
.nav-link-row { display: flex; align-items: center; gap: 0.15rem; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.25rem;
  color: var(--color-fg-muted);
  cursor: pointer;
}
.dropdown-toggle svg { transition: transform 0.2s ease; }
.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 0.75rem;
  min-width: 280px;
}
.has-dropdown { position: relative; }
.has-dropdown.open .dropdown { display: block; }
@media (min-width: 1101px) {
  .dropdown-toggle { pointer-events: none; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }
  .has-dropdown:hover .dropdown-toggle svg,
  .has-dropdown:focus-within .dropdown-toggle svg { transform: rotate(180deg); }
  /* Clicking a link inside the flyout navigates (htmx swaps #main-content
     only — the header never re-renders), so the mouse never actually moves
     and :hover keeps matching on the new page. JS adds this class on click
     to force the flyout shut until the mouse genuinely leaves (app.js). */
  .has-dropdown.force-closed .dropdown { display: none !important; }
}
.dropdown__item { display: flex; gap: 0.75rem; align-items: center; padding: 0.6rem; border-radius: var(--radius-chip); font-size: 0.9375rem; }
.dropdown__item:hover { background: var(--color-beige); }

.nav-toggle, .nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-fg);
  padding: 0.5rem;
}

.btn--cta .btn__label { white-space: nowrap; }

.nav-overlay { display: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }

  /* Off-canvas: footer look (Jet Black + dot pattern, white/70 % text,
     taupe accents), content centered. The auto margins on the list and the
     extras center the block vertically while still letting it scroll when
     it's taller than the screen. */
  .nav-panel {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0 0 0 auto;
    width: 340px;
    max-width: 88vw;
    background-color: var(--color-footer);
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    z-index: 70;
    overflow-y: auto;
  }
  .nav-panel.open { display: flex; }

  .nav-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-panel__header .logo__img { height: 34px; }
  .nav-close { display: flex; color: #fff; }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin-top: auto;
    padding: 1.75rem 1.5rem 1.25rem;
  }
  /* .nav-link is an <a>, so it stays inline unless forced to block — inline
     padding doesn't reserve vertical space, letting rows overlap/collapse. */
  .nav-panel .nav-link { display: block; padding: 0.4rem 0; color: #fff; font-size: 1.125rem; }
  .nav-panel .nav-link.is-active,
  .nav-panel .dropdown__item.is-active { color: var(--color-taupe); }

  .has-dropdown { position: static; }
  .nav-link-row { justify-content: center; gap: 0.6rem; }
  .dropdown {
    position: static;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem;
    margin: 0.5rem 0 0.75rem;
    min-width: auto;
    text-align: left;
  }
  .dropdown__item { color: rgba(255, 255, 255, 0.8); }
  .dropdown__item:hover { background: rgba(255, 255, 255, 0.06); }
  .dropdown .icon-chip { background: rgba(255, 255, 255, 0.08); color: var(--color-taupe); }

  .dropdown-toggle {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0;
  }
  .dropdown-toggle svg { display: none; }
  .dropdown-toggle::before,
  .dropdown-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease-in-out;
  }
  .dropdown-toggle::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
  .dropdown-toggle::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
  .has-dropdown.open .dropdown-toggle::after { transform: translate(-50%, -50%) scaleY(0); }

  .nav-panel__extra {
    display: block;
    margin-bottom: auto;
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-panel__heading { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin: 0.25rem 0 0.5rem; }
  .nav-panel__links { list-style: none; margin: 0; padding: 0; }
  .nav-panel__links .nav-link { color: rgba(255, 255, 255, 0.7); font-size: 1rem; padding: 0.3rem 0; }
  .nav-panel__links .nav-link.is-active { color: var(--color-taupe); }
  .nav-panel__cta { margin-top: 1.5rem; width: 100%; justify-content: center; }
  .nav-panel__contact { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 1.5rem; font-size: 0.9375rem; }
  .nav-panel__contact > a:not(.nav-panel__social),
  .nav-panel__contact > span { display: inline-flex; align-items: center; gap: 0.5rem; }
  .nav-panel__contact svg { color: var(--color-taupe); }
  .nav-panel__contact a { transition: color 0.3s ease; }
  .nav-panel__contact a:hover { color: var(--color-taupe); }
  .nav-panel__contact .nav-panel__social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-top: 0.5rem; border-radius: 50%;
    background: var(--color-taupe); color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }
  .nav-panel__contact .nav-panel__social svg { color: inherit; }

  .nav-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 9, 8, 0.45);
    z-index: 65;
  }

  .btn--cta {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  .btn--cta .btn__label { display: none; }

  body.nav-open { overflow: hidden; }
}

/* Hero */
.hero {
  max-width: var(--container-max);
  margin-inline: auto;
}
.hero__container {
  position: relative;
  /* z-index:0 (not auto) makes this element establish its own stacking
     context, so the ::before's negative z-index stays scoped inside it
     instead of escaping to an ancestor context and landing behind this
     element's own background. */
  z-index: 0;
  overflow: hidden;
  width: calc(100% - 2 * var(--container-pad));
  margin: 2rem auto;
  border-radius: var(--radius-card);
  color: #fff;
  min-height: clamp(460px, 56vw, 660px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2rem;
  padding: 2.75rem 2.5rem;
  background-color: var(--color-dark);
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: right center;
}
.hero__container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 9, 8, 0.94) 0%, rgba(10, 9, 8, 0.84) 32%, rgba(10, 9, 8, 0.3) 60%, rgba(10, 9, 8, 0.04) 80%),
    linear-gradient(to top, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0) 30%);
  /* Negative z-index keeps the gradient behind the normal-flow intro/stats
     content without needing position/z-index on them. */
  z-index: -1;
}
.hero__intro { max-width: 650px; margin-top: 32px; }
.hero__intro .h-hero { color: #fff; }
/* Hand-drawn brush stroke under "imunológie" / "alergológie" in the hero
   title (taupe, inline SVG, stretches with the word). */
.hero-underline {
  padding-bottom: 0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5C50 2 130 .8 196.5 3.2c2.2.1 2.4 4.7.1 4.9C130 8 62 10 5 13.4c-3.2.2-4.6-4-2-4.9z' fill='%23A9927D'/%3E%3C/svg%3E") left bottom / 100% 0.42em no-repeat;
}
.hero__intro p { color: rgba(255, 255, 255, 0.85); font-size: 1.0625rem; margin: 1rem 0 0; max-width: 520px; }
.badge--hero .badge__dot { color: var(--color-taupe); }
.hero__actions { display: flex; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }

.badge--hero { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.badge__dot { color: var(--color-primary); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.hero__stats { display: flex; gap: 2rem; align-self: flex-end; flex-wrap: wrap; }
.hero__stat { display: flex; align-items: center; gap: 0.75rem; }
.hero__stat-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.hero__stat .stat__number { color: #fff; font-size: 1.5rem; }
.hero__stat .stat__label { color: rgba(255, 255, 255, 0.75); font-size: 0.8125rem; }

@media (max-width: 760px) {
  .hero__container { padding: 1.75rem var(--container-pad); gap: 1.75rem; }
  /* Phone: the photo sits as a band at the top (whole family visible, right-
     aligned like desktop), the text below it on a solid dark fade instead of
     over the faces. 150% width = the family part (right 60% of the image)
     just fills the card; the gradient stops are in px to match that band. */
  .hero__container {
    min-height: 0;
    padding-top: calc((100vw - 2 * var(--container-pad)) * 0.58);
    background-size: 150% auto;
    background-position: right top;
    background-repeat: no-repeat;
  }
  .hero__container::before {
    background: linear-gradient(to bottom, rgba(10, 9, 8, 0) 0, rgba(10, 9, 8, 0) calc((100vw - 2 * var(--container-pad)) * 0.34), rgba(10, 9, 8, 1) calc((100vw - 2 * var(--container-pad)) * 0.68), rgba(10, 9, 8, 1) 100%);
  }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__stats { display: none; }
  .hero__stat-icon { width: 36px; height: 36px; }
  .hero__stat .stat__number { font-size: 1.125rem; }
  .topbar { background: var(--color-bg); font-size: 0.6125rem; }
}

@media (max-width: 524px) {
  .topbar { display: none; }
}

/* Insurers (Zmluvné zdravotné poisťovne) logo row */
/* Equal-width grid columns (not flex) so each logo centers within its own
   column — with flex, Dovera/Union's unequal widths skewed VšZP off-center. */
.insurers { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.insurers__logo { height: 36px; width: auto; justify-self: center; }
.insurers__logo--vszp { height: 96px; }
@media (max-width: 760px) {
  .insurers__logo { height: 34px; }
  .insurers__logo--vszp { height: 102px; }
}

/* Dôležité oznamy — asymmetric magazine-style list, not cards. A sticky
   left-column heading + a divided right-column list looks balanced whether
   there's 1 announcement or 10, unlike the old wide-card layout which felt
   empty with just one. */
/* fr units (not %) keep the 35:65 ratio while correctly accounting for the
   2rem gap — percentage tracks ignore gap when sizing, so col1+gap+col2 ends
   up gap-wide past the container's right edge (the bug this fixes). */
.oznamy { display: grid; grid-template-columns: 35fr 65fr; gap: 2rem; }
.oznamy__heading {
  position: sticky;
  /* Clears the site's own sticky header (116px) with a bit of breathing room. */
  top: 140px;
  align-self: start;
}
.oznamy__list { display: flex; flex-direction: column; }
.oznam-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.2s ease;
}
.oznam-item:first-child { padding-top: 0; }
.oznam-item:last-child { border-bottom: none; padding-bottom: 0; }
.oznam-item:hover { transform: translateX(8px); }
.oznam-item:hover .oznam-item__title { color: var(--color-primary); }
.oznam-item__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-chip);
  background: var(--color-beige);
  color: var(--color-fg-muted);
}
.oznam-item__title { margin: 0.5rem 0 0.4rem; transition: color 0.2s ease; }
.oznam-item__text { margin: 0; color: var(--color-fg-muted); line-height: 1.65; }
@media (max-width: 760px) {
  .oznamy { grid-template-columns: 1fr; gap: 0; }
  .oznamy__heading { position: static; top: auto; margin-bottom: 1.5rem; }
}

/* CTA band */
.cta-band {
  background: var(--color-taupe);
  border-radius: var(--radius-card);
  margin: 2rem var(--container-pad);
  padding: 3rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.cta-band .contact-chip { background: rgba(255,255,255,0.12); border-radius: var(--radius-chip); padding: 1rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
/* Upper footer (partials/upper-footer.blade.php) — three quick patient
   actions above the footer, on the footer Jet Black with a wave on top and a
   subtle dot pattern; icons float in beige circles. */
.upper-footer {
  position: relative;
  background-color: var(--color-footer);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  color: #fff;
  padding: 5.5rem 0 0;
}
.upper-footer__wave { position: absolute; top: 1px; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: translateY(-100%); pointer-events: none; }
.upper-footer__wave svg { display: block; width: calc(100% + 1.3px); height: 80px; transform: scaleY(-1); }
.upper-footer__wave path { fill: var(--color-footer); }
.upper-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
/* Higher specificity than .container (padding: 0 …), which comes later and would reset padding-bottom. */
.upper-footer .upper-footer__grid { padding-bottom: 75px; }
.upper-footer__item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.upper-footer__icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-beige); color: var(--color-primary);
  margin-bottom: 1.25rem;
  animation: upper-footer-float 4s ease-in-out infinite;
}
.upper-footer__item:nth-child(2) .upper-footer__icon { animation-delay: 1.5s; }
.upper-footer__item:nth-child(3) .upper-footer__icon { animation-delay: 3s; }
@keyframes upper-footer-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .upper-footer__icon { animation: none; } }
.upper-footer__item h3 { color: #fff; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); margin: 0 0 1.25rem; }
.upper-footer__btn {
  display: inline-block;
  border: 2px solid var(--color-beige); border-radius: 50px;
  color: var(--color-beige);
  padding: 0.65rem 1.75rem;
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.upper-footer__btn:hover { background: var(--color-beige); color: var(--color-primary); transform: scale(1.05); }
@media (max-width: 760px) {
  .upper-footer__grid { grid-template-columns: 1fr; gap: 3rem; }
  .upper-footer__wave svg { height: 50px; }
}

.footer {
  background-color: var(--color-footer);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  color: rgba(255, 255, 255, 0.7);
}
.footer__container { max-width: var(--container-max); margin: 0 auto; padding: 4rem var(--container-pad); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; }
.footer__grid > div:first-child > p { max-width: 300px; line-height: 1.7; }
.footer h4 { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 1.5rem; }
.footer__logo { display: inline-block; margin-bottom: 1rem; }
.footer__logo-img { display: block; height: 40px; width: auto; }
.footer__grid li { margin-bottom: 0.875rem; }
.footer__grid li:last-child { margin-bottom: 0; }
.footer__grid a { display: inline-block; transition: color 0.3s ease, transform 0.3s ease; }
.footer__grid a:hover { color: var(--color-taupe); transform: translateX(6px); }
/* Facebook button under the footer intro text (overrides the link slide). */
.footer__grid a.footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-top: 1.25rem; border-radius: 50%;
  background: var(--color-taupe); color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}
.footer__grid a.footer__social:hover { background: var(--color-beige); color: var(--color-dark); transform: translateY(-3px); }
.footer__bottom { background: #1B292F; /* Jet Black darkened 20 %, solid so the dot pattern stops here */ border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.875rem; }
.footer__bottom-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 1.5rem var(--container-pad);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { transition: color 0.3s ease; }
.footer__legal a:hover { color: var(--color-taupe); }
@media (max-width: 992px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}


/* ---- 5. Layout / rhythm ------------------------------------------------------ */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.section { padding: var(--section-padding-y) 0; }
.section--alt { background: var(--color-muted); }
.section__header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
/* In-page anchors (e.g. /o-nas#recenzie) land below the sticky header. */
.section[id] { scroll-margin-top: 100px; }

/* Decorative motifs (<x-deco>): thin taupe outlines in a section's empty
   edges, behind the content. app.js nudges .deco__shape away from the
   cursor on desktop. Hidden on narrow screens where there is no free space. */
.has-deco { position: relative; overflow: clip; }
.has-deco > .container { position: relative; z-index: 1; }
.deco { position: absolute; z-index: 0; pointer-events: none; color: var(--color-taupe); opacity: 0.35; }
.deco__shape { display: block; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.deco__shape * { vector-effect: non-scaling-stroke; stroke-width: 3px; }
@media (max-width: 1100px) { .deco { display: none; } }
@media (max-width: 760px) { .section { padding: var(--section-padding-y-sm) 0; } }
/* The upper footer wave (80px, 50px on mobile) overlaps the last section — give it 50px more room. */
#main-content > .section:last-child { padding-bottom: calc(var(--section-padding-y) + 50px); }
@media (max-width: 760px) { #main-content > .section:last-child { padding-bottom: calc(var(--section-padding-y-sm) + 50px); } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---- Forms (shared by kontakt / e-recept) ------------------------------------ */
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; }
.form-field a { color: var(--color-primary); font-weight: 600; }
.form-field a:hover { text-decoration: underline; }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-chip);
  background: #fff;
  color: var(--color-fg);
}
.form-field input:focus,
.form-field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: var(--radius-chip); padding: 1rem; margin-bottom: 1.5rem; font-size: 0.9375rem; }
.form-alert--success { background: #E7F3EC; color: #1F6B45; }
.form-alert--error { background: #FBE7E4; color: var(--color-danger); }
/* Pairs two .form-field (e.g. Meno/Priezvisko) into one row — saves vertical
   space on longer forms. .form-field's own margin-bottom still applies, so
   spacing after the row matches a single-column field. */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Form card (kontakt + e-recept forms) — white rounded
   card, soft inputs; e-recept adds medication rows + bento insurer picker. */
.form-card { width: 100%; max-width: 800px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 48px; box-shadow: 0 10px 40px rgba(10, 9, 8, 0.04); }
/* e-Recept page intro: 2×2 key rules above the form (same 800px column). */
.erecept-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 800px; margin: 0 auto 1.25rem; }
.erecept-info__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 1.5rem; }
.erecept-info__item .icon-chip { margin-bottom: 1rem; }
.erecept-info__item h2 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.5rem; }
.erecept-info__item p { color: var(--color-fg-muted); font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.erecept-note { max-width: 800px; margin: 0 auto 3rem; padding: 1.25rem 1.5rem; background: var(--color-beige); border-radius: 0.75rem; color: var(--color-primary); font-size: 0.9375rem; line-height: 1.6; text-align: center; }
@media (max-width: 640px) { .erecept-info { grid-template-columns: 1fr; } }
.form-card__header { margin-bottom: 2.5rem; }
.form-card__header h1, .form-card__header h2 { font-size: 1.75rem; font-weight: 600; margin: 0 0 0.5rem; }
.form-card__header p { color: var(--color-fg-muted); font-size: 0.9375rem; margin: 0; }
.form-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-card__group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-card__group--full { grid-column: 1 / -1; }
.form-card__group textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-card__grid + .form-card__gdpr { margin-top: 2rem; }
.form-card__group label { font-size: 0.875rem; font-weight: 500; }
.form-card__group input, .form-card__group textarea {
  width: 100%; padding: 14px 16px;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px;
  font-family: var(--font-main); font-size: 0.9375rem; color: var(--color-fg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.form-card__group input::placeholder, .form-card__group textarea::placeholder { color: var(--color-taupe); }
.form-card__group input:focus, .form-card__group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-taupe) 25%, transparent); background: #fff; }
.form-card .field-error { color: var(--color-danger); font-size: 0.8125rem; }
.form-card__meds { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 16px; padding: 1.5rem; margin: 2rem 0; }
.form-card__meds h3, .form-card__insurance legend { font-size: 1rem; font-weight: 600; margin: 0 0 1.25rem; }
.form-card__meds .form-card__group input { background: #fff; }
.form-card__med-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-card__add-med {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary);
  padding: 10px 20px; border-radius: 10px; font-family: inherit; font-weight: 500; font-size: 0.875rem;
  cursor: pointer; transition: background-color 0.2s ease;
}
.form-card__add-med:hover { background: var(--color-beige); }
.form-card__insurance { border: 0; padding: 0; margin: 0 0 2.5rem; }
.form-card__insurance legend { padding: 0; }
.form-card__insurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.form-card__insurance-option { position: relative; }
.form-card__insurance-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.form-card__insurance-card {
  display: flex; align-items: center; justify-content: center; height: 64px; padding: 10px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 12px;
  text-align: center; font-weight: 500; font-size: 0.875rem; color: var(--color-fg-muted);
  cursor: pointer; transition: all 0.2s ease;
}
.form-card__insurance-option:hover .form-card__insurance-card { border-color: var(--color-taupe); background: var(--color-bg); }
.form-card__insurance-option input:checked + .form-card__insurance-card { border-color: var(--color-primary); background: var(--color-beige); color: var(--color-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--color-primary); }
.form-card__insurance-option input:focus-visible + .form-card__insurance-card { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.form-card__gdpr { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 2rem; }
.form-card__gdpr input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; position: relative;
  width: 24px; height: 24px; margin-top: 2px;
  border: 1.5px solid var(--color-border); border-radius: 6px; background: #fff; cursor: pointer;
  transition: all 0.2s ease;
}
.form-card__gdpr input:checked { background: var(--color-primary); border-color: var(--color-primary); }
.form-card__gdpr input:checked::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.form-card__gdpr input:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.form-card__gdpr label { font-size: 0.8125rem; color: var(--color-fg-muted); line-height: 1.6; cursor: pointer; }
.form-card__gdpr a { color: var(--color-primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.form-card__gdpr a:hover { color: var(--color-primary-hover); }
.form-card__submit {
  display: block; width: 100%; padding: 18px; border: none; border-radius: 12px;
  background: var(--color-primary); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 600; letter-spacing: 0.03em;
  cursor: pointer; transition: all 0.3s ease;
}
.form-card__submit:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(94, 80, 63, 0.25); }
/* While htmx sends the form (it puts .htmx-request on the <form>, and
   hx-disabled-elt disables the button): "Odosielam…" + spinner, no double submit. */
.form-card__submit-busy { display: none; }
form.htmx-request .form-card__submit-label { display: none; }
form.htmx-request .form-card__submit-busy { display: inline-flex; align-items: center; gap: 0.6rem; }
form.htmx-request .form-card__submit-busy::before { content: ""; width: 1em; height: 1em; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: form-submit-spin 0.8s linear infinite; }
@keyframes form-submit-spin { to { transform: rotate(360deg); } }
.form-card__submit:disabled { cursor: wait; opacity: 0.85; transform: none; box-shadow: none; }
@media (max-width: 768px) {
  .form-card { padding: 32px 24px; border-radius: 20px; }
  .form-card__grid, .form-card__med-row { grid-template-columns: 1fr; }
  .form-card__insurance-grid { grid-template-columns: 1fr 1fr; }
}


/* Kontakt page: form + dark info card side by side */
.kontakt-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
/* Kontakt: full-width photo band. Parallax via background-attachment: fixed
   on desktop; touch devices (iOS ignores fixed) and reduced motion get a
   normal background framed on the entrance arrow. */
.kontakt-photo {
  height: clamp(320px, 42vw, 560px);
  background-color: var(--color-dark);
  background-image: var(--kontakt-photo);
  background-size: cover;
  background-position: 25% 58%;
}
@media (min-width: 961px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .kontakt-photo { background-attachment: fixed; background-position: center 60%; }
}
@media (max-width: 760px) { .kontakt-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--color-dark); color: #fff; border-radius: var(--radius-card); padding: 2rem; }
.contact-info-card dl { margin: 0; }
.contact-info-item { display: flex; align-items: flex-start; gap: 0.875rem; margin-top: 1.25rem; }
.contact-info-item:first-child { margin-top: 0; }
.contact-info-item .icon-chip { background: rgba(255, 255, 255, 0.12); color: #fff; }
.contact-info-item dd { overflow-wrap: anywhere; }
.contact-info-card dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.6); }
.contact-info-card dd { margin: 0.25rem 0 0; font-size: 1.0625rem; font-weight: 600; }
.contact-info-card a { color: #fff; }
.contact-info-card a:hover { color: rgba(255, 255, 255, 0.8); }

/* "Ako sa k nám dostanete" items (partials/ako-sa-k-nam-dostanete.blade.php) */
.directions-grid { column-gap: 5.5rem; }
.directions-item { text-align: center; }
.directions-item .icon-chip { margin: 0 auto 1rem; }
.directions-item h3 { margin-bottom: 0.5rem; }
.directions-item p { color: var(--color-fg-muted); margin: 0; }

/* ---- 6. Long-form content (prose) -------------------------------------------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { font-size: 1.125rem; margin: 1.75rem 0 0.5rem; color: var(--color-primary); }
.prose p { margin: 0 0 1.25rem; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.25rem; line-height: 1.7; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--color-fg); }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-primary);
  background: var(--color-card);
  border-radius: 0 var(--radius-chip) var(--radius-chip) 0;
  font-style: italic;
  color: var(--color-fg-muted);
}
.prose-lead { font-size: 1.125rem; color: var(--color-fg-muted); line-height: 1.7; margin-bottom: 2rem; }

/* Page header (badge + title + optional lead) shared by content pages */
.page-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
/* 404 page (resources/views/errors/404.blade.php). */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .page-header { margin-bottom: 0; }
.error-page__code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--color-taupe); margin: 0 0 1rem; }

/* Team */
/* One row per person: photo + text card side by side, alternating sides
   (--photo-right flips the photo to the right on desktop). In the markup the
   photo always comes first, so on mobile it stacks above the text. */
.team-list { display: flex; flex-direction: column; gap: 100px; max-width: 1040px; margin: 0 auto; }
.team-row { display: grid; grid-template-columns: 2fr 3fr; gap: 2.5rem; align-items: start; }
.team-row--photo-right { grid-template-columns: 3fr 2fr; }
.team-row--photo-right .team-row__photo { order: 2; }
/* Photo stays pinned while the (longer) text scrolls past — same sticky
   pattern and offset as .oznamy__heading on the homepage. */
.team-row__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); display: block; position: sticky; top: 140px; }
@media (max-width: 760px) {
  .team-list { gap: 3rem; }
  .team-row, .team-row--photo-right { grid-template-columns: 1fr; gap: 1.5rem; }
  .team-row--photo-right .team-row__photo { order: 0; }
  .team-row__photo { max-width: 360px; margin: 0 auto; position: static; }
}
.team-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 1.75rem; }
.team-card h3 { font-size: 1.0625rem; margin-bottom: 0.15rem; }
.team-card .role { font-size: 0.8125rem; color: var(--color-taupe); font-weight: 600; margin-bottom: 0.9rem; display: block; }
.team-card p { font-size: 0.9375rem; color: var(--color-fg-muted); line-height: 1.65; margin: 0 0 0.9rem; }
.team-card p:last-child { margin-bottom: 0; }

/* Ordinačné hodiny */
.hours-layout { display: grid; grid-template-columns: 35fr 65fr; gap: 180px; align-items: start; }
.hours-intro { position: sticky; top: 140px; }
.hours-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.hours-item { display: flex; gap: 1.5rem; padding: 1.875rem 0; border-bottom: 1px solid var(--color-border); transition: transform 0.3s ease; }
.hours-item:first-child { padding-top: 0.5rem; }
.hours-item:last-child { border-bottom: none; }
.hours-item:hover { transform: translateX(10px); }
.hours-item .time { flex: 0 0 140px; font-size: 1.125rem; font-weight: 600; white-space: nowrap; transition: color 0.3s ease; }
.hours-item:hover .time { color: var(--color-taupe); }
.hours-item .label { flex: 1; color: var(--color-fg-muted); }
.hours-note { background: var(--color-beige); border-radius: 0.75rem; padding: 1.5rem 2rem; color: var(--color-primary); font-size: 0.9375rem; line-height: 1.7; margin: 0; }
@media (max-width: 850px) {
  .hours-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hours-intro { position: static; }
  .hours-item { flex-direction: column; gap: 0.5rem; padding: 1.25rem 0; }
  .hours-item .time { flex: auto; font-size: 1rem; }
  .hours-item:hover { transform: translateX(5px); }
}


/* Cenník — category label (anchor) + zebra-striped price table,
   structure based on shinedent.sk/cennik, restyled with our own tokens. */
.cennik-intro { text-align: center; max-width: 640px; margin: 0 auto 1rem; color: var(--color-fg-muted); }
.cennik-note { text-align: center; color: var(--color-fg-muted); font-size: 0.9375rem; margin-bottom: 3rem; }
.cennik-category {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto 3rem;
}
@media (max-width: 760px) { .cennik-category { grid-template-columns: 1fr; gap: 1rem; } }
.cennik-category__title {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--color-dark);
}
.cennik-category__title .h-accent { display: block; }
/* Price list as a white card: hairline rows, light taupe zebra, price in
   brown ("60,- EUR"), unit ("1 ks", "strana") as a separate taupe pill. */
.cennik-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.cennik-table tr:nth-child(even) { background: color-mix(in srgb, var(--color-taupe) 8%, #fff); }
.cennik-table tr:hover { background: color-mix(in srgb, var(--color-taupe) 16%, #fff); }
.cennik-table td {
  padding: 0.95rem 1.25rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.cennik-table tr:last-child td { border-bottom: none; }
/* Tables ignore overflow:hidden for rounded corners — round the corner cells. */
.cennik-table tr:first-child td:first-child { border-top-left-radius: var(--radius-card); }
.cennik-table tr:first-child td:last-child { border-top-right-radius: var(--radius-card); }
.cennik-table tr:last-child td:first-child { border-bottom-left-radius: var(--radius-card); }
.cennik-table tr:last-child td:last-child { border-bottom-right-radius: var(--radius-card); }
.cennik-table td:first-child { color: var(--color-fg); }
.cennik-table td.price { text-align: right; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.cennik-table td.unit { width: 5.5rem; padding-left: 0; }
.cennik-table td.unit span {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-taupe) 18%, #fff);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 524px) {
  .cennik-table td { padding: 0.8rem 0.9rem; font-size: 0.875rem; }
  .cennik-table td.unit { width: auto; }
}

/* Google reviews (<x-recenzie>, data in config/recenzie.php): summary bar
   with the Google "G" + 5,0 ★, then masonry cards (CSS columns). */
.reviews__summary {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2rem;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs); padding: 1.25rem 1.75rem; margin-bottom: 2rem;
}
.reviews__source { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 1.0625rem; }
.reviews__score { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.reviews__score strong { font-size: 2rem; line-height: 1; color: var(--color-fg); }
.reviews__count { color: var(--color-fg-muted); font-size: 0.9375rem; }
.reviews__stars { display: inline-flex; gap: 2px; color: #F4B400; }
.reviews__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.reviews__grid { columns: 3 300px; column-gap: 1.25rem; }
.review-card {
  break-inside: avoid; margin: 0 0 1.25rem; padding: 1.5rem;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.review-card blockquote { margin: 0; color: var(--color-fg); font-size: 0.9375rem; line-height: 1.65; white-space: pre-line; }
.review-card figcaption { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.25rem; }
.review-card__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-beige); color: var(--color-primary); font-weight: 600;
}
.review-card__name { font-weight: 600; font-size: 0.9375rem; }
.review-card__google { margin-left: auto; display: inline-flex; }
@media (max-width: 760px) {
  .reviews__summary { padding: 1.25rem; }
  .reviews__actions { width: 100%; }
  .reviews__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Legal/policy pages (GDPR, Bezpečnosť pacienta) reuse .prose for the body
   copy; this just tightens list markers for numbered article clauses. */
.prose ol.articles { list-style: none; padding-left: 0; }
.prose ol.articles > li { margin-bottom: 0.75rem; }

/* FAQ accordion (<x-faq>, resources/views/components/faq.blade.php) — the
   single shared FAQ component used on both the homepage (curated subset)
   and the full "Spoznajte svoje ochorenie" list (config/faq.php). Exclusive:
   only one item open at a time (app.js). Height animates via the CSS
   grid-template-rows 0fr/1fr trick instead of max-height, so it eases both
   ways without JS measuring content height. */
.faq-accordion { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-accordion__item { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-chip); scroll-margin-top: 140px; transition: background-color 0.25s ease; }
/* Open item gets a soft cream tint — derived from the accent, not a new color. */
.faq-accordion__item.is-open { background: color-mix(in srgb, var(--color-taupe) 15%, var(--color-card)); }
.faq-accordion__toggle {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 1rem 3.5rem 1rem 1.25rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--color-fg);
  cursor: pointer;
}
.faq-accordion__toggle::before,
.faq-accordion__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.4rem;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform 0.3s ease-in-out;
}
.faq-accordion__toggle::before { width: 14px; height: 2px; transform: translate(50%, -50%); }
.faq-accordion__toggle::after { width: 2px; height: 14px; transform: translate(50%, -50%); }
.faq-accordion__item.is-open .faq-accordion__toggle::after { transform: translate(50%, -50%) scaleY(0); }
.faq-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
}
.faq-accordion__item.is-open .faq-accordion__panel { grid-template-rows: 1fr; }
.faq-accordion__panel-inner { overflow: hidden; }
.faq-accordion__panel-inner p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--color-fg-muted); line-height: 1.65; }

/* Blog index */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card__date { font-size: 0.8125rem; color: var(--color-fg-muted); margin-bottom: 0.5rem; display: block; }

/* Blog article */
.article-header { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.article-header__meta { font-size: 0.875rem; color: var(--color-fg-muted); margin-top: 0.75rem; }
.article-header__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.article-header__tags .badge { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
.article-image { display: block; width: 100%; max-width: 960px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); margin: 0 auto 3rem; }
/* Wrapper keeps the 960px column so a .photo-badge can sit on the photo. */
.article-media { position: relative; max-width: 960px; margin: 0 auto 3rem; }
.article-media .article-image { margin: 0; }
.article-media:not(:has(img)) { display: none; }
/* "Už čoskoro" ribbon over a service photo (card on /sluzby + detail page). */
.photo-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: 0.45rem 1rem; border-radius: 999px; background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.02em; box-shadow: var(--shadow-md); }
.article-media .photo-badge { top: 1.5rem; left: 1.5rem; padding: 0.6rem 1.35rem; font-size: 1rem; }
.btn.is-disabled { opacity: 0.55; pointer-events: none; }
