/* Zubní Vodní – jednoduchý kreslený vzhled */

:root {
  --ink: #2f3b52;
  --ink-soft: #5a667d;
  --cream: #fffaf3;
  --white: #fff;
  --teal: #15847e;
  --teal-dark: #0e6a65;
  --mint: #9fe3d0;
  --mint-l: #e3f6f0;
  --sky: #a9d6fb;
  --sky-l: #e8f4ff;
  --pink: #ffb3a7;
  --pink-l: #ffeeea;
  --yellow: #ffd66e;
  --yellow-l: #fff5d6;
  --lav: #cdbdff;
  --lav-l: #f1ecff;
  --hand-radius: 26px 20px 30px 18px / 20px 30px 18px 26px;
  --blob-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ochrana proti kopírování: text nejde označit (kromě formuláře a kontaktních údajů) */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, .copy-ok, .copy-ok * { -webkit-user-select: text; -moz-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg { -webkit-user-drag: none; user-drag: none; }

a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 12px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px dashed var(--teal); outline-offset: 3px; }

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

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.2;
  padding: .75em 1.35em;
  color: var(--ink); background: var(--white);
  border: 2.5px solid var(--ink); border-radius: var(--hand-radius);
  box-shadow: 4px 5px 0 var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--small { font-size: 1rem; padding: .5em 1em; box-shadow: 3px 4px 0 var(--ink); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .94);
  backdrop-filter: blur(6px);
  border-bottom: 2.5px dashed #e8dfcf;
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; }
.brand-text small { font-family: var(--font-hand); font-size: 1.15rem; color: var(--teal-dark); font-weight: 600; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: .45em .7em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
  border-radius: 14px 10px 16px 10px;
}
.nav a:hover { background: var(--mint-l); color: var(--ink); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 44px;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 14px 10px 16px 10px;
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer; position: relative;
}
.burger, .burger::before, .burger::after {
  position: absolute; left: 50%; width: 22px; height: 3px; margin-left: -11px;
  background: var(--ink); border-radius: 3px; transition: transform .2s ease, top .2s ease;
}
.burger { top: 50%; margin-top: -1.5px; }
.burger::before, .burger::after { content: ""; left: 0; margin-left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.nav-open .burger { background: transparent; }
.nav-open .burger::before { top: 0; transform: rotate(45deg); }
.nav-open .burger::after { top: 0; transform: rotate(-45deg); }

/* ---------- Úvod ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hand {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.7rem;
  color: var(--teal-dark); margin: 0 0 .2em; transform: rotate(-2deg); display: inline-block;
}
h1 .hand { display: block; width: fit-content; margin-bottom: .25em; line-height: 1.2; }
.mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%);
  padding: 0 .1em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 26px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-weight: 600; }
.hero-facts li { display: flex; align-items: center; gap: .45em; }
.hero-facts .i { color: var(--teal); }
.hero-slides { position: relative; aspect-ratio: 600 / 500; animation: float 6s ease-in-out infinite; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: scale(.97);
  transition: opacity .9s ease, transform .9s ease;
}
.hero-slide.is-active { opacity: 1; transform: none; }
.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 6px; min-height: 16px; }
.hero-dots button {
  width: 16px; height: 16px; padding: 0; cursor: pointer;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 10px;
  transition: width .25s ease, background .25s ease;
}
.hero-dots button:hover { background: var(--mint); }
.hero-dots button[aria-current="true"] { width: 34px; background: var(--teal); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Upozornění (barva se volí v administraci: červená, žlutá, zelená) */
.notice {
  --nb: var(--yellow-l); --nc: var(--yellow);
  --bg: var(--nb); --sc: var(--nc); --sx: 5px; --sy: 6px;   /* pozadí a stín – viz „Pohyb bloků“ */
  display: flex; align-items: center; gap: 16px;
  margin: 30px auto 0; max-width: 880px;   /* odstup od teček prezentace */
  border-radius: var(--hand-radius);
  padding: 14px 22px;
}
.notice--red { --nb: #ffe1dc; --nc: #f06a60; }
.notice--red strong { color: #c42b22; }
.notice--green { --nb: var(--mint-l); --nc: #7fd6c2; }
.notice--green strong { color: var(--teal-dark); }
.notice img { width: 54px; height: 54px; flex: none; }
.notice p { margin: 0; }

/* ---------- Sekce ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem;
  color: #e0667a; margin: 0 0 .1em; line-height: 1.2;
}

/* barevné sekce s vlnkami nahoře i dole */
.section--mint { background: var(--mint-l); }
.section--sky { background: var(--sky-l); }
.section--yellow { background: var(--yellow-l); }
.section--mint, .section--sky, .section--yellow { margin: 40px 0; }
.section--mint::before, .section--sky::before, .section--yellow::before,
.section--mint::after, .section--sky::after, .section--yellow::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px;
  background-repeat: no-repeat; background-size: 100% 100%;
}
.section--mint::before, .section--sky::before, .section--yellow::before { top: -39px; }
.section--mint::after, .section--sky::after, .section--yellow::after { bottom: -39px; transform: scaleY(-1); }
.section--mint::before, .section--mint::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C150 2 300 0 450 18C600 36 750 38 900 18C1050 0 1140 6 1200 20V40Z' fill='%23e3f6f0'/%3E%3C/svg%3E");
}
.section--sky::before, .section--sky::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V16C120 34 260 38 420 20C580 2 760 0 920 18C1060 34 1140 30 1200 22V40Z' fill='%23e8f4ff'/%3E%3C/svg%3E");
}
.section--yellow::before, .section--yellow::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C200 0 360 4 520 20C680 36 860 36 1020 16C1100 6 1160 10 1200 18V40Z' fill='%23fff5d6'/%3E%3C/svg%3E");
}

