:root {
  --bg: #f6f8f7;
  --ink: #14213d;
  --muted-ink: #52616b;
  --panel: #ffffff;
  --line: #d9e2df;
  --accent: #0f766e;
  --accent-2: #e76f51;
  --accent-soft: #e8f5f2;
  --maxw: 1120px;
  --pad: 22px;
  --radius: 8px;
  --map-h: 380px;
  --chart-h: 360px;
}

@media (max-width: 640px) {
  :root { --pad: 16px; --map-h: 260px; --chart-h: 270px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: var(--accent); }

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: .95rem;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-links a:hover { background: rgba(255,255,255,.14); color: #fff; }

.hero {
  position: relative;
  min-height: 580px;
  display: grid;
  align-items: end;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(6, 22, 33, .9) 0%, rgba(6, 22, 33, .68) 39%, rgba(6, 22, 33, .22) 72%),
    linear-gradient(0deg, rgba(6, 22, 33, .78) 0%, rgba(6, 22, 33, 0) 45%),
    url('/assets/images/klima-hero-1920.jpg');
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 140px var(--pad) 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #a7f3d0;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  background: rgba(255,255,255,.13);
  text-decoration: none;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.button.primary {
  color: #06201f;
  border-color: #7dd3c7;
  background: #7dd3c7;
}

.wrap {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 44px var(--pad);
}

.tool-panel,
.content-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(15, 35, 45, .08);
}

.tool-panel { padding: clamp(18px, 3vw, 30px); }

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
}

h1, h2, h3 { color: var(--ink); }
.hero h1 {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0,0,0,.42);
}
h2 { margin: 1.5rem 0 .7rem; font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
h3 { margin: 1.35rem 0 .6rem; font-size: clamp(1.08rem, 2vw, 1.25rem); }

.note { font-size: .97rem; color: var(--muted-ink); }
.muted { color: var(--muted-ink); }

.search { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 14px; align-items: end; }
.field { min-width: 0; }
label.note { font-weight: 700; color: #31434f; }

input[type="text"],
select {
  width: 100%;
  min-height: 46px;
  padding: .68rem .78rem;
  border: 1px solid #b8c7c3;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

input[type="text"]:focus,
select:focus {
  outline: 3px solid rgba(15,118,110,.18);
  border-color: var(--accent);
}

.opt {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 46px;
  font-size: .96rem;
  color: #31434f;
}

.tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tools a {
  font-size: .95rem;
  text-decoration: none;
  color: var(--accent);
  padding: .38rem .62rem;
  border-radius: 999px;
  background: var(--accent-soft);
}

.tools a:hover { background: #d4eeea; }

.suggest { position:relative; }
.suggest-list {
  position:absolute;
  z-index: 10;
  left:0;
  right:0;
  background:#fff;
  border:1px solid #b8c7c3;
  border-radius:8px;
  overflow:auto;
  max-height: 280px;
  box-shadow: 0 16px 35px rgba(0,0,0,.16);
}
.suggest-item, .suggest-empty { padding:.62rem .72rem; cursor:pointer; font-size:1rem; }
.suggest-item:hover { background:#eef8f6; }
.suggest-empty { color:#8a1f11; cursor:default; }

.map-wrap { margin:.7rem 0 .35rem; border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); background:#eef5f3; }
#map { width:100%; height: var(--map-h); }
.map-consent {
  min-height: var(--map-h);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(16,42,67,.92), rgba(15,118,110,.78)),
    url('/assets/images/social-preview.png');
  background-size: cover;
  background-position: center;
  color: #fff;
}
.map-consent[hidden] { display: none; }
.map-consent strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
.map-consent p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.86);
}
.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.map-button {
  border: 1px solid rgba(255,255,255,.45);
  cursor: pointer;
  font: inherit;
}

.badge { display:inline-block; margin:.5rem .45rem 0 0; padding:.24rem .64rem; border-radius:999px; font-size:.86rem; border:1px solid; white-space:nowrap; }
.ok { color:#155724; background:#d4edda; border-color:#c3e6cb; }
.warn { color:#856404; background:#fff3cd; border-color:#ffeeba; }
.err { color:#721c24; background:#f8d7da; border-color:#f5c6cb; }

details { margin: 1.05rem 0 1.45rem; }
details > summary {
  cursor:pointer;
  user-select:none;
  padding:.72rem .85rem;
  background:#f4f8f7;
  border:1px solid var(--line);
  border-radius:8px;
  font-weight:750;
}
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:8px; margin:.8rem 0 1rem; background:#fff; }
table { border-collapse: collapse; width:100%; min-width: 520px; }
th, td { border-bottom:1px solid #edf1ef; padding:.62rem .68rem; }
th { background:#f8fbfa; text-align:left; position:sticky; top:0; z-index:1; }
td.num { text-align:right; }

.charts { width: 100%; }
.chart { margin: 1.05rem 0 1.5rem; border:1px solid var(--line); border-radius:8px; padding:.7rem; background:#fff; }
.chart canvas { display:block; width:100% !important; height: var(--chart-h) !important; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #102a43;
  color: rgba(255,255,255,.78);
}

.footer-inner {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 28px var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a { color: #a7f3d0; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

.legal-page .site-header {
  position: static;
  background: #102a43;
}

.legal-page main {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 46px var(--pad);
}

.legal-page .content-section {
  padding: clamp(20px, 4vw, 38px);
}

.legal-page h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
}

.legal-page h2 { margin-top: 2rem; }
.legal-page address { font-style: normal; }

@media (max-width: 820px) {
  .search { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; }
  .hero { min-height: 620px; background-position: 58% center; }
}

@media (max-width: 560px) {
  .nav { flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .hero-inner { padding-top: 176px; }
}
