/* Weby ITLC s.r.o. a H2O PRO s.r.o. – společný styl, barvy podle firmy (html[data-firm]) */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-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: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-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: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-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; }

/* ---------- tokeny ---------- */
:root {
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font-body);
  --head-weight: 650;
  --head-track: -0.025em;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgb(10 20 30 / .06), 0 1px 1px rgb(10 20 30 / .04);
  --shadow: 0 10px 30px -12px rgb(10 25 40 / .22), 0 2px 6px rgb(10 25 40 / .06);

  /* UV sekce – společná */
  --uv-bg: #0c1322;
  --uv-bg-2: #141d33;
  --uv-text: #e8ecf6;
  --uv-muted: #a8b1c7;
  --uv-lime: #c8ff45;
  --uv-violet: #8b5cf6;
}

html[data-firm="itlc"] {
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --head-weight: 600;
  --head-track: -0.015em;
  --ink: #17121c;
  --ink-2: #463f4e;
  --muted: #6b6573;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --tint: #f1f6f8;
  --line: #e7e3e9;
  --primary: #1b74ad;
  --primary-hover: #135a88;
  --primary-soft: #e3f0f8;
  --aqua: #88c0e0;
  --accent: #d9568b;
  --accent-soft: #fbe7ef;
}

html[data-firm="h2o"] {
  /* barvy podle loga H2O PRO: modrá kapka → zelená, „PRO“ břidlicová */
  --ink: #1f3544;
  --ink-2: #3b5361;
  --muted: #5b7180;
  --bg: #f6fafb;
  --surface: #ffffff;
  --tint: #eaf3f7;
  --line: #d9e6ec;
  --primary: #0675bb;
  --primary-hover: #055a91;
  --primary-soft: #e1eff9;
  --aqua: #068ad8;
  --accent: #3f9a4f;
  --accent-soft: #e5f3e7;
}

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.2rem + 3.6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
html[data-firm="itlc"] h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
html[data-firm="itlc"] .eyebrow::before, html[data-firm="h2o"] .eyebrow::before { background: linear-gradient(90deg, var(--aqua), var(--accent)); }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn-uv { background: var(--uv-lime); color: #0c1322; }
.btn-uv:hover { background: #dbff7a; color: #0c1322; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- záhlaví ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(10 25 40 / .4); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo { height: 40px; width: auto; }
html[data-firm="itlc"] { --header-h: 84px; }
html[data-firm="itlc"] .site-header .logo { height: 60px; }
html[data-firm="h2o"] .site-header .logo { height: 46px; }
@media (max-width: 920px) {
  html[data-firm="itlc"] { --header-h: 72px; }
  html[data-firm="itlc"] .site-header .logo { height: 50px; }
  html[data-firm="h2o"] .site-header .logo { height: 40px; }
}

.wordmark { display: inline-flex; align-items: center; gap: 9px; height: auto; color: var(--ink); }
.wm-drop { width: 26px; height: 32px; }
.wm-drop .s1 { stop-color: var(--aqua); }
.wm-drop .s2 { stop-color: var(--primary); }
.wm-text { font: 750 1.45rem/1 var(--font-body); letter-spacing: -.03em; white-space: nowrap; }
.wm-text sub { font-size: .55em; vertical-align: -.2em; line-height: 0; margin: 0 .02em; }
.wm-text b { margin-left: .28em; font-weight: 750; color: var(--primary); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--ink-2); font-size: .95rem; font-weight: 500; text-decoration: none;
}
.nav ul a:hover, .nav ul a.active { color: var(--ink); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav ul a { padding: 8px 7px; font-size: .9rem; }
  .nav-cta span { display: none; }
  .nav-cta { width: 42px; padding: 0; }
}
@media (max-width: 920px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .nav-toggle .i-close { display: none; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 22px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(10 25 40 / .35);
  }
  .js.nav-open .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav ul a { padding: 12px 10px; font-size: 1.05rem; }
  .nav-cta, .js .nav-cta { width: auto; padding: 8px 16px; min-height: 48px; }
  .nav-cta span { display: inline; }
  .no-js .header-in { flex-wrap: wrap; padding-block: 10px; }
  .no-js .nav { width: 100%; flex-wrap: wrap; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--aqua) 28%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
html[data-firm="itlc"] .hero::after {
  content: ""; position: absolute; left: -14vw; top: -16vw; width: 44vw; height: 44vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text h1 { margin-bottom: .45em; }
.lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
html[data-firm="itlc"] .hero-media img { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px; }
.hero-badge {
  position: absolute; left: -18px; bottom: 22px; max-width: 300px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r);
  background: var(--uv-bg); color: var(--uv-text); font-size: .92rem; line-height: 1.45;
  box-shadow: 0 18px 40px -16px rgb(12 19 34 / .6);
}
.hero-badge strong { color: #fff; }
.hb-ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  background: color-mix(in srgb, var(--uv-lime) 16%, transparent); color: var(--uv-lime);
}

.segments {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px;
  margin-top: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line);
}
.segments li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 500; font-size: .96rem; }
.segments .ic { color: var(--primary); }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
}