/* jemné obrysy zoubků v pozadí – jedna vrstva přes celý obsah stránky: nad barevným pozadím
   sekcí i vlnkami, pod obsahem (ten je v .container), takže vzor plynule přechází přes rozhraní sekcí.
   Dlaždici img/vzor-zuby.svg vyrábí zubnivodni-nastroje\vzor-zuby-gen.ps1 (každý zoubek je celý uvnitř). */
main { position: relative; }
main::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/vzor-zuby.svg") 50% 0 / 1120px 1120px repeat;   /* na střed – vlevo i vpravo stejně */
  /* nad patičkou zoubky plynule zmizí – jinak by je spodní okraj obsahu useknul */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 240px), transparent calc(100% - 50px));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 240px), transparent calc(100% - 50px));
}
main .container { position: relative; z-index: 1; }

/* dva sloupce: obrázek + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-art img { width: 100%; }

.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features h3 { margin: 0 0 .15em; font-size: 1.2rem; }
.features p { margin: 0; color: var(--ink-soft); }

/* ---------- Karty ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  --c: var(--mint); --cl: var(--mint-l);
  --sc: var(--c);   /* stín v barvě karty – viz „Pohyb bloků“ */
  border-radius: var(--hand-radius);
  padding: 26px 24px;
}
.cards > .card:nth-child(4n+2) { --c: var(--sky); --cl: var(--sky-l); }
.cards > .card:nth-child(4n+3) { --c: var(--pink); --cl: var(--pink-l); }
.cards > .card:nth-child(4n+4) { --c: var(--yellow); --cl: var(--yellow-l); }
.cards > .card:nth-child(odd) { border-radius: 20px 30px 18px 26px / 30px 18px 26px 20px; }

.blob {
  width: 104px; height: 104px; flex: none;
  display: grid; place-items: center;
  background: var(--cl, var(--mint-l)); border-radius: var(--blob-radius);
}
.blob img { width: 82px; height: 82px; }
.blob--sm { width: 64px; height: 64px; }
.blob--sm img { width: 50px; height: 50px; }
.blob--mint { --cl: var(--mint-l); }
.blob--sky { --cl: var(--sky-l); }
.blob--pink { --cl: var(--pink-l); }
.blob--yellow { --cl: var(--yellow-l); }

/* ---------- Pohyb bloků při najetí myší ----------
   Zvedne se strana, na které je myš, uprostřed celý blok rovně (--tilt a --lift nastavuje main.js
   podle polohy myši; bez něj, např. na mobilu, se blok jen zvedne).
   Rámeček s pozadím kreslí ::after a pohybuje se s blokem. Stín kreslí ::before, který pohyb bloku
   přesně vyrovná (opačné otočení a posun) – stín tak zůstane na svém místě.
   Nastavení bloku: --bg pozadí, --sc barva stínu, --sx/--sy posun stínu. */
