/*
Theme Name: BiBouch
Theme URI: https://bibouch.cz
Author: Dětská skupina BiBouch
Description: Hravá, rychlá a přístupná šablona na míru pro Dětskou skupinu BiBouch v Lokti. Vlastní kód, žádné page buildery, self-hostované fonty, plně responzivní.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bibouch
Tags: education, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar
*/

/* =========================================================
   1. Fonty (self-hosted, bez volání na Google)
   ========================================================= */
@font-face {
	font-family: 'Fredoka';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/fredoka-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Fredoka';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/fredoka-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Nunito';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('assets/fonts/nunito-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Nunito';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('assets/fonts/nunito-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   2. Tokeny
   ========================================================= */
:root {
	--c-sky: #2FAEE0;
	--c-sky-dark: #17789F;
	--c-sky-soft: #DDF2FB;
	--c-sun: #FFC844;
	--c-sun-soft: #FFF3D3;
	--c-orange: #F2801F;
	--c-orange-soft: #FFE7D3;
	--c-mint: #45BFAE;
	--c-mint-soft: #DCF3EF;
	--c-berry: #E4607B;
	--c-berry-soft: #FCE1E7;
	--c-plum: #8E6BC4;
	--c-plum-soft: #EDE5FA;

	--c-ink: #21313F;
	--c-muted: #566876;
	--c-line: #E7E1D6;
	--c-cream: #FFFBF3;
	--c-paper: #FFFFFF;

	--f-head: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
	--f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--r-sm: 12px;
	--r-md: 20px;
	--r-lg: 30px;
	--r-xl: 42px;

	--sh-sm: 0 3px 10px rgba(33, 49, 63, .07);
	--sh-md: 0 10px 28px rgba(33, 49, 63, .10);
	--sh-lg: 0 20px 50px rgba(33, 49, 63, .13);

	--wrap: 1180px;
	--wrap-narrow: 820px;
	--gap: clamp(1.25rem, 3vw, 2.25rem);
	--section-y: clamp(3rem, 7vw, 5.5rem);
}

/* =========================================================
   3. Reset a základ
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: clamp(1.02rem, .35vw + .95rem, 1.14rem);
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	font-weight: 600;
	line-height: 1.15;
	color: var(--c-ink);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: clamp(1.12rem, 1.4vw, 1.3rem); }

p, ul, ol, dl, table, blockquote, figure, pre { margin: 0 0 1.15em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--c-sky-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover, a:focus { color: var(--c-orange); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--c-orange);
	outline-offset: 3px;
	border-radius: 6px;
}

hr { border: 0; height: 3px; background: var(--c-line); border-radius: 3px; margin: 2.2em 0; }

strong, b { font-weight: 800; }

blockquote {
	background: var(--c-sky-soft);
	border-left: 6px solid var(--c-sky);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	padding: 1.1em 1.4em;
	font-size: 1.05em;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: .7em .9em; border-bottom: 2px solid var(--c-line); text-align: left; }
th { font-family: var(--f-head); font-weight: 600; background: var(--c-sun-soft); }

code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }

/* Pomocné */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--c-ink); color: #fff; padding: .8em 1.2em;
	border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* Potomci mřížek se smí zmenšit – jinak dlouhý nezalomitelný obsah rozšíří stránku. */
.hero-grid > *,
.grid > *,
.split > *,
.days > *,
.team > *,
.contact-grid > *,
.content-layout > * { min-width: 0; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--c-cream); }
.section--paper { background: var(--c-paper); }
.section--sky { background: var(--c-sky-soft); }
.section--sun { background: var(--c-sun-soft); }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--c-muted); font-size: 1.06em; }
.eyebrow {
	display: inline-block;
	font-family: var(--f-head);
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--c-orange);
	background: var(--c-orange-soft);
	padding: .35em 1em;
	border-radius: 999px;
	margin-bottom: .9rem;
}

