/* Odovik – zkoušky těsnosti nádrží. Styl webu (bez frameworku). */

:root {
  --ink: #0f2230;          /* tmavě modrá: text, hlavička, tmavé sekce */
  --ink-2: #33495a;
  --muted: #5a6b78;        /* 5,6 : 1 na bílé */
  --water: #0b6378;        /* petrolejová: odkazy, akcenty (6,5 : 1 na bílé) */
  --water-2: #e3f0f3;
  --accent: #f2b134;       /* signální žlutá: hlavní tlačítka (s tmavým textem) */
  --accent-2: #ffd27a;
  --bg: #ffffff;
  --bg-alt: #f2f5f6;
  --line: #d9e1e5;
  --ok: #1d7a46;
  --err: #b3261e;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(18px, 4vw, 32px);
  --head-h: 68px;
  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 40px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 800; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
h4, .h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.narrow { width: min(860px, 100% - 2 * var(--gutter)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-2); color: var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--water); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-link { padding-left: 0; padding-right: 0; color: var(--water); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow { font: 700 .8rem/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--water); margin: 0 0 12px; }
.eyebrow-light { color: var(--accent); }

/* ---------- Hlavička ---------- */
.demo-bar { margin: 0; padding: 6px var(--gutter); background: #fff3cd; color: #5c4400; font-size: .85rem; text-align: center; border-bottom: 1px solid #f0d98c; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-mark rect { fill: var(--ink); }
.logo-mark .lm-line { fill: none; stroke: #fff; stroke-width: 5; }
.logo-mark .lm-level { stroke: var(--accent); stroke-width: 5; }
.logo-text { font: 800 1.35rem/1 var(--font-head); letter-spacing: -.01em; }
.logo-text small { display: block; margin-top: 3px; font: 600 .74rem/1.1 var(--font); letter-spacing: .04em; color: var(--muted); }
.logo-light { color: #fff; }
.logo-light .logo-mark rect { fill: #fff; }
.logo-light .logo-mark .lm-line { stroke: var(--ink); }
.logo-light .logo-text small { color: #b8c7d1; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.main-nav a:hover { background: var(--bg-alt); }
.header-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; fill: var(--water); }
.nav-toggle { display: none; width: 46px; height: 46px; margin-left: auto; border: 0; background: var(--bg-alt); border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; top: 0; z-index: 40; background: #fff; padding: calc(var(--head-h) + 90px) var(--gutter) 30px; overflow-y: auto; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 700 1.2rem/1.3 var(--font-head); }
.mobile-menu-contact { display: grid; gap: 8px; margin-top: 22px; font-weight: 700; }
body.menu-open { overflow: hidden; }

/* ---------- Oznámení ---------- */
.notice { background: var(--accent); color: var(--ink); font-weight: 600; }
.notice p { margin: 0; padding: 12px 0; }

/* ---------- Úvod ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(40px, 7vw, 92px) 0 clamp(40px, 6vw, 80px); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span { display: block; color: var(--accent); font-size: .62em; font-weight: 700; margin-top: 10px; letter-spacing: 0; }
.hero-lead { font-size: clamp(1.06rem, 1.7vw, 1.22rem); color: #d4e0e7; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-facts li { border-top: 2px solid rgba(242,177,52,.7); padding-top: 10px; }
.hero-facts strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.25; }
.hero-facts span { display: block; font-size: .92rem; color: #b8c7d1; line-height: 1.4; margin-top: 4px; }
.hero-visual { margin: 0; }
.tank-svg { width: 100%; height: auto; display: block; }
.tank-grid path { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.tank-ground { stroke: #4a5d6a; stroke-width: 3; }
.tank-surface { fill: #2aa6c2; opacity: .9; }
.tank-rim { fill: #7f939f; }
.tank-inner { fill: #22313c; }
.tank-probe path { stroke: var(--accent); stroke-width: 4; }
.tank-probe rect { fill: var(--accent); }
.tank-gauge rect { fill: #fff; }
.tank-gauge text { font: 600 11px var(--font); fill: var(--muted); }
.tank-gauge .tg-val { font: 800 17px var(--font-head); fill: var(--ink); }
.tank-gauge .tg-bar { stroke: var(--ok); stroke-width: 6; stroke-linecap: round; }
.tank-check circle { fill: var(--ok); }
.tank-check path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sekce ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-tight { padding: clamp(36px, 5vw, 60px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head p:last-child { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 0; }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }

/* Kdy zkoušku */
.when { background: var(--bg-alt); }
.when-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: when; }
.when-grid li { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); position: relative; }
.when-grid li::before { counter-increment: when; content: counter(when); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--accent); font: 800 1rem var(--font-head); margin-bottom: 12px; }
.when-grid p { margin: 0; color: var(--ink-2); }

/* Typy nádrží */
.tank-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.type-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.type-card svg { width: 44px; height: 44px; fill: none; stroke: var(--water); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 12px; }
.type-card p { margin: 0; color: var(--ink-2); }
.methods { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-top: clamp(36px, 5vw, 56px); }
.method-list { margin: 0; display: grid; gap: 16px; }
.method-list div { padding-left: 16px; border-left: 3px solid var(--accent); }
.method-list dt { font-weight: 700; font-size: 1.08rem; }
.method-list dd { margin: 4px 0 0; color: var(--ink-2); }
.process { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
.steps li::before { counter-increment: st; content: counter(st); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font: 800 1rem var(--font-head); }
.steps strong { font-family: var(--font-head); }
.steps span { color: #c6d3dc; font-size: .98rem; }

/* Revize ČOV */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 9px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.cert-box { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 8px 8px 0 var(--accent); }
.cert-label { font-size: .88rem; font-weight: 700; color: var(--water); text-transform: uppercase; letter-spacing: .06em; }
.cert-box ul { list-style: none; margin: 0 0 14px; padding: 0; }
.cert-box li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cert-box li span { color: var(--muted); }
.cert-valid { margin: 0; font: 800 1.15rem var(--font-head); }

/* Předpisy a oprávnění */
.law-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); }
.law-list { list-style: none; margin: 0; padding: 0; }
.law-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.law-list strong { color: var(--ink); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; }
.person h4 { font-size: 1.15rem; margin-bottom: 2px; }
.person-role { color: var(--water); font-weight: 600; font-size: .95rem; }
.person ul { margin: 0; padding-left: 18px; font-size: .96rem; color: var(--ink-2); }
.person li { margin-bottom: 6px; }
.law-note { margin-top: 18px; font-size: .95rem; color: var(--muted); }

/* Ceník */
.price-intro p { font-size: 1.08rem; color: var(--ink-2); }
.price-list { list-style: none; margin: 24px 0; padding: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.price-list li:last-child { border-bottom: 0; }
.price-name strong { display: block; font-size: 1.05rem; }
.price-name span { display: block; color: var(--muted); font-size: .94rem; margin-top: 2px; }
.price-val { text-align: right; white-space: nowrap; }
.price-main { display: block; font: 800 1.15rem var(--font-head); }
.price-main small { font: 600 .8rem var(--font); color: var(--muted); }
.price-vat { display: block; font-size: .88rem; color: var(--muted); }
.price-note p { color: var(--muted); font-size: .95rem; }
.price-cta { margin: 24px 0 0; }

/* Reference */
.ref-stats { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ref-stats a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--water-2); color: var(--ink); text-decoration: none; font-weight: 600; }
.ref-stats a:hover { background: var(--ink); color: #fff; }
.ref-stats strong { font-family: var(--font-head); font-size: 1.1rem; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ref-card[hidden] { display: none; }
.ref-photo a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.ref-photo img { width: 100%; height: 100%; object-fit: cover; }
.ref-body { padding: 20px 22px 22px; }
.ref-tags { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ref-tags li { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--water); background: var(--water-2); padding: 3px 8px; border-radius: 6px; }
.ref-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.ref-meta { color: var(--muted); font-size: .94rem; margin-bottom: 8px; }
.ref-text { margin: 0; color: var(--ink-2); }
.ref-more { margin: 28px 0 0; }
.ref-page .ref-grid { grid-template-columns: repeat(3, 1fr); }
.ref-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { display: inline-flex; gap: 6px; align-items: center; min-height: 42px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .98rem var(--font); cursor: pointer; }
.chip span { color: var(--muted); font-weight: 700; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { color: var(--accent); }
.no-js .ref-filter { display: none; }

/* Fotky */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ref-list { padding-top: 0; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--line); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.04); }

/* Časté otázky */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 700 1.1rem/1.35 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--water); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* ---------- Novinky (generátor _nastroje/blog/build-blog.ps1) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-grid-2 { grid-template-columns: repeat(2, 1fr); }
.news-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 12px 30px rgba(15,34,48,.12); transform: translateY(-2px); }
.news-card-img { aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card-meta { font-size: .84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--water); margin-bottom: 8px; }
.news-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card-perex { color: var(--ink-2); font-size: .98rem; }
.news-card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--water); }
.news-card-more svg { width: 18px; height: 18px; fill: currentColor; }
.news-page { padding: 0 0 clamp(56px, 8vw, 96px); }
.news-more-sec { background: var(--bg-alt); }
.news-more-title { font-size: 1.5rem; margin-bottom: 20px; }
.news-empty { color: var(--muted); }