.card, .tips li, .price-list li, .notice, .map-card {
  position: relative; isolation: isolate;
  background: none; border: 2.5px solid transparent; box-shadow: none;
  transition: transform .22s ease;
}
.card::after, .tips li::after, .price-list li::after, .notice::after, .map-card::after,
.card::before, .tips li::before, .price-list li::before, .notice::before, .map-card::before {
  content: ""; position: absolute; inset: -2.5px; border-radius: inherit; pointer-events: none;
}
.card::after, .tips li::after, .price-list li::after, .notice::after, .map-card::after {
  z-index: -1; background: var(--bg, var(--white)); border: 2.5px solid var(--ink);
}
.card::before, .tips li::before, .price-list li::before, .notice::before, .map-card::before {
  z-index: -2; background: var(--sc, transparent);
  transform: rotate(0deg) translateY(0px) translate(var(--sx, 6px), var(--sy, 7px));
  transition: transform .22s ease, background-color .22s ease;
}
.card:hover, .tips li:hover, .price-list li:hover, .notice:hover, .map-card:hover {
  transform: translateY(var(--lift, -4px)) rotate(var(--tilt, 0deg));
}
.card:hover::before, .tips li:hover::before, .price-list li:hover::before, .notice:hover::before, .map-card:hover::before {
  transform: rotate(calc(-1 * var(--tilt, 0deg))) translateY(calc(-1 * var(--lift, -4px))) translate(var(--sx, 6px), var(--sy, 7px));
}
.form.card { --lift: -3px; --tilt: 0deg; }   /* formulář se nenaklání, aby se v něm dobře psalo */
/* tipy a ceník mají stín jen při najetí */
.tips li, .price-list li { --sx: 4px; --sy: 5px; }
.tips li:hover, .price-list li:hover { --sc: var(--mint); }
.tips li:nth-child(2):hover, .price-list li:nth-child(2):hover { --sc: var(--sky); }
.tips li:nth-child(3):hover, .price-list li:nth-child(3):hover { --sc: var(--pink); }
.blob img, .ci, .notice > img { transition: transform .25s ease; }
/* ikona v rámečku se zvedne a nakloní na stejnou stranu jako rámeček (--itilt z main.js) */
.card:hover .blob img, .notice:hover > img { transform: translateY(-3px) rotate(var(--itilt, -7deg)) scale(1.08); }
.features li:hover .blob img { transform: rotate(-7deg) scale(1.07); }
.contact-list li:hover .ci { transform: rotate(-8deg) scale(1.08); }
.service .blob { margin-bottom: 14px; }
.service h3 { margin-bottom: .35em; }
.service p { margin: 0; color: var(--ink-soft); }

