/*
 * projekt.css - torutööd.com (26-1027SW). Laaditakse pärast base.css-i.
 * Identiteet: grafiit + erksad süsteemivärvid (09.10.2026: küte oranž, soojuspump merevaik, vesi tsüaan,
 * ventilatsioon laim; varem vask), betoonhall pind, joonise-ruudustik. Teadlikult erinev ehitusfirma
 * põhisaidist (meresinine + Fraunces). Tehnikad futex.ee (sõna-üles, klaaspäis, reveal, numbrid, sticky veerg),
 * maalritoodtartus.ee (kahetooniline H1, nool-nupp, alajoonega link, ümarad kaardid), rehvirobot.ee (tumedad
 * kontrastsed plokid, suured kaardid). Ilma inline-stiilideta (CSP style-src 'self').
 */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* 09.10.2026 RU: Archivo't kirillitsas pole -> sama perekonnanime alla Onest (OFL, Google Fonts, isehostitud) ainult kirillitsa
   märkidele (unicode-range); Plex Mono kirillitsa. Ladina tekstile neid faile ei laadita. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/assets/fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plexmono-500-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plexmono-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plexmono-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --graphite: #15191c;
  --graphite-2: #1f2529;
  --graphite-3: #2b3338;
  --concrete: #eeeeea;
  --paper: #f8f8f5;
  --line: #d5d5ce;
  /* 09.10.2026 erksam gamma (HANDOFF-TORUTOOD-PARANDUSED p 2). Põhiaktsent oranž; teised ainult süsteemi tähistamiseks.
     Kontrast (WCAG): #FF6B1A / #15191c 6.2:1, #FFC21A 10.9:1, #22D3EE 9.8:1, #A3E635 11.7:1; tekst #0E1316 oranžil 6.6:1;
     heledal pinnal tekst #B93C0A (paber 5.3:1, betoon 4.9:1), valge #B93C0A-l 5.7:1. */
  --acc-heat: #FF6B1A;    /* küte — erk oranž (CTA, põhiaktsent tumedal) */
  --acc-pump: #FFC21A;    /* soojuspumbad — merevaik */
  --acc-water: #22D3EE;   /* vesi ja kanalisatsioon — tsüaan */
  --acc-air: #A3E635;     /* ventilatsioon — laim */
  --acc-text-on: #0E1316; /* tekst erkal pinnal */
  --heat-ink: #B93C0A;    /* oranž tekst/joon heledal pinnal */
  --water-ink: #0E7490;   /* fookus/tsüaan heledal pinnal (5.0:1) */
  --glow-heat: 0 0 24px rgba(255, 107, 26, .35);
  --glow-water: 0 0 24px rgba(34, 211, 238, .30);
  --focus: var(--water-ink);
  --copper: var(--acc-heat);   /* vanad nimed (plokid, jalus) → uus gamma */
  --copper-btn: var(--heat-ink);
  --copper-ink: var(--heat-ink);
  --on-dark: #e9ebe8;
  --on-dark-muted: #b2b9bd;

  --c-bg: var(--paper);
  --c-surface: var(--concrete);
  --c-text: var(--graphite);
  --c-muted: #4b545a;
  --c-border: var(--line);
  --c-accent: var(--copper-ink);
  --c-accent-text: #fff;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font: 17px/1.6 var(--font); font-stretch: 100%; overflow-x: hidden; }
