/* Instalatér Vilda – Viliam Václavik */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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;
}

:root {
  --bg: #F4F6F7;
  --paper: #FFFFFF;
  --tint: #E8F0F5;
  --line: #D9E1E6;
  --ink: #13202B;
  --ink-2: #33414D;
  --muted: #56636E;
  --blue: #0B65A6;
  --blue-dark: #084F82;
  --water: #6BBDF0;
  --water-soft: #CFE9FA;
  --copper: #C4733F;
  --hot: #E2572B;
  --hot-soft: #FBDCCB;
  --dark: #13202B;
  --dark-2: #1C2D3A;
  --dark-line: #2E4252;
  --dark-muted: #A9B7C2;
  --accent: var(--blue);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wide: 116%;
  --radius: 6px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.5, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); text-wrap: balance; }
h2 {
  font-size: clamp(1.85rem, 1.3rem + 2.3vw, 3rem);
  font-weight: 800; font-stretch: var(--wide);
  line-height: 1.05; letter-spacing: -.015em;
}
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
@media (min-width: 1100px) { .wrap { padding: 0 40px; } }

.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); transition: color .5s; }
::selection { background: var(--blue); color: #fff; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border: 0; border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.chipbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: .9375rem; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s;
}
.chipbtn:hover { border-color: var(--blue); color: var(--blue); }
.chipbtn--dark { background: transparent; border-color: var(--dark-line); color: #fff; }
.chipbtn--dark:hover { border-color: var(--water); color: var(--water); }

.live { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3DBE63; flex: none; }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

/* Horní lišta a hlavička */
.topbar { background: var(--dark); color: #E6EDF2; font-size: .875rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar__area { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar__area .i { color: var(--water); }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { color: var(--dark-muted); text-decoration: none; }
.topbar__links a:hover { color: #fff; }
@media (max-width: 720px) { .topbar__links { display: none; } }

.header { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(19, 32, 43, .45); }
.header__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand__mark { width: 34px; height: 37px; flex: none; }
.logo-drop { fill: var(--blue); }
.logo-v { fill: none; stroke: #fff; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 1.3rem; font-weight: 800; font-stretch: var(--wide); letter-spacing: -.02em; }
.brand__text small { margin-top: 5px; font-size: .625rem; font-weight: 700; color: var(--copper); text-transform: uppercase; letter-spacing: .3em; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--blue); }
.nav__call { display: none; }

.header__call {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  background: var(--blue); color: #fff; border-radius: var(--radius); text-decoration: none;
  font-weight: 800; font-size: 1.125rem; letter-spacing: .01em; font-variant-numeric: tabular-nums;
  transition: background-color .15s;
}
.header__call:hover { background: var(--blue-dark); }
.header__call .i { width: 18px; height: 18px; }

/* Trubka pod hlavičkou: plní se vodou podle toho, kolik je odscrollováno */
.flowbar { position: relative; height: 5px; background: var(--line); overflow: hidden; }
.flowbar span {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--fill, 0));
  background: linear-gradient(90deg, var(--blue), var(--water));
}
.flowbar span::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, .55) 18px 26px);
  animation: flowbar 1s linear infinite;
}
@keyframes flowbar { to { background-position: 26px 0; } }

.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); cursor: pointer; place-items: center; }
.burger .i-close, .burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 960px) {
  .burger { display: grid; }
  .nav {
    position: fixed; top: var(--nav-top, 100px); left: 0; right: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(19, 32, 43, .35);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s var(--ease); }
  .nav a { padding: 15px 2px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav__call { display: flex; align-items: center; gap: 10px; color: var(--blue) !important; font-weight: 700; border-bottom: 0 !important; }
}
@media (max-width: 520px) {
  .header__in { gap: 10px; }
  .header__call { padding: 8px 12px; }
  .header__call span { display: none; }
  .header__call .i { width: 20px; height: 20px; }
  .brand__text strong { font-size: 1.125rem; }
}

/* Hero */
.hero { padding: clamp(32px, 5vw, 64px) 0 0; }
.hero__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero__copy .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.1rem);
  font-weight: 800; font-stretch: var(--wide); line-height: 1.02; letter-spacing: -.025em;
}
.hero h1 span { display: block; color: var(--copper); }
.hero__lead { max-width: 34em; margin-top: 22px; font-size: 1.125rem; color: var(--ink-2); }