/* Děti */
.tips { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.tips li {
  display: flex; flex-direction: column;
  border-radius: 22px 16px 24px 14px / 16px 24px 14px 22px;
  padding: 12px 18px 12px 58px; counter-increment: tip;
}
/* číslo tipu (je na strong, protože ::before/::after bloku kreslí stín a rámeček) */
.tips li strong::before {
  content: counter(tip);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800;
  background: var(--pink); border: 2.5px solid var(--ink); border-radius: 50%;
}
.tips { counter-reset: tip; }
.tips li:nth-child(2) strong::before { background: var(--mint); }
.tips li:nth-child(3) strong::before { background: var(--yellow); }
.tips strong { font-family: var(--font-head); font-size: 1.15rem; }
.tips span { color: var(--ink-soft); }

/* Tým */
.person { text-align: center; }
.person .blob { margin: 0 auto 16px; width: 120px; height: 120px; }
.person .blob img { width: 92px; height: 92px; }
.person h3 { font-size: 1.2rem; margin-bottom: .1em; }
.role {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.35rem;
  color: var(--teal-dark); margin: 0 0 .5em;
}
.person p:last-child { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.team-note { text-align: center; margin: 32px 0 0; color: var(--ink-soft); }

/* Ordinační hodiny */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 960px; margin: 0 auto; }
.hours-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; margin-bottom: .6em; }
.hours-card.card:nth-child(2) { --c: var(--sky); --cl: var(--sky-l); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .5rem .7rem; text-align: left; border-bottom: 2px dashed #ece5d8; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 700; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed td { color: var(--ink-soft); font-style: italic; }
.hours tr.today th, .hours tr.today td { background: var(--yellow-l); }
.hours tr.today th { border-radius: 12px 0 0 12px; }
.hours tr.today td { border-radius: 0 12px 12px 0; }
.today-badge {
  display: inline-block; margin-left: .5em; padding: 0 .5em;
  font-family: var(--font-hand); font-size: 1.1rem; line-height: 1.4;
  background: var(--yellow); border-radius: 8px; transform: rotate(-3deg);
}
.hours-note {
  text-align: center; margin: 32px auto 0; max-width: 820px;
  font-family: var(--font-hand); font-size: 1.55rem; font-weight: 600; line-height: 1.3;
  color: var(--teal-dark);
}

/* Ceník + novinky */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.price-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.price-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border-radius: 18px 14px 20px 12px;
  padding: 12px 18px; font-weight: 700;
}
.price-list span { font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.price-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.news-list { display: grid; gap: 22px; }
.news { position: relative; }
.news time {
  display: inline-block; font-family: var(--font-hand); font-weight: 700; font-size: 1.3rem;
  color: #e0667a; line-height: 1.2; margin-bottom: .2em;
}
.news h3 { margin-bottom: .3em; }
.news p { margin: 0; color: var(--ink-soft); }
.news--important { --c: var(--pink); }
.news-empty { color: var(--ink-soft); font-style: italic; }
.tag {
  position: absolute; top: -14px; right: 18px;
  background: var(--pink); border: 2.5px solid var(--ink); border-radius: 10px 8px 12px 8px;
  padding: 0 .6em; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  transform: rotate(3deg);
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-art { width: min(300px, 100%); margin: 0 auto 8px; }

/* kreslená mapka */
.map-card {
  --bg: #fbf4e8; --sc: var(--mint);   /* pozadí a stín – viz „Pohyb bloků“ */
  display: block; margin-bottom: 10px;
  color: inherit; text-decoration: none;
  border-radius: var(--hand-radius);
}
.map-note { margin: 0 0 22px; font-size: .95rem; color: var(--ink-soft); }
.map-note a { font-weight: 700; }
.map-note small { font-size: .82rem; }
/* mapku ořízne do zaoblených rohů rámečku (vnitřní poloměry = --hand-radius minus rámeček) */
.map-svg { display: block; width: 100%; height: auto; clip-path: inset(0 round 23.5px 17.5px 27.5px 15.5px / 17.5px 27.5px 15.5px 23.5px); }
.map-svg text { font-family: var(--font-body); paint-order: stroke; stroke: #fffaf1; stroke-width: 4px; stroke-linejoin: round; }
.map-svg .ml { font-weight: 800; fill: var(--ink); text-anchor: middle; }
.map-svg .ml-vodni { fill: var(--teal-dark); }
.map-svg .mw { font-family: var(--font-hand); font-weight: 700; font-size: 23px; fill: #2d6fa3; text-anchor: middle; }
.map-svg .mb { font-weight: 800; font-size: 13.5px; fill: var(--ink); }
.map-svg .mc { font-family: var(--font-hand); font-weight: 700; font-size: 25px; fill: var(--teal-dark); stroke: none; }
.map-svg .mc2 { font-weight: 700; font-size: 13px; fill: var(--ink-soft); stroke: none; }
.map-svg .mn { font-weight: 800; font-size: 13px; fill: var(--ink); stroke: none; }
.map-svg .mp { font-weight: 900; font-size: 11.5px; fill: #fff; stroke: none; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { font-family: var(--font-head); font-size: 1.15rem; }
.contact-list a { font-weight: 700; }
.ci {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 2.5px solid var(--ink); border-radius: var(--blob-radius);
  background: var(--mint);
}
.ci .i { width: 22px; height: 22px; }
.ci--pink { background: var(--pink); }
.ci--sky { background: var(--sky); }
.ci--yellow { background: var(--yellow); }

.form { --c: var(--sky); padding: 32px; }
.form h3 { font-size: 1.6rem; margin-bottom: .2em; }
.form-intro { color: var(--ink-soft); margin-bottom: 1.4em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: #d9485f; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fffdf9;
  border: 2.5px solid var(--ink); border-radius: 14px 12px 16px 11px;
  padding: .65em .85em;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f3b52' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8em center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; box-shadow: 0 0 0 4px var(--mint);
}
.field input::placeholder, .field textarea::placeholder { color: #a3a9b6; opacity: 1; }
.field.valid input, .field.valid textarea { border-color: var(--teal); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d9485f; background: var(--pink-l); }
.counter { float: right; font-weight: 600; font-size: .88rem; color: var(--ink-soft); margin-top: 2px; }
.counter.over { color: #c23a52; }
.field-error { margin: 6px 0 0; color: #c23a52; font-weight: 700; font-size: .95rem; }
.field-error:empty { display: none; }
.hint { margin: 6px 0 0; font-size: .92rem; color: var(--ink-soft); }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 26px; height: 26px; margin: 1px 0 0;
  border: 2.5px solid var(--ink); border-radius: 8px 6px 9px 6px; background: #fffdf9;
  display: grid; place-items: center; cursor: pointer;
}
.check input::after {
  content: ""; width: 12px; height: 7px; margin-top: -3px;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) scale(0);
  transition: transform .15s ease;
}
.check input:checked { background: var(--teal); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check.invalid input { border-color: #d9485f; background: var(--pink-l); }
.check span { font-size: .98rem; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.form-status {
  margin-top: 20px; padding: 14px 18px; font-weight: 700;
  border: 2.5px solid var(--ink); border-radius: var(--hand-radius);
}
.form-status.ok { background: var(--mint-l); box-shadow: 4px 5px 0 var(--mint); }
.form-status.err { background: var(--pink-l); box-shadow: 4px 5px 0 var(--pink); }

/* ---------- Patička ---------- */
.site-footer {
  position: relative; margin-top: 60px;
  background: var(--ink); color: #dfe6f2; padding: 70px 0 28px;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C160 0 320 2 480 20C640 38 800 36 960 18C1080 4 1150 8 1200 16V40Z' fill='%232f3b52'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--mint); }
.site-footer h3 { color: #fff; font-size: 1.15rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer-grid p, .footer-grid ul, .footer-grid address { margin: 0; font-style: normal; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.brand--footer { align-items: flex-start; }
.brand--footer img { background: #fff; border-radius: 50%; padding: 5px; width: 56px; height: 56px; }
.brand--footer .brand-text strong { color: #fff; font-size: 1.4rem; }
.brand--footer .brand-text small { color: var(--mint); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  border-top: 2px dashed rgba(255, 255, 255, .2); margin-top: 36px; padding-top: 20px;
}
.footer-bottom p { margin: 0; font-size: .95rem; }
.footer-bottom .hand { color: var(--mint); font-size: 1.5rem; transform: rotate(-2deg); }

/* ---------- Jednoduché podstránky ---------- */
.page { padding: 64px 0 40px; }
.page-card { max-width: 820px; margin: 0 auto; }
.page-card h2 { font-size: 1.5rem; margin-top: 1.4em; }
.page-card ul { padding-left: 1.2em; }
.thanks { text-align: center; max-width: 620px; margin: 0 auto; }
.thanks img { width: min(320px, 90%); margin: 0 auto 10px; }

/* ---------- Mobil a tablet ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 2.5px dashed #e8dfcf;
    padding: 8px 16px 20px; display: none;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { font-size: 1.2rem; padding: .6em .8em; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid, .split, .two-col, .contact-grid, .hours-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin: 0 auto; }
  .split-art { max-width: 460px; margin: 0 auto; }
  .split--reverse .split-art { order: -1; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-text strong { font-size: 1.35rem; }
  .brand-text small { font-size: 1.05rem; }
  .brand img { width: 42px; height: 42px; }
  .cards--3, .cards--4, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .notice { flex-direction: column; text-align: center; }
  .form { padding: 22px 18px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* obrázky v úvodu se střídají i tak, jen jemným prolnutím bez pohybu */
  .hero-slide { transform: none !important; transition: opacity .8s ease !important; }
}

@media print {
  .site-header, .nav-toggle, .form, .hero-art { display: none; }
  .section--mint, .section--sky, .section--yellow { background: none; }
}