/* Podstránky */
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(22px, 3vw, 36px); max-width: 860px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head p { font-size: 1.1rem; color: var(--ink-2); }
.legal { padding-bottom: clamp(56px, 8vw, 96px); }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--bg-alt); }
.legal-table { overflow-x: auto; }

/* Článek */
.post-head { max-width: 820px; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(20px, 3vw, 36px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--water); margin-bottom: 14px; }
.post-head h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 14px; }
.post-perex { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 700px; margin: 0; }
.post-cover { width: min(1100px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.post-cover a { display: block; }
.post-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); }
.prose { width: min(740px, 100% - 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(24px, 4vw, 40px); font-size: 1.08rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--water); font-weight: 700; }
.prose blockquote, .post-callout { margin: 2em 0; padding: 18px 22px; background: var(--water-2); border-left: 4px solid var(--water); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; }
.prose blockquote p:last-child, .post-callout > :last-child { margin-bottom: 0; }
.prose figure { margin: 2em 0; }
.prose figure a { display: block; }
.prose figure img { width: 100%; border-radius: var(--radius-sm); }
.prose figcaption, .post-cover figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); text-align: center; }
.post-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.post-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.post-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.prose .post-gallery-item { margin: 0; }
.post-gallery a { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-alt); }
.prose .post-gallery img { height: 100%; object-fit: cover; border-radius: 0; }
.post-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; margin: 2.2em 0; }
.prose .post-split-media { margin: 0; }
.post-split-reverse .post-split-media { order: 2; }
.post-split-text > :last-child { margin-bottom: 0; }
.post-aktualita .prose { width: min(1000px, 100% - 2 * var(--gutter)); padding-top: 8px; }
.post-aktualita .post-split { grid-template-columns: 2fr 3fr; align-items: start; margin-top: 0; }
.post-aktualita .post-split-text > :first-child { margin-top: 0; }
.post-video { margin: 2em 0; }
.post-video-btn, .post-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--ink); color: #fff; cursor: pointer; }
.prose .post-video-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .85; }
.post-video-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.post-video-play svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; }
.post-video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; text-align: left; font-weight: 600; background: linear-gradient(0deg, rgba(10,20,28,.85), transparent); }
.post-video-note { margin: 8px 0 0; font-size: .84rem; color: var(--muted); }
.post-video.is-playing .post-video-note { display: none; }
.post-table { overflow-x: auto; margin: 1.6em 0; }
.post-table table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.post-table th, .post-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-facts-box { margin: 0 0 2em; padding: 6px; background: var(--bg-alt); border-radius: var(--radius); }
.post-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; margin: 0; }
.post-facts > div { background: #fff; border-radius: calc(var(--radius) - 6px); padding: 12px 16px; }
.post-facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--water); }
.post-facts dd { margin: 4px 0 0; font-weight: 600; }
.post-end { width: min(740px, 100% - 2 * var(--gutter)); margin: clamp(36px, 5vw, 56px) auto clamp(56px, 8vw, 96px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Poptávka ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.form-intro { position: sticky; top: calc(var(--head-h) + 50px); }
.form-intro h2 { color: #fff; }
.form-intro p { color: #c6d3dc; }
.form-intro a { color: var(--accent); }
.form-intro-phone { font-weight: 600; }
.form-intro-phone a { font: 800 1.5rem var(--font-head); text-decoration: none; }
.form-intro-small { font-size: .92rem; }
.inquiry, .form-done { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); }
.inquiry fieldset { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.inquiry legend { font: 800 1.15rem var(--font-head); margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #b5c2ca; border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 3px rgba(11,99,120,.2); }
.field-hint { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field-error { display: block; color: var(--err); font-size: .9rem; font-weight: 600; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--err); font-weight: 600; }
.form-legal { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.inquiry button[disabled] { opacity: .6; cursor: progress; }
.form-done h3 { font-size: 1.5rem; }
.form-test { margin: 18px 0; padding: 16px; background: #fff3cd; border-radius: var(--radius-sm); }
.form-test pre { white-space: pre-wrap; font-size: .88rem; margin: 8px 0 0; font-family: ui-monospace, Consolas, monospace; }
.form-done .btn-ghost { color: var(--ink); border-color: var(--line); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about p { color: var(--ink-2); }
.support { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.support p { font-size: .98rem; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; }
.contact-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--water); }
.contact-card address { font-style: normal; margin-bottom: 12px; }
.map-link { font-weight: 700; }

/* ---------- Patička ---------- */
.site-footer { background: #0a1822; color: #b8c7d1; padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-contact { margin: 0; width: 100%; }
.footer-legal { padding: 20px 0 6px; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }

/* ---------- Mobilní lišta ---------- */
.mobile-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,14,20,.94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(1400px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 6px; transition: opacity .2s; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; color: #d4e0e7; margin-top: 10px; font-size: .95rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 2rem; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button svg { width: 26px; height: 26px; fill: currentColor; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -26px; }
.lb-next { right: 16px; top: 50%; margin-top: -26px; }

/* ---------- Responzivita ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 7px; font-size: .94rem; }
  .header-phone span { display: none; }
}
@media (max-width: 1020px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: block; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; justify-self: center; width: 100%; }
  .tank-types, .ref-grid, .ref-page .ref-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .methods, .split, .law-grid, .contact-grid, .form-wrap { grid-template-columns: 1fr; }
  .form-intro { position: static; }
}
@media (max-width: 700px) {
  :root { --head-h: 60px; }
  body { font-size: 1.03rem; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-text { font-size: 1.2rem; }
  .logo-text small { font-size: .68rem; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero-facts { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .when-grid, .tank-types, .ref-grid, .ref-page .ref-grid, .news-grid, .news-grid-2, .people, .field-row { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .price-list li { grid-template-columns: 1fr; }
  .price-val { text-align: left; white-space: normal; }
  .post-gallery, .post-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .post-split, .post-aktualita .post-split { grid-template-columns: 1fr; }
  .post-split-reverse .post-split-media { order: 0; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; }
  .mobile-bar.is-visible { transform: none; }
  .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .lightbox button.lb-prev, .lightbox button.lb-next { top: auto; bottom: 18px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .mobile-bar, .demo-bar, .lightbox, .inquiry, .hero-visual { display: none !important; }
  .hero, .section-dark { background: #fff; color: #000; }
}
