/* Kesklinna Kinnisvarahaldus — kujundus v5 (Tallinna öö, kõik alamlehed + vormid)
   Visuaalne suund: sügav öösinine, soe linnatulede merevaik, pronksjad detailid, klaaskaardid. */

:root {
  --navy: #0c1c33;
  --navy-2: #122844;
  --navy-3: #183452;
  --ink: #0c1c33;
  --gold: #d4b070;
  --gold-2: #e0c48a;
  --gold-deep: #b8924a;
  --cream: #f6f2eb;
  --cream-2: #efe8dc;
  --white: #fffcf8;
  --muted: #5a6472;
  --muted-2: #7a8490;
  --line: rgba(12, 28, 51, 0.12);
  --line-gold: rgba(212, 176, 112, 0.45);
  --text: #2b3542;
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --wrap: 1180px;
  --header: 4.5rem;
  --shadow: 0 18px 50px rgba(12, 28, 51, 0.12);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Times New Roman", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.15rem, 4.6vw, 4.15rem); }
h2 { font-family: var(--font); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.55rem); }
h3 { font-family: var(--font); font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--gold); color: var(--navy); padding: 0.6rem 1rem;
  border-radius: var(--pill); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem; border-radius: var(--pill);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  cursor: pointer; line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-2); }
.btn-outline {
  background: transparent; color: var(--ink); border-color: rgba(12,28,51,.28);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(12,28,51,.04); }
.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-gold-ghost {
  background: transparent; color: var(--gold-2); border-color: var(--gold);
}
.btn-gold-ghost:hover { background: rgba(212,176,112,.12); }
.btn .arr { font-size: 1.05em; line-height: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.28); }
.header-bar {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header);
}
.logo { display: flex; align-items: center; gap: 0.7rem; flex: 0 0 auto; text-decoration: none; color: var(--gold); }
.logo img { width: auto; height: 44px; }
.logo-mark { width: auto; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; color: var(--gold-2); }
.logo-text span { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); }
.site-nav > ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 0.15rem 1.15rem;
}
.site-nav > ul > li { position: relative; }
.site-nav a {
  text-decoration: none; color: rgba(255,255,255,.86);
  font-weight: 600; font-size: 0.9rem;
  padding: 0.35rem 0;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.nav-phone {
  margin-left: 0.5rem;
  background: var(--gold); color: var(--navy) !important;
  border-radius: var(--pill); padding: 0.55rem 0.95rem !important;
  font-weight: 800 !important; letter-spacing: 0.01em;
  box-shadow: none !important;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--gold-2); color: var(--navy) !important; }
.nav-phone svg { width: 16px; height: 16px; fill: currentColor; }
.has-sub { display: flex; align-items: center; }
.sub-toggle {
  background: none; border: 0; color: inherit; padding: 0.2rem;
  display: none; cursor: pointer;
}
.sub-toggle svg { width: 10px; height: 7px; }
.site-nav .sub-menu {
  display: none; position: absolute; top: calc(100% + 0.7rem); left: 50%;
  transform: translateX(-50%);
  min-width: 16.5rem; padding: 0.55rem;
  background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow);
  list-style: none; z-index: 20;
}
@media (min-width: 881px) {
  .has-sub:hover > .sub-menu,
  .has-sub:focus-within > .sub-menu { display: block; }
}
.sub-menu a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 8px;
  color: var(--ink); font-size: 0.92rem; font-weight: 600;
  box-shadow: none !important;
}
.sub-menu a:hover { background: var(--cream); color: var(--ink); }
.sub-menu a[aria-current="page"] { color: var(--gold-deep); background: var(--cream); }
.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--pill); padding: 0.45rem 0.8rem;
  font-weight: 600; font-size: 0.85rem;
  align-items: center; gap: 0.45rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(6,12,22,.55); z-index: 40;
  border: 0; padding: 0; cursor: pointer;
}
.nav-backdrop[hidden] { display: none; }


/* Language switcher — flag + code, twobytes-style dropdown on desktop */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.lang { position: relative; flex: none; }
.lang-btn {
  display: flex; align-items: center; gap: 0.45rem;
  height: 40px; padding: 0 0.85rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--pill);
  background: transparent;
  color: #fff;
  font: 700 0.8rem/1 inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang-btn:hover,
.lang-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}
.lang-caret {
  display: block; width: 10px; height: 6px; flex: none; overflow: visible;
  transition: transform .15s;
}
.lang.open .lang-caret { transform: rotate(180deg); }
.lang-list {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  z-index: 70;
  min-width: 7.5rem;
  flex-direction: column;
  padding: 0.35rem;
  background: var(--night, #0a1628);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,.7);
}
.lang.open .lang-list { display: flex; }
.lang-list > span,
.lang-list a[aria-current] { display: none; }
.lang-list a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  box-shadow: none !important;
}
.lang-list a:hover,
.lang-list a:focus-visible {
  background: rgba(255,255,255,.06);
  color: var(--gold);
  outline: none;
}
.lang .flag {
  display: block; flex: none;
  width: 18px; height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}

.form-pending-note {
  margin: 0 0 1.1rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(10,22,40,.04);
  color: var(--ink);
  font-size: 0.92rem;
}

/* ---------- Hero (homepage) ---------- */
.hero-home {
  position: relative;
  background: var(--navy);
  color: #fff;
  min-height: min(78vh, 44rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-home .hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,16,30,.92) 0%, rgba(8,16,30,.78) 32%, rgba(8,16,30,.28) 62%, rgba(8,16,30,.12) 100%),
    var(--navy) center / cover no-repeat;
}
.hero-home .hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  position: absolute; inset: 0;
  mix-blend-mode: normal;
}
.hero-home .hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,16,30,.90) 0%, rgba(8,16,30,.88) 36%, rgba(8,16,30,.82) 50%, rgba(8,16,30,.42) 62%, rgba(8,16,30,.12) 76%, rgba(8,16,30,0) 90%);
  pointer-events: none;
}
.hero-home .wrap {
  position: relative; z-index: 1;
  padding: 4.5rem 0 2.2rem;
  width: min(var(--wrap), calc(100% - 2.5rem));
}
.eyebrow {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-2); margin: 0 0 1.15rem;
  text-shadow: 0 1px 14px rgba(5,12,24,.7);
}
.eyebrow::after {
  content: ""; width: 3.2rem; height: 1px; background: var(--gold); display: block;
}
.hero-home h1 {
  color: #fff; max-width: 22rem;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 500; line-height: 1.08;
  margin: 0 0 1.1rem;
  overflow-wrap: break-word; hyphens: manual;
  text-shadow: 0 2px 28px rgba(5,12,24,.8), 0 1px 10px rgba(5,12,24,.55);
}
.hero-home h1 em {
  font-style: italic; font-weight: 500; color: var(--gold);
}
.hero-home .lede {
  max-width: 36rem; color: rgba(255,255,255,.94);
  font-size: 1.08rem; margin-bottom: 1.6rem;
  text-shadow: 0 1px 18px rgba(5,12,24,.85), 0 0 6px rgba(5,12,24,.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.6rem; }

.hero-trust {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.15rem 0 2.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.trust-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.35rem 1.1rem 0.35rem 0;
  color: rgba(255,255,255,.9);
  font-size: 0.9rem; line-height: 1.35; font-weight: 600;
}
.trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,.14); padding-left: 1.25rem; }
.trust-ico {
  width: 2.3rem; height: 2.3rem; flex: 0 0 auto;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
}
.trust-ico svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sheet / sections ---------- */
.sheet {
  position: relative;
  background: var(--white);
  border-radius: 28px 28px 0 0;
  margin-top: -1.4rem;
  padding: 4.2rem 0 4.5rem;
  z-index: 2;
}
.section { padding: 4.2rem 0; }
.section-cream { background: var(--cream); }
.kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-deep); margin: 0 0 0.7rem;
}
.kicker.gold { color: var(--gold); }
.kicker-line {
  display: flex; align-items: center; gap: 0.7rem;
}
.kicker-line::before {
  content: ""; width: 1.6rem; height: 1.5px; background: var(--gold-deep);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) 1.4fr;
  gap: 3rem 2.5rem;
  align-items: start;
}
.services-intro p { color: var(--muted); max-width: 32rem; }
.services-intro h2 { margin-bottom: 1rem; }
.service-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 11.5rem;
  gap: 0.85rem;
}
.svc-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 16px; overflow: hidden; min-height: 11.5rem;
  text-decoration: none; color: #fff;
  isolation: isolate;
}
.svc-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s var(--ease);
}
.svc-card:hover img { transform: scale(1.05); }
.svc-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,30,.05) 20%, rgba(8,16,30,.82) 100%);
  z-index: 1;
}
.svc-card .svc-meta {
  position: relative; z-index: 2;
  padding: 1rem 1.05rem 0.95rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 0.6rem;
}
.svc-card h3 { color: #fff; font-size: 1rem; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.svc-card .svc-ico {
  position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2;
  width: 1.85rem; height: 1.85rem; color: var(--gold);
}
.svc-card .svc-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-card .arr { color: var(--gold-2); font-weight: 600; }
.svc-card.span-2 { grid-column: span 2; }

