/* =============================================================================
   Studny Vetešník – hlavní styly (mobile-first)
   Vzhled 1:1 podle původního webu (Betheme, 2020–2026): průhledná tmavá hlavička
   přes fotku, Exo / Montserrat Light / Roboto, modrá #7eafff, nadpisy #093a8b.
   ============================================================================= */

/* ---------- Písma (lokálně, latin + latin-ext) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-400-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: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-700-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: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-300-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-300-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: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-400-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: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700-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: "Exo"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/exo-300-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Exo"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/exo-300-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: "Exo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/exo-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Exo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/exo-400-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; }

/* ---------- Proměnné ---------- */
:root {
	--sv-blue: #7eafff;
	--sv-blue-hover: #3f89ff;
	--sv-link: #005df6;
	--sv-topbar-link: #0095eb;
	--sv-navy: #093a8b;
	--sv-title-blue: #5490f4;
	--sv-text: #303030;
	--sv-footer: #36393e;
	--sv-page: #fcfcfc;
	--sv-gutter: 16px;
	--sv-wide: 1180px;
	--sv-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--sv-font-head: "Montserrat", "Roboto", system-ui, sans-serif;
	--sv-font-exo: "Exo", "Montserrat", system-ui, sans-serif;
	--sv-texture: url("../img/texture-dark.png");

	/* Ikony karet služeb (dříve ikonový font Betheme) */
	--sv-i-water: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2.5S3.8 6.3 3.8 8.4a3.2 3.2 0 0 0 6.4 0C10.2 6.3 7 2.5 7 2.5zM17 2.5s-3.2 3.8-3.2 5.9a3.2 3.2 0 0 0 6.4 0c0-2.1-3.2-5.9-3.2-5.9zM12 12s-3.2 3.8-3.2 5.9a3.2 3.2 0 0 0 6.4 0C15.2 15.8 12 12 12 12z'/%3E%3C/svg%3E");
	--sv-i-database: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 7.5v3.5c0 1.7 3.6 3 8 3s8-1.3 8-3V7.5c-1.4 1.4-4.6 2.3-8 2.3S5.4 8.9 4 7.5zm0 6.5v4c0 1.7 3.6 3 8 3s8-1.3 8-3v-4c-1.4 1.4-4.6 2.3-8 2.3S5.4 15.4 4 14z'/%3E%3C/svg%3E");
	--sv-i-database-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E");
	--sv-i-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.3-4.6M4 13a8 8 0 0 0 14.3 4.6'/%3E%3Cpath d='M5 2.5v4.3h4.3M19 21.5v-4.3h-4.3'/%3E%3C/svg%3E");
	--sv-i-up-bold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 9.5h-5.5V21h-7v-8.5H3z'/%3E%3C/svg%3E");
	--sv-i-up-thin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5L6.5 8.5h4.3V22.5h2.4V8.5h4.3z'/%3E%3C/svg%3E");
	--sv-i-level-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 5h3v10H8.5v4L2 13.5 8.5 8v4H17z'/%3E%3C/svg%3E");
	--sv-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
	--sv-i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.8 3 2.8 16 0 19M12 2.5c-2.8 3-2.8 16 0 19'/%3E%3C/svg%3E");
	--sv-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
	--sv-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v.5l8 5.5 8-5.5V7l-8 5.3z'/%3E%3C/svg%3E");
	--sv-i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2.5h12v19H6zM9 7h6M9 11h6M9 15h6'/%3E%3C/svg%3E");
	--sv-i-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8V6.2c0-.8.2-1.2 1.4-1.2H17V2h-2.6C11.6 2 10.6 3.4 10.6 5.8V8H8.5v3h2.1v11H14V11h2.6l.4-3z'/%3E%3C/svg%3E");
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
	margin: 0;
	font-family: var(--sv-font);
	font-size: 16px;
	line-height: 1.375;
	color: var(--sv-text);
	background: #fff;
}
.sv-main { background: var(--sv-page); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--sv-link); text-decoration: none; }
a:hover { color: var(--sv-navy); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--sv-font-head);
	font-weight: 300;
	color: var(--sv-navy);
	margin: 0 0 15px;
	overflow-wrap: break-word;
}
h1 { font-size: 44px; line-height: 1.3; }
h2 { font-size: 34px; line-height: 1.15; }
h3 { font-size: 26px; line-height: 28px; }
h4 { font-size: 22px; line-height: 1.3; }
h5, h6 { font-size: 18px; line-height: 1.3; }
p, ul, ol, figure { margin: 0 0 15px; }
ul, ol { padding-left: 30px; }
strong, b { font-weight: 700; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--sv-link);
	outline-offset: 2px;
}
.sv-header :where(a, button):focus-visible,
.sv-footer :where(a, button, input, textarea):focus-visible,
.sv-section--dark :where(a, button):focus-visible { outline-color: #fff; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.sv-skip {
	position: absolute; left: 8px; top: -60px; z-index: 1000;
	background: #fff; color: var(--sv-navy); padding: 10px 14px;
}
.sv-skip:focus { top: 8px; }

