/*
Theme Name: EPCM
Template: hello-elementor
Version: 1.0.0
Description: EPCM Consulting OÜ lapsteema (Hello Elementor). Päis, jalus, alalehe päiseriba, animatsioonid, kaart, küpsiste teavitus ja hooldusleht on siin, lehtede sisu Elementoris. Kujundus demost epcmconsulting.ee/demo-leht.
Author: Meedia Disain OÜ
Author URI: https://meediadisain.com
Text Domain: epcm
*/

/* EPCM Consulting, uue lehe demo v3.1 (MDS, 12.11.2026). Põhimõtted: elering.ee ülesehitus, tehtud tööd semuehitus.ee kaartidena. Valge taust, varje ei kasutata. */
:root {
  --ink: #1f2e35;
  --text: #2f3d44;
  --muted: #5f6f77;
  --line: #dfe6e9;
  --tint: #e8f4f5;
  --petrol: #185870;
  --petrol-d: #124657;
  --teal: #088890;
  --teal-d: #06727a;
  --r: 6px;
  --wrap: 1600px;
  --gut: clamp(20px, 3vw, 40px);
  --sgap: clamp(32px, 5vw, 88px);
  --sec: clamp(56px, 6vw, 96px);
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Nupud */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 4px; font-weight: 600; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--teal); }
.btn-line { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-line:hover { background: var(--petrol); color: #fff; }
.btn-white { background: transparent; color: #fff; border-color: #fff; }
.btn-white:hover { background: #fff; color: var(--teal-d); }
.link { font-weight: 600; color: var(--petrol); text-decoration: none; font-size: 17px; }
.link::after { content: " ›"; }
.link:hover { color: var(--teal); }

/* Ülariba */
.topbar { background: var(--petrol); color: #fff; font-size: 15px; }
.topbar-row { display: flex; align-items: center; gap: 30px; height: 42px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
/* Keelevalik: praegune keel + gloobus, nupust avanev valik (joonega, ilma varjuta) */
.langs { position: relative; margin-left: auto; }
.lang-btn { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 0 0 12px; border: 0; background: none; color: #fff; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.topbar .lang-btn svg { width: 20px; height: 20px; stroke: #9fdde1; stroke-width: 1.6; opacity: 1; }
.lang-btn:hover .lang-cur, .lang-btn[aria-expanded="true"] .lang-cur { text-decoration: underline; text-underline-offset: 4px; }
.lang-menu { position: absolute; top: 100%; right: 0; z-index: 70; min-width: 190px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.lang-menu[hidden] { display: none; }
.topbar .lang-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); font-size: 16px; font-weight: 500; }
.topbar .lang-menu a b { width: 26px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.topbar .lang-menu a:hover { background: var(--tint); text-decoration: none; }
.topbar .lang-menu a[aria-current="true"] { color: var(--teal-d); }
.topbar .lang-menu a[aria-current="true"]::after { content: "\2713"; margin-left: auto; color: var(--teal); }

/* Päis */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 40px; height: 96px; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: stretch; gap: 0; margin-left: 4px; height: 100%; --np: 20px; }
.nav > a { position: relative; display: flex; align-items: center; padding: 0 var(--np); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.nav > a + a { background: linear-gradient(#c9d6d9, #c9d6d9) left center / 1px 22px no-repeat; }
.nav > a::after { content: ""; position: absolute; left: var(--np); right: var(--np); top: calc(50% + 17px); height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav > a:hover { color: var(--teal-d); }
.nav > a:hover::after, .nav > a.on::after { transform: scaleX(1); }
.nav > a.on { color: var(--teal-d); }
.head-cta { margin-left: auto; }
.burger { display: none; width: 48px; height: 48px; margin-left: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--petrol); transition: transform .2s, opacity .2s, top .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Avaplokk: täislai animatsioon + türkiis paneel */
/* Türkiis paneel algab samalt joonelt kui allpool olevate plokkide parem veerg (50% + pool veeruvahest) */
.hero { display: grid; grid-template-columns: calc(50% + var(--sgap) / 2) 1fr; min-height: clamp(540px, 68vh, 760px); }
.hero-anim { position: relative; background: linear-gradient(180deg, #d3e7ea 0%, #e8f2f4 40%, #f5f9fa 68%, #eef6f7 100%); overflow: hidden; min-height: 340px; }
.hero-anim .anim { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Logo värvid nagu alalehtede päiseribal: petrool → hele türkiis → petrool */
.hero-panel { background: radial-gradient(ellipse 55% 60% at 78% 22%, rgba(18,166,170,.45), rgba(18,166,170,0) 70%), linear-gradient(115deg, #154b61 0%, #185e79 22%, #0e7787 50%, #0a9299 72%, #0d8693 88%, #175f79 100%); color: #fff; padding: clamp(40px, 5vw, 88px) max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) clamp(40px, 5vw, 88px) clamp(36px, 3.5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-panel h1 { color: #fff; font-size: clamp(2.2rem, 3.1vw, 3.5rem); line-height: 1.1; }
.hero-panel p { font-size: clamp(1.15rem, 1.4vw, 1.35rem); margin: 22px 0 32px; max-width: 30em; }
.hero-ceo { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 36px 0 0 !important; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.35); font-size: 17px !important; width: 100%; }
.hero-ceo .hc { display: inline-flex; align-items: center; gap: 10px; }
.hero-ceo svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.hero-ceo a { color: #fff; font-weight: 600; text-decoration: none; }
.hero-ceo a:hover { text-decoration: underline; }

/* Animatsioonid */
.anim .tw { fill: none; stroke: #6f9aa2; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.anim .tw.far { stroke: #8db1b7; }
.anim .wire { fill: none; stroke: #7fa7ae; stroke-width: 1.1; opacity: .8; }
.anim .wire.far { stroke: #9dbdc2; }
/* Maastik kihtidena: mida kaugemal, seda heledam ja udusem */
.anim .ground { fill: #b9d5d9; }
.anim .hill { fill: #c4dcdf; }
.anim .land.l0 { fill: #dbebed; }
.anim .land.l1 { fill: #cfe3e6; }
.anim .tw.haze { stroke: #aecbd0; stroke-width: 1; }
.anim .wire.haze { stroke: #bdd5d9; stroke-width: .8; opacity: 1; }
.anim .land.w0 { fill: rgba(255,255,255,.06); }
.anim .land.w1 { fill: rgba(255,255,255,.08); }
.anim .land.w2 { fill: rgba(255,255,255,.09); }
.anim .tw.ghost { stroke: rgba(255,255,255,.26); stroke-width: 1; }
.anim .wire.ghost { stroke: rgba(255,255,255,.2); stroke-width: .8; opacity: 1; }
.anim .fog.w { opacity: .12; }
.hero-panel { position: relative; overflow: hidden; }
.hero-panel > .anim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-panel > :not(.anim) { position: relative; z-index: 1; }
@media (max-width: 640px) { .hero-panel > .anim .tw, .hero-panel > .anim .wire { display: none; } }
/* Voolupulss: hele pea + hääbuv saba (saba lõpeb täpselt pea juures, mõlemad sama mustri pikkusega 150) */
.anim .pulse { fill: none; stroke: var(--teal); stroke-linecap: round; animation: flow-head var(--d, 12s) linear infinite; animation-delay: var(--dl, 0s); }
.anim .pulse.head { stroke-width: 3.4; stroke-dasharray: 1.2 148.8; stroke-dashoffset: 150; filter: drop-shadow(0 0 3px rgba(8,136,144,.75)); }
.anim .pulse.tail { stroke-width: 2.2; opacity: .35; stroke-dasharray: 14 136; stroke-dashoffset: 162.8; animation-name: flow-tail; }
.anim .pulse.far.head { stroke-width: 2.2; }
.anim .pulse.far.tail { stroke-width: 1.4; }
.anim .spark { fill: var(--teal); opacity: 0; animation: spark var(--sd, 8s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.anim .drift { animation: drift 28s ease-in-out infinite alternate; }
@keyframes flow-head { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
@keyframes flow-tail { from { stroke-dashoffset: 162.8; } to { stroke-dashoffset: 12.8; } }
@keyframes spark { 0%, 72%, 100% { opacity: 0; } 82% { opacity: .95; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-26px); } }
.anim .ln { fill: none; stroke: #9cc3c8; stroke-width: 1.6; }
.anim .ln.strong { stroke: #6fa7ae; stroke-width: 2.4; }
.anim .box { fill: #f3f9fa; stroke: #8fb9bf; stroke-width: 1.6; }
.anim .node { fill: #fff; stroke: var(--teal); stroke-width: 1.8; }
.anim .node.blink { animation: blink 3s ease-in-out infinite; animation-delay: var(--dl, 0s); transform-box: fill-box; transform-origin: center; }
.anim .wave { fill: none; stroke-width: 2.4; opacity: .55; }
.anim .wave.a { stroke: var(--teal); } .anim .wave.b { stroke: var(--petrol); opacity: .4; } .anim .wave.c { stroke: #5fb7bd; }
.anim .waves { animation: slide var(--d, 9s) linear infinite; }
@keyframes flow { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { transform: scale(1); fill: #fff; } 50% { transform: scale(1.35); fill: #bfe6e8; } }
@keyframes slide { to { transform: translateX(-360px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .pulse, .anim .spark { display: none; }
  .anim .node.blink, .anim .waves, .anim .drift { animation: none; }
}

/* Rubriigid */
.sec { padding: var(--sec) 0 0; }
.sec:last-of-type { padding-bottom: var(--sec); }
.h2 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); margin-bottom: 28px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head .h2 { margin: 0; }
.lead { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--teal); flex: none; }
.ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Teenuseplaadid */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 200px; padding: 32px 32px 30px; background: #fff; text-decoration: none; color: var(--ink); transition: color .15s; }
.tile .ico { background: var(--tint); transition: background .15s, color .15s; }
.tile strong { font-weight: 600; font-size: 19px; line-height: 1.35; }
.tile:hover { color: var(--teal-d); }
.tile:hover .ico { background: var(--teal); color: #fff; }

/* Tekst + foto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sgap); align-items: center; }
.split-img { position: relative; border-radius: var(--r); overflow: hidden; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Foto seotakse kujundusega: türkiis üleminek alumises nurgas ja liinijuhtmed voolupulssidega */
.split-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(8,136,144,0) 48%, rgba(8,136,144,.6) 100%); pointer-events: none; }
/* Küpsiste teavitus (meediadisain.com eeskujul): valge riba all, joon peal, varjuta */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line); }
.cookie[hidden] { display: none; }
.cookie-row { position: relative; display: flex; align-items: center; gap: 20px 48px; padding-top: 22px; padding-bottom: 22px; }
.cookie-text { flex: 1; padding-right: 24px; }
.cookie-text strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cookie-text p { margin: 0; font-size: 15.5px; color: var(--text); }
.cookie-text a, .ck-manage { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ck-manage { background: none; border: 0; padding: 0; font-size: 15.5px; cursor: pointer; }
.ck-manage::after { content: " ›"; }
.ck-panel { display: grid; gap: 14px; margin-top: 16px; max-width: 760px; }
.ck-panel[hidden] { display: none; }
.ck-opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ck-opt input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal); flex: none; }
.ck-opt b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.ck-opt small { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.ck-save { justify-self: start; min-height: 42px; font-size: 15px; padding: 0 18px; }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btns .btn { min-height: 46px; font-size: 15.5px; padding: 0 20px; }
.ck-close { position: absolute; top: 10px; right: 0; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
.ck-open { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; }
.ck-open:hover { color: var(--teal); }

/* Kontaktivormi nõusolek */
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 16px; color: var(--text); }
.form .consent input { width: 20px; height: 20px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.form .consent a { color: var(--petrol); font-weight: 500; }
.form .consent em { color: var(--teal); font-style: normal; }
.form .consent.err { color: #c2412d; }
.split.rev .split-img { order: -1; }
.split-text p { font-size: 18px; }
.split-text .btn { margin-top: 10px; }
.big { font-size: clamp(2.3rem, 3.8vw, 3.5rem); color: var(--teal-d); line-height: 1.1; margin-bottom: 20px; }

/* Projektikaardid (semuehitus.ee eeskujul) */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.ref { min-width: 0; }
.art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: linear-gradient(165deg, #f4fafb 0%, #d9edf0 100%); }
.art .wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.art .wires path { fill: none; stroke: #a7c9ce; stroke-width: 1.2; }
.art .pic { position: absolute; inset: 0; display: grid; place-items: center; }
.art .pic svg { width: 30%; height: auto; fill: none; stroke: var(--petrol); stroke-width: .5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.ref mark { background: #fff0a8; color: inherit; border-radius: 2px; }
.badges { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: var(--petrol); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.badge.b2 { background: var(--teal); }
.ref-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.ref-head h3 { font-size: 21px; font-weight: 500; color: var(--petrol); line-height: 1.3; }
.ref-head .yr { color: var(--muted); font-size: 15.5px; white-space: nowrap; }
.ref-row { display: flex; gap: 18px; font-size: 15.5px; margin-top: 10px; }
.ref-row span:first-child { color: var(--muted); min-width: 64px; }
.ref-row span:last-child { color: var(--text); }

/* Filtrid (semuehitus.ee eeskujul) */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; margin: 8px 0 40px; }
.filters label { display: grid; gap: 8px; }
.filters label > span { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filters input, .filters select { width: 100%; height: 54px; border: 1px solid #cdd7db; border-radius: 4px; background: #fff; padding: 0 16px; font-size: 17px; color: var(--ink); }
.filters input { padding-left: 46px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235f6f77' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 16px center; }
.filters select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6f77' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--teal); }
.empty { padding: 32px 0; color: var(--muted); font-size: 18px; }
.more-row { display: flex; justify-content: center; margin-top: 44px; }
.more-row[hidden] { display: none; }

/* Kliendid */
/* Kliendid ühes keritavas reas, logode vahel jooned */
.logo-row { position: relative; padding: 0 72px; }
.clients { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.clients::-webkit-scrollbar { display: none; }
.clients li.filler { display: none; }
.clients li { flex: 0 0 clamp(210px, 19vw, 290px); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 160px; padding: 24px; text-align: center; }
.clients li + li { border-left: 1px solid var(--line); }
.lr-btn { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--petrol); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; transform: translateY(-50%); transition: border-color .15s, opacity .2s; }
.lr-btn:hover { border-color: var(--teal); color: var(--teal); }
.lr-btn.prev { left: 0; }
.lr-btn.next { right: 0; }
.cl-logo { height: 56px; display: flex; align-items: center; justify-content: center; }
.cl-logo img { max-height: 46px; max-width: 180px; width: auto; height: auto; filter: grayscale(1) brightness(.55); opacity: .7; transition: filter .2s, opacity .2s; }
.clients li:hover .cl-logo img { filter: none; opacity: 1; }
.cl-logo img[src*="elektrilevi"] { max-height: 76px; }
.cl-logo img[src*="yit"] { max-height: 34px; }
.cl-name { font-size: 15px; color: var(--muted); line-height: 1.35; }
.cl-word { font-weight: 600; font-size: 20px; color: #6d7c83; line-height: 1.3; max-width: 15em; transition: color .2s; }
.clients li:hover .cl-word { color: var(--petrol); }

/* Alalehe päiseriba */
/* Logo värvid: petrool (E, M) → hele türkiis (P, C) → petrool */
.titlebar { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse 45% 110% at 70% 45%, rgba(18,166,170,.45), rgba(18,166,170,0) 70%), linear-gradient(100deg, #154b61 0%, #185e79 24%, #0e7787 48%, #0a9299 68%, #0d8693 84%, #175f79 100%); }
.titlebar .anim { position: absolute; inset: 0; width: 100%; height: 100%; }
.titlebar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,75,97,.9) 0%, rgba(24,94,121,.55) 30%, rgba(24,94,121,0) 56%); z-index: 1; pointer-events: none; }
.titlebar .anim .tw { stroke: rgba(255,255,255,.55); }
.titlebar .anim .wire { stroke: rgba(255,255,255,.45); opacity: 1; }
.titlebar .anim .pulse { stroke: #e2fdfd; }
.titlebar .anim .pulse.head { filter: drop-shadow(0 0 4px rgba(255,255,255,.85)); }
.titlebar .anim .spark { fill: #f0ffff; }
.titlebar .anim .tw.ghost { stroke: rgba(255,255,255,.24); }
.titlebar .anim .wire.ghost { stroke: rgba(255,255,255,.17); }
.titlebar .wrap { position: relative; z-index: 2; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 44px; }
.titlebar h1 { color: #fff; font-size: clamp(2.4rem, 3.8vw, 3.4rem); }
.crumbs { display: flex; gap: 10px; font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.crumbs a { color: #fff; text-decoration: none; font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }

/* Alalehe paigutus */
.page-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 4vw, 72px); padding-top: 56px; padding-bottom: var(--sec); align-items: start; }
.side { position: sticky; top: 120px; display: grid; gap: 20px; }
.subnav { background: var(--teal); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.subnav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; padding: 17px 24px; border-bottom: 1px solid rgba(255,255,255,.2); border-left: 4px solid transparent; }
.subnav a:last-child { border-bottom: 0; }
.subnav a:hover { background: rgba(255,255,255,.1); }
.subnav a.on { background: rgba(255,255,255,.16); border-left-color: #fff; }
.side-box { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; font-size: 16.5px; }
.side-box strong { color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.side-box span { color: var(--muted); }
.side-box a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.content { min-width: 0; }
.content > .lead { margin-bottom: 32px; max-width: 46em; }
.content .h2 { margin-top: 64px; }
.content .h2:first-child { margin-top: 0; }
.content p { font-size: 18px; }
.wide { width: 100%; border-radius: var(--r); aspect-ratio: 21 / 9; object-fit: cover; margin-bottom: 36px; }
.wide.whole { aspect-ratio: auto; height: auto; } /* Ettevõttest-lehe meeskonnafoto tervikuna (lõikamisel jäid inimesed poolikuks) */

/* Teenuste leht */
.svc-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line); }
.svc-item { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.svc-item .ico { background: var(--tint); }
.svc-item strong { font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.35; }
.svc-item:target strong { color: var(--teal-d); }
.photos3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.photos3 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

/* Numbrid */
.stats { display: grid; gap: 32px; margin: 8px 0 48px; }
.stats.c3 { grid-template-columns: repeat(3, 1fr); }
.stats.c4 { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.stat { border-top: 3px solid var(--teal); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 600; color: var(--teal-d); line-height: 1.1; }
.stat span { font-size: 16.5px; color: var(--muted); }

/* Galerii */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery button { padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.05); }

/* Ettevõttest */
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.values li { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink); }
.values .ico { background: var(--tint); }
.docs { list-style: none; margin: 72px 0 0; padding: 0; border-top: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.doc-vis { display: flex; align-items: center; min-height: 64px; }
.ico-lg { width: 72px; height: 72px; background: var(--tint); }
.ico-lg svg { width: 34px; height: 34px; }
.doc .eu-logo { width: 200px; }
.doc h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 6px 0 10px; }
.doc-link { display: inline-block; margin-top: 14px; }
.eu-text { font-size: 17.5px; color: var(--muted); line-height: 1.7; max-width: 70ch; margin: 0 !important; }

/* Kontakt */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: 60px 1fr; gap: 2px 18px; align-items: center; }
.avatar { grid-row: span 2; width: 60px; height: 60px; border-radius: 50%; background: var(--tint); color: var(--petrol); display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.person b { color: var(--ink); font-size: 19px; font-weight: 600; }
.person .role { color: var(--muted); font-size: 16px; }
.person .links { grid-column: 2; display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.person .links a { font-weight: 500; text-decoration: none; font-size: 17px; overflow-wrap: anywhere; }
.contact-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 4vw, 64px); margin-top: 64px; align-items: start; }
/* Kontaktileht ilma külgpaneelita, inimesed joontega eraldatud ruudustikus */
.page-full { padding-top: 72px; padding-bottom: var(--sec); }
.page-full > .lead { max-width: 46em; margin-bottom: 64px; }
.page-full .people { grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.page-full .person { border: 0; border-radius: 0; background: #fff; padding: 40px 36px; }
.person.filler { padding: 0; }
.contact-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 5vw, 96px); align-items: start; }
.form-panel { background: var(--tint); border-radius: var(--r); padding: clamp(28px, 3.5vw, 52px); }
.company .h2 { margin-bottom: 8px; }
.company-list { list-style: none; margin: 0; padding: 0; }
.company-list li { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink); }
.company-list li:last-child { border-bottom: 0; }
.company-list .ico { background: var(--tint); }
.company-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.company-list small { font-size: 14px; color: var(--muted); }
.company-list a:not(.link) { font-weight: 500; text-decoration: none; font-size: 19px; }
.company-list .link { margin-top: 6px; font-size: 16px; }
.people-title { margin-top: 96px; }
.form-wrap { margin-top: 88px; max-width: 920px; }
.form { display: grid; gap: 18px; }
.form .h2 { margin: 0 0 4px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 16px; font-weight: 500; color: var(--ink); }
.form label.req > span::after { content: " *"; color: var(--teal); }
.form input, .form textarea { width: 100%; border: 1px solid #cdd7db; border-radius: 4px; padding: 12px 16px; font-size: 17px; line-height: 1.5; color: var(--ink); background: #fff; }
.form input { height: 54px; }
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal); }
.form input.err { border-color: #c2412d; }
.form .btn { justify-self: start; }
.form-note { margin: 0; padding: 14px 16px; border-radius: 4px; background: var(--tint); color: var(--teal-d); font-weight: 500; font-size: 16.5px; }
.addr-box { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 17.5px; margin-top: 60px; }
.addr-box strong { color: var(--ink); font-size: 20px; font-weight: 600; }
.addr-box a:not(.btn) { font-weight: 500; text-decoration: none; }
.addr-box .btn { margin-top: 16px; }

/* Jalus */
.footer { position: relative; overflow: hidden; background: #edf3f4; font-size: 17px; }
.foot-anim { position: absolute; right: 0; bottom: 0; width: 72%; height: 300px; opacity: .5; pointer-events: none; }
.footer .wrap { position: relative; }
.foot-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; padding: 64px 0 56px; border-bottom: 1px solid #d3e1e4; }
.foot-cta h2 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.foot-cta > div:first-child { flex: 1 1 400px; max-width: 620px; }
.foot-cta p { margin: 8px 0 0; color: var(--muted); font-size: 19px; }
.foot-cta-r { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
.footer .foot-phone { font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 600; color: var(--petrol); }
.footer .foot-mail { font-size: 19px; font-weight: 500; color: var(--petrol); padding-left: 32px; border-left: 1px solid #c3d5d9; line-height: 1.9; }
.footer .btn-primary, .footer .btn-primary:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; padding: 56px 0; }
.foot-grid > * + * { border-left: 1px solid #d3e1e4; padding-left: 40px; }
.foot-logo { display: block; height: 54px; width: auto; }
/* Logo ja Kaubanduskoja märk kõrvuti, vahel püstjoon (nagu jaluse veergude vahel) */
.foot-brand { display: flex; align-items: center; gap: 22px; align-self: start; }
.foot-koda { display: flex; align-items: center; gap: 12px; min-height: 54px; padding-left: 22px; border-left: 1px solid #c3d5d9; max-width: 230px; font-size: 15.5px; font-weight: 500; line-height: 1.35; color: var(--ink); text-decoration: none; }
.footer .foot-koda .ico { width: 40px; height: 40px; background: #fff; }
.footer .foot-koda .ico svg { width: 21px; height: 21px; }
@media (max-width: 1280px) { .footer .foot-koda .ico { display: none; } }
.footer a.foot-koda:hover { color: var(--teal-d); }
.foot-brand p { color: var(--muted); font-size: 18px; margin-bottom: 20px; }
.foot-eu img { width: 170px; border-radius: 4px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-h { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--teal); }
.fc { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.fc svg { width: 20px; height: 20px; flex: none; margin-top: 3px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding: 22px 0 26px; border-top: 1px solid #d3e1e4; color: var(--muted); font-size: 15px; }
.foot-bottom a { color: var(--muted); }
.foot-bottom .to-top { margin-left: auto; font-weight: 600; color: var(--petrol); }
.foot-bottom .to-top::after { content: " ↑"; }

/* Kiirriba */
.quickbar { display: none; }

/* Galerii vaade */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(255,255,255,.97); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(255,255,255,.9); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; width: auto; height: auto; border-radius: 6px; }
.lightbox button { position: absolute; border: 1px solid var(--line); background: #fff; color: var(--petrol); width: 52px; height: 52px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { color: var(--teal); border-color: var(--teal); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 15px; font-weight: 500; }

/* Tahvel */
@media (max-width: 1200px) {
  .nav { margin-left: 0; --np: 14px; }
  .nav > a { font-size: 17px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .page-full .people { grid-template-columns: repeat(2, 1fr); }
  .refs { grid-template-columns: repeat(2, 1fr); }
  .page-grid { grid-template-columns: 260px 1fr; }
  .stats.c4 { grid-template-columns: repeat(2, 1fr); }
  .svc-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topbar .tb-addr { display: none; }
  .head-row { height: 72px; gap: 12px; }
  .logo img { height: 42px; }
  .head-cta { display: none; }
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: auto; margin: 0; background: #fff; flex-direction: column; gap: 0; padding: 4px var(--gut) 16px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav > a, .nav > a + a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 19px; background: none; }
  .nav > a::after { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-anim { min-height: 0; aspect-ratio: 16 / 9; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .split-img { order: 0; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
  .page-grid { grid-template-columns: 1fr; padding-top: 28px; }
  .side { position: static; order: 2; }
  .titlebar .wrap { min-height: 190px; padding-bottom: 30px; }
  .contact-row, .contact-top { grid-template-columns: 1fr; }
  .people-title { margin-top: 72px; }
  .addr-box { margin-top: 0; }
  .doc { grid-template-columns: 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > * + * { border-left: 0; padding-left: 0; }
  .foot-grid > :nth-child(even) { border-left: 1px solid #d3e1e4; padding-left: 32px; }
  .foot-anim { width: 100%; opacity: .3; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .topbar-row { gap: 16px; font-size: 14px; }
  .topbar-row > a:nth-child(2) { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .page-full .people { grid-template-columns: 1fr; }
  .person.filler { display: none; }
  .page-full .person { padding: 28px 4px; }
  .tile { min-height: 0; padding: 16px 18px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
  .tile strong { font-size: 17.5px; }
  .refs, .people, .f-row, .stats.c3 { grid-template-columns: 1fr; }
  .clients li { flex-basis: 58vw; min-height: 130px; padding: 20px 14px; gap: 10px; }
  .logo-row { padding: 0; }
  .lr-btn { display: none; }
  .cookie-row { flex-direction: column; align-items: stretch; padding-top: 18px; padding-bottom: 18px; }
  .cookie-text { padding-right: 36px; }
  .cookie-btns .btn { flex: 1 1 auto; }
  .cl-logo { height: 44px; }
  .cl-logo img { max-height: 44px; max-width: 140px; }
  .cl-name { font-size: 13.5px; }
  .cl-word { font-size: 16px; }
  .refs { gap: 36px; }
  .filters { grid-template-columns: 1fr; }
  .photos3 { grid-template-columns: 1fr 1fr; }
  .photos3 img:last-child { display: none; }
  .wide { aspect-ratio: 16 / 9; }
  .wide.whole { aspect-ratio: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 0; }
  .foot-grid > *, .foot-grid > :nth-child(even) { border-left: 0; padding: 24px 0; }
  .foot-grid > * + * { border-top: 1px solid #d3e1e4; }
  .form .btn { justify-self: stretch; }
  .quickbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 4px; text-decoration: none; font-weight: 600; border: 2px solid var(--petrol); color: var(--petrol); }
  .quickbar a.q-main { background: var(--petrol); color: #fff; }
  .quickbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
  .lightbox button { width: 44px; height: 44px; font-size: 24px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* ---------- Objekti leht (semuehitus.ee referentsi eeskujul). Kaart viib objekti lehele. ---------- */
a.ref { display: block; color: inherit; text-decoration: none; }
a.ref:hover h3 { color: var(--teal-d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.ref:focus-visible { outline-offset: 6px; }
[data-page="objekt"] .titlebar h1 { font-size: clamp(2rem, 3vw, 2.8rem); max-width: 24em; line-height: 1.18; }
.obj { padding-top: 36px; }
.obj [hidden] { display: none !important; }
.obj-nav { display: flex; align-items: center; gap: 24px; padding-bottom: 24px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.link-back { font-weight: 600; font-size: 17px; color: var(--petrol); text-decoration: none; }
.link-back::before { content: "‹ "; }
.link-back:hover { color: var(--teal); }
.obj-count { margin-left: auto; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.obj-arrows { display: flex; gap: 10px; }
.obj-nav .lr-btn { position: static; transform: none; text-decoration: none; }
.obj-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.obj-art { aspect-ratio: 16 / 10; }
.obj-art .pic svg { width: 22%; }
.obj-art .badges { top: 18px; left: 18px; }
.obj-year { position: absolute; top: 18px; right: 18px; background: #fff; color: var(--petrol); font-size: 14px; font-weight: 600; padding: 5px 10px; border-radius: 3px; }
.obj-drive { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 0; padding: 16px 20px; border: 1px dashed #b5ccd1; border-radius: var(--r); }
.obj-drive svg { width: 24px; height: 24px; flex: none; margin-top: 2px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linejoin: round; }
.obj-drive small { display: block; font-size: 14.5px; color: var(--muted); }
.obj-drive b { display: block; font-size: 16.5px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.obj-panel { border-top: 2px solid var(--teal); }
.obj-facts { margin: 0; }
.of { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.of-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--teal-d); display: grid; place-items: center; }
.of-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.of dt { font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.of dd { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.obj-related { margin-top: var(--sec); }
.obj-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: var(--sec); }
.pg { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 28px 0; background: #fff; text-decoration: none; }
.pg-prev { padding-right: 32px; }
.pg-next { padding-left: 32px; align-items: flex-end; text-align: right; }
.pg small { font-size: 15px; font-weight: 600; color: var(--teal-d); }
.pg-prev small::before { content: "‹ "; }
.pg-next small::after { content: " ›"; }
.pg span { font-size: 19px; font-weight: 500; color: var(--petrol); line-height: 1.35; }
.pg:hover span { color: var(--teal-d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .obj-top { grid-template-columns: 1fr; }
  .obj { padding-top: 24px; }
}
@media (max-width: 640px) {
  .obj-nav { gap: 12px; margin-bottom: 28px; }
  .obj-nav .lr-btn { display: grid; width: 42px; height: 42px; font-size: 24px; }
  .obj-art { aspect-ratio: 4 / 3; }
  .obj-pager { grid-template-columns: 1fr; }
  .pg-prev { padding-right: 0; }
  .pg-next { padding-left: 0; align-items: flex-start; text-align: left; }
}

/* ---------- Asukohakaart kontaktilehel (risaku.ee lahenduse eeskujul), eraldi real ja suur. Varje ei ole, eraldab joon. ---------- */
.map-card { position: relative; margin-top: 96px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.map { position: relative; z-index: 0; height: clamp(400px, 36vw, 560px); background: var(--tint); border-radius: var(--r) var(--r) 0 0; }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.22) hue-rotate(140deg) saturate(1.35) brightness(1.02) contrast(.94); }
.map .leaflet-control-zoom { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: none; }
.map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 34px; color: var(--petrol); border-bottom-color: var(--line); }
.map .leaflet-control-attribution { font-size: 11px; background: rgba(255,255,255,.85); }
.map-marker-wrap { background: none; border: 0; cursor: pointer; }
.map-marker { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(8,136,144,.2); transition: transform .25s; }
.map-marker svg { width: 24px; height: 24px; fill: #fff; }
.map-marker::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--teal); animation: mapPulse 2.4s ease-out infinite; }
@keyframes mapPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.map-marker-wrap:hover .map-marker, .map-marker-wrap[aria-expanded="true"] .map-marker { transform: scale(1.1); }
.map-marker-wrap:focus-visible { outline: none; }
.map-marker-wrap:focus-visible .map-marker { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--teal); }
.map-pop { --nool: 50%; position: absolute; top: 20px; left: 20px; z-index: 2; width: min(310px, calc(100% - 40px)); padding: 18px 20px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .22s, transform .22s, visibility 0s .22s; }
.map-pop.is-all { transform: translateY(-8px); }
.map-pop.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.map-pop::after { content: ""; position: absolute; top: 100%; left: calc(var(--nool) - 7px); width: 14px; height: 14px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateY(-7px) rotate(45deg); }
.map-pop.is-all::after { top: auto; bottom: 100%; transform: translateY(7px) rotate(225deg); }
.map-pop::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
.map-pop.is-all::before { top: auto; bottom: 100%; }
.map-pop-head { display: flex; align-items: center; gap: 12px; }
.map-pop-mark { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal); }
.map-pop-mark svg { width: 22px; height: 22px; fill: #fff; }
.map-pop-head strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--ink); }
/* Sisu ja link nime joonel (ikooni laius + vahe) */
.map-pop-place { margin-top: 10px; padding-left: 54px; }
.map-pop-place strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.map-pop-place span { display: block; font-size: 14.5px; color: var(--muted); }
.map-pop-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px -20px 0; padding: 13px 20px 13px 74px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--petrol); text-decoration: none; }
.map-pop-link:hover { color: var(--teal); }
.map-pop-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.map-pop-link:hover svg { transform: translateX(3px); }
.map-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 22px 28px; border-top: 1px solid var(--line); }
.map-addr strong { display: block; font-size: 20px; font-weight: 600; color: var(--ink); }
.map-addr span { display: block; font-size: 16px; color: var(--muted); }
.map-bar .btn svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 640px) {
  .map { height: 380px; }
  .map-bar { padding: 18px; }
  .map-bar .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .map-marker::after { animation: none; } .map-pop, .map-marker { transition: none; } }

/* ---------- Video Ettevõttest-lehel: pilt + esitusnupp, YouTube laaditakse klõpsu peale ---------- */
.video { margin: 0 0 40px; }
.video-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #0f2a33; cursor: pointer; }
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-btn { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--teal); transition: transform .2s, background .2s; }
.video-btn svg { width: 32px; height: 32px; margin-left: 4px; fill: #fff; }
.video-play:hover .video-btn, .video-play:focus-visible .video-btn { background: var(--teal-d); transform: scale(1.06); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); }
.content .video-cap { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 640px) { .video-btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .video-btn svg { width: 26px; height: 26px; } }

/* Ettevõttest-lehe ülaosa: tekst + foto ja video + pealkiri kahes reas */
.about-split { margin: 0 0 64px; }
.about-split .lead { margin: 0 0 18px; }
.about-split + .h2 { margin-top: 8px; }
.about-split .video { margin: 0; }
.split.rev .video { order: -1; }
.video-src { color: var(--muted); }
@media (max-width: 900px) { .split.rev .video { order: 0; } .about-split { margin-bottom: 48px; } }


/* ---------- WordPressi ja Elementori lisad (demos neid polnud) ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { left: 8px; z-index: 200; }
/* Ilma Elementorita lehe sisu raamis (Elementori lehtedel paneb laiuse Elementor) */
.page-content:not(:has(> .elementor)) { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gut) var(--sec); }
.page-content:not(:has(> .elementor)) > * { max-width: 60em; }
/* Avaplokk ja kaart lühikoodina ilma Elementorita: avaplokk täislaiuses */
.page-content:has(> .hero:first-child) { max-width: none; padding: 0; }
.page-content:has(> .hero:first-child) > * { max-width: none; }

/* ---------- Plugin „EPCM sisu“: tööde pildid, töötajad, töö lehe pisipildid ---------- */
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.people-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.people-grid .person { border: 0; border-radius: 0; background: #fff; padding: 40px 36px; }
.avatar-foto { overflow: hidden; padding: 0; }
.avatar-foto img { width: 100%; height: 100%; object-fit: cover; }
.obj-pisipildid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.obj-pisipildid button { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.obj-pisipildid button[aria-current="true"] { border-color: var(--teal); }
.obj-pisipildid img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1200px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .people-grid { grid-template-columns: 1fr; } .people-grid .person { padding: 28px 4px; } }

/* Filtriga peidetud kaart (a.ref display:block muidu ületaks hidden-atribuudi) */
.ref[hidden] { display: none; }

/* ==========================================================================
   Elementor: demo plokid Elementori konteinerite ja vidinatena (ehitus/lehed.php).
   Konteineri klassid: sec, page-grid, page-full-e, content, split, split-text, sec-head, contact-top, photos3.
   ========================================================================== */
/* Elementori vaikimisi täidis ja vahed nulli, ruum tuleb meie klassidest */
.elementor .e-con { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; --widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px; }
.elementor .elementor-widget:not(:last-child) { margin-block-end: 0; }
.elementor .elementor-widget-text-editor > :last-child, .elementor .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
/* Raam nagu demo .wrap: sisu kuni 1600 px, äärtes --gut */
.e-con.sec, .e-con.page-grid, .e-con.page-full-e { --padding-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); --padding-right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); }
.e-con.sec { --padding-top: var(--sec); }
.e-con.sec-lopp { --padding-bottom: var(--sec); }
.e-con.avaplokk-sec { --padding-top: 0px; }
.e-con.page-full-e { --padding-top: 72px; --padding-bottom: var(--sec); }
.elementor .e-con.page-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); --padding-top: 56px; --padding-bottom: var(--sec); align-items: start; }
.e-con.page-grid > .elementor-widget-shortcode:first-child { position: sticky; top: 120px; }
.e-con.content { min-width: 0; }
.elementor .e-con.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sgap); align-items: center; }
.elementor .e-con.split-text { display: block; }
.elementor .e-con.sec-head { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.e-con.sec-head .elementor-widget-heading { margin: 0 !important; }
.elementor .e-con.contact-top { display: grid; grid-template-columns: 1.6fr 1fr; column-gap: clamp(40px, 5vw, 96px); align-items: start; }
.elementor .e-con.photos3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.e-con.about-split { margin-bottom: 64px; }
/* Pealkirjad (demo .h2 jne) */
.elementor-widget-heading .elementor-heading-title { color: var(--ink); font-family: var(--font); font-weight: 600; line-height: 1.2; }
.elementor-widget-heading h2.elementor-heading-title { font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
.elementor-widget-heading h3.elementor-heading-title { font-size: 22px; }
.elementor .elementor-widget.elementor-widget-heading:has(h2) { margin-bottom: 28px; }
.elementor .e-con.content > .elementor-widget.elementor-widget-heading:has(h2):not(:first-child) { margin-top: 64px; }
.elementor .elementor-widget.elementor-widget-heading.people-title { margin-top: 96px; }
/* Tekst */
.elementor-widget-text-editor { color: var(--text); }
.e-con.content .elementor-widget-text-editor p { font-size: 18px; }
.elementor-widget-text-editor .lead { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.e-con.content > .elementor-widget-text-editor:has(.lead):first-child, .e-con.page-full-e > .elementor-widget-text-editor:has(.lead):first-child { margin-bottom: 32px; max-width: 46em; }
.e-con.page-full-e > .elementor-widget-text-editor:has(.lead):first-child { margin-bottom: 64px; }
/* Nupud (demo .btn, .btn-primary, .btn-line) */
.elementor-widget-button .elementor-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 4px; font-family: var(--font); font-weight: 600; font-size: 17px; line-height: 1; text-decoration: none; border: 2px solid transparent; background: var(--petrol); color: #fff; transition: background .15s, color .15s, border-color .15s; }
.elementor-widget-button .elementor-button:hover, .elementor-widget-button .elementor-button:focus-visible { background: var(--teal); color: #fff; }
.elementor-widget-button.btn-line .elementor-button { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.elementor-widget-button.btn-line .elementor-button:hover { background: var(--petrol); color: #fff; }
.elementor .split-text .elementor-widget.elementor-widget-button { margin-top: 10px; }
/* Pildid */
.elementor-widget-image.split-img img, .elementor-widget-image.wide img, .e-con.photos3 img { display: block; }
.elementor-widget-image.wide img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r); margin-bottom: 36px; }
/* Elementori galerii demo .gallery moodi */
.elementor-widget-image-gallery .gallery { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.elementor-widget-image-gallery .gallery-item { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.elementor-widget-image-gallery .gallery-icon, .elementor-widget-image-gallery .gallery-icon a { display: block; height: 100%; }
.elementor-widget-image-gallery .gallery-item img { width: 100%; height: 100% !important; object-fit: cover; border: 0 !important; transition: transform .4s; }
.elementor-widget-image-gallery .gallery-item:hover img { transform: scale(1.05); }
/* Contact Form 7 demo vormi moodi */
.wpcf7 .form .wpcf7-form-control-wrap { display: block; }
.wpcf7 .form .consent .wpcf7-list-item { margin: 0; }
.wpcf7 .form .consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.wpcf7 .form .wpcf7-submit { justify-self: start; min-height: 52px; padding: 0 26px; border-radius: 4px; border: 2px solid transparent; background: var(--petrol); color: #fff; font: 600 17px/1 var(--font); cursor: pointer; }
.wpcf7 .form .wpcf7-submit:hover { background: var(--teal); }
.wpcf7 .form .wpcf7-not-valid-tip { font-size: 14px; color: #c2412d; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 4px; }
.wpcf7-spinner { margin-left: 12px; }
@media (max-width: 1200px) {
	.elementor .e-con.page-grid { grid-template-columns: 260px minmax(0, 1fr); }
	.elementor-widget-image-gallery .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.elementor .e-con.page-grid { grid-template-columns: minmax(0, 1fr); --padding-top: 28px; }
	.e-con.page-grid > .elementor-widget-shortcode:first-child { position: static; order: 2; }
	.elementor .e-con.split, .elementor .e-con.contact-top { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
	.e-con.split.rev > .elementor-widget-image, .e-con.split.rev > .elementor-widget-html { order: 0; }
	.elementor-widget-heading.people-title { margin-top: 72px; }
}
@media (max-width: 640px) {
	.elementor .e-con.photos3 { grid-template-columns: 1fr 1fr; }
	.e-con.photos3 > :last-child { display: none; }
	.elementor-widget-image-gallery .gallery { grid-template-columns: repeat(2, 1fr); }
	.wpcf7 .form .wpcf7-submit { justify-self: stretch; }
	.elementor .e-con.sec-head { flex-direction: column; gap: 8px; }
}
/* Sissejuhatav lõik (lead) on suurem ka sisuveerus, kus tavalõik on 18px */
.elementor .e-con .elementor-widget-text-editor p.lead { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--ink); }
/* Contact Form 7: tärn ainult sildi järel, mitte välja ümbrise järel */
.form label.req > .wpcf7-form-control-wrap::after { content: none; }
/* Tekstileht (privaatsuspoliitika): loetav rea pikkus, rubriigid väiksemad kui lehe H1 */
.elementor.elementor .e-con > .elementor-widget-text-editor.tekstileht { max-width: 50em; }
.tekstileht h2 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.3; color: var(--ink); margin: 44px 0 12px; }
.tekstileht p { font-size: 18px; line-height: 1.65; margin: 0 0 14px; }
.tekstileht > .elementor-widget-container > p:first-child, .tekstileht p:first-child { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.tekstileht a { text-decoration: underline; text-underline-offset: 2px; }
.tekstileht .muudetud { margin-top: 44px; font-size: 15px; color: var(--muted); }
/* Kontaktilehel kaart vormi asemel (17.11): ülemises reas ettevõtte andmete kõrval, ilma alumise kaardi vaheta */
.contact-top .map-card { margin-top: 0; }
/* Kontaktilehel ettevõtte andmed vasakul, kaart paremal (17.11 kasutaja: „vahetame pooled“). Ainult arvutis, telefonis kaart ees nagu enne. */
@media (min-width: 901px) {
	.elementor .e-con.contact-top:has(.map-card) { grid-template-columns: 1fr 1.6fr; }
	.elementor .e-con.contact-top:has(.map-card) > .elementor-widget-shortcode { order: 2; }
}
/* Teenuste loend (17.11 kasutaja: „alumistele ei ole jooni vaja ja ülal on liiga vähe ruumi“):
   pildi ja loendi vahel sama vahe nagu loendi all (40 px), viimase rea all joont pole (arvutis 2 veergu, ≤1200 px üks veerg). */
.svc-list { border-top: 0; }
@media (min-width: 901px) { .svc-list { margin-top: 40px; } } /* telefonis on pildi enda alumine vahe juba olemas */
.svc-list > .svc-item:last-child { border-bottom: 0; }
@media (min-width: 1201px) {
	.svc-list > .svc-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
/* Avaplokk „paneel nihkes“ (17.11 kasutaja valik C pärast A/B/C kuvatõmmiseid): joonis üle kogu laiuse,
   türkiis paneel algab 72 px madalamalt ja ulatub 72 px joonisest allapoole (järgmine plokk nihkub sama palju).
   Ainult kahe veeruga vaates (≥901 px); telefonis joonis üleval ja paneel all nagu enne. */
@media (min-width: 901px) {
	.hero { margin-bottom: 72px; }
	.hero-anim { grid-column: 1 / -1; grid-row: 1; }
	.hero-panel { grid-column: 2; grid-row: 1; margin-top: 72px; margin-bottom: -72px; border-radius: var(--r) 0 0 var(--r); } /* vasakud nurgad ümarad nagu saidi pildid, paremal ekraani serv */
}

/* Menüü päise keskel (kasutaja 17.11): logo vasakul, nupp paremal, menüü lehe keskjoonel.
   Kitsamal ekraanil, kui keskel ruumi ei jagu, nihkub menüü vasakule, mitte nupu peale. */
@media (min-width: 901px) {
	.head-row { display: grid; grid-template-columns: 1fr auto 1fr; }
	.logo { justify-self: start; }
	.nav { margin-left: 0; }
	.head-cta { justify-self: end; margin-left: 0; white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1200px) {
	.head-row { column-gap: 24px; }
}

/* Tööde kaardid (kasutaja 18.11): pealkiri alati kaks rida (pikem lõpeb „…“, lühem jätab teise rea tühjaks),
   et Tellija ja Töö read oleksid kõrvuti kaartidel samal joonel; ridade väärtused ühel real; Tellija ja Töö vahel joon.
   Täielik nimi jääb HTML-i (otsing, ekraanilugeja, SEO) ja töö lehele. */
.ref-head { display: block; } /* aasta pealkirja kohal, pealkiri kaardi täislaiuses (kasutaja 18.11) */
.ref-head .yr { display: block; min-height: 1.4em; margin-bottom: 4px; line-height: 1.4; }
.ref-head h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.6em; }
.ref-row span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-row + .ref-row { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