/* Why / stats */
.why {
  background: var(--cream);
  padding: 3.2rem 0 3.6rem;
}
.why-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) 1.4fr;
  gap: 2.2rem 2rem;
  align-items: center;
}
.why-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.2rem;
}
.stat { text-align: center; padding: 0.4rem 0.4rem; }
.stat .stat-ico {
  width: 2.6rem; height: 2.6rem; margin: 0 auto 0.7rem;
  display: grid; place-items: center;
  color: var(--navy);
}
.stat .stat-ico svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat .num {
  font-family: var(--display); font-weight: 600;
  font-size: 2rem; color: var(--ink); margin: 0 0 0.25rem; letter-spacing: -0.03em; line-height: 1;
}
.stat p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }

/* Portal / existing self-service */
.portal {
  background: var(--navy);
  color: #fff;
  padding: 4.2rem 0;
}
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
.portal h2 { color: #fff; }
.portal p { color: rgba(255,255,255,.8); }
.portal-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.4rem;
  margin: 1.6rem 0 1.8rem;
}
.portal-feat {
  display: flex; gap: 0.85rem; align-items: flex-start;
}
.portal-feat .ico {
  width: 2.5rem; height: 2.5rem; flex: 0 0 auto;
  border-radius: 50%; border: 1.5px solid var(--gold);
  display: grid; place-items: center; color: var(--gold);
}
.portal-feat .ico svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.portal-feat h3 { color: #fff; font-size: 0.98rem; margin: 0 0 0.15rem; }
.portal-feat p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,.7); }
.portal-panel {
  background: var(--navy-2);
  border: 1px solid rgba(212,176,112,.22);
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
}
.portal-panel h3 { color: #fff; margin-bottom: 0.5rem; }
.portal-panel ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.portal-panel li {
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  color: rgba(255,255,255,.86); font-weight: 600; font-size: 0.95rem;
}
.portal-panel a { color: var(--gold-2); text-decoration: none; font-size: 0.88rem; }
.portal-panel a:hover { text-decoration: underline; }

/* Contact CTA */
.cta-band {
  position: relative; color: #fff;
  min-height: 16rem;
  display: flex; align-items: center;
  overflow: hidden;
}
.cta-band .cta-bg { position: absolute; inset: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.cta-band .cta-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,16,30,.82) 0%, rgba(8,16,30,.68) 45%, rgba(8,16,30,.55) 100%);
}
.cta-inner {
  position: relative; z-index: 1;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid; grid-template-columns: 1.3fr auto;
  gap: 2rem; align-items: center;
  padding: 3.2rem 0;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,.86); margin-bottom: 1.2rem; max-width: 34rem; }
.cta-contacts { display: grid; gap: 0.55rem; font-weight: 600; }
.cta-contacts a, .cta-contacts span {
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; text-decoration: none;
}
.cta-contacts a:hover { color: var(--gold-2); }
.cta-contacts svg { width: 1.1rem; height: 1.1rem; fill: var(--gold); flex: 0 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding: 3rem 0 1.4rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { margin-bottom: 0.9rem; }
.footer-brand .logo img, .footer-brand .logo-mark { height: 40px; }
.footer-brand p { max-width: 20rem; color: rgba(255,255,255,.7); }
.site-footer h2 {
  color: #fff; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0 0 0.4rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem;
  padding-top: 1.2rem; font-size: 0.82rem; color: rgba(255,255,255,.55);
}
.footer-bottom p { margin: 0; }

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero .page-hero-inner {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 2.6rem 0 3rem;
  position: relative; z-index: 1;
  max-width: 50rem;
  margin-left: auto; margin-right: auto;
  width: min(var(--wrap), calc(100% - 2.5rem));
}
.page-hero.with-photo .page-hero-inner {
  max-width: min(var(--wrap), calc(100% - 2.5rem));
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: end;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 0.7rem; }
.page-hero .lede { color: rgba(255,255,255,.8); margin: 0; }
.breadcrumb {
  list-style: none; padding: 0; margin: 0 0 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,.6);
}
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb li:not(:last-child)::after { content: " /"; margin-left: 0.5rem; color: rgba(255,255,255,.35); }
.page-hero-photo { border-radius: 16px; overflow: hidden; min-height: 12rem; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; max-height: 16rem; }