/* Tlačítka */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	font-family: var(--f-head); font-weight: 600;
	font-size: 1.02rem;
	padding: .78em 1.6em;
	border-radius: 999px;
	border: 3px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
	line-height: 1.2;
	white-space: nowrap;
}
.btn:hover, .btn:focus { transform: translateY(-2px); }
.btn--primary { background: var(--c-orange); color: #fff; box-shadow: 0 6px 0 #C7620F; }
.btn--primary:hover, .btn--primary:focus { background: #E4770F; color: #fff; box-shadow: 0 8px 0 #C7620F; }
.btn--sky { background: var(--c-sky); color: #fff; box-shadow: 0 6px 0 var(--c-sky-dark); }
.btn--sky:hover, .btn--sky:focus { background: #22A0D4; color: #fff; box-shadow: 0 8px 0 var(--c-sky-dark); }
.btn--ghost { background: #fff; color: var(--c-ink); border-color: var(--c-ink); box-shadow: 0 6px 0 rgba(33,49,63,.18); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--c-sun); color: var(--c-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; max-width: 100%; }
@media (max-width: 480px) {
	.btn { white-space: normal; text-align: center; }
	.btn-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* Vlnky */
.wave { display: block; width: 100%; height: clamp(38px, 5vw, 70px); }
.wave svg { display: block; width: 100%; height: 100%; }
.wave--in { position: absolute; left: 0; right: 0; bottom: -1px; }
.wave--cream { background: var(--c-cream); }

/* =========================================================
   4. Hlavička
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 60;
	/* Pozor: žádný backdrop-filter ani transform – vytvořily by pozicovací
	   kontejner a vysouvací menu (position: fixed) by se zavřelo do lišty. */
	background: #fff;
	border-bottom: 3px solid var(--c-sky-soft);
	box-shadow: 0 2px 12px rgba(33, 49, 63, .05);
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; padding-block: .6rem;
}
.site-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.site-brand img { width: auto; height: clamp(52px, 5vw, 72px); }
.site-brand .brand-text { font-family: var(--f-head); font-weight: 600; font-size: 1.3rem; color: var(--c-ink); line-height: 1.1; }
.site-brand .brand-text span { display: block; font-family: var(--f-body); font-size: .78rem; font-weight: 700; color: var(--c-orange); letter-spacing: .06em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.header-phone {
	display: inline-flex; align-items: center; gap: .45em;
	font-family: var(--f-head); font-weight: 600; text-decoration: none;
	color: var(--c-ink); white-space: nowrap;
}
.header-phone svg { width: 20px; height: 20px; fill: var(--c-orange); flex: none; }

.nav-toggle {
	display: none;
	background: var(--c-sky); border: 0; color: #fff;
	width: 48px; height: 48px; border-radius: 14px;
	align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hlavní navigace */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: .55em .78em;
	font-family: var(--f-head); font-weight: 500; font-size: .98rem;
	color: var(--c-ink); text-decoration: none; border-radius: 999px;
	white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus { background: var(--c-sun-soft); color: var(--c-ink); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_ancestor > a { background: var(--c-sky); color: #fff; }

.main-nav .menu-item-has-children > a { padding-right: 1.5em; }
.main-nav .menu-item-has-children > a::after {
	content: ""; position: absolute; right: .6em; top: 50%;
	width: 7px; height: 7px; margin-top: -5px;
	border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
	transform: rotate(45deg);
}
.main-nav ul ul {
	position: absolute; top: calc(100% + .35rem); left: 0; min-width: 15rem;
	flex-direction: column; gap: 0;
	background: #fff; border: 3px solid var(--c-sky-soft);
	border-radius: var(--r-md); padding: .4rem;
	box-shadow: var(--sh-md);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav ul ul a { white-space: normal; border-radius: var(--r-sm); }

.nav-close { display: none; }

@media (max-width: 1240px) {
	.nav-toggle { display: inline-flex; }
	.header-phone .label { display: none; }
	.main-nav {
		position: fixed; inset: 0 0 0 auto; width: min(88vw, 400px);
		background: #fff; padding: 5.2rem 1.2rem 2rem; overflow-y: auto;
		overscroll-behavior: contain;
		box-shadow: var(--sh-lg);
		transform: translateX(100%); transition: transform .28s ease;
		z-index: 70;
	}
	/* Vlastní křížek v panelu – hlavičkové tlačítko není při zamčeném
	   rolování vždy vidět, tohle je vždy po ruce. */
	.nav-close {
		display: grid; place-items: center;
		position: absolute; top: 1.05rem; right: 1.2rem;
		width: 48px; height: 48px; border: 0; border-radius: 14px;
		background: var(--c-sky-soft); color: var(--c-sky-dark); cursor: pointer;
	}
	.nav-close svg { width: 26px; height: 26px; fill: currentColor; }
	.nav-close:hover { background: var(--c-sky); color: #fff; }
	.main-nav.is-open { transform: none; }
	.main-nav ul { flex-direction: column; gap: .2rem; }
	.main-nav a { font-size: 1.06rem; padding: .7em .9em; border-radius: var(--r-sm); }
	.main-nav ul ul {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-left: 3px solid var(--c-sky-soft);
		border-radius: 0; margin-left: .9rem; padding: 0 0 0 .4rem;
	}
	.main-nav .menu-item-has-children > a::after { display: none; }
	.nav-toggle { position: relative; z-index: 80; }
	body.nav-open { overflow: hidden; }
	body.nav-open::after {
		content: ""; position: fixed; inset: 0; background: rgba(33,49,63,.45); z-index: 65;
	}
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
	position: relative;
	background:
		radial-gradient(60rem 30rem at 15% -10%, var(--c-sun-soft), transparent 60%),
		radial-gradient(50rem 28rem at 92% 8%, var(--c-berry-soft), transparent 62%),
		var(--c-sky-soft);
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(5rem, 9vw, 7.5rem);
	overflow: hidden;
	position: relative;
}
.hero-grid {
	display: grid; gap: clamp(2rem, 5vw, 3.5rem);
	grid-template-columns: 1fr;
	align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--c-sky-dark); display: block; }
.hero .lead { font-size: clamp(1.1rem, 1.3vw, 1.28rem); color: var(--c-muted); max-width: 34rem; }
.hero .btn-row { margin-top: 1.8rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.hero-badges span {
	display: inline-flex; align-items: center; gap: .45em;
	background: #fff; border: 3px solid #fff;
	box-shadow: var(--sh-sm);
	border-radius: 999px; padding: .42em 1em;
	font-family: var(--f-head); font-weight: 500; font-size: .95rem;
}
.hero-badges svg { width: 19px; height: 19px; flex: none; }

.hero-art { position: relative; }
.hero-art .blob {
	position: relative;
	border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
	overflow: hidden;
	border: 10px solid #fff;
	box-shadow: var(--sh-lg);
	aspect-ratio: 4 / 3;
	background: #fff;
}
.hero-art .blob img { width: 100%; height: 100%; object-fit: contain; }
.hero-art .blob.has-photo img { object-fit: cover; }
.hero-art .float {
	position: absolute; background: #fff; border-radius: var(--r-md);
	box-shadow: var(--sh-md); padding: .7em 1em;
	font-family: var(--f-head); font-weight: 600; font-size: .92rem; line-height: 1.25;
	display: flex; align-items: center; gap: .55em;
}
.hero-art .float small { display: block; font-family: var(--f-body); font-weight: 700; color: var(--c-muted); font-size: .78rem; }
.hero-art .float svg { width: 26px; height: 26px; flex: none; }
.hero-art .float--tl { top: 4%; left: -4%; }
.hero-art .float--br { bottom: 4%; right: -3%; }
@media (max-width: 600px) {
	.hero-art .float--tl { left: 0; top: 0; }
	.hero-art .float--br { right: 0; bottom: 0; }
	.hero-art .float { font-size: .82rem; padding: .55em .8em; }
}

/* =========================================================
   6. Karty a mřížky
   ========================================================= */
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 620px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 940px) {
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
	background: #fff;
	border-radius: var(--r-lg);
	padding: clamp(1.4rem, 2.4vw, 2rem);
	box-shadow: var(--sh-sm);
	border: 3px solid #fff;
	transition: transform .2s ease, box-shadow .2s ease;
	height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--c-muted); margin-bottom: 0; }

.card-icon {
	width: 62px; height: 62px; border-radius: 20px;
	display: grid; place-items: center; margin-bottom: 1rem;
}
.card-icon svg { width: 32px; height: 32px; }

.tint-sky   { background: var(--c-sky-soft); }
.tint-sun   { background: var(--c-sun-soft); }
.tint-orange{ background: var(--c-orange-soft); }
.tint-mint  { background: var(--c-mint-soft); }
.tint-berry { background: var(--c-berry-soft); }
.tint-plum  { background: var(--c-plum-soft); }

.ico-sky   { fill: var(--c-sky-dark); }
.ico-sun   { fill: #C99000; }
.ico-orange{ fill: var(--c-orange); }
.ico-mint  { fill: #23907F; }
.ico-berry { fill: var(--c-berry); }
.ico-plum  { fill: var(--c-plum); }

/* Fakta */
.fact {
	background: #fff; border-radius: var(--r-lg);
	padding: 1.5rem 1.2rem; text-align: center;
	box-shadow: var(--sh-sm);
	border-bottom: 6px solid var(--c-sky);
}
.fact:nth-child(2) { border-bottom-color: var(--c-sun); }
.fact:nth-child(3) { border-bottom-color: var(--c-orange); }
.fact:nth-child(4) { border-bottom-color: var(--c-mint); }
.fact .num { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--c-ink); display: block; line-height: 1.1; }
.fact .lbl { color: var(--c-muted); font-size: .96rem; }

/* Dvousloupec text + obrázek */
.split { display: grid; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split-media { order: 2; } }
.split-media img { border-radius: var(--r-xl); box-shadow: var(--sh-md); width: 100%; }
.split-media { position: relative; }
.split-media::before {
	content: ""; position: absolute; inset: auto -14px -14px auto;
	width: 55%; height: 55%; border-radius: var(--r-xl);
	background: repeating-linear-gradient(45deg, var(--c-sun) 0 6px, transparent 6px 12px);
	opacity: .35; z-index: -1;
}

/* Tematické dny */
.days { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.day {
	border-radius: var(--r-lg); padding: 1.4rem 1.1rem; text-align: center;
	box-shadow: var(--sh-sm);
}
.day .dow { font-family: var(--f-head); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.day .what { font-family: var(--f-head); font-weight: 600; font-size: 1.16rem; margin-top: .25rem; display: block; }
.day svg { width: 40px; height: 40px; margin: 0 auto .6rem; display: block; }

/* Denní režim – timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 44rem; margin-inline: auto; }
.timeline::before {
	content: ""; position: absolute; left: calc(7.6rem + 12px); top: .6rem; bottom: .6rem; width: 4px;
	background: repeating-linear-gradient(to bottom, var(--c-sky) 0 10px, transparent 10px 20px);
	border-radius: 4px;
}
.timeline li { display: grid; grid-template-columns: 6.6rem auto 1fr; gap: 1rem; align-items: start; padding-block: .55rem; }
.timeline .t {
	font-family: var(--f-head); font-weight: 600; text-align: right; color: var(--c-sky-dark);
	font-size: 1rem; padding-top: .15rem; white-space: nowrap;
}
.timeline .dot {
	width: 18px; height: 18px; border-radius: 50%; background: var(--c-sun);
	border: 4px solid #fff; box-shadow: 0 0 0 3px var(--c-sky); margin-top: .45rem; margin-left: .3rem;
}
.timeline .txt { font-weight: 700; }
@media (max-width: 620px) {
	.timeline::before { display: none; }
	.timeline li { grid-template-columns: 1fr; gap: 0; padding-block: .5rem; border-bottom: 2px dashed var(--c-line); }
	.timeline .t { text-align: left; }
	.timeline .dot { display: none; }
}

/* Ceník */
.price-group { background: #fff; border-radius: var(--r-lg); padding: clamp(1.4rem, 2.5vw, 2rem); box-shadow: var(--sh-sm); }
.price-group h3 { display: flex; align-items: center; gap: .5em; }
.price-group .note { color: var(--c-muted); font-size: .95rem; }
.price-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.price-list li {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
	padding: .6em 0; border-bottom: 2px dashed var(--c-line);
}
.price-list li:last-child { border-bottom: 0; }
.price-list .days-count { font-weight: 700; }
.price-list .amount { font-family: var(--f-head); font-weight: 600; font-size: 1.22rem; color: var(--c-orange); white-space: nowrap; }

/* Galerie */
.gallery-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 940px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-grid a { display: block; position: relative; }
.gallery-grid a::after {
	content: ""; position: absolute; inset: 0; border-radius: var(--r-md);
	background: rgba(33, 49, 63, 0); transition: background-color .2s ease;
}
.gallery-grid a:hover::after, .gallery-grid a:focus-visible::after { background: rgba(33, 49, 63, .18); }
.gallery-grid a, .gallery-grid figure { margin: 0; }
.gallery-grid img,
.wp-block-gallery img,
.gallery img {
	width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
	border-radius: var(--r-md); box-shadow: var(--sh-sm);
	transition: transform .22s ease, box-shadow .22s ease;
	background: var(--c-sky-soft);
}
.gallery-grid a:hover img { transform: scale(1.03) rotate(-1deg); box-shadow: var(--sh-md); }

/* Nativní WP galerie */
.entry-content .gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); margin: 1.6em 0; }
.entry-content .gallery br { display: none; }
.entry-content .gallery-item { margin: 0 !important; width: auto !important; float: none !important; }
.entry-content .gallery-icon { margin: 0; }
.entry-content .gallery-caption { font-size: .85rem; color: var(--c-muted); }

/* Aktuality */
.post-card {
	background: #fff; border-radius: var(--r-lg); overflow: hidden;
	box-shadow: var(--sh-sm); display: flex; flex-direction: column; height: 100%;
	transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-sky-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.post-card .body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card time { font-size: .86rem; color: var(--c-muted); font-weight: 700; }
.post-card h3 { font-size: 1.22rem; margin: 0; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--c-orange); }
.post-card .more { margin-top: auto; font-family: var(--f-head); font-weight: 600; color: var(--c-sky-dark); text-decoration: none; }

/* CTA pruh */
.cta-band {
	background: linear-gradient(120deg, var(--c-sky) 0%, var(--c-mint) 100%);
	color: #fff; border-radius: var(--r-xl);
	padding: clamp(2rem, 4.5vw, 3.4rem);
	text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.94); max-width: 40rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.7rem; }
.cta-band::before, .cta-band::after {
	content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.13);
}
.cta-band::before { width: 16rem; height: 16rem; top: -6rem; left: -5rem; }
.cta-band::after { width: 11rem; height: 11rem; bottom: -4rem; right: -3rem; }

/* Kontakt */
.contact-grid { display: grid; gap: var(--gap); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--f-head); font-weight: 600; }
.contact-list a { color: var(--c-ink); }
.map-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); border: 4px solid #fff; }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

.socials { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.socials a {
	width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
	background: var(--c-ink); color: #fff; transition: transform .18s ease, background-color .18s ease;
}
.socials a:hover { transform: translateY(-3px); background: var(--c-orange); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

/* Hodnocení rodičů */
.review {
	margin: 0; background: #fff; border-radius: var(--r-lg);
	padding: clamp(1.4rem, 2.4vw, 2rem); box-shadow: var(--sh-sm);
	display: flex; flex-direction: column; gap: .7rem; position: relative; height: 100%;
}
.review-mark {
	position: absolute; top: -.15em; right: .5rem;
	font-family: var(--f-head); font-weight: 700; font-size: 5rem;
	color: var(--c-sky-soft); line-height: 1; pointer-events: none;
}
.review-stars { display: flex; gap: .15rem; }
.review-stars svg { width: 20px; height: 20px; }
.review-rec {
	display: inline-flex; align-items: center; gap: .4em; align-self: flex-start;
	background: var(--c-mint-soft); color: #1B7A6C;
	border-radius: 999px; padding: .3em .9em;
	font-family: var(--f-head); font-weight: 600; font-size: .86rem;
}
.review-rec svg { width: 17px; height: 17px; }
.review blockquote {
	margin: 0; background: none; border: 0; padding: 0;
	font-size: 1.02em; color: var(--c-ink); position: relative; z-index: 1;
}
.review figcaption { margin-top: auto; padding-top: .5rem; }
.review figcaption strong { display: block; font-family: var(--f-head); font-weight: 600; }
.review figcaption span { font-size: .88rem; color: var(--c-muted); font-weight: 700; }

/* Náš tým */
.team {
	display: grid; gap: clamp(1.2rem, 2.5vw, 2rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	justify-items: center;
	margin: 2rem auto;
}
.team-card {
	margin: 0; text-align: center; max-width: 20rem;
	display: flex; flex-direction: column; align-items: center;
}
.team-photo {
	display: block; width: clamp(9rem, 22vw, 12.5rem); aspect-ratio: 1 / 1;
	border-radius: 50%; overflow: hidden;
	border: 6px solid #fff; box-shadow: var(--sh-md);
	transition: transform .2s ease, box-shadow .2s ease;
	position: relative;
}
a.team-photo:hover, a.team-photo:focus-visible { transform: translateY(-4px) rotate(-2deg); box-shadow: var(--sh-lg); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo--empty {
	display: grid; place-items: center;
	font-family: var(--f-head); font-weight: 600;
	font-size: clamp(3rem, 8vw, 4.4rem); color: var(--c-ink); opacity: .55;
}
.team-card figcaption { margin-top: 1rem; }
.team-card strong { display: block; font-family: var(--f-head); font-weight: 600; font-size: 1.32rem; }
.team-card .team-role {
	display: inline-block; margin-top: .25rem;
	font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: var(--c-orange);
}
.team-card p { margin-top: .6rem; color: var(--c-muted); font-size: .98rem; }

/* Dokumenty */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.doc-list a {
	display: flex; align-items: center; gap: .9rem;
	background: #fff; border: 3px solid var(--c-sky-soft); border-radius: var(--r-md);
	padding: .9em 1.1em; text-decoration: none; color: var(--c-ink); font-weight: 700;
	transition: border-color .18s ease, transform .18s ease;
}
.doc-list a:hover { border-color: var(--c-orange); transform: translateX(4px); color: var(--c-ink); }
.doc-list svg { width: 26px; height: 26px; fill: var(--c-orange); flex: none; }

/* =========================================================
   7. Stránky a příspěvky
   ========================================================= */
.page-hero {
	background:
		radial-gradient(40rem 22rem at 12% 0%, var(--c-sun-soft), transparent 60%),
		var(--c-sky-soft);
	padding-block: clamp(2.2rem, 5vw, 3.6rem) clamp(4rem, 8vw, 6rem);
	text-align: center;
	position: relative;
}
.page-hero h1 { margin-bottom: .25em; }
.page-hero p { color: var(--c-muted); max-width: 44rem; margin-inline: auto; }

.breadcrumbs { font-size: .9rem; color: var(--c-muted); margin-bottom: .9rem; }
.breadcrumbs a { color: var(--c-sky-dark); }
.breadcrumbs .sep { margin-inline: .4em; opacity: .6; }

.content-area { padding-block: clamp(2.4rem, 5vw, 4rem); }
.content-layout { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 1000px) { .content-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 20rem; } }

.entry-content {
	background: #fff;
	border-radius: var(--r-xl);
	padding: clamp(1.5rem, 4vw, 3rem);
	box-shadow: var(--sh-sm);
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content ol { padding-left: 1.3em; }
.entry-content ul:not([class]) { list-style: none; padding-left: 0; }
.entry-content ul:not([class]) > li {
	position: relative; padding-left: 1.9em; margin-bottom: .5em;
}
.entry-content ul:not([class]) > li::before {
	content: ""; position: absolute; left: 0; top: .58em;
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--c-sun); box-shadow: 0 0 0 3px var(--c-sun-soft);
}
.entry-content ol li { margin-bottom: .5em; }
.entry-content ol li::marker { font-family: var(--f-head); font-weight: 600; color: var(--c-orange); }
.entry-content img { border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: .88rem; color: var(--c-muted); text-align: center; margin-top: .5em; }
.entry-content a[href$=".pdf"] { font-weight: 700; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: min(45%, 340px); }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: min(45%, 340px); }
.entry-content .aligncenter { margin-inline: auto; }
@media (max-width: 600px) {
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em auto; max-width: 100%; }
}
.entry-content::after { content: ""; display: table; clear: both; }

/* Zvýrazněný box uvnitř obsahu */
.entry-content .box-info,
.entry-content .box-tip {
	background: var(--c-sky-soft); border-radius: var(--r-md);
	padding: 1.1em 1.3em; margin: 1.5em 0; border-left: 6px solid var(--c-sky);
}
.entry-content .box-tip { background: var(--c-sun-soft); border-left-color: var(--c-sun); }

.entry-meta { color: var(--c-muted); font-size: .92rem; font-weight: 700; margin-bottom: 1rem; }

.entry-content .lead-text {
	font-size: 1.14em; color: var(--c-muted); line-height: 1.6;
	border-left: 6px solid var(--c-sun); padding-left: 1.1em; margin-bottom: 1.6em;
}
.entry-content h2 + .lead-text { margin-top: .6em; }

.post-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 2rem; }
.post-nav a { font-family: var(--f-head); font-weight: 600; text-decoration: none; }

.pagination { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 46px; height: 46px; padding-inline: .6em;
	border-radius: 14px; background: #fff; box-shadow: var(--sh-sm);
	font-family: var(--f-head); font-weight: 600; text-decoration: none; color: var(--c-ink);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--c-sky); color: #fff; }

/* Sidebar */
.widget-area { display: grid; gap: 1.4rem; align-content: start; }
.widget {
	background: #fff; border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--sh-sm);
}
.widget-title { font-size: 1.16rem; margin-bottom: .8rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .35em 0; border-bottom: 2px dashed var(--c-line); }
.widget li:last-child { border-bottom: 0; }

/* Formuláře */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], textarea, select {
	width: 100%; font: inherit; padding: .7em 1em;
	border: 3px solid var(--c-line); border-radius: var(--r-sm);
	background: #fff; color: var(--c-ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--c-sky); }
.search-form { display: flex; gap: .5rem; }
.search-form input { flex: 1; }
.search-form button { border: 0; }

/* 404 */
.err-404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.err-404 .big { font-family: var(--f-head); font-weight: 600; font-size: clamp(5rem, 18vw, 11rem); line-height: .9; color: var(--c-sky); }

/* =========================================================
   8. Patička
   ========================================================= */
.site-footer { background: var(--c-ink); color: #DCE5EC; margin-top: auto; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-sun); }
.footer-top { padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.footer-grid h3 { color: #fff; font-size: 1.15rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-grid a { text-decoration: none; }
.footer-logo img { max-height: 92px; width: auto; background: #fff; border-radius: var(--r-md); padding: .5rem; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.14);
	padding-block: 1.2rem; font-size: .9rem;
	display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
	color: #A9BAC7;
}

/* Nahoru */
.to-top {
	position: fixed; right: 1rem; bottom: 1rem; z-index: 55;
	width: 50px; height: 50px; border-radius: 50%; border: 0;
	background: var(--c-orange); color: #fff; cursor: pointer;
	display: grid; place-items: center;
	box-shadow: var(--sh-md);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 24px; height: 24px; fill: currentColor; }

/* =========================================================
   9. Lightbox
   ========================================================= */
.bb-lightbox {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(20, 30, 40, .92);
	display: none; align-items: center; justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
}
.bb-lightbox.is-open { display: flex; }
.bb-lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.bb-lightbox .lb-btn {
	position: absolute; background: #fff; border: 0; cursor: pointer;
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
	box-shadow: var(--sh-md);
}
.bb-lightbox .lb-btn svg { width: 26px; height: 26px; fill: var(--c-ink); }
.bb-lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.bb-lightbox .lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.bb-lightbox .lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.bb-lightbox .lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--f-head); }
@media (max-width: 560px) {
	.bb-lightbox .lb-prev { left: .4rem; }
	.bb-lightbox .lb-next { right: .4rem; }
}

/* =========================================================
   10. Layout stránky
   ========================================================= */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* Drobnosti */
@media (max-width: 1240px) { .hide-sm { display: none !important; } }

/* Vnořené bloky uvnitř obsahu si nesou vlastní styl */
.entry-content .timeline,
.entry-content .days,
.entry-content .price-list,
.entry-content .doc-list,
.entry-content .contact-list,
.entry-content .gallery-grid { margin-block: 1.6em; }
.entry-content .grid { margin-block: 1.6em; }
.entry-content .map-frame { margin-block: 1.6em; }

/* Tisk */
@media print {
	.site-header, .site-footer, .to-top, .hero-art, .cta-band { display: none !important; }
	body { background: #fff; }
	.entry-content { box-shadow: none; padding: 0; }
}