h1, h2, h3 { font-stretch: 112%; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.1; }
h3 { font-size: 1.2rem; font-weight: 700; }
a { color: var(--copper-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* tumedad pinnad: tsüaan fookus (9.8:1) */
.hero, .process, .etapid, .cta-band, .site-footer, .site-header:not(.scrolled), .kalk-out { --focus: var(--acc-water); }
.wrap { padding: 0 20px; }
.wrap.narrow { max-width: 820px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 500 .78rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* Nupud */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700;
  transition: transform .25s var(--ease-out), background-color .2s, box-shadow .25s; }
.btn:hover { filter: none; transform: translateY(-2px); }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn-copper, .btn-primary { background: linear-gradient(135deg, var(--acc-heat), var(--acc-pump)); color: var(--acc-text-on); box-shadow: var(--glow-heat); }
.btn-copper:hover, .btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 32px rgba(255, 107, 26, .5); }
.btn-sm { padding: 11px 18px; font-size: .95rem; min-height: 44px; }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: var(--graphite-3); }
.link-line { color: var(--graphite); font-weight: 600; text-decoration: none; background: linear-gradient(90deg, var(--heat-ink), var(--heat-ink)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 3px; transition: background-size .3s var(--ease-out); }
.link-line:hover { background-size: 40% 2px; }
.link-line.on-dark { color: var(--on-dark); background-image: linear-gradient(90deg, var(--acc-heat), var(--acc-pump)); }

/* Päis: klaas tumeda hero kohal → kerimisel hele; peitub allakerimisel */
.site-header { position: sticky; top: 0; z-index: 50; border: 0; background: rgba(21, 25, 28, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--on-dark);
  transition: transform .4s var(--ease-out), background-color .3s, box-shadow .3s; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.scrolled { background: rgba(248, 248, 245, .9); color: var(--graphite); box-shadow: 0 1px 0 var(--line); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: rgba(21, 25, 28, .96); } .site-header.scrolled { background: rgba(248, 248, 245, .98); } }
.header-inner { min-height: 72px; gap: 10px 28px; flex-wrap: nowrap; }
/* Logo (09.10.2026): ikoon + „torutööd“ + „.com“ aktsendis, ilma alamsildita */
.logo { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; line-height: 1; }
.logo:hover { text-decoration: none; }
.logo__icon { flex: none; width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(255, 107, 26, .25)); }
.logo__word { white-space: nowrap; }
.brand-name { font-weight: 800; font-stretch: 118%; font-size: 1.35rem; letter-spacing: -.02em; }
.brand-tld, .logo__tld { font-weight: 700; font-size: 1.35rem; color: var(--acc-heat); }
.site-header.scrolled .logo__tld { color: var(--heat-ink); }
.main-nav { align-items: center; gap: 26px; }
.main-nav a, .lang-switch a { color: inherit; font-weight: 600; font-size: .95rem; }
.main-nav a.nav-anchor { position: relative; text-decoration: none; }
.main-nav a.nav-anchor::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: linear-gradient(90deg, var(--acc-heat), var(--acc-pump));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.main-nav a.nav-anchor:hover { text-decoration: none; }
.main-nav a.nav-anchor:hover::after { transform: scaleX(1); }
.main-nav a.nav-cta { padding: 9px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--acc-heat), var(--acc-pump)); color: var(--acc-text-on); text-decoration: none; box-shadow: 0 0 16px rgba(255, 107, 26, .3); }
.main-nav a.nav-cta:hover { filter: brightness(1.08); text-decoration: none; }
.lang-switch { gap: 4px; padding: 3px; border: 1px solid currentColor; border-radius: 999px; border-color: rgba(127, 135, 140, .5); }
.lang-switch a { font: 500 .78rem/1 var(--mono); padding: 7px 9px; border-radius: 999px; color: inherit; opacity: .8; text-decoration: none; }
.lang-switch a:hover { opacity: 1; text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--acc-heat); color: var(--acc-text-on); opacity: 1; }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -72px; padding: 150px 0 96px; background: var(--graphite); color: var(--on-dark); }
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 107, 26, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 78%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
/* hero-silt: merevaik (10.9:1), suurem vahe h1-ga, ei kattu animatsiooni ajal (z-index) */
.hero .eyebrow { position: relative; z-index: 1; color: var(--acc-pump); font-size: .82rem; margin-bottom: 22px; letter-spacing: .12em; }
.hero-title { margin: 0 0 22px; font-size: clamp(2.3rem, 5vw, 4.3rem); font-weight: 800; font-stretch: 108%; overflow-wrap: anywhere; line-height: .98; letter-spacing: -.035em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .accent { color: var(--acc-heat); text-shadow: 0 0 28px rgba(255, 107, 26, .25); }
.word-up { display: inline-block; animation: wordUp .9s var(--ease-out) both; }
.word-up.d2 { animation-delay: .12s; }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }
.hero .lead { color: var(--on-dark); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; max-width: 34ch; margin: 0 0 12px; }
.hero-text { color: var(--on-dark-muted); max-width: 52ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 0; }
.hero-visual { position: relative; animation: boxRise 1s .3s var(--ease-out) both; }
@keyframes boxRise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.pipes { display: block; width: 100%; max-width: 440px; margin-left: auto; }
.pipes path { fill: none; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.pipe-bg path { stroke: var(--graphite-3); }
@keyframes pipeDraw { to { stroke-dashoffset: 0; } }
.pipe-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pipeDraw 2.2s var(--ease-out) forwards; }
.fittings rect, .fittings circle { fill: var(--graphite-2); stroke-width: 2.5; }
.fittings .manifold { fill: url(#manifold-g); stroke: none; }

/* ===== Hero torugraafika (09.10.2026 HANDOFF-TORUTOOD-TORUGRAAFIKA-EFEKTID): värvid + laadimisefektid + hover/puute =====
   Asendab varasemad .pipe-draw .p2/.p3/.p4 värvireeglid. JS: assets/js/hero-pipes.js (ainult avalehel). */
.pipes { overflow: visible; transform-style: preserve-3d; will-change: transform;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .5s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }

/* süsteemivärv iga toru ja liitmiku kohta: p1 küte, p2 soojuspumbad, p3 ventilatsioon, p4 vesi ja kanalisatsioon */
.pipes .p1, .pipes [data-p="p1"] { --c: var(--acc-heat, #FF6B1A); }
.pipes .p2, .pipes [data-p="p2"] { --c: var(--acc-pump, #FFC21A); }
.pipes .p3, .pipes [data-p="p3"] { --c: var(--acc-air, #A3E635); }
.pipes .p4, .pipes [data-p="p4"] { --c: var(--acc-water, #22D3EE); }

/* joonistuvad torud: oma värv + hõõgus */
.pipe-draw path { stroke: var(--c);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 55%, transparent));
  transition: stroke-width .25s, filter .25s, opacity .25s; }
.pipe-draw .p1 { animation-delay: 0s; }  .pipe-draw .p2 { animation-delay: .35s; }
.pipe-draw .p3 { animation-delay: .7s; } .pipe-draw .p4 { animation-delay: 1s; }

/* voolu-impulss: hele jupp liigub mööda toru, algab kui joonistus valmis */
.pipe-flow path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: .07 .93; stroke-dashoffset: 1; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 0 5px var(--c));
  --flow: 3.6s;
  animation: flowIn .4s ease forwards, pipeFlow var(--flow) linear infinite;
  animation-delay: calc(2.4s + var(--d, 0s)); }
.pipe-flow .p2 { --d: .5s; } .pipe-flow .p3 { --d: 1.1s; } .pipe-flow .p4 { --d: 1.6s; }
@keyframes flowIn { to { opacity: .9; } }
@keyframes pipeFlow { to { stroke-dashoffset: 0; } }   /* 1 → 0 = üks täisring, sujuv tsükkel */

/* liitmikud hüppavad sisse, kui toru neist mööda jõuab */
.fittings > * { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0);
  stroke: var(--on-dark-muted);
  animation: fitIn .55s cubic-bezier(.34, 1.56, .64, 1) forwards;
  animation-delay: calc(.8s + var(--i, 0) * .28s); }
.fittings > :nth-child(1) { --i: 0; } .fittings > :nth-child(2) { --i: 1; } .fittings > :nth-child(3) { --i: 2; }
.fittings > :nth-child(4) { --i: 3; } .fittings > :nth-child(5) { --i: 4; }
.fittings .manifold { transform: scale(0, 1); animation-name: manifoldIn; animation-delay: 2.2s;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--acc-heat, #FF6B1A) 55%, transparent)); }
@keyframes fitIn { to { opacity: 1; transform: scale(1); } }
@keyframes manifoldIn { to { opacity: 1; transform: scale(1, 1); } }
/* ümmargused sõlmed pulseerivad rahulikult pärast sisenemist */
.fittings circle { animation: fitIn .55s cubic-bezier(.34, 1.56, .64, 1) forwards, fitPulse 3.2s ease-in-out 3.2s infinite;
  animation-delay: calc(.8s + var(--i, 0) * .28s), 3.2s; }
@keyframes fitPulse { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 7px var(--c)); } }

/* hover-ala (14 px toru on hiirega raske tabada) */
.pipe-hit path { fill: none; stroke: transparent; stroke-width: 34; pointer-events: stroke; cursor: pointer; }

/* aktiivne toru (hover / koputus): terav + hõõgus, teised tuhmuvad */
.pipes[data-active] .pipe-draw path { opacity: .3; filter: none; }
.pipes[data-active] .pipe-draw .is-active { opacity: 1; stroke-width: 17;
  filter: drop-shadow(0 0 14px var(--c)) brightness(1.12); }
.pipes[data-active] .pipe-flow path:not(.is-active) { visibility: hidden; }
.pipe-flow .is-active { --flow: 1.1s; stroke-width: 7; }
.pipes[data-active] .fittings > :not([data-p]):not(.manifold) { opacity: .4; }
.pipes[data-active] .fittings [data-p] { opacity: .35; transition: opacity .25s; }
.pipes[data-active] .fittings .is-active-fit { opacity: 1; stroke: var(--c); stroke-width: 3.5;
  transform: scale(1.25); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }

/* kiirgus hiire all (ainult hiirega seadmetel) */
.hero-visual::before { content: ""; position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 70%) var(--my, 30%),
    color-mix(in srgb, var(--acc-heat, #FF6B1A) 20%, transparent), transparent 70%);
  opacity: 0; transition: opacity .4s; }
@media (hover: hover) and (pointer: fine) { .hero-visual:hover::before { opacity: 1; } }

/* lehelt väljas olles animatsioonid seisma (aku, protsessor) */
.pipes.is-paused .pipe-flow path, .pipes.is-paused .fittings circle { animation-play-state: paused; }

.hero-card { position: absolute; left: 0; bottom: 6%; display: grid; gap: 2px; padding: 16px 20px; border-radius: var(--radius);
  background: rgba(31, 37, 41, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(178, 185, 189, .2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.hero-card strong { font-stretch: 110%; }
.hero-card span { color: var(--on-dark-muted); font: 500 .8rem/1.4 var(--mono); letter-spacing: .04em; }
/* kaart: sisenemine + süsteemivärviga helendus hoveril + ühekordne läige */
.hero-card { overflow: hidden;
  animation: cardIn .8s var(--ease-out, cubic-bezier(.16, 1, .3, 1)) 1.6s both;
  transition: border-color .25s, box-shadow .25s, transform .4s; }
.hero-card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%);
  transform: translateX(-120%); animation: cardSheen 1.1s ease 2.3s forwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cardSheen { to { transform: translateX(120%); } }
.hero-visual[style*="--c-active"] .hero-card {
  border-color: color-mix(in srgb, var(--c-active) 70%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--c-active) 35%, transparent), 0 20px 40px -20px rgba(0, 0, 0, .6);
  transform: translateY(-4px); }

/* Sektsioonid */
.section { padding: 104px 0; }
.services { background: var(--paper); }
.services-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.services-intro { position: sticky; top: 110px; }
.services-intro p:not(.eyebrow) { color: var(--c-muted); max-width: 42ch; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.svc-nr { font: 800 3.6rem/1 var(--font); font-stretch: 120%; color: transparent; -webkit-text-stroke: 1.5px var(--heat-ink); opacity: .7;
  transition: opacity .3s, color .3s; }
.svc:hover .svc-nr { color: var(--copper-ink); opacity: 1; }
.svc h3 { font-size: 1.45rem; margin-bottom: 10px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--copper-ink); }
.svc-note { margin: 10px 0 0; font: 500 .82rem/1.5 var(--mono); color: var(--c-muted); }

.scope { background: var(--concrete); }
.scope-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.scope-card { padding: 28px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s; }
.scope-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(21, 25, 28, .45); }
.scope-card h3 { position: relative; padding-top: 18px; }
.scope-card h3::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc-heat), var(--acc-pump)); }
.scope-card p { margin: 0; color: var(--c-muted); }

.process { background: var(--graphite); color: var(--on-dark); }
.process .eyebrow { color: var(--copper); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { position: relative; padding: 32px 26px 8px 0; border-top: 2px solid var(--graphite-3); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--acc-heat), var(--acc-pump)); box-shadow: 0 0 10px rgba(255, 107, 26, .5); transition: width 1s var(--ease-out); }
.step.in::before { width: 100%; }
.step-nr { display: block; margin-bottom: 14px; font: 500 .85rem/1 var(--mono); color: var(--copper); letter-spacing: .12em; }
.step h3 { color: #fff; }
.step p { color: var(--on-dark-muted); margin: 0; }

.quote { background: var(--paper); padding-bottom: 72px; }
.quote-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px;
  border-radius: 24px; background: var(--concrete); border: 1px solid var(--line); }
.quote-box h2 { margin-bottom: 22px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: var(--paper); font-weight: 600; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--copper-ink);
  background: radial-gradient(circle, var(--copper-ink) 0 4px, transparent 5px); }