/* ---------- Content helpers ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6rem; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prose a.btn { text-decoration: none; }
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: center;
}
.photo-frame { border-radius: 18px; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p:last-child { color: var(--muted); }

/* Service tiles on inner pages */
.bento, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
/* Viis teenusekaarti: esimene rida kolm, teine rida kaks võrdset */
.bento-5 { grid-template-columns: repeat(6, 1fr); }
.bento-5 .tile { grid-column: span 2; }
.bento-5 .tile:nth-last-child(-n+2) { grid-column: span 3; }
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.25rem 1.2rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.tile:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.tile .more { color: var(--gold-deep); font-weight: 700; font-size: 0.88rem; margin-top: 0.4rem; }
.tile-icon { width: 2.4rem; height: 2.4rem; margin-bottom: 0.3rem; }
.tile-icon img { width: 100%; height: 100%; object-fit: contain; }
.tile-accent { background: var(--navy); color: #fff; border-color: transparent; }
.tile-accent h3 { color: #fff; }
.tile-accent p { color: rgba(255,255,255,.75); }
.tile-accent .more { color: var(--gold); }

.feature-list, .card-grid.features {
  display: grid; gap: 0.85rem;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
}
.feature h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.feature p { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.95rem; }
.feature p:last-child { margin-bottom: 0; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.step {
  background: var(--white); border-radius: 16px; padding: 1.2rem 1.15rem;
  border: 1px solid var(--line); counter-increment: steps;
}
.steps { counter-reset: steps; }
.step h3 { margin: 0 0 0.35rem; }
.step h3::before {
  content: counter(steps, decimal-leading-zero);
  display: block; font-family: var(--display);
  color: var(--gold-deep); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 0.45rem;
}
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.next-service {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0 0; margin-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Emergency */
.emergency {
  background: var(--navy);
  color: #fff;
  display: grid; grid-template-columns: 1.4fr auto;
  gap: 1.5rem; align-items: center;
  padding: 2.4rem min(max(1.25rem, calc((100% - var(--wrap)) / 2)), 4rem);
}
.emergency h2 { color: #fff; margin-bottom: 0.4rem; }
.emergency p { color: rgba(255,255,255,.8); max-width: 38rem; }
.emergency .kicker { color: var(--gold) !important; }
.emergency-phone {
  display: inline-block; color: var(--gold) !important;
  font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600; text-decoration: none; letter-spacing: -0.02em;
  margin-top: 0.4rem;
}
.emergency-phone:hover { color: var(--gold-2) !important; }
.emergency-side { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }

/* Forms */
form[data-static-form], .form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.field .req { color: #a9443c; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.8rem; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1rem; }
.field-span-3 { grid-column: 1 / -1; }
.form-status {
  margin-top: 0.8rem; padding: 0.8rem 1rem;
  background: var(--cream); border-left: 3px solid var(--gold);
  border-radius: 8px;
}

/* Tables */
.price-table, table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  background: var(--white); border-radius: 14px; overflow: hidden;
}
.price-table th, table th {
  text-align: left; background: var(--navy); color: #fff;
  padding: 0.75rem 0.9rem; font-weight: 600;
}
.price-table td, table td {
  padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table tr:last-child td { border-bottom: 0; }
.num-cell, .price-table td:last-child { font-weight: 700; white-space: nowrap; }

/* People / contact cards */
.people {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.person, .contact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.3rem 1.25rem;
}
.person h3, .contact-card h3 { margin-bottom: 0.25rem; }
.person p, .contact-card p { margin: 0 0 0.3rem; color: var(--muted); }
.person a, .contact-card a { color: var(--navy); font-weight: 600; }

/* Placeholders */
.placeholder-note, .placeholder-inline {
  background: #f4efe0;
  border: 1px dashed #b8924a;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #4a3d22;
  font-size: 0.92rem;
}
.placeholder-note strong, .placeholder-inline strong { color: #3a2e16; display: block; margin-bottom: 0.2rem; }
.placeholder-inline { display: inline-block; margin: 0.3rem 0; }
.placeholder-inline em { font-style: normal; font-weight: 700; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .why-grid, .portal-grid { grid-template-columns: 1fr; }
  .service-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 12rem; }
  .svc-card.span-2 { grid-column: span 1; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bento, .card-grid { grid-template-columns: 1fr 1fr; }
  .bento-5 { grid-template-columns: 1fr 1fr; }
  .bento-5 .tile, .bento-5 .tile:nth-last-child(-n+2) { grid-column: auto; }
  .bento-5 .tile:last-child { grid-column: 1 / -1; }
  .page-hero.with-photo .page-hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .hero-home .hero-shade {
    background: linear-gradient(180deg, rgba(8,16,30,.84) 0%, rgba(8,16,30,.88) 36%, rgba(8,16,30,.90) 58%, rgba(8,16,30,.78) 76%, rgba(8,16,30,.92) 100%);
  }
  .nav-toggle { display: inline-flex; }
  .site-header { z-index: 60; }
  .site-nav {
    position: fixed;
    top: var(--header);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    background: var(--navy);
    z-index: 45;
    padding: 0.6rem 1.3rem 2rem;
    transform: translateX(110%);
    transition: transform .35s var(--ease);
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body.nav-open .site-nav { transform: none; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a { padding: 0.85rem 0; font-size: 1.05rem; }
  .nav-phone { margin: 1rem 0 0; justify-content: center; }

  /* Language switcher: always-visible flag row in the navy mobile menu */
  .site-nav .lang {
    margin: 1.25rem 0 0;
    width: 100%;
    position: static;
  }
  .site-nav .lang-btn { display: none; }
  .site-nav .lang-list {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav .lang-list > span { display: none; }
  .site-nav .lang-list a,
  .site-nav .lang-list a[aria-current] {
    display: inline-flex;
    flex: 1 1 0;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--pill);
    color: rgba(255,255,255,.86);
  }
  .site-nav .lang-list a[aria-current] {
    border-color: var(--gold);
    color: var(--gold);
  }
  .site-nav .lang-list a:hover,
  .site-nav .lang-list a:focus-visible {
    color: var(--gold);
    background: rgba(255,255,255,.06);
  }
  .has-sub { flex-wrap: wrap; }
  .sub-toggle { display: inline-flex; color: #fff; margin-left: auto; }
  /* Match or beat .site-nav .sub-menu (desktop dropdown: white card, absolute). */
  .site-nav .sub-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    display: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.6rem 0.6rem;
    min-width: 0;
    width: 100%;
  }
  .site-nav .has-sub.open > .sub-menu { display: block; }
  .site-nav .sub-menu a {
    color: rgba(255,255,255,.88);
    padding: 0.45rem 0;
    background: transparent;
  }
  .site-nav .sub-menu a:hover,
  .site-nav .sub-menu a[aria-current="page"] {
    background: transparent;
    color: var(--gold);
  }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 0.9rem 0; }
  .trust-item + .trust-item { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(odd) { padding-right: 0.8rem; }
  .cta-inner { grid-template-columns: 1fr; }
  .emergency { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .split, .people { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .eyebrow::after { display: none; }
  .eyebrow { gap: 0; }

  .wrap, .hero-home .wrap, .hero-trust, .cta-inner { width: min(var(--wrap), calc(100% - 1.5rem)); }
  .hero-home { min-height: 0; }
  .hero-home .wrap { padding: 3.2rem 0 1.4rem; }
  .hero-home h1 { font-size: clamp(1.9rem, 9.5vw, 2.6rem); max-width: 20rem; }
  .hero-trust { grid-template-columns: 1fr; padding-bottom: 2rem; }
  .trust-item { padding: 0.45rem 0; }
  .sheet { border-radius: 22px 22px 0 0; padding: 2.6rem 0 3rem; }
  .service-bento { grid-template-columns: 1fr; }
  .service-bento { grid-auto-rows: 10.2rem; }
  .svc-card, .svc-card.span-2 { min-height: 10.2rem; }
  .portal-feats, .steps, .bento, .card-grid { grid-template-columns: 1fr; }
  .bento-5 { grid-template-columns: 1fr; }
  .bento-5 .tile, .bento-5 .tile:nth-last-child(-n+2), .bento-5 .tile:last-child { grid-column: auto; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .logo img, .logo-mark { height: 34px; }
  .logo-text strong { font-size: 0.72rem; }
  .logo-text span { font-size: 0.5rem; }
  .section { padding: 2.8rem 0; }
  h1 { overflow-wrap: anywhere; }
  .page-hero .page-hero-inner { padding: 1.8rem 0 2.2rem; }
}
@media (min-width: 881px) and (max-width: 1100px) {
  .site-nav > ul { gap: 0.1rem 0.75rem; }
  .site-nav a { font-size: 0.82rem; }
  .nav-phone { padding: 0.5rem 0.75rem !important; }
}

/* Utility */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* =====================================================================
   v4 — Tallinna öö: fotod taustaks, klaaskaardid, merevaiguvalgus
   ===================================================================== */
:root {
  --night: #0a1628;
  --night-2: #0e1e36;
  --amber: #f2b45c;
  --amber-2: #ffd08a;
  --glass: rgba(14, 30, 54, 0.46);
  --glass-line: rgba(255, 255, 255, 0.14);
}

/* Header: öösinine; keritult tume klaas (pseudo-elemendil, et fixed mobiilimenüü jääks vaateakna suhtes) */
.site-header { background: var(--night); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--night); transition: background .3s var(--ease);
}
.site-header.is-scrolled { background: transparent; }
.site-header.is-scrolled::before {
  background: rgba(10, 22, 40, 0.8);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled::before { background: var(--night); }
}

/* ---------- Hero: öine Tallinn ---------- */
.hero-night {
  background: var(--night);
  min-height: min(calc(100svh - var(--header)), 54rem);
  justify-content: space-between;
}
.hero-night .hero-bg { background: var(--night); overflow: hidden; }
.hero-night .hero-parallax {
  position: absolute; inset: -6% 0 -6% 0;
  will-change: transform;
}
.hero-night .hero-parallax picture,
.hero-night .hero-parallax img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-night .hero-bg img {
  object-fit: cover; object-position: 50% 58%;
  transform-origin: 38% 70%;
}
.kenburns { animation: kenburns 38s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.2%, -1%, 0); }
}
.hero-night .hero-shade {
  background:
    linear-gradient(90deg, rgba(8,16,30,.90) 0%, rgba(8,16,30,.88) 36%, rgba(8,16,30,.82) 50%, rgba(8,16,30,.42) 62%, rgba(8,16,30,.12) 76%, rgba(8,16,30,0) 90%),
    linear-gradient(180deg, rgba(8,16,30,.40) 0%, rgba(8,16,30,.10) 28%, rgba(8,16,30,.06) 52%, rgba(8,16,30,.38) 80%, rgba(8,16,30,.86) 100%);
}
.hero-night .hero-glow {
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: radial-gradient(60% 70% at 40% 100%, rgba(242,180,92,.20), rgba(242,180,92,0) 70%);
  mix-blend-mode: screen; pointer-events: none;
}
/* Soft navy veil behind hero copy — no box edges */
.hero-night .wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -2rem;
  bottom: 0.4rem;
  left: -4rem;
  width: min(46rem, 70%);
  background: radial-gradient(ellipse 85% 75% at 28% 42%, rgba(8,16,30,.5), rgba(8,16,30,0) 70%);
  filter: blur(22px);
  pointer-events: none;
}

.hero-night .wrap { padding: clamp(3.5rem, 9vh, 6.5rem) 0 2rem; }
.hero-night h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  max-width: 22rem;
  text-shadow: 0 2px 28px rgba(5,12,24,.8), 0 1px 10px rgba(5,12,24,.55);
}
.hero-night h1 em {
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--amber) 55%, var(--amber-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero-night .lede { color: rgba(255,255,255,.95); text-shadow: 0 1px 18px rgba(5,12,24,.85), 0 0 6px rgba(5,12,24,.55); }
.hero-night .eyebrow { color: var(--amber-2); text-shadow: 0 1px 14px rgba(5,12,24,.7); }
.hero-night .eyebrow::after { background: linear-gradient(90deg, var(--amber), transparent); }
.hero-night .btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--amber));
  box-shadow: 0 10px 30px rgba(242,180,92,.28);
}
.hero-night .btn-primary:hover { box-shadow: 0 14px 38px rgba(242,180,92,.42); }

/* Usaldusriba = klaasriba */
.hero-night .hero-trust {
  margin-bottom: 2.6rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 60px rgba(3,8,18,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-night .trust-ico { border-color: var(--amber); color: var(--amber-2); box-shadow: 0 0 18px rgba(242,180,92,.25); }
.hero-night + .sheet { margin-top: -1.6rem; }

/* ---------- Miks valida: öö tornide ja kuuga ---------- */
.why-night {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: #fff;
  padding: clamp(6rem, 13vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
}
.why-night .why-bg { position: absolute; inset: 0; z-index: -1; }
.why-night .why-bg picture, .why-night .why-bg img { width: 100%; height: 100%; }
.why-night .why-bg img { object-fit: cover; object-position: 45% 66%; }
.why-night .why-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,.55) 0%, rgba(10,22,40,.15) 35%, rgba(10,22,40,.35) 65%, rgba(10,22,40,.92) 100%),
    linear-gradient(90deg, rgba(10,22,40,.75) 0%, rgba(10,22,40,.25) 55%, rgba(10,22,40,.1) 100%);
}
.why-night h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); text-shadow: 0 2px 24px rgba(5,12,24,.6); }
.why-night .why-grid { align-items: end; }
.why-night .why-stats { gap: 0.9rem; }
.why-night .stat {
  text-align: left;
  padding: 1.25rem 1.1rem 1.2rem;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px rgba(3,8,18,.3);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.why-night .stat:hover { transform: translateY(-3px); border-color: rgba(242,180,92,.5); }
.why-night .stat .stat-ico { margin: 0 0 0.8rem; color: var(--amber-2); width: auto; height: auto; justify-content: start; }
.why-night .stat .num { color: #fff; font-size: 2.1rem; }
.why-night .stat p { color: rgba(255,255,255,.78); }

/* ---------- Suhtlus: hele vahepala ---------- */
.portal { background: var(--cream); color: var(--text); }
.portal h2 { color: var(--ink); }
.portal p { color: var(--muted); }
.portal .kicker.gold { color: var(--gold-deep); }
.portal-feat h3 { color: var(--ink); }
.portal-feat p { color: var(--muted); }
.portal-feat .ico { border-color: var(--gold-deep); color: var(--gold-deep); background: var(--white); }
.portal-panel {
  background: linear-gradient(160deg, var(--night-2), var(--night));
  border: 1px solid rgba(242,180,92,.25);
  box-shadow: 0 30px 60px rgba(10,22,40,.22);
}
.portal-panel p { color: rgba(255,255,255,.8); }

/* ---------- Kontakt-CTA: linnatuled ---------- */
.cta-band { min-height: 24rem; background: var(--night); }
.cta-band .cta-bg img { object-position: 50% 40%; }
.cta-band .cta-shade {
  background:
    linear-gradient(180deg, rgba(10,22,40,.75) 0%, rgba(10,22,40,.25) 40%, rgba(10,22,40,.6) 100%),
    linear-gradient(90deg, rgba(10,22,40,.85) 0%, rgba(10,22,40,.45) 50%, rgba(10,22,40,.25) 100%);
}
.cta-inner { padding: 4.5rem 0; }
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 3rem); text-shadow: 0 2px 24px rgba(5,12,24,.6); }
.cta-band .btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--amber)); }
.cta-contacts.glass {
  padding: 1.3rem 1.4rem; gap: 0.75rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 50px rgba(3,8,18,.35);
}
.cta-contacts svg { fill: var(--amber); }