/* ---------- sekce ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--tint); }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p:last-child { color: var(--ink-2); font-size: 1.08rem; }
.lead-sm { color: var(--ink-2); font-size: 1.08rem; }

/* karty služeb */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 24px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.card h3 { margin: 18px 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: .98rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.card-accent p { text-align: left; }
.card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
}
.card:nth-child(3n+2) .card-ic { background: var(--accent-soft); color: var(--accent); }
html[data-firm="h2o"] .card:nth-child(3n+2) .card-ic { color: #2b7f40; }
.card-accent {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 22px;
  background: linear-gradient(120deg, var(--uv-bg), var(--uv-bg-2));
  border-color: transparent; color: var(--uv-text); text-decoration: none;
}
.card-accent:hover { color: var(--uv-text); border-color: transparent; }
.card-accent h3 { color: #fff; margin: 0 0 4px; grid-column: 2; }
.card-accent p { color: var(--uv-muted); grid-column: 2; }
.card-accent .card-ic { grid-row: 1 / span 2; background: color-mix(in srgb, var(--uv-lime) 14%, transparent); color: var(--uv-lime); }
.card-accent .more { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--uv-lime); white-space: nowrap; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card-accent { grid-template-columns: auto 1fr; row-gap: 4px; }
  .card-accent .more { grid-column: 2; grid-row: auto; margin-top: 8px; }
}

/* dvousloupcové sekce */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split-rev { grid-template-columns: 1fr 1fr; }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 16 / 10; }
}

.checks { display: grid; gap: 16px; margin: 26px 0; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks strong { display: block; font-weight: 600; }
.checks li span:not(.chk) { color: var(--ink-2); font-size: .98rem; }
.chk {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; margin-top: 1px; border-radius: 50%;
  background: var(--primary); color: #fff;
}
.note {
  display: flex; gap: 12px; align-items: flex-start; margin: 0;
  padding: 16px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .96rem;
}
.note .ic { color: var(--primary); margin-top: 2px; }

/* UV sekce */
.section-uv {
  background:
    radial-gradient(60% 80% at 85% 20%, rgb(139 92 246 / .22), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgb(200 255 69 / .08), transparent 60%),
    var(--uv-bg);
  color: var(--uv-text);
}
.section-uv h2 { color: #fff; }
.section-uv .eyebrow { color: var(--uv-lime); }
.section-uv .lead-sm { color: var(--uv-muted); }
.uv-steps { display: grid; gap: 18px; margin: 28px 0 24px; counter-reset: s; }
.uv-steps li { display: flex; gap: 16px; align-items: flex-start; }
.uv-steps strong { display: block; color: #fff; font-weight: 600; }
.uv-steps li span:not(.num) { color: var(--uv-muted); font-size: .98rem; }
.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--uv-lime); color: var(--uv-lime); font-weight: 700; font-size: .95rem;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pills li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1);
  font-size: .9rem; color: var(--uv-text);
}
.pills .ic { color: var(--uv-lime); }
.leak-art { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }
.leak-art .glow { transform-origin: 252px 262px; animation: glow 3.6s ease-in-out infinite; }
.leak-art .beam { animation: beam 3.6s ease-in-out infinite; }
.leak-art .drop { animation: drip 2.4s ease-in infinite; }
.leak-art .d2 { animation-delay: .8s; }
.leak-art .d3 { animation-delay: 1.6s; }
@keyframes glow { 50% { opacity: .7; transform: scale(.94); } }
@keyframes beam { 50% { opacity: .75; } }
@keyframes drip { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }

/* postup */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.steps li { position: relative; padding: 24px 22px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.steps li::after {
  content: ""; position: absolute; top: 44px; right: -18px; width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--line), var(--primary));
}
.steps li:last-child::after { display: none; }
.step-n { display: block; margin-bottom: 14px; font: 600 2.1rem/1 var(--font-head); color: var(--primary); letter-spacing: -.02em; }
.steps li:nth-child(even) .step-n { color: var(--accent); }
html[data-firm="h2o"] .steps li:nth-child(even) .step-n { color: #2b7f40; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* o nás */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 6vw, 80px); }
.about h2 { margin: 0; }
.about-text { font-size: 1.08rem; color: var(--ink-2); }
.sign { display: flex; flex-direction: column; margin-top: 24px; padding-left: 16px; border-left: 3px solid var(--primary); }
.sign { border-image: linear-gradient(var(--aqua), var(--accent)) 1; }
.sign strong { color: var(--ink); font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.sign span { color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* kontakt */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info > p { color: var(--ink-2); }
.c-list { display: grid; gap: 18px; margin-top: 28px; }
.c-list li { display: flex; gap: 14px; align-items: center; }
.c-list a, .c-list span { overflow-wrap: anywhere; }
.c-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.c-list a:hover { color: var(--primary); text-decoration: underline; }
.c-ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary);
}
.c-l { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.form {
  padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.field .invalid, .field [aria-invalid="true"] { border-color: #c2334d; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.small { margin: 0; color: var(--muted); font-size: .86rem; max-width: 30em; }
.form-msg { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-msg.ok { background: #e3f6ea; color: #14532d; }
.form-msg.err { background: #fde8ec; color: #881337; }
.form.sent .grid2, .form.sent .field, .form.sent .form-foot { display: none; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* právní stránka */
.legal h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p { color: var(--ink-2); }
.legal .back { margin-top: 2.5em; }

/* patička */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 52px 0 28px; font-size: .95rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.logo-footer { height: 60px; margin-bottom: 16px; }
html[data-firm="h2o"] .logo-footer { height: 104px; }
.f-brand p { max-width: 26em; }
.f-title { font: 600 .8rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.f-list { display: grid; gap: 8px; }
.f-list a { color: var(--ink); text-decoration: none; }
.f-list a:hover { color: var(--primary); text-decoration: underline; }
.f-legal {
  margin-top: 36px; padding-top: 20px;
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.f-legal p { margin: 0; max-width: 60em; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* animace při posunu */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .cards .reveal:nth-child(3n+2) { transition-delay: .06s; }
.anim .cards .reveal:nth-child(3n+3) { transition-delay: .12s; }

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

@media print {
  .site-header, .hero-media, .form, .section-uv .art { display: none !important; }
  .section { padding: 24px 0; }
}
