/* ============================================================
   Úklidová pohádka — style.css
   Barevné schéma dle letáku: petrolejová (#0e6f7c) + zelená (#57b947)
   ============================================================ */

:root {
  --teal-900: #0a4a52;
  --teal-800: #0d5c63;
  --teal-700: #0e6f7c;
  --teal-600: #128392;
  --teal-500: #17a2b0;
  --teal-100: #dcf3f5;
  --teal-50:  #eefafb;
  --green-600: #3fa037;
  --green-500: #57b947;
  --green-400: #7cc95e;
  --green-300: #8bd450;
  --green-100: #e4f6d9;
  --ink: #10333a;
  --muted: #4d6870;
  --bg: #f6fbfb;
  --surface: #ffffff;
  --border: #dbeeee;
  --shadow: 0 10px 30px rgba(10, 74, 82, .10);
  --shadow-lg: 0 20px 50px rgba(10, 74, 82, .16);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --teal-50:  #0b2e34;
  --teal-100: #0f3a41;
  --green-100: #16321c;
  --ink: #e8f4f4;
  --muted: #9cbec3;
  --bg: #062126;
  --surface: #0b333b;
  --border: #14454e;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; }
[data-theme="dark"] a { color: var(--teal-500); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 96px 0; }
.section-alt { background: var(--teal-50); }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--teal-600);
  background: var(--teal-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
[data-theme="dark"] .kicker { color: var(--green-300); }
.grad-text {
  background: linear-gradient(92deg, var(--teal-600), var(--green-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 18px 0 28px; max-width: 540px; }
.muted { color: var(--muted); }
.fineprint { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(92deg, var(--teal-700), var(--green-500));
  color: #fff; box-shadow: 0 8px 22px rgba(14, 111, 124, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14, 111, 124, .45); }
.btn-outline { border-color: var(--teal-700); color: var(--teal-700); background: transparent; }
.btn-outline:hover { background: var(--teal-700); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--teal-800); box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background .35s ease;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--ink); }
.logo strong { color: var(--teal-700); }
[data-theme="dark"] .logo strong { color: var(--green-300); }
.logo-icon { width: 38px; height: 38px; color: var(--teal-700); flex-shrink: 0; }
[data-theme="dark"] .logo-icon { color: var(--green-400); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 3px; width: 0;
  border-radius: 3px; background: linear-gradient(90deg, var(--teal-600), var(--green-500));
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; }
#openClientZoneMobile { display: none; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
  color: var(--teal-800); transition: transform .3s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); }
.icon-moon { display: none; width: 18px; height: 18px; }
.icon-sun { width: 18px; height: 18px; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--teal-100), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, var(--green-100), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.badge {
  display: inline-block; background: var(--green-100); color: var(--green-600);
  font-weight: 700; font-size: .85rem; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
[data-theme="dark"] .badge { color: var(--green-300); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--teal-700); }
[data-theme="dark"] .stat strong { color: var(--green-300); }
.stat span { font-size: .85rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual img { filter: drop-shadow(0 24px 40px rgba(10, 74, 82, .18)); animation: float 6s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero-bg .bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(23,162,176,.15));
  border: 1px solid rgba(23, 162, 176, .18);
  animation: rise linear infinite; pointer-events: none;
}
[data-theme="dark"] .hero-bg .bubble {
  background: radial-gradient(circle at 30% 30%, rgba(140, 212, 80, .12), rgba(23,162,176,.08));
  border-color: rgba(140, 212, 80, .15);
}
.hero-bg .b1 { width: 70px; height: 70px; left: 8%;  bottom: -80px; animation-duration: 12s; }
.hero-bg .b2 { width: 36px; height: 36px; left: 30%; bottom: -80px; animation-duration: 9s;  animation-delay: 2s; }
.hero-bg .b3 { width: 110px; height: 110px; left: 55%; bottom: -120px; animation-duration: 15s; animation-delay: 1s; }
.hero-bg .b4 { width: 48px; height: 48px; left: 78%; bottom: -80px; animation-duration: 10s; animation-delay: 3s; }
.hero-bg .b5 { width: 26px; height: 26px; left: 92%; bottom: -60px; animation-duration: 8s;  animation-delay: 4s; }
@keyframes rise { to { transform: translateY(-115vh) rotate(40deg); opacity: 0; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid var(--teal-600); border-radius: 14px; opacity: .6;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px;
  background: var(--teal-600); transform: translateX(-50%);
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 8px; } }