/* ---------- Alamlehtede päis: öine siluett ---------- */
.page-hero {
  background-color: var(--night);
  background-image:
    linear-gradient(90deg, rgba(10,22,40,.92) 0%, rgba(10,22,40,.7) 45%, rgba(10,22,40,.35) 100%),
    linear-gradient(180deg, rgba(10,22,40,.2) 0%, rgba(10,22,40,.75) 100%),
    url("../img/oo/oo-silueet-1800.jpg");
  background-image:
    linear-gradient(90deg, rgba(10,22,40,.92) 0%, rgba(10,22,40,.7) 45%, rgba(10,22,40,.35) 100%),
    linear-gradient(180deg, rgba(10,22,40,.2) 0%, rgba(10,22,40,.75) 100%),
    image-set(url("../img/oo/oo-silueet-1800.webp") type("image/webp"), url("../img/oo/oo-silueet-1800.jpg") type("image/jpeg"));
  background-size: cover; background-position: 50% 62%;
}
.page-hero .page-hero-inner { padding: 3.6rem 0 3.8rem; }
@media (max-width: 620px) {
  .page-hero {
    background-image:
      linear-gradient(180deg, rgba(10,22,40,.6) 0%, rgba(10,22,40,.85) 100%),
      url("../img/oo/oo-silueet-900.jpg");
    background-image:
      linear-gradient(180deg, rgba(10,22,40,.6) 0%, rgba(10,22,40,.85) 100%),
      image-set(url("../img/oo/oo-silueet-900.webp") type("image/webp"), url("../img/oo/oo-silueet-900.jpg") type("image/jpeg"));
    background-position: 30% 60%;
  }
  .page-hero .page-hero-inner { padding: 2.4rem 0 2.6rem; }
}

