/* ==========================================================================
   MUDr. Ivan Drnek – styl webu
   Grafika inspirovaná šablonou FunCare (TemplateMonster #91273)
   Písma: Baloo 2 (nadpisy), Open Sans (text), Patrick Hand (ručně psané) – všechna s plnou češtinou
   ========================================================================== */

:root {
    --purple: #563cab;
    --purple-dark: #483290;
    --purple-deep: #3b2780;
    --text: #6f62a6;
    --heading: #483290;
    --blue: #0e9aff;
    --green: #8cc63f;
    --orange: #ff7a21;
    --magenta: #c62ea9;
    --yellow: #ffe11b;
    --yellow-dark: #f5c800;
    --red: #ff4b4b;
    --teal: #13c39a;
    --light: #eef8ff;
    --white: #fff;

    --font-head: "Baloo 2", "Trebuchet MS", sans-serif; /* Fredoka nemá č, ř, ě, ů */
    --font-body: "Open Sans", Arial, sans-serif;
    --font-hand: "Patrick Hand", "Comic Sans MS", cursive;

    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 14px 34px rgba(72, 50, 144, .14);
    --shadow-sm: 0 6px 18px rgba(72, 50, 144, .12);
    --container: 1200px;
    --header-h: 92px;
}

/* ---------- Reset / základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--heading); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--purple-dark); padding: 8px 16px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

/* ---------- Tlačítka ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
    padding: .9em 1.8em; border-radius: 14px; border: 0; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-3px); }
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--yellow { background: var(--yellow); color: var(--purple-dark); box-shadow: 0 8px 0 var(--yellow-dark), 0 14px 30px rgba(0,0,0,.18); }
.btn--yellow:hover { color: var(--purple-dark); box-shadow: 0 11px 0 var(--yellow-dark), 0 18px 34px rgba(0,0,0,.2); }
.btn--white { background: #fff; color: var(--purple-dark); box-shadow: 0 8px 20px rgba(0,0,0,.16); font-size: 1rem; padding: .8em 1.5em; }
.btn--white:hover { color: var(--purple); }
.btn--purple { background: var(--purple); color: #fff; box-shadow: 0 8px 0 var(--purple-deep); }
.btn--purple:hover { color: #fff; box-shadow: 0 11px 0 var(--purple-deep); }

/* ---------- Nadpisy sekcí ---------- */
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; color: var(--orange); font-size: 1.15rem; margin-bottom: .3em; }
.eyebrow--light { color: var(--yellow); }
.section { position: relative; padding: 90px 0; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 50px; }
.section-head h2 { margin-bottom: .4em; }
.section-head .lead { font-size: 1.1rem; }
.section-head--light h2 { color: #fff; }
.section-head--light .eyebrow { color: var(--yellow); }
.bg-light { background: var(--light); }

/* ---------- Vlnky a dekorace ---------- */
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; display: block; pointer-events: none; }
.wave--top { top: -69px; bottom: auto; }
.shape { position: absolute; pointer-events: none; z-index: 0; }
.s-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--red); top: 22%; left: 47%; opacity: .9; animation: float 6s ease-in-out infinite; }
.s-ring { width: 26px; height: 26px; border-radius: 50%; border: 6px solid var(--yellow); top: 6%; left: 2%; animation: float 7s ease-in-out infinite reverse; }
.s-tri { width: 0; height: 0; border-left: 22px solid var(--teal); border-top: 14px solid transparent; border-bottom: 14px solid transparent; bottom: 28%; left: 40%; animation: spin 14s linear infinite; }
.s-star { width: 34px; height: 34px; background: var(--green); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); top: 16%; right: 6%; animation: spin 18s linear infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(72,50,144,.12); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; color: var(--purple-dark); }
.logo:hover { color: var(--purple-dark); }
.logo-img { height: 58px; width: auto; }
.logo--footer { margin-bottom: 10px; }
.logo--footer img { width: 254px; max-width: 100%; height: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; color: var(--purple-dark); white-space: nowrap; }
.logo-name b { font-weight: 700; }
.logo-name b i { font-style: normal; }
.logo-name b i:nth-child(1) { color: var(--blue); }
.logo-name b i:nth-child(2) { color: var(--green); }
.logo-name b i:nth-child(3) { color: var(--orange); }
.logo-name b i:nth-child(4) { color: var(--magenta); }
.logo-name b i:nth-child(5) { color: var(--yellow-dark); }
.logo-tag { font-size: .95rem; color: var(--text); margin-top: 3px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; }
.main-nav a { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--purple-dark); padding: 8px 14px; border-radius: 12px; position: relative; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); transform: translateX(-50%); }
.main-nav .nav-phone--mobile { display: none; }