/* ---------- Garance ---------- */
.guarantees { padding: 0; }
.guarantees-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  transform: translateY(-46px);
}
.guarantee {
  display: flex; gap: 14px; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.guarantee p { font-size: .85rem; color: var(--muted); }
.g-icon { font-size: 1.9rem; }

/* ---------- Služby ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 24px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--teal-600), var(--green-500));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--teal-50); border-radius: 16px; margin-bottom: 16px;
  transition: transform .3s ease;
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(-6deg); }
.service-card p { font-size: .92rem; color: var(--muted); margin: 8px 0 16px; }
.service-link { font-weight: 700; font-size: .9rem; }
.services-note { text-align: center; margin-top: 34px; color: var(--muted); }

/* ---------- Proces ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; counter-reset: step; }
.step {
  background: var(--surface); border-radius: var(--radius-lg); padding: 30px 24px;
  border: 1px solid var(--border); text-align: center; position: relative;
  transition: transform .3s ease;
}
.step:hover { transform: translateY(-6px); }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 50%; font-weight: 800; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, var(--teal-700), var(--green-500));
  box-shadow: 0 8px 18px rgba(14, 111, 124, .35);
}
.step p { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* ---------- Ceník ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 46px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; text-align: center; position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2px solid var(--green-500); box-shadow: 0 14px 34px rgba(87, 185, 71, .22); }
.price-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green-500); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 2.3rem; font-weight: 800; color: var(--teal-700); margin: 12px 0 16px; }
[data-theme="dark"] .price { color: var(--green-300); }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); margin-right: 4px; }
.price-card ul { list-style: none; font-size: .9rem; color: var(--muted); }
.price-card ul li { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.price-card ul li:last-child { border: 0; }
.price-table-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 30px; box-shadow: var(--shadow);
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
.price-table td { padding: 11px 8px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--teal-700); }
[data-theme="dark"] .price-table td:last-child { color: var(--green-300); }
.price-table tr:last-child td { border-bottom: 0; }

/* ---------- Kalkulačka ---------- */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 50px; box-shadow: var(--shadow-lg);
}
.calc-benefits { list-style: none; margin: 18px 0 30px; color: var(--muted); }
.calc-benefits li { padding: 5px 0; }
.calc-result {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
  color: #fff; border-radius: var(--radius); padding: 24px 28px;
  display: flex; flex-direction: column; gap: 2px;
}
[data-theme="dark"] .calc-result { background: linear-gradient(135deg, var(--teal-900), var(--green-600)); }
.calc-result-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
#calcResult { font-size: 2.1rem; font-weight: 800; }
.calc-note { font-size: .82rem; opacity: .85; }

.calc-form { display: flex; flex-direction: column; gap: 20px; }
.calc-form label, .contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.calc-form select, .contact-form select,
.calc-form input, .contact-form input, .contact-form textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
[data-theme="dark"] .calc-form select, [data-theme="dark"] .contact-form select,
[data-theme="dark"] .calc-form input, [data-theme="dark"] .contact-form input, [data-theme="dark"] .contact-form textarea {
  background: var(--teal-50); color: var(--ink);
}
.calc-form :is(input, select):focus, .contact-form :is(input, select, textarea):focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(23, 162, 176, .15);
}
.calc-form output { font-weight: 700; color: var(--teal-700); }
[data-theme="dark"] .calc-form output { color: var(--green-300); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 8px; border-radius: 8px; padding: 0;
  background: linear-gradient(90deg, var(--teal-500), var(--green-400)) no-repeat var(--border);
  background-size: 50% 100%; cursor: pointer; border: 0 !important;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-700); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.calc-extras { border: 0; display: flex; flex-direction: column; gap: 8px; }
.calc-extras legend { font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; font-size: .9rem !important; }
.check input { width: 18px; height: 18px; accent-color: var(--green-500); flex-shrink: 0; }
label em { color: #d9534f; font-style: normal; }

/* ---------- Reference ---------- */
.refs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ref-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .3s ease, box-shadow .3s ease;
}
.ref-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stars { color: #f5b301; letter-spacing: 3px; margin-bottom: 12px; }
.ref-card blockquote { font-size: .95rem; margin-bottom: 18px; }
.ref-card figcaption { display: flex; align-items: center; gap: 12px; }
.ref-card figcaption span:last-child { display: flex; flex-direction: column; }
.ref-card figcaption span:last-child span { font-size: .8rem; color: var(--muted); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-600), var(--green-500));
  color: #fff; font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.avatar::before { content: attr(data-initials); }