/* Jalus ja hädaabi sobituvad öövärviga */
.site-footer, .emergency { background: var(--night); }

/* ---------- v4 responsive ---------- */
@media (max-width: 1024px) {
  .why-night .why-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hero-night .hero-shade {
    background: linear-gradient(180deg, rgba(8,16,30,.84) 0%, rgba(8,16,30,.88) 36%, rgba(8,16,30,.90) 58%, rgba(8,16,30,.78) 76%, rgba(8,16,30,.92) 100%);
  }
  .hero-night .wrap::before {
    top: -1.5rem;
    bottom: 0;
    left: -1.5rem;
    width: calc(100% + 3rem);
    background: radial-gradient(ellipse 120% 80% at 50% 35%, rgba(8,16,30,.4), rgba(8,16,30,0) 72%);
  }
}
@media (max-width: 620px) {
  .hero-night { min-height: calc(100svh - var(--header)); }
  .hero-night .wrap { padding: 2.6rem 0 1.4rem; }
  .hero-night h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-night .hero-bg img { object-position: 50% 60%; transform-origin: 50% 75%; }
  .hero-night .hero-trust {
    width: calc(100% - 1.5rem); margin-bottom: 2.2rem;
    grid-template-columns: 1fr 1fr; gap: 0.6rem 0.8rem; padding: 0.85rem 0.9rem;
  }
  .hero-night .trust-item { font-size: 0.8rem; gap: 0.55rem; padding: 0.2rem 0; }
  .hero-night .trust-ico { width: 1.9rem; height: 1.9rem; }
  .why-night { padding: 4.5rem 0 3.5rem; }
  .why-night .why-stats { gap: 0.65rem; }
  .why-night .stat { padding: 1rem 0.9rem; }
  .why-night .stat .num { font-size: 1.7rem; }
  .cta-inner { padding: 3.4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kenburns { animation: none; transform: none; }
  .hero-night .hero-parallax { transform: none !important; }
}

/* Alamlehe päise nupud (v3-s puudus .btn-ghost stiil) */
.page-hero .hero-actions { margin: 1.3rem 0 0; }
.btn-ghost {
  background: rgba(255,255,255,.06); color: #fff;
  border-color: rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Kontaktileht: kaart + kontaktikaardid (v3-s stiil puudus) */
.map-wrap {
  border-radius: 20px; overflow: hidden; margin-bottom: 1.4rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--cream-2);
}
.map-wrap iframe { display: block; width: 100%; height: clamp(16rem, 34vw, 24rem); border: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
.contact-grid .person h2 { font-size: 1.45rem; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.person .role { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--gold-deep); margin-bottom: .35rem; }
.person .meta { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .4rem; }
.price-table-wrap { overflow-x: auto; border-radius: 14px; }
.fineprint { font-size: .85rem; color: var(--muted); }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   v5 — alamlehed ja vormid samas öises keeles kui avaleht
   ===================================================================== */
:root {
  --ph-silueet: image-set(url("../img/oo/oo-silueet-1800.webp") type("image/webp"), url("../img/oo/oo-silueet-1800.jpg") type("image/jpeg"));
  --ph-silueet-m: image-set(url("../img/oo/oo-silueet-900.webp") type("image/webp"), url("../img/oo/oo-silueet-900.jpg") type("image/jpeg"));
  --ph-linn: image-set(url("../img/oo/oo-linn-1800.webp") type("image/webp"), url("../img/oo/oo-linn-1800.jpg") type("image/jpeg"));
  --ph-linn-m: image-set(url("../img/oo/oo-linn-1000.webp") type("image/webp"), url("../img/oo/oo-linn-1000.jpg") type("image/jpeg"));
  --ph-tornid: image-set(url("../img/oo/oo-tornid-1920.webp") type("image/webp"), url("../img/oo/oo-tornid-1920.jpg") type("image/jpeg"));
  --ph-tornid-m: image-set(url("../img/oo/oo-tornid-mobile-900.webp") type("image/webp"), url("../img/oo/oo-tornid-mobile-900.jpg") type("image/jpeg"));
  --ph-avenue: image-set(url("../img/oo/hero-tallinn-2048.webp") type("image/webp"), url("../img/oo/hero-tallinn-2048.jpg") type("image/jpeg"));
  --ph-avenue-m: image-set(url("../img/oo/hero-tallinn-mobile-900.webp") type("image/webp"), url("../img/oo/hero-tallinn-mobile-900.jpg") type("image/jpeg"));
  --danger: #c2453a;
  --ok: #2f8f5b;
  --shadow-lg: 0 40px 90px rgba(10,22,40,.22), 0 12px 30px rgba(10,22,40,.10);
}

/* ---------- Alamlehe päis: täislaiuses öine foto, aeglane suum, merevaiguvalgus ---------- */
.page-hero {
  --ph: var(--ph-silueet); --ph-m: var(--ph-silueet-m); --ph-pos: 50% 62%;
  background: var(--night) !important;
  isolation: isolate;
  min-height: clamp(19rem, 34vw, 27rem);
  display: flex; align-items: flex-end;
}
.page-hero::before {
  content: ""; position: absolute; inset: -4%; z-index: -2;
  background-image: url("../img/oo/oo-silueet-1800.jpg");
  background-image: var(--ph);
  background-size: cover; background-position: var(--ph-pos);
  animation: kenburns 40s ease-in-out infinite alternate;
  transform-origin: 40% 70%;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 80% at 30% 105%, rgba(242,180,92,.22), rgba(242,180,92,0) 70%),
    linear-gradient(90deg, rgba(10,22,40,.9) 0%, rgba(10,22,40,.62) 42%, rgba(10,22,40,.2) 100%),
    linear-gradient(180deg, rgba(10,22,40,.55) 0%, rgba(10,22,40,.1) 40%, rgba(10,22,40,.85) 100%);
}
.page-hero .page-hero-inner {
  max-width: none; width: min(var(--wrap), calc(100% - 2.5rem));
  padding: 4.2rem 0 5.4rem;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 4rem); max-width: 18ch; line-height: 1.06;
  text-shadow: 0 2px 30px rgba(5,12,24,.55);
}
.page-hero .lede { max-width: 40rem; font-size: 1.08rem; color: rgba(255,255,255,.88); text-shadow: 0 1px 14px rgba(5,12,24,.6); }
.page-hero .breadcrumb {
  display: inline-flex; padding: .38rem .85rem; border-radius: var(--pill);
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  margin-bottom: 1.3rem;
}
.page-hero .breadcrumb li:last-child { color: var(--amber-2); font-weight: 600; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.page-hero .btn-primary, .next-service .btn-primary, .form-v5 .btn-primary, .emergency .btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--amber));
  box-shadow: 0 10px 30px rgba(242,180,92,.28);
}
.page-hero--linn   { --ph: var(--ph-linn);   --ph-m: var(--ph-linn-m);   --ph-pos: 50% 55%; }
.page-hero--tornid { --ph: var(--ph-tornid); --ph-m: var(--ph-tornid-m); --ph-pos: 50% 70%; }
.page-hero--avenue { --ph: var(--ph-avenue); --ph-m: var(--ph-avenue-m); --ph-pos: 50% 62%; }
.page-hero--form .page-hero-inner { padding-bottom: 8.5rem; }

