/* Base */
:root{
  --bg1:#e0f4ff; --bg2:#f5e8ff; --bg3:#e6ffef; --txt:#101418; --muted:#5b6876;
  --brand:#0d61ff; --brand-2:#ff4d8c; --white:#fff; --card:#ffffffcc; --shadow: 0 10px 30px rgba(16,20,24,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif; color:var(--txt);
  line-height:1.6; background:#fafafa; overflow-x:hidden;
}
a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1100px; margin:0 auto; padding:0 20px}

/* Animated background */
.bg-anim{
  position:fixed; inset:0; z-index:-1;
  background: radial-gradient(1200px 600px at 10% 10%, var(--bg1), transparent 60%),
              radial-gradient(1200px 600px at 90% 20%, var(--bg2), transparent 60%),
              radial-gradient(1200px 600px at 50% 90%, var(--bg3), transparent 60%),
              linear-gradient(120deg, #f9fbff, #fff);
  animation:bgShift 24s linear infinite;
  filter:saturate(110%);
}
@keyframes bgShift{
  0%{background-position: 0% 0%, 100% 10%, 50% 100%, 0 0}
  50%{background-position: 10% 20%, 90% 0%, 40% 80%, 100% 0}
  100%{background-position: 0% 0%, 100% 10%, 50% 100%, 0 0}
}

/* Header & Nav */
.site-header{display:flex; align-items:center; gap:28px; padding:28px 0}
.brand{font-weight:800; font-size:22px; line-height:1; color:#111; letter-spacing:.2px}
.brand span{font-weight:800; color:var(--brand)}
.nav{margin-left:auto}
.menu{list-style:none; display:flex; gap:18px; margin:0; padding:0}
.menu-item>a{display:block; padding:10px 12px; border-radius:10px}
.menu-item>a:hover{background:#00000008}
.has-sub{position:relative}
.submenu{
  position:absolute; top:110%; left:0; background:var(--white); min-width:220px;
  padding:8px; border-radius:14px; box-shadow:var(--shadow);
  opacity:0; pointer-events:none; transform:translateY(8px); transition:.2s ease;
}
.submenu li{list-style:none}
.submenu a{display:block; padding:10px 12px; border-radius:10px; color:#1a1f24}
.submenu a:hover{background:#f5f7fb}
.has-sub:hover .submenu{opacity:1; pointer-events:auto; transform:translateY(0)}

/* Hero */
.hero{display:grid; grid-template-columns:1.1fr 0.9fr; gap:36px; align-items:center; padding:20px 0 10px}
.hero-copy h1{font-size:40px; line-height:1.1; margin:0 0 10px}
.hero-copy p{color:var(--muted); margin:0 0 18px}
.cta-row{display:flex; gap:12px; flex-wrap:wrap}
.btn{background:var(--brand); color:#fff; padding:12px 16px; border-radius:12px; border:0; font-weight:600; display:inline-block}
.btn:hover{filter:brightness(0.95)}
.btn-ghost{background:#0000000a; color:#111}

.notice{
  background:#ffffffb3; border:1px solid #eef1f6; padding:14px 16px; border-radius:12px; margin:10px 0 24px;
}

/* SVG Animation styles */
.hero-anim{background:#ffffffa6; border:1px solid #eef1f6; border-radius:16px; padding:14px; box-shadow:var(--shadow)}
.hero-anim svg{width:100%; height:auto; display:block}
.pipe{fill:none; stroke:#6b7f99; stroke-width:10; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:600; stroke-dashoffset:600; opacity:0}
.water{fill:none; stroke:#1aa6ff; stroke-width:6; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:40 12; stroke-dashoffset:0; opacity:0}
.pipes .seg1{animation:draw 2.4s ease forwards .4s, pipeIn .4s ease forwards .4s}
.pipes .seg2{animation:draw 2.4s ease forwards 1.2s, pipeIn .4s ease forwards 1.2s}
.pipes .seg3{animation:draw 2.4s ease forwards 2.0s, pipeIn .4s ease forwards 2.0s}
.pipes .w1{animation:waterFlow 2.2s linear infinite 3.2s; opacity:1}
.pipes .w2{animation:waterFlow 2.2s linear infinite 3.6s; opacity:1}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes pipeIn{from{opacity:0} to{opacity:1}}
@keyframes waterFlow{from{stroke-dashoffset:0} to{stroke-dashoffset:-200}}

.house{opacity:0; transition:opacity .8s ease}
.house-line{fill:none; stroke:#ff3f6c; stroke-width:8; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:600; stroke-dashoffset:600}
.house-door,.house-window{fill:#ff3f6c15; stroke:#ff3f6c; stroke-width:4; stroke-dasharray:220; stroke-dashoffset:220}
.house-animate .house-line{animation:draw 2.8s ease forwards}
.house-animate .house-door{animation:draw 2s ease forwards .8s}
.house-animate .house-window{animation:draw 2s ease forwards 1.1s}

.anim-caption{margin:10px 0 0; color:var(--muted); font-size:14px}

/* Sections */
.section{padding:30px 0}
.section h2{font-size:28px; margin:0 0 14px}
.grid{display:grid; gap:18px; grid-template-columns:repeat(3, 1fr)}
.card{background:var(--card); border:1px solid #eef1f6; border-radius:16px; padding:18px; box-shadow:var(--shadow)}
.card h3{margin-top:0}
.card ul{padding-left:18px; margin:10px 0 0}

/* Kontakt */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:22px}
.contact-form label{display:block; font-weight:600; margin:8px 0 6px}
.contact-form input, .contact-form textarea{
  width:100%; padding:12px 12px; border-radius:12px; border:1px solid #dfe6ee; background:#fff;
}
.form-hint{font-size:12px; color:var(--muted)}

/* Footer */
.site-footer{border-top:1px solid #eef1f6; margin-top:30px; background:#ffffffbf; backdrop-filter: blur(8px)}
.footer-grid{display:grid; grid-template-columns:1fr auto 1fr; gap:10px; align-items:center; padding:18px 0}
.footer-grid .legal-links{display:flex; gap:14px; justify-content:center}
.footer-grid .hosted{text-align:right}
#year{opacity:.8}

/* Legal pages */
.legal{padding:30px 0 50px}
.legal h1{margin-top:8px}

/* Responsive */
@media (max-width: 960px){
  .hero{grid-template-columns:1fr; gap:20px}
  .grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr; text-align:center}
  .footer-grid .hosted{text-align:center}
}