.avatar:not([data-initials])::before { content: "ÚP"; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .25s ease;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 18px 22px; list-style: none;
  position: relative; padding-right: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--teal-600); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* ---------- Kontakt ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.c-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-100); font-size: 1.2rem; flex-shrink: 0;
}
.contact-list strong { display: block; font-size: .9rem; }
.contact-list a, .contact-list span:last-child { font-weight: 600; font-size: 1rem; }
.contact-list a:hover { text-decoration: underline; }
.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px;
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: var(--green-600); }
.form-status.err { color: #d9534f; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-900); color: #cfe7ea; padding: 64px 0 0; }
[data-theme="dark"] .footer { background: #04191e; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer a, .footer span { display: block; color: #cfe7ea; font-size: .92rem; padding: 4px 0; }
.footer a:hover { color: var(--green-300); }
.logo-footer { color: #fff; }
.logo-footer strong { color: var(--green-300); }
.logo-footer .logo-icon { color: var(--green-300); }
.footer-motto { font-style: italic; margin-top: 12px; opacity: .85; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; font-size: .82rem;
}
.footer-bottom span { padding: 0; opacity: .75; }

/* ---------- Modal — klientská zóna ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(6, 33, 38, .6); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); width: min(680px, 100%);
  max-height: 88vh; overflow-y: auto; padding: 38px; position: relative;
  transform: translateY(24px) scale(.97); transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  cursor: pointer; font-size: .9rem; color: var(--ink);
}
.modal h3 { font-size: 1.5rem; margin-bottom: 6px; }
.cz-tabs { display: flex; gap: 8px; margin: 20px 0; background: var(--bg); padding: 5px; border-radius: 999px; }
.cz-tab {
  flex: 1; padding: 10px; border-radius: 999px; border: 0; background: transparent;
  font-weight: 700; cursor: pointer; font-family: inherit; color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.cz-tab.active { background: linear-gradient(92deg, var(--teal-700), var(--green-500)); color: #fff; }
.cz-form { display: flex; flex-direction: column; gap: 14px; }
.cz-demo-hint { font-size: .82rem; color: var(--muted); text-align: center; }
.hidden { display: none !important; }
.cz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.cz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 26px; }
.cz-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.cz-stat strong { display: block; font-size: 1.4rem; color: var(--teal-700); }
[data-theme="dark"] .cz-stat strong { color: var(--green-300); }
.cz-stat span { font-size: .78rem; color: var(--muted); }
#czDashboard h4 { margin: 22px 0 10px; }
.cz-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cz-table th { text-align: left; padding: 8px 6px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.cz-table td { padding: 10px 6px; border-top: 1px solid var(--border); }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--green-100); color: var(--green-600); }
.pill-wait { background: var(--teal-100); color: var(--teal-700); }
[data-theme="dark"] .pill-ok { color: var(--green-300); }

/* ---------- Livechat ---------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-fab {
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.6rem; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--teal-700), var(--green-500));
  box-shadow: 0 10px 26px rgba(14, 111, 124, .45);
  transition: transform .25s ease;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-dot {
  position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: #4cd964; border: 2px solid #fff; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 217, 100, .6); } 70% { box-shadow: 0 0 0 10px rgba(76, 217, 100, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 217, 100, 0); } }
.chat-box {
  width: min(360px, calc(100vw - 44px)); height: 480px; max-height: 70vh;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px) scale(.95); opacity: 0; pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.chat-box.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head {
  background: linear-gradient(92deg, var(--teal-700), var(--green-600)); color: #fff;
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center;
}
.chat-agent { display: flex; align-items: center; gap: 10px; }
.chat-agent .avatar { width: 38px; height: 38px; font-size: .8rem; background: rgba(255,255,255,.2); }
.chat-agent span:last-child { display: flex; flex-direction: column; font-size: .78rem; }
.chat-status { opacity: .85; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { background: var(--teal-100); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.msg.user { background: linear-gradient(92deg, var(--teal-700), var(--green-500)); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.chat-quick button {
  font-size: .78rem; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font-family: inherit; transition: border-color .2s ease;
}
.chat-quick button:hover { border-color: var(--teal-500); }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.chat-input input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 999px; padding: 10px 16px;
  font-family: inherit; font-size: .9rem; background: var(--bg); color: var(--ink);
}
.chat-input input:focus { outline: none; border-color: var(--teal-500); }
.chat-input button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--teal-700), var(--green-500));
}

/* ---------- Reveal animace ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsivita ---------- */
@media (max-width: 1024px) {
  .services-grid, .pricing-grid, .steps, .guarantees-grid { grid-template-columns: repeat(2, 1fr); }
  .refs-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: 1; }
  .calc-wrap, .contact-wrap { grid-template-columns: 1fr; padding-inline: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 24px; gap: 18px; transform: translateY(-130%); transition: transform .35s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); }
  .hamburger { display: flex; }
  #openClientZoneMobile { display: inline-flex; }
  #openClientZone { display: none; }
  .services-grid, .pricing-grid, .steps, .guarantees-grid, .refs-grid, .form-grid, .cz-stats { grid-template-columns: 1fr; }
  .guarantees-grid { transform: translateY(-24px); }
  .calc-wrap { padding: 28px 22px; }
  .contact-form { padding: 26px 20px; }
  .header-phone { display: none; }
  .modal { padding: 26px 20px; }
  .cz-table { font-size: .8rem; }
  .hero-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