/* Sisu tõuseb päise peale nagu avalehe „leht“ */
.page-hero + .section {
  position: relative; z-index: 2;
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  margin-top: -1.8rem;
  padding-top: 4.4rem;
}
.wrap-narrow { max-width: 52rem; }
.wrap-mid { max-width: 72rem; }

/* ---------- Teenuste kaardid ---------- */
.tile {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 1.6rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, #fffdf9, var(--white));
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 30px rgba(12,28,51,.06);
}
.tile::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--amber), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.tile:hover::before, .tile:focus-visible::before { transform: scaleX(1); }
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(212,176,112,.6); }
.tile-icon {
  width: 3.4rem; height: 3.4rem; padding: .6rem; border-radius: 14px;
  background: var(--cream); border: 1px solid var(--line-gold); margin-bottom: .6rem;
}
.tile h3 { font-size: 1.12rem; }
.tile .more { display: inline-flex; align-items: center; gap: .35rem; }
.tile .more::after { content: "→"; transition: transform .25s var(--ease); }
.tile:hover .more::after { transform: translateX(4px); }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.kicker { display: flex; align-items: center; gap: .7rem; }
.kicker::before { content: ""; width: 1.8rem; height: 1.5px; background: currentColor; opacity: .8; }

/* ---------- Teenuse lehe punktid: nummerdatud kaardid ---------- */
.feature-list { counter-reset: feat; padding: 0; list-style: none; gap: 1rem; margin: 0 0 2rem; }
.feature-list.two-col { grid-template-columns: 1fr 1fr; }
.feature {
  counter-increment: feat; position: relative;
  border-radius: 18px; padding: 1.25rem 1.3rem 1.2rem 4.3rem;
  box-shadow: 0 8px 24px rgba(12,28,51,.05);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.feature::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute; left: 1.15rem; top: 1.1rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: .95rem; font-weight: 600; color: var(--gold-deep);
  background: var(--cream); border: 1px solid var(--line-gold);
}
.feature:hover { border-color: rgba(212,176,112,.6); box-shadow: 0 18px 40px rgba(12,28,51,.10); transform: translateY(-2px); }
.feature h3 { font-size: 1.05rem; color: var(--ink); }
.feature p { color: var(--text); }
.feature ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.feature ul li::marker { color: var(--gold-deep); }
.feature .placeholder-note { margin-top: .8rem; }
.prose-lead { font-size: 1.12rem; color: var(--ink); max-width: 46rem; }
.lead-block { margin-bottom: 2rem; }
.content-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1rem; }

/* ---------- „Järgmine teenus“ öine kaart ---------- */
.next-service {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 2.6rem; padding: 1.6rem 1.8rem;
  border: 1px solid rgba(242,180,92,.25); border-radius: 22px;
  background: var(--night); color: #fff;
  box-shadow: 0 30px 60px rgba(10,22,40,.22);
}
.next-service::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--ph-linn-m); background-size: cover; background-position: 50% 55%;
}
.next-service::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,22,40,.95) 0%, rgba(10,22,40,.75) 55%, rgba(10,22,40,.45) 100%);
}
.next-service p { margin: 0 0 .2rem; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-2); }
.next-service strong { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: #fff; }
.next-service .btn-outline { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.next-service .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.next-service .btn-outline::after { content: "→"; }

/* ---------- Avariiriba: öised tornid + klaas ---------- */
.emergency {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.emergency::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url("../img/oo/oo-tornid-1280.jpg");
  background-image: var(--ph-tornid); background-size: cover; background-position: 50% 72%;
}
.emergency::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 70% at 85% 50%, rgba(242,180,92,.16), transparent 70%),
    linear-gradient(90deg, rgba(10,22,40,.94) 0%, rgba(10,22,40,.7) 50%, rgba(10,22,40,.45) 100%);
}
.emergency h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); text-shadow: 0 2px 24px rgba(5,12,24,.6); }
.emergency .kicker { color: var(--amber-2) !important; }
.emergency-phone {
  color: transparent !important;
  background: linear-gradient(100deg, var(--gold-2), var(--amber) 60%, var(--amber-2));
  -webkit-background-clip: text; background-clip: text;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.emergency-side {
  padding: 1.3rem 1.4rem; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 50px rgba(3,8,18,.35);
}
.reveal.emergency { transform: none; }

/* ---------- Hinnakiri ---------- */
.price-table-wrap {
  margin-top: 1.4rem; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--white);
}
table.prices { border-radius: 0; font-size: .95rem; }
table.prices thead th {
  background: linear-gradient(180deg, var(--night-2), var(--night));
  color: rgba(255,255,255,.92); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 1rem 1.1rem; white-space: nowrap;
}
table.prices thead th.num { text-align: right; }
table.prices td { padding: .95rem 1.1rem; }
table.prices td:first-child { font-weight: 600; color: var(--ink); }
table.prices td:nth-child(2) { color: var(--muted); }
table.prices td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.prices td:last-child { color: var(--gold-deep); font-weight: 800; }
table.prices tbody tr:nth-child(even) td { background: rgba(239,232,220,.4); }
table.prices tbody tr:hover td { background: rgba(242,180,92,.10); }
.fineprint {
  margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
}
.fineprint p { margin: 0 0 .35rem; }
.fineprint p:last-child { margin: 0; }

/* ---------- Meist / kontakt ---------- */
.photo-frame { border-radius: 24px; box-shadow: var(--shadow-lg); position: relative; }
.photo-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.person {
  position: relative; border-radius: 20px; padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(12,28,51,.06);
  border-top: 3px solid var(--gold);
}
.map-wrap { border-radius: 24px; box-shadow: var(--shadow-lg); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 .6rem; }

/* Privaatsus: tühja lehe kaart */
.empty-state { max-width: 44rem; margin: 0 auto; text-align: left; }
.empty-state .placeholder-note { padding: 1.4rem 1.5rem; font-size: 1rem; box-shadow: 0 18px 40px rgba(12,28,51,.08); }

/* =====================================================================
   v5 vormid (Fluent Formsi vasted: vt README + fluentforms-v5.css)
   ===================================================================== */