.sv-wrap {
	width: 100%;
	max-width: calc(var(--sv-wide) + 2 * var(--sv-gutter));
	margin-inline: auto;
	padding-inline: var(--sv-gutter);
}
@media (min-width: 768px) { :root { --sv-gutter: 20px; } }

/* ---------- Tlačítka ---------- */
.sv-btn,
.wp-block-button__link,
.wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 44px; padding: 16px 20px;
	font-family: var(--sv-font); font-weight: 400; font-size: 16px; line-height: 1.2;
	color: #fff; background: var(--sv-blue);
	border: 0; border-radius: 5px;
	text-decoration: none; cursor: pointer;
	transition: background-color .3s;
}
.sv-btn:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover { background: var(--sv-blue-hover); color: #fff; text-decoration: none; }

/* ---------- Hlavička ---------- */
.sv-header { position: relative; z-index: 100; }
.sv-icon { flex: none; }

/* Mobil: bílý pruh s kontakty nad tmavým pruhem s logem uprostřed (jako dřív) */
.sv-topbar { background: #fff; }
.sv-topbar__inner { display: flex; flex-direction: column; align-items: center; padding-block: 4px; }
.sv-topbar__link { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; color: var(--sv-topbar-link); font-size: 16px; line-height: 21px; }
.sv-topbar__link:hover { color: var(--sv-navy); }
.sv-topbar__link .sv-icon { color: #000; width: 14px; height: 14px; }

.sv-bar { background: #4c4c4c; }
.sv-header__bar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 61px; }
.sv-logo { display: flex; align-items: center; justify-content: center; }
.sv-logo img { display: block; width: auto; height: 45px; }
.sv-logo__text { color: #fff; font-family: var(--sv-font-head); font-size: 1.3rem; }

.sv-nav-toggle {
	position: absolute; right: var(--sv-gutter); top: 50%; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	background: transparent; color: var(--sv-topbar-link); border: 0; cursor: pointer;
}
.sv-nav-toggle__bars, .sv-nav-toggle__bars::before, .sv-nav-toggle__bars::after {
	display: block; width: 24px; height: 3px; background: currentColor; transition: transform .2s;
}
.sv-nav-toggle__bars { position: relative; }
.sv-nav-toggle__bars::before, .sv-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.sv-nav-toggle__bars::before { top: -7px; }
.sv-nav-toggle__bars::after { top: 7px; }
.sv-nav-open .sv-nav-toggle__bars { background: transparent; }
.sv-nav-open .sv-nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.sv-nav-open .sv-nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.sv-menu, .sv-menu ul { list-style: none; margin: 0; padding: 0; }
.sv-menu a { display: flex; align-items: center; gap: 6px; color: #eaeaea; font-size: 16px; text-decoration: none; }
.sv-menu a:hover { text-decoration: none; }

@media (max-width: 1023.98px) {
	.sv-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%; z-index: 100;
		max-height: calc(100vh - 120px); overflow-y: auto;
		background: #f2f2f2;
		box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
	}
	.sv-nav-open .sv-nav { display: block; }
	.sv-menu > li { border-bottom: 1px solid rgba(0, 0, 0, .08); }
	.sv-menu a { min-height: 48px; padding: 8px 20px; color: #5f5f5f; }
	.sv-menu .current-menu-item > a, .sv-menu .current-menu-ancestor > a, .sv-menu a:hover { color: var(--sv-link); }
	.sv-menu .sub-menu { padding: 0 0 6px 16px; }
	.sv-menu .sub-menu a { min-height: 44px; }
	.sv-menu__arrow { display: none; }
}

/* Tablet a desktop: hlavička pevně nahoře, průhledná tmavá přes fotku */
@media (min-width: 768px) {
	.sv-header { position: fixed; top: 0; left: 0; right: 0; background: rgba(0, 0, 0, .7); }
	.admin-bar .sv-header { top: 32px; }
	.sv-topbar { background: transparent; }
	.sv-topbar__inner { flex-direction: row; justify-content: flex-end; gap: 10px; min-height: 31px; padding-block: 0; }
	.sv-topbar__link .sv-icon { color: #fff; }
	.sv-bar { background: transparent; }
	.sv-header__bar { justify-content: flex-end; min-height: 52px; }
	.sv-logo { position: absolute; left: calc(var(--sv-gutter) + 12px); top: -25px; }
	.sv-logo img { height: 60px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
	.sv-nav { top: 52px; }
}
@media (min-width: 1024px) {
	.sv-nav-toggle { display: none; }
	.sv-menu { display: flex; align-items: center; }
	.sv-menu > li { position: relative; }
	.sv-menu > li > a { min-height: 52px; padding: 0 20px; line-height: 30px; }
	.sv-menu > li > a:hover,
	.sv-menu > .current-menu-item > a,
	.sv-menu > .current-menu-ancestor > a,
	.sv-menu > .current-page-ancestor > a { color: var(--sv-blue); }
	.sv-menu .sub-menu {
		position: absolute; left: 0; top: 100%; width: 240px;
		background: #f2f2f2; padding: 0;
		box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
		opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
	}
	.sv-menu > li:hover > .sub-menu,
	.sv-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
	.sv-menu .sub-menu li { border-bottom: 1px solid rgba(0, 0, 0, .05); }
	.sv-menu .sub-menu a { padding: 10px; color: #5f5f5f; line-height: 21px; }
	.sv-menu .sub-menu a:hover, .sv-menu .sub-menu .current-menu-item > a { background: #e9e9e9; color: var(--sv-text); }
	.sv-menu__arrow { display: none; }
}

/* ---------- Pruh s nadpisem stránky (dřívější Subheader s bublinami) ---------- */
.sv-pagehead {
	background: #0b3550 url("../img/subheader-voda-bubliny.jpg") center / cover no-repeat;
	color: #fff;
	padding: 50px 0 45px;
}
.sv-pagehead__title { margin: 0; color: #fff; font-family: var(--sv-font-head); font-weight: 400; font-size: clamp(30px, 8vw, 53px); line-height: 1.1; }
.sv-pagehead__meta { margin: 0 0 8px; color: #d7e6f5; font-size: 14px; }
@media (min-width: 768px) {
	.sv-pagehead { padding: 165px 0 70px; }
	.admin-bar .sv-pagehead { padding-top: 197px; }
	.sv-pagehead__title { line-height: 53px; }
}

/* ---------- Obsah z bloků ---------- */
.sv-content { padding-block: 30px 20px; }
.sv-content > * {
	max-width: min(var(--sv-wide), 100% - 2 * var(--sv-gutter));
	margin-inline: auto;
}
.sv-content > .alignfull { max-width: none; }
.sv-content > :first-child { margin-top: 0; }
.sv-content--front { padding: 0; }

.sv-content h2 { font-size: 26px; line-height: 28px; margin-top: 25px; }
.sv-content h3 { font-size: 22px; line-height: 1.3; margin-top: 20px; }
.sv-content .wp-block-columns { gap: 30px; margin-bottom: 20px; }
.sv-content .wp-block-column > :first-child { margin-top: 0; }
.sv-content .wp-block-column > :last-child { margin-bottom: 0; }
.sv-content .wp-block-embed { margin-block: 0 15px; }
.sv-content .wp-block-table { overflow-x: auto; }
.sv-content table { border-collapse: collapse; width: 100%; }
.sv-content th, .sv-content td { border: 1px solid #e3e3e3; padding: 8px 10px; vertical-align: top; }
.sv-content .wp-block-list li { margin-bottom: 0; }

/* Galerie jako dřívější FooGallery: 3 sloupce, úzké mezery */
.sv-content .wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: 2px; gap: 2px; margin-bottom: 35px; }
.sv-content .wp-block-gallery.has-nested-images figure.wp-block-image { background: #eee; }

/* Telefonní výzva */
.sv-phone { font-weight: 700; font-size: 26px; line-height: 1.2; }
.sv-phone a { display: inline-flex; align-items: center; gap: 10px; color: var(--sv-link); min-height: 44px; }
.sv-phone a::before { content: ""; width: 24px; height: 24px; flex: none; background: rgb(0, 149, 235); -webkit-mask: var(--sv-i-phone) center / contain no-repeat; mask: var(--sv-i-phone) center / contain no-repeat; }

/* Stránka s bočním panelem */
.sv-layout { display: block; padding-block: 30px 20px; }
.sv-layout .sv-content { padding: 0; }
.sv-layout .sv-content > * { max-width: none; }
@media (min-width: 960px) {
	.sv-layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 23%; gap: 30px; }
}
.sv-sidebar { padding-top: 30px; }
@media (min-width: 960px) { .sv-sidebar { padding: 0 0 0 30px; border-left: 1px solid rgba(0, 0, 0, .08); } }
.sv-sidebar p { margin: 0 0 10px; }
.sv-side__title { font-family: var(--sv-font-head); font-weight: 300; font-size: 24px; line-height: 28px; color: var(--sv-title-blue); }
.sv-side__lead { font-family: var(--sv-font-head); font-size: 16px; color: var(--sv-link); }
.sv-side__name { font-family: var(--sv-font-head); font-size: 16px; }
.sv-sidebar .sv-ico a { font-weight: 700; color: var(--sv-navy); }

/* ---------- Ikonové řádky (patička, boční panel) ---------- */
.sv-ico { display: flex; align-items: center; gap: 6px; }
.sv-ico::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--sv-ico) center / contain no-repeat; mask: var(--sv-ico) center / contain no-repeat; }
.sv-ico--pin { --sv-ico: var(--sv-i-pin); }
.sv-ico--globe { --sv-ico: var(--sv-i-globe); }
.sv-ico--phone { --sv-ico: var(--sv-i-phone); }
.sv-ico--mail { --sv-ico: var(--sv-i-mail); }
.sv-sidebar .sv-ico::before { background: var(--sv-text); }

/* ---------- Úvodní stránka ---------- */
.sv-hero.wp-block-cover {
	min-height: 535px !important;
	padding: 150px 36px 60px;
	align-items: flex-start;
}
.sv-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--sv-wide); margin-inline: auto; color: #fff; }
.sv-hero__claim {
	display: inline-block; max-width: 452px; margin: 0 0 35px;
	padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, .55);
	color: #fff; font-family: var(--sv-font-exo); font-weight: 400;
	font-size: 35.2px; line-height: 1.4;
}
.sv-hero .wp-block-buttons { margin: 0; }
.sv-hero .wp-block-button__link {
	margin-top: 11px; padding: 12px 30px;
	font-family: var(--sv-font-head); font-size: 16px; line-height: 26px;
}
.sv-hero .wp-block-button__link::after {
	content: ""; width: 9px; height: 9px; margin-top: -5px;
	border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}
@media (min-width: 768px) {
	.sv-hero.wp-block-cover { min-height: 498px !important; padding: 150px var(--sv-gutter) 40px; }
	.sv-hero__claim { font-size: 40px; line-height: 56px; }
}

.sv-section { position: relative; margin: 0; padding: 35px 0; }
.sv-section > *,
.sv-section > .wp-block-group__inner-container > * {
	max-width: min(var(--sv-wide), 100% - 2 * var(--sv-gutter));
	margin-inline: auto;
}
.sv-section > .wp-block-group__inner-container { max-width: none; margin: 0; }
.sv-section--dark { background: #2e3034 var(--sv-texture) repeat; color: #fff; }
.sv-section--dark h1 { color: #fff; font-family: var(--sv-font-exo); font-weight: 300; font-size: 26px; line-height: 1.4; margin-bottom: 35px; }
@media (min-width: 768px) { .sv-section--dark h1 { font-size: 44px; } }
.sv-section--help { background: #f5f5f5 url("../img/texture-2.png") center top / cover no-repeat; padding: 40px 0 20px; }
.sv-section--blog { background: var(--sv-page) url("../img/texture-3.png") center top / cover no-repeat; padding: 40px 0 20px; }
.sv-section--help h2 { font-size: 26px; line-height: 28px; }
.sv-section--blog h2 { font-size: 34px; line-height: 30px; margin-bottom: 20px; }
.sv-section--help .wp-block-columns { gap: 40px; margin-block: 0; }
.sv-section--help .wp-block-buttons { margin: 20px 0; }

/* Karty služeb (dříve Betheme flat_box): modrý pruh s ikonou, fotka, bílý titulek */
.sv-cards > .wp-block-group__inner-container,
.sv-cards:not(:has(> .wp-block-group__inner-container)) {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px;
}
.sv-cards > .wp-block-group__inner-container { width: 100%; }
.sv-cards .sv-card { flex: 0 1 300px; margin: 0 0 35px; }
@media (min-width: 768px) { .sv-cards .sv-card { flex-basis: calc(50% - 12px); max-width: 300px; } }
@media (min-width: 1024px) { .sv-cards .sv-card { flex-basis: calc(25% - 18px); max-width: none; } }
.sv-card { position: relative; }
.sv-card > .wp-block-group__inner-container > *, .sv-card > * { margin: 0 !important; }
.sv-card::before {
	content: ""; position: absolute; left: 0; top: 0; z-index: 1;
	width: 90px; height: 203px; background: var(--sv-blue);
}
.sv-card::after {
	content: ""; position: absolute; left: 27px; top: 84px; z-index: 2;
	width: 36px; height: 36px; background: #fff;
	-webkit-mask: var(--sv-card-icon, var(--sv-i-water)) center / contain no-repeat;
	        mask: var(--sv-card-icon, var(--sv-i-water)) center / contain no-repeat;
	pointer-events: none;
}
.sv-card--water { --sv-card-icon: var(--sv-i-water); }
.sv-card--database { --sv-card-icon: var(--sv-i-database); }
.sv-card--database-line { --sv-card-icon: var(--sv-i-database-line); }
.sv-card--refresh { --sv-card-icon: var(--sv-i-refresh); }
.sv-card--up-bold { --sv-card-icon: var(--sv-i-up-bold); }
.sv-card--up-thin { --sv-card-icon: var(--sv-i-up-thin); }
.sv-card--level-up { --sv-card-icon: var(--sv-i-level-up); }
.sv-card .wp-block-image img { display: block; width: 100%; height: 203px; object-fit: cover; }
.sv-card .sv-card__title {
	margin-top: 15px !important; padding-left: 10px;
	font-family: var(--sv-font-head); font-weight: 300; font-size: 20px; line-height: 28px; color: #fff;
}
.sv-card .sv-card__title a { color: #fff; text-decoration: none; }
.sv-card .sv-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.sv-card:hover .sv-card__title a { text-decoration: underline; }
.sv-card:focus-within { outline: 2px solid #fff; outline-offset: 4px; }

/* Nejnovější články na úvodu (dřívější Betheme blog, 4 sloupce) */
.sv-latest.wp-block-latest-posts { padding: 0; margin-top: 0; margin-bottom: 15px; }
.sv-latest.wp-block-latest-posts.is-grid { gap: 30px 24px; }
.sv-latest.wp-block-latest-posts.is-grid li { margin: 0 !important; display: flex; flex-direction: column; }
@media (min-width: 600px) { .sv-latest.wp-block-latest-posts.columns-4 li { width: calc(50% - 12px); } }
@media (min-width: 1024px) { .sv-latest.wp-block-latest-posts.columns-4 li { width: calc(25% - 18px); } }
.sv-latest .wp-block-latest-posts__featured-image { margin: 0 0 15px; }
.sv-latest .wp-block-latest-posts__featured-image img { display: block; width: 100%; aspect-ratio: 270 / 211; object-fit: cover; }
.sv-latest .wp-block-latest-posts__post-title {
	display: block; padding: 0 20px 15px;
	font-family: var(--sv-font); font-weight: 300; font-size: 20px; line-height: 22px; color: var(--sv-navy);
}
.sv-latest .wp-block-latest-posts__post-excerpt { margin: 0; padding: 0 20px; }
.sv-latest .wp-block-latest-posts__read-more { display: block; text-align: right; margin-top: 10px; }
.sv-all-posts { text-align: right; }

/* ---------- Výpis článků (3 sloupce jako dřív) ---------- */
.sv-archive { padding-block: 30px 40px; }
.sv-posts { display: grid; gap: 30px 23px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sv-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sv-posts { grid-template-columns: repeat(3, 1fr); } }
.sv-post-card { display: flex; flex-direction: column; }
.sv-post-card__thumb img { display: block; width: 100%; aspect-ratio: 368 / 288; object-fit: cover; }
.sv-post-card__body { padding: 20px 20px 0; display: flex; flex-direction: column; flex: 1; }
.sv-post-card__title { margin: 0 0 15px; font-size: 28px; line-height: 30px; font-weight: 300; }
.sv-post-card__title a { color: var(--sv-navy); }
.sv-post-card__excerpt { flex: 1; }
.sv-post-card__excerpt p { margin: 0 0 15px; }
.sv-post-card__more, .sv-latest .wp-block-latest-posts__read-more { text-align: right; margin: 0; }
.sv-post-card__more a::before, .sv-latest .wp-block-latest-posts__read-more::before {
	content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px;
	background: currentColor; -webkit-mask: var(--sv-i-doc) center / contain no-repeat; mask: var(--sv-i-doc) center / contain no-repeat;
}

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 10px; background: #f2f2f2; border-radius: 5px; color: var(--sv-text);
}
.pagination .page-numbers.current { background: var(--sv-blue); color: #fff; }

.sv-single__thumb { margin: 0 0 25px; }
.sv-single__thumb img { display: block; width: 100%; }
.sv-single__back { margin-top: 30px; }

/* ---------- Formuláře (CF7) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], textarea, select {
	width: 100%; min-height: 38px; padding: 8px 10px;
	font: inherit; font-size: 14px; color: #626262; background: #fff;
	border: 1px solid #ebebeb; border-radius: 0;
}
textarea { min-height: 110px; resize: vertical; }
.wpcf7 p { margin: 0 0 10px; }
.wpcf7-acceptance input { width: 18px; height: 18px; vertical-align: middle; margin: 0 6px 0 0; }
.wpcf7-list-item { margin: 0; }
.wpcf7-submit { background: var(--sv-link); }
.wpcf7-submit:hover { background: var(--sv-navy); }
.search-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.search-form label { flex: 1 1 220px; }
.search-form .search-submit { min-height: 44px; padding: 0 20px; border: 0; border-radius: 5px; background: var(--sv-blue); color: #fff; cursor: pointer; }

/* ---------- Patička ---------- */
.sv-footer { background: var(--sv-footer); color: #fff; font-size: 16px; line-height: 21px; }
.sv-footer a { color: #fff; }
.sv-footer a:hover { color: var(--sv-blue); text-decoration: none; }
.sv-footer__content { padding-block: 30px 10px; }
.sv-footer__content .wp-block-columns { gap: 20px; margin: 0; }
.sv-footer__content .wp-block-column { margin-bottom: 30px; }
.sv-footer :is(h2, h3).sv-footer__title { margin: 0 0 15px; color: var(--sv-title-blue); font-family: var(--sv-font-head); font-weight: 300; font-size: 24px; line-height: 28px; }
.sv-footer p { margin: 0; }
.sv-footer .sv-gap { margin-top: 21px; }
.sv-footer .wp-block-list { list-style: none; padding: 0; margin: 0; }
.sv-footer .wp-block-list li { margin: 0; }
.sv-footer .wp-block-list a { display: inline-block; padding: 1px 0; }
.sv-fb { margin-top: 20px !important; }
.sv-fb a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 29px; border-radius: 5px; background: #1877f2; font-size: 0;
}
.sv-fb a::before { content: ""; width: 16px; height: 16px; background: #fff; -webkit-mask: var(--sv-i-facebook) center / contain no-repeat; mask: var(--sv-i-facebook) center / contain no-repeat; }
.sv-footer .wpcf7 input:not([type="submit"]):not([type="checkbox"]) { min-height: 26px; padding: 5px; font-size: 12px; }
.sv-footer .wpcf7 textarea { min-height: 70px; padding: 5px; font-size: 12px; }
.sv-footer .wpcf7-acceptance { font-size: 12px; }
.sv-footer .wpcf7-submit { padding: 16px 20px; }
.sv-footer .wpcf7-response-output { color: #fff; }
.sv-footer__copy { font-size: 16px; color: #fff; }
.sv-footer__copy-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 52px; padding-block: 10px; }
.sv-credit { display: inline-flex; align-items: center; gap: 5px; }
.sv-credit a { color: #fff; }
.sv-credit img { display: block; height: 14px; width: auto; }

/* ---------- Klasická šablona bez theme.json: skupina má vnitřní obal ---------- */
.sv-section > .wp-block-group__inner-container > :first-child { margin-top: 0; }

/* ---------- Méně pohybu ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* Výřez fotky úvodu jako dřív (pozadí bylo „fixed“ na celé okno → viditelná horní část, větší měřítko) */
@media (min-width: 768px) {
	.sv-hero .wp-block-cover__image-background { object-position: 50% 0; transform: scale(1.09); transform-origin: 70% 0; }
}

/* Odrážky v obsahu: mezera 10 px jako v Betheme */
.sv-content .wp-block-list li, .sv-section .wp-block-list li { margin-bottom: 10px; }

/* Obsah + boční panel v poměru jako Betheme (919 + 281 px) */
@media (min-width: 960px) {
	.sv-layout--sidebar { grid-template-columns: minmax(0, 1fr) 24%; gap: 10px; }
}

/* Galerie jako FooGallery: pevné náhledy 275×208 na střed */
.sv-content .wp-block-gallery.has-nested-images { justify-content: center; }
.sv-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 275px; max-width: 100%; flex-grow: 0; }
.sv-content .wp-block-gallery.has-nested-images figure.wp-block-image img { height: 208px; object-fit: cover; }