.faq { background: var(--paper); padding-top: 72px; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 700; font-size: 1.12rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2.5px solid var(--copper-ink); border-bottom: 2.5px solid var(--copper-ink); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item summary:hover { color: var(--copper-ink); }
.faq-item p { margin: 0 0 22px; color: var(--c-muted); max-width: 64ch; }

.cta-band { position: relative; overflow: hidden; padding: 96px 0; background: var(--graphite-2); color: var(--on-dark); }
.cta-band .hero-grid { mask-image: radial-gradient(ellipse at 20% 50%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 20%, transparent 70%); }
.cta-inner { position: relative; }
.cta-band h2 { max-width: 18ch; font-size: clamp(2rem, 4.6vw, 3.4rem); color: #fff; }
.cta-band p { color: var(--on-dark-muted); max-width: 56ch; }
.cta-band .hero-actions { margin-top: 28px; }

/* Kontakt + õiguslikud lehed */
.page-contact .site-main, .page-legal .site-main, .page-404 .site-main { background: var(--paper); }
.e404-logo { margin: 0 0 8px; } .e404-logo svg { width: 72px; height: 72px; filter: drop-shadow(0 0 10px rgba(255, 107, 26, .35)); }
.contact-wrap { padding-top: 64px; }
.contact-wrap h1, .site-main .section h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; line-height: 1.02; }
/* Kontaktikaart: telefon (09.10.2026; e-posti lehel ei ole) */
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 24px 0; padding: 20px 24px; border-radius: var(--radius);
  background: var(--graphite); color: var(--on-dark); --focus: var(--acc-water); }