.form-stage { position: relative; z-index: 3; padding: 0 0 4.5rem; background: var(--cream); }
.page-hero--form + .form-stage { margin-top: -6.2rem; }
.form-layout {
  width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.6rem; align-items: start;
}
.form-layout.single { grid-template-columns: minmax(0, 1fr); max-width: 60rem; }
.form-v5 {
  position: relative;
  background: var(--white) !important;
  border: 1px solid rgba(12,28,51,.08) !important;
  border-radius: 26px !important;
  padding: clamp(1.4rem, 3vw, 2.4rem) !important;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-v5::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--amber), var(--amber-2), transparent);
}
.form-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .6rem 1.5rem; margin-bottom: 1.4rem; }
.form-head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.form-head .req-legend { margin: 0; font-size: .85rem; color: var(--muted); }
.req { color: var(--danger); font-weight: 800; }
.form-info {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .9rem 1rem; margin: 0 0 1.6rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(242,180,92,.12), rgba(242,180,92,.04));
  border: 1px solid rgba(212,176,112,.35); font-size: .95rem; color: var(--ink);
}
.form-info svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .15rem; stroke: var(--gold-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.form-info p { margin: 0; }
.form-info a { color: var(--ink); font-weight: 700; }

.form-step { border: 0; padding: 0; margin: 0 0 1.8rem; min-width: 0; }
.form-step + .form-step { padding-top: 1.6rem; border-top: 1px dashed rgba(12,28,51,.14); }
.form-step > legend, .form-step-title {
  display: flex; align-items: center; gap: .75rem; padding: 0;
  font-weight: 800; font-size: 1.08rem; color: var(--ink); letter-spacing: -.01em;
  margin: 0 0 1.05rem;
}
.step-no {
  width: 2rem; height: 2rem; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: .85rem; font-weight: 800;
  color: var(--night); background: linear-gradient(135deg, var(--gold-2), var(--amber));
  box-shadow: 0 6px 16px rgba(242,180,92,.35);
}
.form-v5 .form-grid { gap: 0 1rem; }
.form-v5 .grid-2 { grid-template-columns: 1fr 1fr; }
.form-v5 .grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-v5 .grid-4 { grid-template-columns: repeat(4, 1fr); }
.form-v5 .field { margin-bottom: 1rem; position: relative; }
.form-v5 .field label { font-size: .86rem; font-weight: 700; color: var(--ink); display: flex; gap: .25rem; }
.form-v5 .field input, .form-v5 .field select, .form-v5 .field textarea {
  width: 100%; min-height: 3.1rem;
  border: 1.5px solid rgba(12,28,51,.14); border-radius: 12px;
  padding: .75rem .95rem; background: #fff; color: var(--ink);
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.form-v5 .field input::placeholder, .form-v5 .field textarea::placeholder { color: #9aa2ad; }
.form-v5 .field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23b8924a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1rem center / 12px 8px;
}
.form-v5 .field input:hover, .form-v5 .field select:hover, .form-v5 .field textarea:hover { border-color: rgba(12,28,51,.3); }
.form-v5 .field input:focus, .form-v5 .field select:focus, .form-v5 .field textarea:focus {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(242,180,92,.22);
}
.form-v5 .field textarea { min-height: 9rem; }
.field-error { display: none; margin-top: .1rem; font-size: .82rem; font-weight: 600; color: var(--danger); align-items: center; gap: .35rem; }
.field-error::before { content: "!"; width: 1rem; height: 1rem; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; display: inline-grid; place-items: center; font-weight: 800; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger) !important; background: #fff7f6 !important; }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(194,69,58,.18) !important; }
.field.is-invalid .field-error { display: flex; }
.field.is-valid input { border-color: rgba(47,143,91,.55); }
.error-summary {
  display: none; margin: 0 0 1.4rem; padding: 1rem 1.15rem; border-radius: 14px;
  background: #fff4f2; border: 1px solid rgba(194,69,58,.35); color: #7a2a23;
}
.error-summary.show { display: block; }
.error-summary strong { display: block; margin-bottom: .3rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.error-summary a { color: #7a2a23; font-weight: 600; }

/* Arvesti näidud: soe / külm veerud */
.meter-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.meter-col {
  border-radius: 18px; padding: 1.05rem 1.05rem .2rem;
  background: var(--cream); border: 1px solid var(--line);
}
.meter-col h3 { display: flex; align-items: center; gap: .55rem; font-size: .98rem; margin: 0 0 .8rem; }
.meter-dot { width: .8rem; height: .8rem; border-radius: 50%; flex: 0 0 auto; }
.meter-col.hot { background: linear-gradient(180deg, rgba(220,98,60,.07), rgba(220,98,60,.02)); border-color: rgba(220,98,60,.22); }
.meter-col.hot .meter-dot { background: #dc623c; box-shadow: 0 0 0 4px rgba(220,98,60,.16); }
.meter-col.cold { background: linear-gradient(180deg, rgba(56,128,214,.07), rgba(56,128,214,.02)); border-color: rgba(56,128,214,.22); }
.meter-col.cold .meter-dot { background: #3880d6; box-shadow: 0 0 0 4px rgba(56,128,214,.16); }
.meter-col .form-grid { grid-template-columns: 1fr 1fr; }
.form-v5 .meter input { font-variant-numeric: tabular-nums; font-size: 1.08rem; font-weight: 600; letter-spacing: .02em; }
.meter-hint { font-size: .85rem; color: var(--muted); margin: -.4rem 0 1rem; }

/* Valikud (checkboxid kaartidena) */
.check-group { margin-bottom: 1.1rem; }
.check-group > .label { font-size: .86rem; font-weight: 700; color: var(--ink); margin: 0 0 .55rem; }
.check-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .62rem .95rem .62rem .75rem; border-radius: var(--pill);
  border: 1.5px solid rgba(12,28,51,.14); background: #fff;
  font-size: .93rem; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: all .2s var(--ease);
}
.check-chip span::before {
  content: ""; width: 1.1rem; height: 1.1rem; border-radius: 6px; flex: 0 0 auto;
  border: 1.5px solid rgba(12,28,51,.3); background: #fff center / 70% no-repeat;
  transition: all .2s var(--ease);
}
.check-chip span:hover { border-color: var(--gold); }
.check-chip input:checked + span { border-color: var(--gold-deep); background: rgba(242,180,92,.12); }
.check-chip input:checked + span::before {
  background-color: var(--gold-deep); border-color: var(--gold-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.form-v5 .form-actions { margin-top: .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); justify-content: space-between; }
.form-v5 .btn-submit { min-height: 3.3rem; padding-inline: 1.8rem; font-size: 1rem; }
.form-v5 .btn-submit::after { content: "→"; transition: transform .25s var(--ease); }
.form-v5 .btn-submit:hover::after { transform: translateX(4px); }
.form-actions .fineprint-inline { font-size: .84rem; color: var(--muted); margin: 0; }

/* Edukas saatmine */
.form-success { display: none; text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 1rem; }
.form-v5.is-sent .form-body { display: none; }
.form-v5.is-sent .form-success { display: block; animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.success-ico {
  width: 4.6rem; height: 4.6rem; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--amber-2), var(--amber) 55%, var(--gold-deep));
  box-shadow: 0 0 0 10px rgba(242,180,92,.14), 0 18px 40px rgba(242,180,92,.35);
}
.success-ico svg { width: 2rem; height: 2rem; stroke: var(--night); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.form-v5.is-sent .success-ico svg { animation: draw .7s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.form-success p { color: var(--muted); max-width: 32rem; margin-inline: auto; }
.success-summary {
  max-width: 30rem; margin: 1.4rem auto; padding: .4rem 1.1rem; text-align: left;
  border-radius: 16px; background: var(--cream); border: 1px solid var(--line);
  list-style: none; font-size: .93rem;
}
.success-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.success-summary li:last-child { border-bottom: 0; }
.success-summary span:first-child { color: var(--muted); }
.success-summary span:last-child { font-weight: 700; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.form-success .btn-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.2rem; }

/* Külgpaneel */
.form-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header) + 1.2rem); }
.aside-card {
  border-radius: 22px; padding: 1.35rem 1.35rem 1.2rem;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(12,28,51,.08);
}
.aside-card h3 { font-size: 1rem; margin: 0 0 .7rem; display: flex; align-items: center; gap: .55rem; }
.aside-card p { margin: 0 0 .5rem; font-size: .93rem; color: var(--muted); }
.aside-card a { color: var(--ink); font-weight: 700; }
.aside-card.night {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: var(--night); border-color: rgba(242,180,92,.25);
}
.aside-card.night::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--ph-tornid-m); background-size: cover; background-position: 50% 70%;
}
.aside-card.night::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,40,.6), rgba(10,22,40,.92)); }
.aside-card.night h3 { color: #fff; }
.aside-card.night p { color: rgba(255,255,255,.78); }
.aside-card.night .big-phone {
  display: block; margin-top: .3rem; text-decoration: none;
  font-family: var(--display); font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em;
  color: transparent; background: linear-gradient(100deg, var(--gold-2), var(--amber)); -webkit-background-clip: text; background-clip: text;
}
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .93rem; }
.aside-list li { display: flex; gap: .6rem; align-items: flex-start; }
.aside-list svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin-top: .2rem; fill: var(--gold-deep); }
.aside-card .placeholder-note { margin: 0; font-size: .86rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border-radius: var(--pill); text-decoration: none;
  background: var(--glass); border: 1px solid var(--glass-line); color: #fff; font-size: .9rem; font-weight: 600;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hero-chip:hover { border-color: rgba(242,180,92,.6); }
.hero-chip svg { width: 1rem; height: 1rem; fill: var(--amber-2); }

/* Kontaktilehe vorm: kaheveeruline öine plokk */
.contact-form-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.contact-form-band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--ph-linn); background-size: cover; background-position: 50% 50%;
}
.contact-form-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,22,40,.95) 0%, rgba(10,22,40,.8) 45%, rgba(10,22,40,.55) 100%); }
.contact-form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: center; }
.contact-form-band h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.contact-form-band .intro p { color: rgba(255,255,255,.8); }
.contact-form-band .intro .hero-chips { flex-direction: column; align-items: flex-start; }
.contact-form-band .placeholder-note { margin-top: 1.2rem; }