.hero__phone {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; padding: 12px 22px 12px 12px;
  background: var(--blue); color: #fff; border-radius: 10px; text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(11, 101, 166, .8); transition: background-color .15s, transform .2s var(--ease);
}
.hero__phone:hover { background: var(--blue-dark); transform: translateY(-2px); }
.hero__phone-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.hero__phone-icon .i { width: 24px; height: 24px; }
.hero__phone-text { display: flex; flex-direction: column; line-height: 1.1; }
.hero__phone-text small { font-size: .8125rem; opacity: .85; }
.hero__phone-text strong { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hero__phone-arrow { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.hero__phone:hover .hero__phone-arrow { transform: translateX(4px); }
.hero__alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.hero__facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); padding-top: 0; padding-bottom: 0;
  list-style: none;
}
.hero__facts li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  padding: 22px 16px 24px 0; border-top: 1px solid var(--line);
}
.hero__facts .i {
  grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  background: #E1EEF7; color: var(--blue);
}
.hero__facts .is-hot .i { background: #FBE4D8; color: var(--hot); }
.hero__facts strong { font-size: 1.0625rem; font-weight: 700; letter-spacing: .01em; }
.hero__facts span { font-size: .9063rem; line-height: 1.35; color: var(--muted); }
@media (min-width: 760px) { .hero__facts { grid-template-columns: repeat(4, 1fr); } }

/* Scéna s trubkami */
.scene { margin: 0; border: 1px solid #CADBE7; border-radius: 10px; overflow: hidden; background: var(--paper); }
.scene__svg {
  width: 100%; height: auto; cursor: default;
  background-color: #EBF3F9;
  background-image: linear-gradient(rgba(11, 101, 166, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 101, 166, .09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.scene__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #CADBE7; font-size: .9375rem; }
.scene__status { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.scene[data-open="false"] .live { background: #E2A23B; }
.scene__btn {
  min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent;
  font: 600 .875rem/1 var(--font); color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s;
}
.scene__btn:hover { background: var(--ink); color: #fff; }

.pipe { fill: none; stroke-linejoin: round; }
.pipe--edge { stroke: #7C401D; stroke-width: 26; }
.pipe--body { stroke: var(--copper); stroke-width: 20; }
.pipe--shine { stroke: #F2C298; stroke-width: 4; opacity: .85; }
.pipe--flow { stroke: #B4E2FC; stroke-width: 4; stroke-dasharray: 10 18; stroke-linecap: round; animation: flow .7s linear infinite; transition: opacity .6s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.fit rect { fill: #B28B39; stroke: #7E6122; stroke-width: 1.5; }

.valve { cursor: pointer; }
.valve__wheel { transform-origin: 150px 88px; transition: transform 1.3s var(--ease); }
.valve__rim { fill: none; stroke: #C8352A; stroke-width: 7; }
.valve__spokes { fill: none; stroke: #C8352A; stroke-width: 4; stroke-linecap: round; }
.valve__hub { fill: #9E271E; }
.valve:hover .valve__rim { stroke: #DE4436; }

.gauge__rim { fill: #DCE3E8; stroke: #8B979F; stroke-width: 3; }
.gauge__face { fill: #fff; }
.gauge__ticks { fill: none; stroke: var(--ink); stroke-width: 6; stroke-dasharray: 1.6 19.6; }
.gauge__red { fill: none; stroke: #D9412E; stroke-width: 4; }
.gauge__needle { transform-origin: 300px 62px; transform: rotate(22.5deg); transition: transform 1.6s var(--spring); }
.gauge__needle > * { transform-origin: 300px 62px; animation: jitter 1.8s ease-in-out infinite alternate; }
.gauge__needle path { fill: none; stroke: #C8352A; stroke-width: 2.5; stroke-linecap: round; }
.gauge__needle circle { fill: var(--ink); }
@keyframes jitter { from { transform: rotate(-1.5deg); } to { transform: rotate(1.8deg); } }

.spout { fill: #8A6A26; }
.stream { transform-origin: 240px 413px; transition: transform .45s var(--ease); }
.stream rect { fill: var(--water); opacity: .92; }
.stream path { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 6 12; stroke-linecap: round; opacity: .6; animation: fall .45s linear infinite; }
@keyframes fall { to { stroke-dashoffset: -18; } }
.puddle { fill: var(--water-soft); }
.ripple { fill: none; stroke: var(--water); stroke-width: 2; transform-origin: 240px 508px; animation: ripple 1.6s ease-out infinite; }
.ripple--2 { animation-delay: .8s; }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.drip { fill: var(--water); opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }

/* Zavřený ventil: voda stojí, tlak spadne a kohoutek občas kápne */
.scene[data-open="false"] .valve__wheel { transform: rotate(-300deg); }
.scene[data-open="false"] .pipe--flow { animation-play-state: paused; opacity: .15; }
.scene[data-open="false"] .gauge__needle { transform: rotate(-135deg); }
.scene[data-open="false"] .gauge__needle > * { animation: none; }
.scene[data-open="false"] .stream { transform: scaleY(0); }
.scene[data-open="false"] .drip { animation: drip 3.2s 1.2s ease-in infinite; }
.scene[data-open="false"] .ripple { animation: ripple-drip 3.2s 1.2s ease-out infinite; opacity: 0; }
.scene[data-open="false"] .ripple--2 { animation-delay: 1.4s; }
@keyframes drip {
  0% { transform: translateY(0) scale(.2); opacity: 0; }
  20% { transform: translateY(0) scale(1); opacity: 1; }
  40% { transform: translateY(2px) scale(1, 1.15); opacity: 1; }
  58% { transform: translateY(86px) scale(.9, 1.2); opacity: 1; }
  59%, 100% { transform: translateY(86px); opacity: 0; }
}
@keyframes ripple-drip {
  0%, 57% { transform: scale(.3); opacity: 0; }
  59% { transform: scale(.3); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* S čím potřebujete pomoct */
.help { padding: clamp(56px, 7vw, 96px) 0; }
.help__grid { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .help__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .help__grid { grid-template-columns: repeat(4, 1fr); } }
.help__item {
  --c: var(--blue);
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; overflow: hidden;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.help__item--hot { --c: var(--hot); }
.help__item::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.help__item:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(19, 32, 43, .5); }
.help__item:hover::before { transform: scaleX(1); }
.help__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 10px; background: color-mix(in srgb, var(--c) 11%, #fff); color: var(--c); }
.help__icon .i { width: 24px; height: 24px; }
.help__item strong { font-size: 1.125rem; }
.help__desc { color: var(--muted); font-size: .9375rem; }
.help__item em { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 700; font-size: .9375rem; color: var(--c); }

/* Sekce obecně */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; }

/* Co dělám: páková baterie */
.mixer { border-top: 1px solid var(--line); transition: background-color .6s; }
.mixer[data-mode="hot"] { --accent: var(--hot); background: #FBF3EE; }
.mixer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .mixer__grid { grid-template-columns: 380px 1fr; gap: 72px; align-items: start; } .mixer__side { position: sticky; top: calc(var(--header-h) + 32px); } }
.mixer__side .muted { margin-top: 10px; }

.tap { position: relative; max-width: 300px; margin: 24px 0 0; }
.tap__svg { width: 100%; height: auto; cursor: pointer; overflow: visible; }
.tap__lever { transform-origin: 150px 116px; transform: rotate(-30deg); transition: transform .7s var(--spring); }
.mixer[data-mode="hot"] .tap__lever { transform: rotate(30deg); }
.tap__svg:hover .tap__lever { filter: brightness(1.05); }
.tap__spout { fill: none; stroke: #C9D2D7; stroke-width: 20; stroke-linecap: round; }
.tap__stream { fill: var(--water); transition: fill .6s; }
.mixer[data-mode="hot"] .tap__stream { fill: #F2894E; }
.tap__stream-line { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 7 13; stroke-linecap: round; opacity: .55; animation: fall .5s linear infinite; }
.tap__dot--cold { fill: #2B8BDA; }
.tap__dot--hot { fill: var(--hot); }
.tap__pool { fill: var(--water-soft); transition: fill .6s; }
.mixer[data-mode="hot"] .tap__pool { fill: var(--hot-soft); }
.tap__steam path { fill: none; stroke: #C2B4AC; stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .6s; }
.mixer[data-mode="hot"] .tap__steam path { animation: steam 2.4s ease-in-out infinite; }
.mixer[data-mode="hot"] .tap__steam path:nth-child(2) { animation-delay: .8s; }
.mixer[data-mode="hot"] .tap__steam path:nth-child(3) { animation-delay: 1.6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-26px); } }

/* Přepínač voda / topení: posuvný jezdec v barvě režimu */
.switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 360px; margin-top: 22px; padding: 5px;
  background: var(--paper); border: 2px solid var(--accent); border-radius: 999px;
  box-shadow: 0 14px 28px -18px color-mix(in srgb, var(--accent) 80%, transparent); transition: border-color .5s, box-shadow .5s;
}
.switch::before {
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: var(--accent); transition: transform .55s var(--spring), background-color .5s;
}
.mixer[data-mode="hot"] .switch::before { transform: translateX(100%); }
.switch.is-hint::before { animation: nudge 2.4s 1.2s ease-in-out 3; }
@keyframes nudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(14px); } 90% { transform: translateX(-3px); } }
.switch__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent;
  font: 700 1.0625rem/1.1 var(--font); white-space: nowrap; color: var(--ink-2); cursor: pointer; transition: color .35s;
}
.switch__btn .i { width: 20px; height: 20px; }
.switch__btn:not([aria-selected="true"]):hover { color: var(--accent); }
.switch__btn[aria-selected="true"] { color: #fff; }

.panel { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel__title { margin: 8px 0 24px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; font-stretch: var(--wide); letter-spacing: -.015em; }
.svc { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .svc { grid-template-columns: 1fr 1fr; } }
.svc li {
  padding: 22px 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.svc li:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-3px); box-shadow: 0 18px 30px -24px rgba(19, 32, 43, .5); }
.svc .i {
  width: 42px; height: 42px; margin-bottom: 14px; padding: 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); transition: background-color .5s, color .5s;
}
.svc h4 { font-size: 1.0625rem; font-weight: 700; }
.svc p { margin-top: 4px; color: var(--muted); font-size: .9688rem; }

/* Jak to probíhá: radiátor */
.steps { padding: clamp(64px, 8vw, 112px) 0; background: var(--dark); color: #E6EDF2; }
.steps__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .steps__grid { grid-template-columns: 1fr 1fr; gap: 72px; } .steps__stage { position: sticky; top: calc(var(--header-h) + 60px); align-self: start; } }
.rad { max-width: 440px; margin: 0 auto; }
.rad svg { width: 100%; height: auto; overflow: visible; }
.rad__fins rect { fill: #3A4C5A; transition: fill .5s; }
.rad__pipe { fill: #4A5D6B; }
.rad__valve { fill: #8C9AA4; }
.rad__head { fill: #E9EEF1; }
.rad__grip { fill: none; stroke: #B6C2CA; stroke-width: 2.5; stroke-linecap: round; }
.rad__glow { opacity: var(--p, 0); }
.rad__pipe-out { stroke: #4A5D6B; stroke-width: 12; }
.rad__heat path { fill: none; stroke: #FF7A4D; stroke-width: 3; stroke-linecap: round; opacity: calc(var(--p, 0) * .9); animation: heat 2.6s ease-in-out infinite; }
.rad__heat path:nth-child(2) { animation-delay: .9s; }
.rad__heat path:nth-child(3) { animation-delay: 1.7s; }
@keyframes heat { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-6px); } }

.steps h2 { color: #fff; }
.steps__list { position: relative; margin: 36px 0 0; padding: 0 0 0 44px; list-style: none; counter-reset: s; }
.steps__list::before, .steps__list::after { content: ""; position: absolute; left: 13px; top: 6px; width: 6px; border-radius: 3px; }
.steps__list::before { bottom: 6px; background: var(--dark-line); }
.steps__list::after { height: calc(var(--p, 0) * (100% - 12px)); background: linear-gradient(180deg, var(--water), #FF6A3D); }
.steps__list li { position: relative; padding: 0 0 clamp(48px, 9vh, 96px); counter-increment: s; }
.steps__list li:last-child { padding-bottom: 0; }
/* Ztlumí se jen text, kolečko s číslem zůstává plné, aby přes něj neprosvítala čára */
.steps__list li > * { opacity: .45; transition: opacity .4s; }
.steps__list li.is-active > *, .steps__list li.is-done > * { opacity: 1; }
.steps__list li::before {
  content: counter(s); position: absolute; left: -44px; top: -2px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--dark); border: 2px solid var(--dark-line);
  font-weight: 800; font-size: .9375rem; color: var(--dark-muted); z-index: 2; transition: border-color .4s, color .4s, background-color .4s;
}
.steps__list li.is-active::before, .steps__list li.is-done::before { border-color: #FF7A4D; color: #fff; background: #3A2A26; }
.steps__list h3 { font-size: 1.375rem; color: #fff; }
.steps__list p { margin-top: 8px; color: var(--dark-muted); max-width: 30em; }

/* O mně */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; } }
.about__copy h2 { margin: 10px 0 20px; }
.about__copy > p { color: var(--ink-2); max-width: 34em; }
.about__quote { margin: 28px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--copper); }
.about__quote p { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 600; line-height: 1.35; }
.about__quote footer { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
/* Karty Pro koho: po najetí myší je zespodu zaplaví voda s vlnkou */
.who li {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
  padding: 22px 18px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.who li::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: calc(100% + 18px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18'%3E%3Cpath d='M0 9c15 0 15-7 30-7s15 7 30 7 15-7 30-7 15 7 30 7v9H0z' fill='%230B65A6'/%3E%3C/svg%3E") 0 0 / 120px 18px repeat-x,
    linear-gradient(var(--blue), var(--blue)) 0 17px / 100% 100% no-repeat;
  transform: translateY(100%); transition: transform .6s var(--ease);
  animation: wave 1.6s linear infinite;
}
@keyframes wave { to { background-position: 120px 0, 0 17px; } }
.who li:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 22px 34px -24px rgba(11, 101, 166, .8); }
.who li:hover::before { transform: translateY(0); }
.who .i { width: 30px; height: 30px; margin-bottom: 10px; color: var(--blue); transition: color .3s .1s, transform .4s var(--spring); }
.who strong { font-size: 1.0625rem; transition: color .3s .1s; }
.who span { font-size: .9063rem; color: var(--muted); transition: color .3s .1s; }
.who li:hover .i { color: #fff; transform: translateY(-2px) scale(1.12); }
.who li:hover strong { color: #fff; }
.who li:hover span { color: #D6E8F5; }

/* Galerie (zatím plánky místo fotek) */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.ph {
  display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 4 / 3; border-radius: 8px;
  border: 1.5px dashed #9DBCD4; color: #5D88AE; font-size: .875rem;
  background-color: #F3F8FB;
  background-image: linear-gradient(rgba(11, 101, 166, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 101, 166, .08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.ph .i { width: 34px; height: 34px; stroke-width: 1.5; }
.gallery figcaption { margin-top: 10px; font-weight: 600; font-size: .9375rem; }

/* Ceník a otázky: teplé pozadí, ceník i otázky jako karty */
.section--warm {
  background-color: #F4E8DC;
  background-image: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .7), transparent 45%), radial-gradient(circle at 100% 0%, rgba(196, 115, 63, .14), transparent 50%);
}
.pricing { display: grid; gap: 40px; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.pcard {
  position: relative; padding: clamp(24px, 3vw, 36px); background: var(--paper); border-radius: 14px;
  box-shadow: 0 24px 40px -30px rgba(122, 62, 28, .55); overflow: hidden;
}
.pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--copper), #E39A62); }
.pcard .muted { margin-top: 12px; max-width: 32em; }
.prices { margin: 24px 0 0; }
.prices div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px dashed #E3D3C4; }
.prices dt { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.prices dt .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #F8EADF; color: var(--copper); }
.prices dd { margin: 0; padding: 4px 12px; border-radius: 999px; background: #F6EFE9; color: var(--ink-2); font-size: .9063rem; font-weight: 600; text-align: right; }
.tip { display: flex; gap: 16px; margin-top: 16px; padding: 20px 22px; border-radius: 14px; background: var(--blue); color: #fff; }
.tip__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--blue); }
.tip strong { display: block; margin-bottom: 4px; font-size: 1.0625rem; }
.tip p { color: #DCEBF6; font-size: .9688rem; }
.faq__title { font-size: clamp(1.85rem, 1.3rem + 2.3vw, 3rem); margin-bottom: 20px; }
.faq details {
  margin-bottom: 10px; padding: 0 22px; background: rgba(255, 255, 255, .75); border: 1px solid #E6D4C3; border-radius: 12px;
  transition: background-color .2s, box-shadow .25s, border-color .2s;
}
.faq details:hover { background: #fff; }
.faq details[open] { background: #fff; border-color: transparent; box-shadow: inset 4px 0 0 var(--copper), 0 18px 30px -24px rgba(122, 62, 28, .6); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #F8EADF; color: var(--copper); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.faq details[open] summary .i { transform: rotate(45deg); background: var(--copper); color: #fff; }
.faq details p { padding: 0 32px 20px 0; color: var(--ink-2); }

/* Kontakt: tlumená ocelově modrá (světlejší než tmavá navy), nahoře do ní „vteče“ béžová z ceníku vlnkou */
.contact {
  position: relative; color: #fff; padding: clamp(96px, 10vw, 140px) 0 0;
  background-color: #34566F;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 15% 20%, rgba(107, 189, 240, .28), transparent 55%),
    linear-gradient(165deg, #43698A 0%, #34566F 55%, #2C4B62 100%);
  background-size: 26px 26px, 26px 26px, auto, auto;
}
.contact::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 44' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v18c-30 0-30 16-60 16s-30-16-60-16-30 16-60 16S30 18 0 18z' fill='%23F4E8DC'/%3E%3C/svg%3E") 0 0 / 480px 44px repeat-x;
  animation: shore 9s linear infinite;
}
@keyframes shore { to { background-position: 480px 0; } }
.contact__grid { display: grid; gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact h2 { color: #fff; }
.contact__info > p { margin-top: 12px; color: #CFE0EC; }
.contact__phone { display: inline-block; margin-top: 18px; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); font-weight: 800; font-stretch: var(--wide); color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: -.01em; transition: color .15s; }
.contact__phone:hover { color: #A9DBFA; }
.contact__alt { margin-top: 16px; }
.chipbtn--warm { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.chipbtn--warm:hover { background: #fff; border-color: #fff; color: #34566F; }
.contact__list { margin: 32px 0 0; }
.contact__list div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.contact__list dt { color: #B5CBDB; }
.contact__list dd { margin: 0; }
.contact__list a { color: #fff; }
.contact .form { box-shadow: 0 30px 50px -28px rgba(10, 30, 48, .65); }

.form { position: relative; padding: clamp(22px, 3vw, 36px); background: var(--paper); color: var(--ink); border-radius: 12px; }
.form > h3 { font-size: 1.5rem; font-stretch: var(--wide); font-weight: 800; }
.form__intro { margin-top: 6px; color: var(--muted); font-size: .9688rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #C3CDD4; border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 101, 166, .18); }
.field [aria-invalid="true"] { border-color: #C62828; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick__btn {
  min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font: 500 .875rem/1 var(--font); color: var(--ink-2); cursor: pointer;
}
.quick__btn:hover { border-color: var(--blue); }
.quick__btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.hp { position: absolute; left: -9999px; }
.form__note { margin: 16px 0; font-size: .875rem; color: var(--muted); }
.form__status { margin-top: 12px; font-size: .9375rem; }
.form__status.is-err { color: #C62828; }
.form.is-done > :not(.form__done) { visibility: hidden; }
.form__done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; }
.form__done[hidden] { display: none; }
.form__check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; }
.form__check .i { width: 30px; height: 30px; stroke-width: 2.5; }
.form__done h3 { font-size: 1.5rem; }
.form__done p { color: var(--muted); }
.form__done-call a { color: var(--blue); font-weight: 700; }

.gmap {
  position: relative; height: 340px; color: var(--ink);
  background-color: #E7EEF3;
  background-image: linear-gradient(rgba(52, 86, 111, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 86, 111, .08) 1px, transparent 1px);
  background-size: 26px 26px;
}
.gmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gmap.is-loaded .gmap__facade { display: none; }
.gmap__facade { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.gmap__pin { width: 40px; height: 40px; fill: none; stroke: #34566F; stroke-width: 1.8; }
.gmap__addr { font-weight: 700; font-size: 1.125rem; }
.gmap__btn { min-height: 44px; padding: 8px 22px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 700 .9375rem/1 var(--font); cursor: pointer; transition: background-color .15s; }
.gmap__btn:hover { background: var(--blue-dark); }
.gmap__note { max-width: 30em; font-size: .8125rem; color: var(--muted); }

/* Patička */
.footer { padding: 56px 0 32px; background: var(--paper); border-top: 1px solid var(--line); }
.footer__top { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand p { margin-top: 14px; max-width: 26em; color: var(--muted); }
.footer__col h2 { font-size: .8125rem; font-stretch: 100%; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__col li + li { margin-top: 6px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--blue); }
.footer__phone { font-weight: 800; font-size: 1.25rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

/* Mobilní lišta s telefonem */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(244, 246, 247, .96); border-top: 1px solid var(--line);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
  .callbar__call { flex: 1; background: var(--blue); color: #fff; }
  .callbar__call span { font-variant-numeric: tabular-nums; }
  .callbar__alt { padding: 0 20px; border: 1px solid var(--line); background: var(--paper); }
  body { padding-bottom: 70px; }
}

/* Nadpisy sekcí vyjedou při scrollu */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pipe--flow, .stream path, .tap__stream-line, .flowbar span::after, .rad__heat path, .gauge__needle > * { animation: none !important; }
}