.contact-card-label { margin: 0; width: 100%; font: 500 .74rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc-pump); }
.contact-phone { margin: 0; font-size: 1.6rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
.contact-phone a { color: #fff; text-decoration: none; }
.contact-phone a:hover { text-decoration: underline; text-decoration-color: var(--acc-heat); }
.btn-call { display: none; background: linear-gradient(135deg, var(--acc-heat), var(--acc-pump)); color: var(--acc-text-on); min-height: 48px; box-shadow: var(--glow-heat); }
.btn-call svg { flex: none; }
.form-help { color: var(--c-muted); }
.form-help .tel-link, .notice .tel-link { color: var(--heat-ink); font-weight: 700; white-space: nowrap; }
/* Vorm: väljad, inline-vead, olekud */
.contact-form .field { display: grid; gap: 6px; }
.contact-form .field > label:not(.consent) { display: block; font-weight: 600; }
.contact-form .req { color: var(--heat-ink); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.contact-form .field.has-err input, .contact-form .field.has-err textarea { border-color: var(--c-error, #b3261e); border-width: 2px; }
.field-err { margin: 0; min-height: 0; color: var(--c-error, #b3261e); font-size: .9rem; font-weight: 600; }
.field-err:empty { display: none; }
.field-consent .consent { display: flex; gap: 10px; align-items: flex-start; }
.field-consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--heat-ink); }
.btn-submit { justify-self: start; min-height: 48px; padding: 14px 28px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn-submit[disabled] { opacity: .75; cursor: progress; transform: none; }
.form-status { font-weight: 600; }
.form-status:focus { outline: none; }
.form-status.is-sending::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid var(--heat-ink); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status.is-ok { padding: 14px 16px; border-radius: 10px; background: #e7f6ec; color: #145c2a; border: 1px solid #9fd6b0; }
.form-status.is-error { padding: 14px 16px; border-radius: 10px; background: #fdecea; color: #8c1d18; border: 1px solid #f1b0aa; }
.contact-need { margin: 28px 0; padding: 22px 24px; border-radius: var(--radius); background: var(--concrete); }
.contact-need p { margin: 0 0 10px; font: 500 .8rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--heat-ink); }
.contact-need ul { margin: 0; padding-left: 20px; }
.notice { border-radius: var(--radius); background: var(--concrete); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea { border-radius: 10px; padding: 12px 14px; }
.legal-section h2 { font-size: 1.35rem; }

/* Jalus (tume; paigutus base.css „Jalus“) */
.site-footer { background: var(--graphite); color: var(--on-dark-muted); border: 0; padding: 72px 0 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--acc-heat) 0 48px, var(--acc-pump) 48px 72px, var(--acc-water) 72px 96px, var(--acc-air) 96px 120px, transparent 120px); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--acc-heat); text-underline-offset: 4px; }
.site-footer a.logo, .site-footer a.btn { text-decoration: none; }
.site-footer a.btn-primary { color: var(--acc-text-on); }
.footer-tel { display: inline-block; padding: 6px 0; font-size: 1.15rem; font-weight: 700; color: #fff; }
.footer-cta { margin: 12px 0 0; }
.site-footer .footer-cta a.btn { display: inline-flex; padding: 11px 18px; }
.site-footer strong { color: #fff; }
.footer-col .footer-brand { color: #fff; line-height: 1.1; margin-bottom: 14px; }
.footer-brand .logo { color: #fff; }
.footer-brand .brand-name, .footer-brand .logo__tld { font-size: 1.5rem; }
.footer-tagline { color: var(--on-dark-muted); }
.footer-sister { font-size: .9rem; }
.footer-h { font: 500 .74rem/1.2 var(--mono); letter-spacing: .1em; color: var(--acc-pump); }
.footer-lang li a { display: inline-flex; align-items: center; gap: 10px; }
.footer-lang a::before { content: ""; display: block; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--on-dark-muted); }
.footer-lang a[aria-current="true"] { color: #fff; }
/* „Русский“ ladina lehel süsteemifondiga — kirillitsa fondifaili (16 kB) laetakse ainult RU lehel */
html:not([lang="ru"]) .footer-lang a[lang="ru"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.footer-lang a[aria-current="true"]::before { background: var(--copper); border-color: var(--copper); }
.footer-bottom { border-top-color: rgba(233, 235, 232, .14); color: var(--on-dark-muted); font-size: .88rem; }
.footer-bottom p { color: var(--on-dark-muted); }
/* 09.10.2026 InteliSofti logo = „Veebilahendus:“ tähekõrgus (mõõdetud Playwrightiga): pildil on sõna „InteliSoft“
   suurtähe kõrgus 25/66 = 0.379 pildi kõrgusest; Archivo suurtäht 0.688 em → pilt 0.688/0.379 = 1.816 em (14.08 px → 25.6 px).
   RU tekst on Onest (kirillitsa suurtäht 0.719 em) → 1.897 em. Baasjoon: sõna alaserv pildil 46/66 jäi 1.3 px
   teksti baasjoonest allapoole → top -.09em. */
.footer-madeby img { position: relative; top: -.09em; height: 1.816em; }
html[lang="ru"] .footer-madeby img { height: 1.897em; }

/* Reveal (futex): JS lisab .in; ilma JS-ita / reduced-motion nähtav */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .pop { opacity: 0; transform: scale(.9); transition: opacity .6s var(--ease-out), transform .7s var(--spring); }
.js .reveal.in, .js .pop.in { opacity: 1; transform: none; }
.js .reveal.d3 { transition-delay: .25s; } .js .reveal.d4 { transition-delay: .4s; }
.js .scope-card.pop:nth-child(2) { transition-delay: .08s; } .js .scope-card.pop:nth-child(3) { transition-delay: .16s; } .js .scope-card.pop:nth-child(4) { transition-delay: .24s; }

@media (max-width: 1020px) {
  .main-nav a.nav-anchor { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .pipes { margin: 0; }
  .services-layout { grid-template-columns: 1fr; gap: 24px; }
  .services-intro { position: static; }
  .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .quote-box { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 64px; gap: 10px; }
  .site-header .logo__icon { width: 32px; height: 32px; }
  .site-header .brand-name, .site-header .logo__tld { font-size: 1.15rem; }
  .logo { gap: .45rem; }
  .hero .eyebrow { font-size: .74rem; letter-spacing: .08em; }
  .contact-phone { font-size: 1.35rem; }
  .btn-call { display: inline-flex; width: 100%; justify-content: center; }
  .btn-submit { width: 100%; justify-content: center; }
  .main-nav { gap: 10px; }
  .main-nav a.nav-cta { padding: 8px 12px; font-size: .85rem; }
  .lang-switch a { padding: 6px 7px; }
  .hero { margin-top: -64px; padding: 112px 0 64px; }
  .hero-inner { gap: 32px; }
  .hero-visual { max-width: 300px; }
  .hero-card { position: relative; margin-top: -24px; }   /* relative (mitte static): ::after läige jääb kaardi sisse */
  .section { padding: 64px 0; }
  .svc { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .svc-nr { font-size: 2.4rem; }
  .scope-grid, .steps { grid-template-columns: 1fr; }
  .quote-box { padding: 24px 18px; border-radius: 18px; }
  .cta-band { padding: 64px 0; }
  /* 09.10.2026 RU: pikad sõnad (конфиденциальности) mahuvad 390 px laiusesse */
  .contact-wrap h1, .site-main .section h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); overflow-wrap: anywhere; hyphens: auto; }
}
/* 09.10.2026: väga kitsas ekraan (320–380 px): päis mahub (logo + Kontakt + keeled), varem ülevool 13–53 px */
@media (max-width: 380px) {
  .header-inner { gap: 6px; }
  .site-header .logo__icon { width: 26px; height: 26px; }
  .site-header .brand-name, .site-header .logo__tld { font-size: .98rem; }
  .logo { gap: .3rem; }
  .main-nav a.nav-cta { padding: 7px 9px; font-size: .8rem; }
  .lang-switch { gap: 0; padding: 2px; }
  .lang-switch a { padding: 6px 5px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pipe-draw path { stroke-dashoffset: 0; }
  /* torugraafika rahulik variant: ei liigu, ei kallutata; hoveril ainult värv */
  .pipes { transform: none; transition: none; }
  .pipe-flow { display: none; }
  .fittings > * { opacity: 1; transform: none; animation: none; }
  .hero-card { animation: none; } .hero-card::after { display: none; }
  .hero-visual::before { display: none; }
  .pipes[data-active] .fittings .is-active-fit { transform: none; }
  .js .reveal, .js .pop { opacity: 1; transform: none; }
  .step::before { width: 100%; }
}

/* Alamlehed (hele sisu): päis kohe läbipaistmatu grafiit, kerimisel hele */
body:not(.page-home) .site-header { background: var(--graphite); }
body:not(.page-home) .site-header.scrolled { background: rgba(248, 248, 245, .96); }