@media (max-width: 1024px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; grid-template-columns: 1fr 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .feature-list.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .form-v5 .grid-3, .form-v5 .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .page-hero { min-height: 0; }
  .page-hero::before { background-image: var(--ph-m); }
  .page-hero .page-hero-inner { width: calc(100% - 1.5rem); padding: 2.4rem 0 3.6rem; }
  .page-hero--form .page-hero-inner { padding-bottom: 6.2rem; }
  .page-hero h1 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .page-hero .lede { font-size: 1rem; }
  .page-hero + .section { padding-top: 3rem; border-radius: 22px 22px 0 0; }
  .page-hero--form + .form-stage { margin-top: -4.4rem; }
  .form-layout { width: calc(100% - 1.5rem); }
  .form-v5 { border-radius: 22px !important; padding: 1.3rem 1.05rem 1.4rem !important; }
  .form-v5 .grid-2, .form-v5 .grid-3, .form-v5 .grid-4 { grid-template-columns: 1fr; }
  .form-v5 .grid-2.keep, .meter-col .form-grid { grid-template-columns: 1fr 1fr; }
  .meter-cols { grid-template-columns: 1fr; }
  .meter-col { padding: .9rem .85rem .1rem; }
  .form-aside { grid-template-columns: 1fr; }
  .form-v5 .btn-submit { width: 100%; }
  .form-v5 .form-actions { flex-direction: column; align-items: stretch; }
  .feature { padding: 1.1rem 1.05rem 1.05rem 3.7rem; }
  .feature::before { left: .9rem; width: 2rem; height: 2rem; font-size: .85rem; }
  .next-service { flex-direction: column; align-items: flex-start; padding: 1.4rem 1.3rem; }
  .emergency-side { width: 100%; }
  /* Hinnakiri mobiilis kaartidena */
  table.prices thead { display: none; }
  table.prices, table.prices tbody, table.prices tr, table.prices td { display: block; width: 100%; }
  table.prices tr { padding: 1rem 1.05rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .35rem .8rem; }
  table.prices tbody tr:nth-child(even) td { background: transparent; }
  table.prices tbody tr:nth-child(even) { background: rgba(239,232,220,.4); }
  table.prices td { padding: 0; border: 0; text-align: left !important; }
  table.prices td:nth-child(1), table.prices td:nth-child(2) { grid-column: 1 / -1; }
  table.prices td:nth-child(2) { font-size: .88rem; margin-bottom: .3rem; }
  table.prices td:nth-child(n+3)::before {
    content: attr(data-label); display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
  }
  .contact-form-band .intro .hero-chips { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero::before { animation: none; }
  .form-v5.is-sent .success-ico svg { stroke-dashoffset: 0; animation: none; }
}

/* v5: kontaktivormi hele variant + aadressirida */
.contact-form-band.light { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); color: var(--text); padding-top: 1rem; }
.contact-form-band.light::before, .contact-form-band.light::after { display: none; }
.contact-form-band.light h2 { color: var(--ink); }
.contact-form-band.light .intro .aside-list { margin: 1.2rem 0 0; font-size: 1rem; gap: .75rem; }
.contact-form-band.light .intro a { color: var(--ink); font-weight: 700; text-decoration: none; }
.form-v5 .grid-addr { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 620px) {
  .form-v5 .grid-addr { grid-template-columns: 1fr 1fr; }
  .form-v5 .grid-addr .field:first-child { grid-column: 1 / -1; }
}
/* v5 parandused: vormikaart tõuseb päisefoto peale; legendi joon ei lõika pealkirja */
.form-stage { background: linear-gradient(180deg, transparent 0, transparent 6.2rem, var(--cream) 6.2rem); }
.form-step > legend { float: left; width: 100%; }
.form-step > legend + * { clear: both; }
@media (max-width: 620px) {
  .form-stage { background: linear-gradient(180deg, transparent 0, transparent 4.4rem, var(--cream) 4.4rem); }
}
@media (max-width: 620px) { .form-v5 .grid-3.keep3 { grid-template-columns: repeat(3, 1fr); gap: 0 .6rem; } }
.form-v5, .error-summary, .form-v5 .field { scroll-margin-top: calc(var(--header) + 1.2rem); }
.contact-form-band.light .intro .kicker { color: var(--gold-deep); }

/* Desktop: each hero sentence on exactly two lines (1280 / 1440 / 1920). */
.hero-home h1 .hero-s { display: block; }
.hero-h1-break { display: none; }
.hero-h1-break-m { display: revert; }
@media (min-width: 1024px) {
  .hero-h1-break { display: revert; }
  .hero-h1-break-m { display: none; }
  .hero-home h1,
  .hero-night h1 {
    max-width: 46rem;
    font-size: clamp(2.6rem, 3.55vw, 3.5rem);
  }
}