.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--purple-dark); white-space: nowrap; }
.header-phone .ico { color: var(--orange); }
.open-status { font-size: .85rem; color: var(--text); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c9c3df; }
.open-status.is-open::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(19,195,154,.2); }
.open-status.is-closed::before { background: var(--red); }

.nav-toggle { display: none; margin-left: auto; background: var(--purple); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 14px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-open { display: none; }

.notice-bar { background: var(--yellow); color: var(--purple-dark); font-size: .95rem; padding: 8px 0; text-align: center; }
.notice-bar .container { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--purple); color: #fff; padding: 70px 0 190px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero-text p { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 560px; }
.hero-actions { margin: 34px 0 26px; }
.handwritten { font-family: var(--font-hand); font-size: 1.6rem !important; color: var(--teal) !important; }
.hero-visual { position: relative; justify-self: center; width: min(440px, 100%); aspect-ratio: 1; }
.blob { position: relative; overflow: hidden; }
.blob--photo { width: 100%; height: 100%; border-radius: 58% 42% 50% 50% / 50% 55% 45% 50%; border: 10px solid rgba(255,255,255,.15); box-shadow: 0 30px 60px rgba(0,0,0,.25); animation: morph 12s ease-in-out infinite; background: #fff; }
.blob--photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes morph {
    0%,100% { border-radius: 58% 42% 50% 50% / 50% 55% 45% 50%; }
    50% { border-radius: 45% 55% 40% 60% / 58% 42% 58% 42%; }
}
.hero-badge { position: absolute; right: -6px; bottom: 30px; width: 130px; height: 130px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-head); transform: rotate(-12deg); box-shadow: var(--shadow); }
.hero-badge strong { font-size: 1.5rem; line-height: 1; }
.hero-badge span { font-size: 1.05rem; }
.bubble { position: absolute; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); animation: rise 8s ease-in infinite; }
.b1 { width: 22px; height: 22px; left: 4%; bottom: 20%; }
.b2 { width: 14px; height: 14px; left: 14%; bottom: 8%; animation-delay: 2.5s; }
.b3 { width: 30px; height: 30px; right: 18%; top: 4%; animation-delay: 4s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }

/* ---------- Barevné karty ---------- */
.cards-strip { position: relative; margin-top: -150px; z-index: 2; padding-bottom: 20px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.color-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; padding: 32px 22px 26px; border-radius: var(--radius); min-height: 280px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; overflow: hidden; }
.color-card:hover { color: #fff; transform: translateY(-8px); box-shadow: 0 22px 40px rgba(72,50,144,.25); }
.color-card h2 { color: #fff; font-size: 1.6rem; margin-bottom: .4em; }
.color-card p { font-size: .98rem; margin: 0; opacity: .95; }
.card-ico { margin-top: auto; width: 86px; height: 86px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; transition: transform .3s; }
.card-ico .ico { width: 46px; height: 46px; }
.color-card:hover .card-ico { transform: scale(1.1) rotate(-8deg); }
.c-blue { background: var(--blue); }
.c-green { background: var(--green); }
.c-orange { background: var(--orange); }
.c-magenta { background: var(--magenta); }
.c-teal { background: var(--teal); }
.c-yellow { background: var(--yellow); }

/* ---------- O nás – koláž ---------- */
.collage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.collage-item { margin: 0; position: relative; }
.collage-item img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; }
.ci-1 { grid-column: 1 / 6; margin-top: 0; }
.ci-2 { grid-column: 7 / 12; margin-top: 50px; z-index: 2; }
.ci-3 { grid-column: 4 / 9; margin-top: -30px; }
.cloud-badge { position: absolute; z-index: 2; left: -30px; bottom: -26px; background: var(--blue); color: #fff; font-family: var(--font-hand); font-size: 1.3rem; line-height: 1.1; text-align: center; padding: 22px 26px; border-radius: 60% 40% 55% 45% / 55% 50% 50% 45%; transform: rotate(-10deg); box-shadow: var(--shadow-sm); }
.shape-inline { position: absolute; pointer-events: none; }
.shape-inline.star { width: 60px; height: 60px; background: var(--green); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); left: -10px; top: 40%; animation: spin 20s linear infinite; }
.shape-inline.tri { width: 0; height: 0; border-left: 48px solid var(--magenta); border-top: 30px solid transparent; border-bottom: 30px solid transparent; right: 12%; bottom: -10px; }
.shape-inline.dot { width: 54px; height: 54px; border-radius: 50%; background: var(--red); right: 2%; top: 4%; animation: float 6s ease-in-out infinite; }

/* ---------- Proč k nám ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px; }
.feature { text-align: center; }
.feature h3 { color: var(--blue); margin: 18px 0 10px; }
.feature p { font-size: .98rem; margin: 0; }
.num { display: inline-grid; place-items: center; width: 80px; height: 74px; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: #fff; border-radius: 55% 45% 50% 50% / 60% 55% 45% 40%; transition: transform .3s; }
.feature:hover .num { transform: rotate(-10deg) scale(1.08); }
.n-red { background: var(--red); }
.n-yellow { background: var(--yellow); color: var(--purple-dark); border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%; }
.n-green { background: var(--green); border-radius: 50% 50% 40% 60% / 45% 60% 40% 55%; }
.n-blue { background: var(--blue); border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%; }
.n-teal { background: var(--teal); border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; }
.n-magenta { background: var(--magenta); border-radius: 50% 50% 55% 45% / 50% 60% 40% 50%; }

/* ---------- Fialová sekce se službami ---------- */
.services-purple { background: var(--purple); margin-top: 70px; padding-bottom: 140px; }
.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.2); transition: transform .25s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); }
.sc-img { aspect-ratio: 16/7; overflow: hidden; }
.sc-img img, .sc-img svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.service-card:hover .sc-img img { transform: scale(1.05); }
.sc-body { padding: 28px 30px 32px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.sc-body h3 { color: inherit; font-size: 1.55rem; }
.sc-body p { opacity: .95; }
.sc-body .btn { margin-top: auto; }
.sc-blue { background: var(--blue); }
.sc-yellow { background: var(--yellow); color: var(--purple-dark); }
.sc-orange { background: var(--orange); }
.sc-magenta { background: var(--magenta); }
.sc-badge { position: absolute; right: 22px; top: calc((100% - 0px) * 0 + 20px); width: 92px; height: 92px; display: grid; place-items: center; text-align: center; font-family: var(--font-hand); font-size: 1.25rem; line-height: 1; color: #fff; transform: rotate(-14deg); clip-path: polygon(50% 0%, 61% 9%, 75% 6%, 80% 19%, 94% 25%, 91% 39%, 100% 50%, 91% 61%, 94% 75%, 80% 81%, 75% 94%, 61% 91%, 50% 100%, 39% 91%, 25% 94%, 20% 81%, 6% 75%, 9% 61%, 0% 50%, 9% 39%, 6% 25%, 20% 19%, 25% 6%, 39% 9%); }
.sb-orange { background: var(--orange); }
.sb-magenta { background: var(--magenta); }
.sb-green { background: var(--green); }
.sb-blue { background: var(--blue); }

/* ---------- Citát ---------- */
.quote { padding: 110px 0; text-align: center; overflow: hidden; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.5; color: var(--blue); }
.quote cite { font-family: var(--font-head); font-style: normal; color: var(--teal); font-size: 1.15rem; }
.shape-inline.ring { width: 40px; height: 40px; border-radius: 50%; border: 7px solid var(--teal); left: 8%; top: 25%; animation: float 7s ease-in-out infinite; }
.shape-inline.dot2 { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); left: 16%; top: 45%; animation: float 9s ease-in-out infinite reverse; }
.shape-inline.dot3 { width: 24px; height: 24px; border-radius: 50%; background: var(--magenta); right: 10%; top: 20%; animation: float 5s ease-in-out infinite; }

/* ---------- Novinky + odkazy ---------- */
.info-light { background: var(--light); margin-top: 70px; padding-bottom: 130px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.news-item { background: #fff; border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px; box-shadow: var(--shadow-sm); border-left: 6px solid var(--blue); }
.news-item--alert { border-left-color: var(--orange); }
.news-item time { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--orange); font-weight: 600; }
.news-item h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.news-item--alert h3 { margin-bottom: 0; }
.news-item p { margin: 0; font-size: .98rem; }
.link-list { list-style: none; margin: 0 0 30px; padding: 0; columns: 2; column-gap: 24px; }
.link-list li { break-inside: avoid; margin-bottom: 10px; }
.link-list a { display: flex; gap: 8px; align-items: flex-start; color: var(--purple-dark); font-weight: 600; font-size: .96rem; line-height: 1.4; }
.link-list a .ico { color: var(--orange); margin-top: 2px; }
.link-list a:hover { color: var(--blue); }
h3.sub { margin-top: 10px; }
.video-links { display: flex; flex-wrap: wrap; gap: 14px; }
.video-link { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--purple-dark); font-family: var(--font-head); font-weight: 600; padding: 10px 20px 10px 10px; border-radius: 40px; box-shadow: var(--shadow-sm); transition: transform .2s; }
.video-link:hover { transform: translateY(-3px); color: var(--red); }
.play { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }

/* ---------- Patička ---------- */
.site-footer { position: relative; background: var(--purple); color: rgba(255,255,255,.85); padding-top: 50px; margin-top: 70px; }
.info-light + .site-footer, .cta + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.site-footer h3 { color: #fff; font-size: 1.3rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer a:hover { color: var(--yellow); }
.footer-hours li { display: flex; flex-direction: column; }
.footer-hours strong { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.muted-sm { font-size: .9rem; opacity: .75; margin-top: -8px; }
.logo--footer .logo-name { color: #fff; font-size: 1.6rem; }
.footer-tag { margin: 4px 0 14px; }
.footer-brand address { margin-bottom: 12px; }
.footer-phone { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: #fff !important; }
.footer-mail { color: var(--blue) !important; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .9rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom .container { align-items: center; }
.footer-credits { margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-credits .sep { opacity: .4; }
.footer-credits a { color: #fff; }
.footer-credits a[aria-current="page"] { color: var(--yellow); }
.footer-credits .author { font-weight: 700; color: var(--yellow); }
.footer-credits .author:hover { color: #fff; }
@media (max-width: 680px) { .footer-bottom .container { flex-direction: column; text-align: center; } .footer-credits { margin: 0; justify-content: center; } }
.site-footer .wave--top { top: -69px; }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); color: var(--purple-dark); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s; z-index: 90; }
.to-top .ico { width: 28px; height: 28px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   Podstránky
   ========================================================================== */
.page-hero { position: relative; background: var(--purple); color: #fff; padding: 60px 0 120px; overflow: hidden; text-align: center; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.12rem; color: rgba(255,255,255,.88); }
.page-hero .s-dot { top: 30%; left: 12%; }
.page-hero .s-tri { left: auto; right: 14%; bottom: 40%; }
.breadcrumb { display: inline-flex; gap: 8px; font-size: .95rem; margin-bottom: 14px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); padding: 4px 16px; border-radius: 20px; }
.breadcrumb a { color: var(--yellow); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.split--reverse .split-text { order: 2; }
.split-media { position: relative; display: grid; place-items: center; }
.blob--alt { width: min(420px, 100%); aspect-ratio: 1; border-color: var(--light); box-shadow: var(--shadow); }
.split-media .shape-inline.star { left: 4%; top: 6%; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-weight: 600; color: var(--purple-dark); }
.check-list .ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--green); fill: #fff; }

.stat-bubbles { position: relative; width: min(420px, 100%); aspect-ratio: 1; }
.stat { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; border-radius: 50%; box-shadow: var(--shadow); padding: 16px; line-height: 1.2; }
.stat strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.stat span { font-size: .92rem; margin-top: 6px; }
.sb-1 { width: 58%; height: 58%; left: 0; top: 0; background: var(--blue); }
.sb-2 { width: 46%; height: 46%; right: 0; top: 22%; background: var(--orange); animation: float 7s ease-in-out infinite; }
.sb-3 { width: 48%; height: 48%; left: 6%; bottom: 0; background: var(--magenta); animation: float 8s ease-in-out infinite reverse; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item span { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--purple-dark); font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 4px 14px; border-radius: 20px; }
.gallery-item:hover img { transform: scale(1.08); }

.lightbox { position: fixed; inset: 0; background: rgba(40, 25, 90, .9); display: grid; place-items: center; z-index: 500; padding: 20px; opacity: 0; transition: opacity .25s; cursor: zoom-out; }
.lightbox.show { opacity: 1; }
.lightbox img { max-width: min(900px, 100%); max-height: 85vh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.4); width: auto; }

.cta { background: var(--light); padding: 70px 0 120px; position: relative; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: var(--orange); color: #fff; border-radius: var(--radius-lg); padding: 44px 50px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); right: -60px; top: -90px; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; }
.cta .btn { position: relative; z-index: 1; }

/* Služby */
.pill-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 900px; margin: 0 auto; }
.pill { font-family: var(--font-head); font-weight: 600; color: #fff; padding: 10px 22px; border-radius: 30px; font-size: 1.08rem; box-shadow: var(--shadow-sm); }
.p-blue { background: var(--blue); } .p-green { background: var(--green); } .p-orange { background: var(--orange); }
.p-magenta { background: var(--magenta); } .p-yellow { background: var(--yellow); color: var(--purple-dark); }
.p-teal { background: var(--teal); } .p-red { background: var(--red); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.service-row { display: grid; grid-template-columns: 170px 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 20px); transition: transform .25s; }
.service-row:hover { transform: translateY(-4px); }
.service-row:target { box-shadow: 0 0 0 4px var(--yellow), var(--shadow); }
.sr-media { display: grid; place-items: center; min-height: 170px; }
.sr-media img { width: 100%; height: 100%; object-fit: cover; }
.sr-num { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; color: #fff; }
.sr-body { padding: 24px 26px; }
.sr-body h3 { font-size: 1.3rem; }
.sr-body p { margin: 0; font-size: .97rem; }

.accordion details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
.accordion details[open] { border-color: var(--blue); }
.accordion summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--purple-dark); position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--purple-dark); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.accordion details[open] summary::after { content: "−"; background: var(--blue); color: #fff; }
.accordion details > div { padding: 0 24px 20px; }
.accordion details p { margin: 0; }

/* Ordinační hodiny */
.hours-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.hours-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.hours-card-head { display: flex; gap: 18px; align-items: center; background: var(--blue); color: #fff; padding: 28px 32px; }
.hours-card-head > .ico { width: 56px; height: 56px; }
.hours-card-head h2 { color: #fff; margin: 0; font-size: 1.9rem; }
.open-status--big { font-size: 1rem; color: #fff; font-weight: 600; }
.open-status--big::before { width: 10px; height: 10px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 16px 32px; text-align: left; border-bottom: 1px solid #ece8f7; }
.hours-table th { font-family: var(--font-head); font-weight: 600; color: var(--purple-dark); font-size: 1.12rem; }
.hours-table td { font-weight: 700; color: var(--purple-dark); }
.hours-table td.note { font-weight: 400; color: var(--text); font-size: .95rem; text-align: right; }
.hours-table tr.is-closed td, .hours-table tr.is-closed th { color: #b3abd0; }
.hours-table tr.is-today { background: #fff8cc; }
.hours-table tr.is-today th::after { content: "dnes"; margin-left: 10px; font-family: var(--font-body); font-size: .75rem; background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 10px; vertical-align: middle; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.info-box { border-radius: var(--radius-lg); padding: 28px 30px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.info-box h3 { display: flex; align-items: center; gap: 10px; color: inherit; }
.info-box ul { margin: 0; padding-left: 18px; }
.info-box li { margin-bottom: 8px; }
.info-box p:last-child { margin-bottom: 0; }
.ib-yellow { background: var(--yellow); color: var(--purple-dark); }
.ib-blue { background: var(--purple); color: #fff; }
.big-phone { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 1.7rem; color: var(--yellow); }
.big-phone:hover { color: #fff; }

/* Kontakt */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card { color: #fff; border-radius: var(--radius); padding: 34px 24px 30px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; transition: transform .25s; }
.contact-card:hover { transform: translateY(-6px); }
.contact-card h2 { color: #fff; font-size: 1.5rem; margin: 14px 0 10px; }
.contact-card p { font-size: .98rem; }
.contact-card .btn { margin-top: auto; font-size: .95rem; padding: .75em 1.2em; word-break: break-all; }
.cc-ico { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.cc-ico .ico { width: 36px; height: 36px; }
.cc-blue { background: var(--blue); } .cc-orange { background: var(--orange); } .cc-magenta { background: var(--magenta); } .cc-green { background: var(--green); }
.map-section { padding-top: 20px; }
.map-wrap { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: clamp(340px, 42vw, 520px); background: var(--light); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 30px; }
.map-placeholder > .ico { width: 64px; height: 64px; color: var(--purple); }
.map-placeholder p { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--purple-dark); margin: 0 0 8px; }
.map-placeholder small { opacity: .75; margin-top: 8px; }

/* Mapa stránek */
.sitemap { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sitemap > li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.sitemap-main { display: flex; justify-content: space-between; align-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; padding: 18px 24px; }
.sitemap-main:hover { color: #fff; }
.sitemap-main.c-yellow, .sitemap-main.c-yellow:hover { color: var(--purple-dark); }
.sitemap ul { margin: 0; padding: 16px 24px 20px 44px; }
.sitemap ul li { margin-bottom: 4px; }

/* 404 */
.notfound { text-align: center; padding: 60px 0 120px; }
.notfound .big { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--blue); margin: 0; }
.notfound .big span:nth-child(2) { color: var(--orange); }
.notfound .big span:nth-child(3) { color: var(--magenta); }

/* ---------- Animace při scrollu ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responzivita
   ========================================================================== */
@media (max-width: 1180px) {
    .header-contact .open-status { display: none; }
    .main-nav a { padding: 8px 10px; font-size: 1rem; }
}

@media (max-width: 1024px) {
    :root { --header-h: 76px; }
    .nav-toggle { display: inline-flex; }
    .header-contact { display: none; }
    .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; padding: 30px 20px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto; margin: 0; }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .main-nav ul { flex-direction: column; gap: 6px; }
    .main-nav a { font-size: 1.4rem; padding: 14px 18px; text-align: center; }
    .main-nav a.active { background: var(--light); }
    .main-nav a.active::after { display: none; }
    .main-nav .nav-phone--mobile { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; background: var(--yellow); color: var(--purple-dark); padding: 14px; border-radius: 14px; }
    body.nav-open { overflow: hidden; }

    .hero-inner, .split { grid-template-columns: 1fr; }
    .hero { padding-top: 50px; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-visual { width: min(360px, 90%); }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .split--reverse .split-text { order: 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .service-list { grid-template-columns: 1fr; }
    .hours-layout { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .logo-img { height: 40px; }
    .logo-name { font-size: 1.2rem; }
    .logo-tag { font-size: .82rem; }
    .hero { padding-bottom: 120px; }
    .cards-strip { margin-top: -80px; }
    .hero .s-dot, .hero .s-tri { display: none; }
    .cards-grid, .features-grid, .service-cards, .contact-cards, .sitemap { grid-template-columns: 1fr; }
    .color-card { min-height: 0; flex-direction: row; text-align: left; gap: 16px; padding: 22px; }
    .color-card h2 { font-size: 1.35rem; margin-bottom: .2em; }
    .color-card > div { flex: 1; }
    .card-ico { margin: 0 0 0 auto; width: 64px; height: 64px; order: 3; }
    .card-ico .ico { width: 32px; height: 32px; }
    .collage { grid-template-columns: 1fr; gap: 20px; }
    .ci-1, .ci-2, .ci-3 { grid-column: auto; margin: 0; }
    .cloud-badge { left: auto; right: 10px; bottom: -18px; font-size: 1.1rem; padding: 16px 20px; }
    .link-list { columns: 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr; }
    .sr-media { min-height: 140px; aspect-ratio: 16/8; }
    .hours-table th, .hours-table td { padding: 14px 16px; }
    .hours-card-head { padding: 22px; }
    .cta-inner { padding: 32px 26px; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-badge { width: 104px; height: 104px; right: -4px; }
    .hero-badge strong { font-size: 1.2rem; }
    .hero-badge span { font-size: .9rem; }
    .btn { font-size: 1rem; }
}

/* ---------- Doplňky – obsah z ivandrnek.cz ---------- */
.footer-phone--sm { font-size: 1.05rem; margin-bottom: 6px; }
.footer-phone--sm small { font-family: var(--font-body); font-weight: 400; font-size: .8rem; opacity: .75; }
.cta-phones { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: relative; z-index: 1; }
.cta-alt { color: #fff; font-weight: 600; font-size: .95rem; }
.cta-alt:hover { color: var(--yellow); }

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.timeline li { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm); }
.timeline p { margin: 0; color: var(--purple-dark); font-weight: 600; line-height: 1.45; font-size: .98rem; }
.tl-year { flex-shrink: 0; min-width: 96px; text-align: center; font-family: var(--font-head); font-weight: 600; color: #fff; padding: 8px 10px; border-radius: 12px; font-size: 1rem; }
.tl-0 .tl-year { background: var(--blue); } .tl-1 .tl-year { background: var(--green); } .tl-2 .tl-year { background: var(--orange); }
.tl-3 .tl-year { background: var(--magenta); } .tl-4 .tl-year { background: var(--teal); }

.order-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.order-box { background: var(--purple); color: rgba(255,255,255,.9); border-radius: var(--radius-lg); padding: 32px 34px; box-shadow: var(--shadow); }
.ordinacni-hodiny .order-box, .page-ordinacni-hodiny .order-box { margin-top: 36px; }
.order-box h3 { color: #fff; display: flex; gap: 10px; align-items: center; font-size: 1.5rem; }
.order-box h3 .ico { color: var(--yellow); }
.order-phones { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order-phones li { background: rgba(255,255,255,.1); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; }
.order-phones span { font-size: .9rem; }
.order-phones a { font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; color: var(--yellow); }
.order-phones a:hover { color: #fff; }
.order-phones small { font-size: .8rem; opacity: .75; }
.order-note { font-size: .93rem; opacity: .85; margin: 0; }
.insurers { background: #fff; border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.insurers ul { list-style: none; margin: 0; padding: 0; }
.insurers li { display: flex; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid #ece8f7; font-size: .97rem; line-height: 1.4; }
.insurers li:last-child { border-bottom: 0; }
.ins-code { flex-shrink: 0; width: 52px; text-align: center; font-family: var(--font-head); font-weight: 600; background: var(--light); color: var(--blue); border-radius: 10px; padding: 4px 0; }
.insurers strong { color: var(--purple-dark); }

.partner { display: flex; gap: 18px; align-items: center; max-width: 900px; margin: 44px auto 0; background: var(--light); border-radius: var(--radius); padding: 22px 26px; }
.partner > .ico { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--blue); fill: #fff; }
.partner p { margin: 0; }
.patient-info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ib-plain { background: #fff; border: 2px solid var(--light); }
.ib-plain h3 { color: var(--purple-dark); }
.ib-red { background: #fff0f0; color: #b03030; border-left: 6px solid var(--red); font-weight: 600; font-size: .96rem; }
.price-card { background: #fff; border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow); margin-bottom: 24px; border-top: 6px solid var(--orange); }
.price-card .muted { font-size: .9rem; opacity: .85; }
.price-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.price-table th, .price-table td { padding: 11px 0; border-bottom: 1px dashed #d9d3ee; text-align: left; vertical-align: top; }
.price-table th { font-weight: 600; color: var(--purple-dark); }
.price-table th small { font-weight: 400; color: var(--text); }
.price-table td { text-align: right; font-family: var(--font-head); font-weight: 600; color: var(--orange); white-space: nowrap; padding-left: 14px; }
.first-visit h3 .ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--purple); fill: #fff; }
.cc-link { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.cc-link:hover { color: var(--yellow); }
.entrance { padding-bottom: 40px; }

@media (max-width: 1024px) {
    .order-layout, .patient-info { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .timeline { grid-template-columns: 1fr; }
    .order-phones { grid-template-columns: 1fr; }
    .order-box, .insurers, .price-card { padding: 24px 20px; }
    .cta-phones { align-items: flex-start; }
    .partner { flex-direction: column; text-align: center; }
}
.gallery-item img[src*="vysetreni2"], .sr-media img[src*="vysetreni2"] { object-position: 50% 28%; }
.sr-media img[src*="pristroj1"] { object-position: 35% 50%; }
.sr-media img[src*="oscilometrie"] { object-position: 62% 40%; }
.sr-media img[src*="prick"] { object-position: 58% 50%; }

/* ---------- Právní stránky (GDPR) ---------- */
.legal h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.legal h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; color: var(--blue); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal li::marker { color: var(--orange); }
.legal .lead { font-size: 1.08rem; }
.legal-card { background: var(--light); border-left: 6px solid var(--blue); border-radius: var(--radius); padding: 20px 24px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal .note { background: #fff8cc; border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.legal-date { margin-top: 2.5em; font-size: .9rem; opacity: .8; }
