/* =====================================================================
   Intras v3 - SISULEHTEDE KOMPLEKT (css/page.css)
   Tavalehed: õiguslikud tekstid, juhendid, blogi, moodulite ja liidestuste nimekirjad, pood, detailvaated, kontakt, 404.
   Laeb pärast v3.css-i ja sub.css-i:  page_head(['css' => ['css/sub.css', 'css/page.css']]),
   page_foot(['scripts' => ['js/sub.js', 'js/page.js']]). Markup tuleb PHP abilistest (inc/page.php, kõik pg_*), siin on
   iga osa klassid. Uut värvisüsteemi ei ole: kõik tuleb v3 märkidest (--ink, --teal, --mint, --line ...), seega võtavad osad
   üle ka lahenduse teema. Ilma JS-ita on kõik loetav; liikumine kaob prefers-reduced-motion korral (v3.css).

   OSAD (klass -> PHP abiline inc/page.php-s)
   ----------------------------------------------------------------------------------------------------------------
   Märgid        --r, --r-lg (nurgad, teemad annavad oma), --pg-nav (päise kõrgus kleepuvatele osadele), --pg-text (sisutekst)
   Sektsioonid   .sx .sx--white .sx--tint .sx--dark (sub.css) + .pg-tight (väiksem vahe). Kui avavaatele järgneb sama
                 taustaga .sx, jääb vahe automaatselt väiksemaks.
   Avavaade      section.sxh.pg-hero [.pg-hero--s väiksem pealkiri | .pg-hero--solo ilma kõrvalpildita]          pg_hero()
                   .pg-hero__grid > .sxh__copy.pg-hero__copy (crumbs, .eyebrow, h1.h1.pg-hero__title, .lead.pg-hero__lead,
                   .sxh__actions, ul.pg-meta, .sxh__note) + .sxh__stage.pg-hero__aside (geomeetriline märk, foto või oma HTML)
                   Telefonis on leivapururaja asemel üks „tagasi“ link (vanemleht).
   Metarida      ul.pg-meta > li (ikoon + tekst, <time>, img.pg-meta__av)                                     pg_meta()
   Märk          .pg-orbit (vaikne kellanägu: rõngad, tunnimärgid, tiirlev täpp, keskel lehe ikoon; --c = toon)  pg_orbit()
                   __r--1/2/3 rõngad, __spin > b tiirlev täpp, __dot--a/b, __tile (ikoon), __lbl (silt rõngal)
   Foto          figure.pg-photo.ph (+ .chip lava sees). --ratio, --pos                                       pg_hero(['photo'])
   Pealkiri      .head [.head--split | .head--center] .pg-head [.pg-head--s] (.label „01 /“, .h2 .t, .lead)   pg_head()
   Tekst         .pg-prose [.pg-prose--num nummerdatud peatükid] - h2 h3 h4 p ul ol blockquote figure hr table dl
                 pre code kbd (klassita elemendid saavad kujunduse ise); .pg-lede (juhatuslõik)               pg_doc_open()
   Dokument      .pg-doc (tekst + kleepuv sisukord laial ekraanil, kitsal sisukorra kaart teksti kohal)      pg_doc(), pg_doc_open()
   Sisukord      nav.pg-toc > .pg-toc__h + ol.pg-toc__list > li > a (> .pg-toc__n + span) + .pg-toc__foot      pg_toc()
                   JS: aktiivne peatükk (aria-current), täituv joon (--pg-fill), telefonis kokkupandav (.is-collapsed)
   Märkus        .pg-note [--warn | --ok | --plain] > .pg-note__ic + div (b.pg-note__t, p)                     pg_note()
   Tabel         .pg-table > .pg-table__s > table (caption, thead th, tbody th, .pg-hl esiletõstetud veerg,     pg_table()
                   .pg-num numbriveerg). Rea pealkiri (tbody th) jääb külgsuunas kerides paigale.
   Sammud        ol.pg-steps > li > .pg-steps__n + div (b, p)                                                  pg_steps()
   Kaardid       ul.pg-grid [--2 | --3 | --4 | --rows | --media | --rail | --tiles] > li.pg-card               pg_cards(), pg_card()
                   .pg-card [--soft | --row | --media | --wide | --nomark] (--c = kategooria toon):
                   __media (pilt), __mark (ikoon), __kick (silt), h3.__t > a.__a (kogu kaart klikitav), __d (tekst),
                   __meta (märgid, hind .pg-card__price, lisalingid), svg.__go (nool), .pg-card__flag (märk pildil)
                   Telefonis muutuvad tavakaardid ridadeks (ikoon vasakul), --media jääb kaheks veeruks, --rail libiseb,
                   --tiles on kahes veerus ainult ikooni ja pealkirjaga (nagu rakenduse menüü).
   Rühm          section.pg-group > .pg-group__head (__mark, __t, __d, __n) + kaardid                         pg_group()
   Filter        .pg-filter [--sticky | --solo ainult otsing] > .pg-filter__chips > button.pg-chip + .pg-search  pg_filter()
                   (input, .pg-search__n loendur, .pg-search__x tühjenda) - JS: window.PAGE.filter
                   Filter on peidus, kuni JS on valmis (.is-ready); ilma JS-ita on nimekiri täies pikkuses.
   Tühi          .pg-empty (filtril pole tulemusi)                                                            pg_empty()
   Kiibid        ul.pg-chips > li > a.pg-chip (staatilised lingid, aria-current = valitud)                    pg_chips()
   Märgid        span.pg-badge [--ink | --line | --amber | --green] (> i täpp), span.pg-tag (mono silt)       pg_badge()
   Detailvaade   .pg-detail [--aside-first] > .pg-detail__main + aside.pg-detail__aside (kleepuv)              pg_detail_open/aside/close()
   Paneel        .pg-panel [--tint | --dark] > __kick, __t, .pg-fig (suur number), .pg-facts, __body, __act, __foot   pg_panel()
   Faktid        dl.pg-facts [--card | --compact | --dark] > .pg-facts__row > dt + dd (.pg-facts__v [--mono], .pg-copy) pg_facts()
   Kopeeri       button.pg-copy[data-pg-copy] (+ .pg-copy__tip) - JS: window.PAGE.copy                         pg_copy()
   Kontaktid     ul.pg-contacts > li.pg-contact [--link | --copy] (__ic, __l, a.__a, __d, .pg-copy)            pg_contacts()
   Meeskond      section.sx.pg-team (+ team_cards() inc/data/team.php)                                        pg_team()
   CTA riba      .pg-band [--dark | --white] > .pg-band__copy (__kick, __t, __d) + .pg-band__act               pg_band()
   Lõpuplakat    section.final.pg-final (v3.css .final, ringid, keskel)                                       pg_final()
   Seotud        .pg-related > .pg-related__head (h2.__t + link) + ul.pg-grid                                 pg_related()
   404           .pg-nf (avavaade, .pg-nf__art: 4 + rõngas-null + 4, .pg-nf__path), .pg-finder (otsing)      inc/pages/404.php
   Muud          .mlegal kohandub telefonis viimase sektsiooni taustaga; print-stiilid tekstilehtedele.
   ===================================================================================================================== */

:root {
  --r: 16px;
  --r-lg: 22px;
  --pg-nav: 76px;
  --pg-text: color-mix(in srgb, var(--ink) 86%, var(--white));
}
@media (max-width: 760px) { :root { --pg-nav: 60px; } }

/* ---------------- sektsioonid ---------------- */
.sx.pg-tight { padding-block: clamp(56px, 7vw, 96px); }
.pg-hero + .sx:not(.sx--white):not(.sx--tint):not(.sx--dark) { padding-top: clamp(8px, 2.4vw, 32px); }
.pg-head--s .h2 { font-size: clamp(30px, 3.3vw, 46px); }
.pg-head--s.head { margin-bottom: clamp(30px, 3.6vw, 48px); }

/* =====================================================================
   AVAVAADE
   ===================================================================== */
.pg-hero { padding-bottom: clamp(48px, 6vw, 88px); background: radial-gradient(44% 70% at 90% 16%, rgba(var(--hi-rgb), .15), transparent 70%); }
.pg-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pg-hero--solo .pg-hero__grid { grid-template-columns: minmax(0, 1fr); }
.pg-hero--solo .pg-hero__copy { max-width: 50em; }
.pg-hero .eyebrow, .pghero .crumbs + .eyebrow { margin-top: 28px; }
.pg-hero__title { margin-top: 18px; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.01; letter-spacing: -.04em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.pg-hero .crumbs + .pg-hero__title { margin-top: 28px; }
.pg-hero--s .pg-hero__title { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.05; letter-spacing: -.034em; }
.pg-hero__lead { margin-top: 22px; max-width: 36em; }
.pg-hero .sxh__note { max-width: 40em; }
.pg-hero__aside { justify-self: end; width: 100%; max-width: 470px; }
/* lava lapsed on JS-iga alguses peidus (sub.css); märk ja oma HTML (aside) ilmuvad koos lavaga */
.js .sxh__stage.is-in > .pg-orbit, .js .sxh__stage.is-in.pg-hero__aside--custom > * { animation: stageIn 1.2s var(--ease) .1s both; }

/* metarida: kuupäev, lugemisaeg, autor */
.pg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pg-meta li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 13px 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .72); font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--ink-2); }
.pg-meta svg { width: 16px; height: 16px; flex: none; color: var(--teal); }
.pg-meta__av { width: 24px; height: 24px; flex: none; margin-left: -5px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--mint); }
.pg-meta time { font-variant-numeric: tabular-nums; }

/* vaikne kellanägu: rõngad, 12 tunnimärki, tiirlev täpp ja keskel lehe ikoon (avalehe „üks tööpäev“ kaja) */
.pg-orbit { --c: var(--teal); position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-left: auto; }
.pg-orbit::before { content: ''; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .96), rgba(255, 255, 255, .5) 55%, rgba(var(--hi-rgb), .12) 80%, transparent); }
.pg-orbit__r { position: absolute; border-radius: 50%; border: 1px solid rgba(var(--teal-rgb), .16); border-color: color-mix(in srgb, var(--c) 17%, transparent); }
.pg-orbit__r--1 { inset: 0; }
.pg-orbit__r--1::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from -.6deg, rgba(var(--teal-rgb), .34) 0 1.2deg, transparent 1.2deg 30deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px)); mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px)); }
.pg-orbit__r--2 { inset: 15%; border-style: dashed; border-color: color-mix(in srgb, var(--c) 24%, transparent); }
.pg-orbit__r--3 { inset: 29%; background: rgba(255, 255, 255, .55); border-color: color-mix(in srgb, var(--c) 13%, transparent); }
.pg-orbit__spin { position: absolute; inset: 0; animation: pgSpin 72s linear infinite; }
.pg-orbit__spin b { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px rgba(var(--teal-rgb), .14); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 15%, transparent); }
.pg-orbit__dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--c); }
.pg-orbit__dot--a { left: 22.4%; top: 73.1%; }
.pg-orbit__dot--b { left: 69%; top: 39%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--c); box-shadow: none; opacity: .55; }
.pg-orbit__tile { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 28%; background: var(--white); color: var(--c); transform: translate(-50%, -50%) rotate(-5deg); box-shadow: 0 0 0 1px rgba(16, 27, 36, .06), var(--sh-3); }
.pg-orbit__tile svg { width: 44%; height: 44%; }
.pg-orbit__tile .pg-pmark { width: 64%; height: 64%; }
.pg-orbit__lbl { position: absolute; left: 50%; bottom: 2.5%; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); transform: translateX(-50%); font: 500 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; box-shadow: var(--sh-1); }
@keyframes pgSpin { to { transform: rotate(360deg); } }

/* foto avavaates */
.pg-photo { position: relative; aspect-ratio: var(--ratio, 4 / 3.3); border-radius: 28px; box-shadow: var(--sh-3); }
.pg-photo img { object-position: var(--pos, 50% 50%); }
.pg-hero__aside .chip { left: -7%; bottom: 9%; }

/* =====================================================================
   TEKST (õiguslikud lehed, juhendid, blogi)
   ===================================================================== */
.pg-prose { max-width: 68ch; font-size: 17.5px; line-height: 1.72; color: var(--pg-text); overflow-wrap: break-word; }
.pg-prose > * + * { margin-top: 1.1em; }
.pg-prose > :first-child { margin-top: 0; }
.pg-prose h2 { margin-top: 2.3em; font-size: clamp(26px, 2.4vw, 34px); font-weight: 820; line-height: 1.12; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; scroll-margin-top: 16px; }
.pg-prose h3 { margin-top: 1.9em; font-size: clamp(19px, 1.6vw, 22px); font-weight: 850; line-height: 1.25; letter-spacing: -.018em; color: var(--ink); text-wrap: balance; scroll-margin-top: 16px; }
.pg-prose h4 { margin-top: 1.7em; font: 500 12.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.pg-prose h2 + *, .pg-prose h3 + *, .pg-prose h4 + * { margin-top: .6em; }
.pg-prose a { color: var(--teal-d); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(var(--teal-rgb), .4); transition: color .2s, text-decoration-color .2s; }
.pg-prose a:hover { color: var(--teal); text-decoration-color: currentColor; }
.pg-prose b, .pg-prose strong { font-weight: 800; color: var(--ink); }
.pg-prose em { font-style: italic; }
.pg-prose small { font-size: .86em; color: var(--ink-3); }
.pg-lede, .pg-prose > .pg-lede { font-size: clamp(19px, 1.55vw, 21px); line-height: 1.6; font-weight: 600; letter-spacing: -.008em; color: var(--ink); }

/* loendid: klassita ul/ol (klassiga loendid, nt .ticks või .pg-steps, jäävad oma kujundusega) */
.pg-prose ul:not([class]) > li, .pg-prose ol:not([class]) > li { position: relative; padding-left: 1.6em; }
.pg-prose ul:not([class]) > li + li, .pg-prose ol:not([class]) > li + li { margin-top: .5em; }
.pg-prose ul:not([class]) > li::before { content: ''; position: absolute; left: .32em; top: calc(.86em - 3.5px); width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.pg-prose ul:not([class]) ul:not([class]) > li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--teal); }
.pg-prose ol:not([class]) { counter-reset: pg-ol; }
.pg-prose ol:not([class]) > li { counter-increment: pg-ol; padding-left: 2.25em; }
.pg-prose ol:not([class]) > li::before { content: counter(pg-ol); position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--teal-d); font: 500 12px/24px var(--mono); text-align: center; font-variant-numeric: tabular-nums; }
.pg-prose li > ul, .pg-prose li > ol, .pg-prose li > p { margin-top: .5em; }

.pg-prose blockquote { margin: 1.8em 0; padding: 2px 0 2px 24px; border-left: 3px solid var(--teal); font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; line-height: 1.45; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.pg-prose blockquote p + p { margin-top: .6em; }
.pg-prose blockquote cite, .pg-prose blockquote footer { display: block; margin-top: 12px; font: 500 12.5px/1.4 var(--mono); font-style: normal; letter-spacing: .03em; color: var(--ink-3); }
.pg-prose hr { width: 54px; height: 6px; margin: 2.6em auto; border: 0; background: radial-gradient(circle, var(--ink-4) 2px, transparent 2.5px) center / 18px 6px repeat-x; }
.pg-prose figure { margin: 2em 0; }
.pg-prose figure img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.pg-prose figcaption { margin-top: 12px; font: 500 12.5px/1.5 var(--mono); color: var(--ink-3); }
.pg-prose code { font-size: .84em; }
.pg-prose pre { margin: 1.8em 0; padding: 18px 20px; border-radius: var(--r); background: var(--navy); color: #e3eaee; overflow-x: auto; font: 500 14px/1.65 var(--mono); tab-size: 2; }
.pg-prose pre code { padding: 0; background: none; color: inherit; font: inherit; }
.pg-prose kbd { display: inline-block; min-width: 1.7em; padding: .12em .45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--white); font: 500 .78em/1.35 var(--mono); color: var(--ink); text-align: center; }
.pg-prose dl { margin: 1.6em 0; }
.pg-prose dt { font-weight: 850; color: var(--ink); }
.pg-prose dd { margin: .2em 0 0; }
.pg-prose dd + dt { margin-top: .9em; }
.pg-prose .pg-note, .pg-prose .pg-table, .pg-prose .pg-steps { margin-block: 1.8em; }
.pg-prose .ticks { margin-top: 1.2em; }

/* nummerdatud peatükid (õiguslikud lehed, juhendid): „01 /“ nagu sektsioonide sildid, peatükkide vahel peen joon */
.pg-prose--num { counter-reset: pg-h2; }
.pg-prose--num > h2 { counter-increment: pg-h2; }
.pg-prose--num > h2::before { content: counter(pg-h2, decimal-leading-zero) ' /'; display: block; margin-bottom: 12px; font: 500 12.5px/1 var(--mono); letter-spacing: .06em; color: var(--teal); }
.pg-prose--num > h2:not(:first-child) { margin-top: 1.8em; padding-top: 1.8em; border-top: 1px solid var(--line); }
.pg-prose--num > h2:first-child { margin-top: 0; }

/* lõigu link pealkirja järel (js/page.js lisab dokumentides; hiire all nähtav) */
.pg-anchor { display: inline-block; margin-left: .3em; padding: 0 .15em; color: var(--ink-3); font: 500 .62em/1 var(--mono); text-decoration: none; vertical-align: .18em; opacity: 0; transition: opacity .2s, color .2s; }
.pg-prose h2:hover .pg-anchor, .pg-prose h3:hover .pg-anchor { opacity: 1; }
.pg-anchor:hover { color: var(--teal); }
@media (hover: none) { .pg-anchor { display: none; } }

/* märkus: lühidalt, hoiatus, kinnitus */
.pg-note { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px; border: 1px solid rgba(var(--teal-rgb), .15); border-radius: var(--r); background: var(--mint); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.pg-note__ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--teal); box-shadow: var(--sh-1); }
.pg-note__ic svg { width: 18px; height: 18px; }
.pg-note > div { min-width: 0; padding-top: 6px; }
.pg-note__t { display: block; margin-bottom: 2px; font-weight: 850; color: var(--ink); }
.pg-note p + p { margin-top: .5em; }
.pg-note a { color: var(--teal-d); font-weight: 750; text-underline-offset: 3px; }
.pg-note--warn { background: #fdf2dc; border-color: rgba(163, 106, 14, .2); }
.pg-note--warn .pg-note__ic { color: #a36a0e; }
.pg-note--ok { background: #e3f4ea; border-color: rgba(47, 149, 99, .2); }
.pg-note--ok .pg-note__ic { color: var(--green); }
.pg-note--plain { background: var(--white); border-color: var(--line); }

/* tabel: kerib kitsal ekraanil külgsuunas, servas vari näitab, et on veel (js/page.js: .is-l / .is-r) */
.pg-table { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; }
.pg-table__s { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
/* kerimisala on fookustatav (tabindex=0): .pg-table overflow: hidden lõikaks väljapoole joonistatud rõnga ära, seega on rõngas
   kerimisala sees; :has-iga terve tabelikaardi ümber nagu teistel kaartidel */
.pg-table__s:focus-visible { outline-offset: -3px; border-radius: inherit; }
@supports selector(:has(*)) {
  .pg-table:has(> .pg-table__s:focus-visible) { outline: 2.5px solid var(--focus, var(--teal)); outline-offset: 3px; }
  .pg-table__s:focus-visible { outline: none; }
}
.pg-table::before, .pg-table::after { content: ''; position: absolute; z-index: 2; top: 0; bottom: 0; width: 28px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.pg-table::before { left: 0; background: linear-gradient(90deg, rgba(16, 27, 36, .1), transparent); }
.pg-table::after { right: 0; background: linear-gradient(270deg, rgba(16, 27, 36, .1), transparent); }
.pg-table.is-l::before, .pg-table.is-r::after { opacity: 1; }
.pg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.pg-table caption { padding: 16px 18px 4px; text-align: left; font: 500 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.pg-table th, .pg-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.pg-table thead td { background: var(--bg); }
.pg-table thead th { background: var(--bg); font: 500 11.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.pg-table tbody th { font-weight: 800; color: var(--ink); }
/* lingid päises (nt poe võrdluses tootenimed): puutepind vähemalt 24 px kõrge, rida jääb samaks */
.pg-table thead th a { display: inline-block; margin-block: -4px; padding-block: 4px; }
/* rea pealkiri jääb külgsuunas kerides paigale */
.pg-table tbody th, .pg-table thead td:first-child { position: sticky; z-index: 1; left: 0; background: var(--white); }
.pg-table thead td:first-child { background: var(--bg); }
.pg-table.is-l tbody th, .pg-table.is-l thead td:first-child { box-shadow: 1px 0 0 var(--line), 8px 0 14px -10px rgba(16, 27, 36, .25); }
.pg-table:has(tbody th)::before { display: none; }
.pg-table td { color: var(--ink-2); }
.pg-table tbody tr:last-child > * { border-bottom: 0; }
.pg-table td.pg-hl, .pg-table td.is-us { background: rgba(var(--teal-rgb), .045); color: var(--teal-d); font-weight: 750; }
.pg-table th.pg-hl { background: var(--mint); color: var(--teal-d); }
.pg-table .pg-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* sammud: nummerdatud ajajoon (juhendid, paigaldus) */
.pg-steps { display: grid; }
.pg-steps > li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.pg-steps > li:last-child { padding-bottom: 0; }
.pg-steps > li::after { content: ''; position: absolute; left: 21.5px; top: 50px; bottom: 6px; width: 1px; background: repeating-linear-gradient(180deg, var(--line) 0 5px, transparent 5px 10px); }
.pg-steps > li:last-child::after { display: none; }
.pg-steps__n { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); box-shadow: var(--sh-1); font: 500 13px/1 var(--mono); color: var(--teal); font-variant-numeric: tabular-nums; }
.pg-steps b { display: block; margin-top: 10px; font-size: 17px; font-weight: 850; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.pg-steps p { margin-top: 4px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.pg-steps a { color: var(--teal-d); font-weight: 750; }

/* =====================================================================
   DOKUMENT: tekst + sisukord
   ===================================================================== */
.pg-doc { display: grid; grid-template-columns: minmax(0, 1fr); }
.pg-toc { font-size: 14.5px; }
.pg-toc__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pg-toc__h small, .pg-toc__btn small { font: inherit; letter-spacing: .02em; text-transform: none; color: var(--ink-3); }
.pg-toc__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: left; cursor: pointer; }
.pg-toc__btn > span { flex: 1; }
.pg-toc__btn svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .3s var(--ease); }
.pg-toc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.pg-toc__btn:disabled { cursor: default; }
.pg-toc__btn:disabled svg { display: none; }
.pg-toc__list { position: relative; border-left: 1px solid var(--line); }
.pg-toc__list::before { content: ''; position: absolute; left: -1px; top: 0; width: 2px; height: var(--pg-fill, 0px); border-radius: 2px; background: var(--teal); transition: height .45s var(--ease); }
.pg-toc__list a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 7px 0 7px 16px; font-weight: 650; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.pg-toc--plain .pg-toc__list a { grid-template-columns: minmax(0, 1fr); }
.pg-toc__n { font: 500 11.5px/1.75 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .2s; }
.pg-toc__list a:hover { color: var(--ink); }
.pg-toc__list a[aria-current] { color: var(--ink); font-weight: 800; }
.pg-toc__list a[aria-current] .pg-toc__n { color: var(--teal); }
.pg-toc__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.pg-toc__foot a { color: var(--teal-d); font-weight: 750; text-underline-offset: 3px; }
.pg-toc__foot b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 850; }

@media (min-width: 1100px) {
  .pg-doc { grid-template-columns: minmax(0, 720px) minmax(220px, 268px); justify-content: space-between; column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .pg-doc--notoc { grid-template-columns: minmax(0, 720px); justify-content: start; }
  .pg-doc > .pg-toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--pg-nav) + 36px); max-height: calc(100vh - var(--pg-nav) - 72px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px 2px 2px 0; }
  .pg-doc > .pg-prose, .pg-doc > .pg-doc__main { grid-column: 1; grid-row: 1; }
}
@media (max-width: 1099px) {
  .pg-doc > .pg-toc { margin-bottom: 36px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-1); }
  .pg-toc.is-collapsed .pg-toc__h { margin-bottom: 0; }
  .pg-toc.is-collapsed .pg-toc__list, .pg-toc.is-collapsed .pg-toc__foot { display: none; }
  .pg-toc__btn { position: relative; min-height: 28px; }
  .pg-toc__btn::after { content: ''; position: absolute; inset: -8px -6px; }   /* puutepind 44 px kõrge, välimus sama */
}

/* =====================================================================
   KAARDID JA NIMEKIRJAD (moodulid, liidestused, pood, blogi)
   ===================================================================== */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); gap: 12px; }
.pg-grid--rows { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 10px; }
@media (min-width: 761px) { .pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pg-grid--3, .pg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1061px) { .pg-grid--3, .pg-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1181px) { .pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pg-card { --c: var(--teal); position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); transition: background-color .25s, border-color .25s, box-shadow .3s, transform .35s var(--ease); }
.pg-card[hidden] { display: none; }
.pg-card:hover { border-color: rgba(var(--teal-rgb), .45); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: var(--sh-2); transform: translateY(-3px); }
.pg-card--soft { background: var(--bg); border-color: transparent; }
.pg-card--soft:hover { background: var(--white); border-color: var(--line); }
.pg-card__mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--mint); background: color-mix(in srgb, var(--c) 11%, var(--white)); color: var(--c); }
.pg-card__mark svg { width: 21px; height: 21px; }
.pg-card__mark--raw { background: none; }
.pg-card__mark--raw svg, .pg-card__mark .pg-pmark { width: 44px; height: 44px; }
.pg-card__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.pg-card__kick { margin-top: 16px; font: 500 11px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pg-card__t { margin-top: 6px; font-size: 17px; font-weight: 850; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.pg-card__mark + .pg-card__t { margin-top: 16px; }
.pg-card > .pg-card__t:first-child, .pg-card > .pg-card__kick:first-child { margin-top: 0; padding-right: 26px; }
.pg-card__a { color: inherit; text-decoration: none; }
.pg-card__a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pg-card__a:focus-visible { outline: 2.5px solid var(--focus, var(--teal)); outline-offset: 3px; border-radius: 4px; }
@supports selector(:has(a)) {
  .pg-card__a:focus-visible { outline: none; }
  .pg-card:has(.pg-card__a:focus-visible) { outline: 2.5px solid var(--focus, var(--teal)); outline-offset: 3px; }
}
.pg-card__d { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pg-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.pg-card__meta a, .pg-card__meta button, .pg-card__flag { position: relative; z-index: 2; }
.pg-card__meta > a:not(.btn) { color: var(--teal-d); font-weight: 800; text-underline-offset: 3px; }
.pg-card__go { position: absolute; top: 20px; right: 20px; width: 18px; height: 18px; color: var(--ink-4); transition: transform .3s var(--ease), color .2s; }
.pg-card:hover .pg-card__go { transform: translate(2px, -2px); color: var(--c); }
.pg-card__price { font-size: 18px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pg-card__price small { margin-left: 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0; color: var(--ink-3); }   /* vahe on <small>-i alguse tühik (pg_card) */
@media (min-width: 861px) {
  .pg-card--wide { grid-column: span 2; }
  .pg-card--wide .pg-card__t { font-size: 21px; }
  .pg-card--wide .pg-card__d { -webkit-line-clamp: 4; font-size: 15px; }
}

/* pildiga kaart (pood): toode heledal alusel, hind all */
.pg-card--media { padding: 0 0 20px; overflow: hidden; }
.pg-card--media > .pg-card__kick, .pg-card--media > .pg-card__t, .pg-card--media > .pg-card__d, .pg-card--media > .pg-card__meta { padding-inline: 20px; }
.pg-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 4px; overflow: hidden; border-bottom: 1px solid var(--line-2); background: linear-gradient(180deg, var(--white), var(--bg)); }
.pg-card__media img { width: 76%; height: 76%; object-fit: contain; transition: transform .7s var(--ease); }
.pg-card__media--cover img { width: 100%; height: 100%; object-fit: cover; }
.pg-card__media .pg-card__mark { width: 30%; height: auto; aspect-ratio: 1; border-radius: 22%; }
.pg-card__media .pg-card__mark svg { width: 44%; height: 44%; }
.pg-card__media .pg-card__mark--raw svg { width: 100%; height: 100%; }
.pg-card--media:hover .pg-card__media img { transform: scale(1.045); }
.pg-card--media .pg-card__kick { margin-top: 14px; }
.pg-card--media .pg-card__media + .pg-card__t { margin-top: 14px; }
.pg-card--media .pg-card__go { top: 12px; right: 12px; z-index: 1; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); }
.pg-card__flag { position: absolute; left: 12px; top: 12px; }

/* rida: ikoon vasakul (tihe nimekiri; telefonis kõik tavakaardid) */
.pg-card--row { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "m k" "m t" "m d" "m x"; column-gap: 14px; align-content: start; padding: 16px 46px 16px 16px; }
.pg-card--row.pg-card--nomark { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "t" "d" "x"; }
.pg-card--row .pg-card__mark { grid-area: m; }
.pg-card--row .pg-card__kick { grid-area: k; margin: 1px 0 3px; }
.pg-card--row .pg-card__t { grid-area: t; margin: 0; padding-right: 0; font-size: 16px; }
.pg-card--row .pg-card__d { grid-area: d; margin-top: 4px; font-size: 14px; -webkit-line-clamp: 2; }
.pg-card--row .pg-card__meta { grid-area: x; padding-top: 10px; }
.pg-card--row .pg-card__go { top: 50%; right: 16px; margin-top: -9px; }
.pg-card--row:hover .pg-card__go { transform: translateX(3px); }

/* rühm: kategooria pealkiri ja selle kaardid */
.pg-group { scroll-margin-top: 20px; }
.pg-group[hidden] { display: none; }
.pg-group + .pg-group { margin-top: clamp(44px, 5.5vw, 76px); }
.pg-group__head { --c: var(--teal); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pg-group__head--nomark { grid-template-columns: minmax(0, 1fr) auto; }
.pg-group__mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); background: color-mix(in srgb, var(--c) 12%, var(--white)); color: var(--c); }
.pg-group__mark svg { width: 22px; height: 22px; }
.pg-group__t { font-size: clamp(22px, 2vw, 28px); font-weight: 850; line-height: 1.15; letter-spacing: -.025em; }
.pg-group__d { margin-top: 4px; max-width: 48em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pg-group__n { font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

/* filter: kategooriad ja otsing ühel paneelil */
.pg-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 36px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); }
.js .pg-filter:not(.is-ready) { visibility: hidden; }
.no-js .pg-filter { display: none; }
.pg-filter--sticky { position: sticky; z-index: 30; top: calc(var(--pg-nav) + 10px); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); background: rgba(255, 255, 255, .86); box-shadow: var(--sh-2); }
.pg-filter--solo { padding: 0; border: 0; border-radius: 16px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pg-filter--solo .pg-search { height: 54px; padding-left: 18px; border-radius: 16px; box-shadow: var(--sh-1); }
.pg-filter--solo .pg-search input { font-size: 16.5px; }
.pg-filter__chips { flex: 1 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pg-filter__chips:empty { display: none; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font: 750 14px/1 var(--font); color: var(--ink-2); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.pg-chip:hover { border-color: #c8d0d3; color: var(--ink); }
.pg-chip { position: relative; }
.pg-chip::after { content: ''; position: absolute; inset: -5px 0; }   /* puutepind vähemalt 44 px kõrge, välimus sama */
.pg-chip i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c, var(--teal)); }
.pg-chip small { font-size: 12px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pg-chip[aria-pressed="true"], .pg-chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg-chip[aria-pressed="true"] small, .pg-chip[aria-current] small { color: rgba(255, 255, 255, .55); }
.pg-chip[aria-pressed="true"] i, .pg-chip[aria-current] i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.pg-search { flex: 0 1 300px; min-width: 0; margin-left: auto; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 8px 0 14px; border: 1px solid var(--line-ui); border-radius: 14px; background: var(--white); color: var(--ink-3); transition: border-color .2s, box-shadow .2s; }
.pg-filter__chips:empty + .pg-search { flex: 1 1 100%; margin-left: 0; }
.pg-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 0 0 5px rgba(var(--teal-rgb), .12); }
.pg-search > svg { width: 18px; height: 18px; flex: none; }
/* vähemalt 16 px: väiksema kirja korral suurendab iOS Safari lehte fookusel */
.pg-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: 600 16px/1 var(--font); color: var(--ink); -webkit-appearance: none; appearance: none; }
.pg-search input:focus-visible { outline: none; }
.pg-search input::placeholder { color: var(--ink-3); font-weight: 500; opacity: 1; }
.pg-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.pg-search__n { font: 500 12px/1 var(--mono); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-search__x { flex: none; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s; }
.pg-search__x:hover { background: var(--mint); color: var(--teal-d); }
.pg-search__x svg { width: 14px; height: 14px; }
.pg-search__x[hidden] { display: none; }
.pg-empty { display: grid; justify-items: center; gap: 8px; padding: 44px 24px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-align: center; }
.pg-empty[hidden] { display: none; }
.pg-empty svg { width: 28px; height: 28px; color: var(--ink-4); }
.pg-empty b { font-size: 17px; font-weight: 850; color: var(--ink); }
.pg-empty a { color: var(--teal-d); font-weight: 800; text-underline-offset: 3px; }
.pg-card.is-shown { animation: chipIn .4s var(--ease) both; animation-delay: calc(var(--d, 0) * 18ms); }

/* märgid ja sildid */
.pg-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--mint); color: var(--teal-d); font: 800 12px/1 var(--font); letter-spacing: .01em; white-space: nowrap; }
.pg-badge i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.pg-badge--ink { background: var(--ink); color: #fff; }
.pg-badge--line { background: var(--white); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pg-badge--amber { background: #fdf2dc; color: #9b630c; }   /* tekst vähemalt 4,5:1 */
.pg-badge--green { background: #e3f4ea; color: #2a7b54; }   /* --green tumedam toon: tekst vähemalt 4,5:1 */
.pg-tag { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* =====================================================================
   DETAILVAADE: põhitekst + kleepuv kõrvalveerg, faktid, kontaktid
   ===================================================================== */
.pg-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pg-detail__main { min-width: 0; }
.pg-detail__aside { position: sticky; top: calc(var(--pg-nav) + 24px); display: grid; gap: 14px; min-width: 0; }
.pg-detail__main > * + * { margin-top: clamp(36px, 4vw, 56px); }
.pg-detail__main > .pg-prose + .pg-prose { margin-top: 1.1em; }

.pg-panel { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-2); }
.pg-panel__kick { font: 500 11.5px/1.25 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.pg-panel__t { margin-top: 8px; font-size: 20px; font-weight: 850; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.pg-panel__kick + .pg-fig, .pg-panel__t + .pg-fig { margin-top: 10px; }
.pg-panel__body { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.pg-panel__body a { color: var(--teal-d); font-weight: 750; }
.pg-panel .pg-facts { margin-top: 10px; }
.pg-panel__act { display: grid; gap: 8px; margin-top: 18px; }
.pg-panel__act .btn { width: 100%; }
.pg-panel__foot { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.pg-panel__foot a { color: inherit; font-weight: 750; text-underline-offset: 3px; }
.pg-panel--tint { background: var(--mint); border-color: rgba(var(--teal-rgb), .15); box-shadow: none; }
.pg-panel--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg-panel--dark .pg-panel__kick { color: var(--teal-hi); }
.pg-panel--dark .pg-panel__t { color: #fff; }
.pg-panel--dark .pg-panel__body, .pg-panel--dark .pg-panel__foot { color: rgba(255, 255, 255, .7); }
.pg-panel--dark .pg-fig b { color: var(--teal-hi); }
.pg-panel--dark .pg-fig span { color: rgba(255, 255, 255, .6); }
.pg-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pg-fig b { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.045em; color: var(--teal); font-variant-numeric: tabular-nums; }
.pg-fig span { font-size: 13.5px; font-weight: 700; color: var(--ink-3); }

/* faktid (ettevõtte andmed, mooduli kokkuvõte) */
.pg-facts { margin: 0; }
.pg-facts__row { display: grid; grid-template-columns: minmax(120px, .62fr) minmax(0, 1.4fr); gap: 4px 20px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.pg-facts__row:last-child { border-bottom: 0; }
.pg-facts dt { font-size: 14.5px; font-weight: 650; line-height: 1.4; color: var(--ink-2); }
.pg-facts dd { min-width: 0; margin: 0; display: flex; align-items: center; gap: 10px; }
.pg-facts__v { min-width: 0; font-size: 15.5px; font-weight: 800; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pg-facts__v--mono { font: 500 14.5px/1.4 var(--mono); letter-spacing: .01em; }
a.pg-facts__v { text-decoration: none; transition: color .2s; }
a.pg-facts__v:hover { color: var(--teal); }
.pg-facts__vw { display: block; min-width: 0; }
.pg-facts__note { display: block; margin-top: 2px; font: 600 13px/1.4 var(--font); color: var(--ink-3); }
.pg-facts .pg-copy { margin-left: auto; }
.pg-facts--card { padding: 6px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-1); }
.pg-facts--compact .pg-facts__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 11px 0; }
.pg-facts--compact dt { font-size: 13.5px; }
.pg-facts--compact dd { justify-content: flex-end; text-align: right; }
.pg-facts--compact .pg-facts__v { font-size: 14.5px; }
.pg-facts--dark .pg-facts__row { border-color: rgba(255, 255, 255, .1); }
.pg-facts--dark dt { color: rgba(255, 255, 255, .6); }
.pg-facts--dark .pg-facts__v { color: #fff; }
.pg-facts--dark .pg-copy { border-color: rgba(255, 255, 255, .18); background: transparent; color: rgba(255, 255, 255, .8); }

/* kopeerimise nupp */
.pg-copy { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink-3); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.pg-copy:hover { border-color: var(--teal); color: var(--teal); }
.pg-copy::after { content: ''; position: absolute; inset: -6px; }   /* puutepind 44 x 44 px, nupp ise 34 px */
.pg-copy > svg { grid-area: 1 / 1; width: 16px; height: 16px; transition: opacity .2s, transform .3s var(--ease); }
.pg-copy .i-chk { opacity: 0; transform: scale(.5); }
.pg-copy.is-done { border-color: var(--teal); background: var(--mint); color: var(--teal); }
.pg-copy.is-done > svg:first-child { opacity: 0; transform: scale(.5); }
.pg-copy.is-done .i-chk { opacity: 1; transform: none; }
.pg-copy__tip { position: absolute; z-index: 5; right: 0; bottom: calc(100% + 8px); padding: 6px 9px; border-radius: 8px; background: var(--ink); color: #fff; font: 800 12px/1 var(--font); white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.pg-copy.is-done .pg-copy__tip, .pg-copy.is-tip .pg-copy__tip { opacity: 1; transform: none; }
.no-js .pg-copy { display: none; }

/* kontaktid: suured klikitavad plaadid */
.pg-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.pg-contact { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 3px 16px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color .25s, box-shadow .3s, transform .35s var(--ease); }
.pg-contact--link:hover { border-color: rgba(var(--teal-rgb), .45); box-shadow: var(--sh-2); transform: translateY(-2px); }
.pg-contact--copy { padding-right: 62px; }
.pg-contact__ic { grid-row: 1 / span 3; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: var(--teal); }
.pg-contact__ic svg { width: 21px; height: 21px; }
.pg-contact__l { margin-top: 2px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pg-contact__a { font-size: clamp(18px, 1.6vw, 21px); font-weight: 850; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pg-contact__a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pg-contact__a:focus-visible { outline: none; }
.pg-contact:focus-within { outline: 2.5px solid var(--focus, var(--teal)); outline-offset: 3px; }
.pg-contact__d { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pg-contact .pg-copy { position: absolute; z-index: 2; top: 16px; right: 16px; }

/* meeskond: team_cards() kaardid samas võrgustikus mis avalehel (.team__list css/v3.css-is: neli veergu, kitsamal kolm) */
.pg-team .team__more { margin-top: 28px; text-align: center; }

/* =====================================================================
   CTA RIBA, LÕPUPLAKAT, SEOTUD
   ===================================================================== */
.pg-band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; padding: clamp(26px, 3.8vw, 52px); border: 1px solid rgba(var(--teal-rgb), .14); border-radius: 28px; background: var(--mint); }
.pg-band::before { content: ''; position: absolute; z-index: -1; right: -150px; top: 50%; width: 420px; height: 420px; margin-top: -210px; border-radius: 50%; border: 1px solid rgba(var(--teal-rgb), .14); box-shadow: 0 0 0 56px rgba(255, 255, 255, .28), 0 0 0 57px rgba(var(--teal-rgb), .09), 0 0 0 112px rgba(255, 255, 255, .16), 0 0 0 113px rgba(var(--teal-rgb), .06); pointer-events: none; }
.pg-band__kick { margin-bottom: 14px; }
.pg-band__t { font-size: clamp(26px, 2.7vw, 38px); font-weight: 830; line-height: 1.08; letter-spacing: -.032em; color: var(--ink); text-wrap: balance; }
.pg-band__t .t { color: var(--teal); }
.pg-band__d { margin-top: 12px; max-width: 40em; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.pg-band__d a { color: var(--teal-d); font-weight: 750; text-underline-offset: 3px; }
.pg-band__act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.pg-band--white { background: var(--white); border-color: var(--line); box-shadow: var(--sh-2); }
.pg-band--white::before { opacity: .7; }
.pg-band--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg-band--dark::before { border-color: rgba(255, 255, 255, .1); box-shadow: 0 0 0 56px rgba(255, 255, 255, .02), 0 0 0 57px rgba(255, 255, 255, .07), 0 0 0 112px rgba(255, 255, 255, .015), 0 0 0 113px rgba(255, 255, 255, .05); }
.pg-band--dark .pg-band__t { color: #fff; }
.pg-band--dark .pg-band__t .t { color: var(--teal-hi); }
.pg-band--dark .pg-band__d { color: rgba(255, 255, 255, .7); }
.pg-band--dark .pg-band__d a { color: var(--teal-hi); }
.pg-band--dark .eyebrow { color: #fff; }
.pg-band--dark .eyebrow::before { background: var(--teal-hi); box-shadow: 0 0 0 4px rgba(var(--hi-rgb), .16); }

.pg-final .final__title { max-width: 15em; }
.pg-final .sfam { margin-top: 46px; }

.pg-band + .pg-band { margin-top: 16px; }
.pg-related + .pg-related { margin-top: clamp(48px, 6vw, 80px); }
.pg-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 22px; }
.pg-related__t { font-size: clamp(24px, 2.5vw, 34px); font-weight: 830; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.pg-related__t .t { color: var(--teal); }

/* =====================================================================
   404
   ===================================================================== */
.pg-nf { padding-bottom: clamp(56px, 7vw, 104px); }
.pg-nf .pg-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pg-nf__path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: 100%; margin-top: 26px; padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .75); font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.pg-nf__path code { min-width: 0; padding: 0; background: none; color: var(--ink); font: 500 13.5px/1.4 var(--mono); overflow-wrap: anywhere; }
.pg-nf__art { position: relative; display: flex; align-items: center; justify-content: center; gap: .02em; font-size: clamp(120px, 15vw, 224px); line-height: 1; color: var(--ink); user-select: none; }
.pg-nf__art::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 1.9em; height: 1.9em; margin: -.95em 0 0 -.95em; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(var(--hi-rgb), .14) 70%, transparent); }
.pg-nf__d { font-weight: 900; letter-spacing: -.06em; }
.pg-nf__o { position: relative; flex: none; width: .74em; height: .74em; margin: 0 .04em; }
.pg-nf__ring { position: absolute; inset: 0; border-radius: 50%; border: .12em solid var(--teal); }
.pg-nf__ring--in { inset: .2em; border: 1px dashed rgba(var(--teal-rgb), .4); }
.pg-nf__spin { position: absolute; inset: -.13em; border-radius: 50%; border: 1px solid rgba(var(--teal-rgb), .14); animation: pgSpin 36s linear infinite; }
.pg-nf__spin b { position: absolute; left: 50%; top: 0; width: .07em; height: .07em; margin: -.035em 0 0 -.035em; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 .025em var(--bg); }
.pg-nf__tile { position: absolute; left: 50%; top: 50%; width: .26em; height: .26em; display: grid; place-items: center; border-radius: 28%; background: var(--white); color: var(--teal); transform: translate(-50%, -50%) rotate(-6deg); box-shadow: 0 0 0 1px rgba(16, 27, 36, .06), var(--sh-2); }
.pg-nf__tile svg { width: 52%; height: 52%; }

/* telefonis on jalus peidus: õiguslik rida võtab viimase sektsiooni tausta */
@media (max-width: 640px) {
  main > :not(.final) + .mlegal { padding-top: 24px; background: var(--bg); }
  main > .sx--white + .mlegal { background: var(--white); }
}

/* =====================================================================
   KOHANDUMINE
   ===================================================================== */
@media (max-width: 1060px) {
  .pg-hero__grid, .pg-nf .pg-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .pg-hero__aside { justify-self: start; max-width: 620px; }
  .pg-hero__aside--mark { display: none; }
  .pg-nf .pg-hero__aside { order: -1; justify-self: start; width: auto; }
  .pg-nf .pg-hero__grid { gap: 8px; }
  .pg-nf__art { font-size: clamp(88px, 13vw, 140px); }
  .pg-detail { grid-template-columns: minmax(0, 1fr); }
  .pg-detail__aside { position: static; }
  .pg-detail--aside-first .pg-detail__aside { order: -1; }
}
@media (max-width: 860px) {
  .pg-band { grid-template-columns: minmax(0, 1fr); }
  .pg-band__act { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .pg-filter { margin-bottom: 24px; border-radius: 18px; }
  .pg-filter__chips { order: 2; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: -5px -8px -4px; padding: 5px 8px 6px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 22px), transparent); }
  .pg-filter__chips::-webkit-scrollbar { display: none; }
  .pg-chip { flex: none; height: 36px; padding: 0 13px; font-size: 13.5px; }
  .pg-search { order: 1; flex: 1 1 100%; margin-left: 0; height: 46px; }
  .pg-filter--sticky { transition: top .32s var(--ease); }
  .nav.is-hidden ~ main .pg-filter--sticky { top: 8px; }
  .pg-grid--rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 16px; scrollbar-width: none; overscroll-behavior-x: contain; contain: inline-size; }
  .pg-grid--rail::-webkit-scrollbar { display: none; }
  .pg-grid--rail > * { flex: 0 0 80%; scroll-snap-align: start; }
  .pg-card:active, .pg-contact--link:active { transform: scale(.98); transition: transform .12s; }
  .pg-toc__list a { padding-block: 8px; }
  /* telefonis kaartide kirjeldus vähemalt 15 px (ridade piirang jääb) */
  .pg-card__d, .pg-card--wide .pg-card__d { font-size: 15px; }
  /* staatilised kiibid libisevad reana nagu rakenduse vahekaardid */
  .pg-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); margin-top: -3px; padding: 5px var(--gut) 6px; scrollbar-width: none; overscroll-behavior-x: contain; contain: inline-size; }
  .pg-chips::-webkit-scrollbar { display: none; }
  .pg-chips > li { flex: none; }
}
@media (max-width: 640px) {
  .pg-hero { padding-bottom: 36px; }
  .pg-hero__title, .pg-hero--s .pg-hero__title { font-size: clamp(32px, 9.2vw, 42px); line-height: 1.04; }
  .pg-hero .eyebrow { margin-top: 22px; }
  .pg-hero .crumbs + .pg-hero__title { margin-top: 22px; }
  .pg-hero__lead { margin-top: 18px; }
  .pg-meta { margin-top: 22px; gap: 6px; }
  .pg-meta li { min-height: 32px; font-size: 13px; }
  .pg-photo { border-radius: 22px; --ratio: 4 / 3; }
  .pg-hero__aside .chip { left: 4%; bottom: -14px; }
  /* leivapururada -> üks „tagasi“ link vanemlehele, nagu rakenduses (ka sub.php page_hero() .pghero) */
  :is(.pg-hero, .pghero) .crumbs li { display: none; }
  :is(.pg-hero, .pghero) .crumbs li:nth-last-child(2) { display: flex; }
  :is(.pg-hero, .pghero) .crumbs li:nth-last-child(2)::before { content: none; }
  :is(.pg-hero, .pghero) .crumbs li:nth-last-child(2) a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; margin: 0; padding: 0 14px 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font: 750 13.5px/1 var(--font); letter-spacing: 0; color: var(--ink-2); box-shadow: var(--sh-1); }
  :is(.pg-hero, .pghero) .crumbs li:nth-last-child(2) a::before { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
  :is(.pg-hero, .pghero) .crumbs li:nth-last-child(2) a::after { content: ''; position: absolute; inset: -6px 0; }   /* puutepind 44 px */

  .pg-prose { font-size: 17px; line-height: 1.7; }
  .pg-prose h2 { margin-top: 2em; }
  .pg-prose--num > h2:not(:first-child) { margin-top: 1.7em; padding-top: 1.7em; }
  .pg-prose blockquote { padding-left: 18px; }
  .pg-note { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 16px 16px 16px 14px; font-size: 15px; }
  .pg-note > div { padding-top: 3px; }
  .pg-note__ic { width: 30px; height: 30px; }
  .pg-note__ic svg { width: 16px; height: 16px; }
  .pg-table { border-radius: var(--r); }
  .pg-table th, .pg-table td { padding: 12px 14px; }

  .pg-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pg-grid--media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* tavakaardid ridadeks: ikoon vasakul, kaks rida teksti */
  .pg-grid:not(.pg-grid--media):not(.pg-grid--rail):not(.pg-grid--tiles) > .pg-card:not(.pg-card--media) { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "m k" "m t" "m d" "m x"; column-gap: 14px; align-content: start; padding: 15px 44px 15px 15px; }
  .pg-grid:not(.pg-grid--media):not(.pg-grid--rail):not(.pg-grid--tiles) > .pg-card--nomark:not(.pg-card--media) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "t" "d" "x"; }
  .pg-grid:not(.pg-grid--media):not(.pg-grid--rail):not(.pg-grid--tiles) > .pg-card:not(.pg-card--media) > .pg-card__mark { grid-area: m; }
  .pg-grid:not(.pg-grid--media):not(.pg-grid--rail):not(.pg-grid--tiles) > .pg-card:not(.pg-card--media) > .pg-card__kick { grid-area: k; margin: 1px 0 3px; padding: 0; }
  .pg-grid:not(.pg-grid--media):not(.pg-grid--rail):not(.pg-grid--tiles) > .pg-card:not(.pg-card--media) > .pg-card__t { grid-area: t; margin: 0; padding: 0; font-size: 16px; }
  .pg-grid:not(.pg-grid--media):not(.pg-grid--rail):not(.pg-grid--tiles) > .pg-card:not(.pg-card--media) > .pg-card__d { grid-area: d; margin-top: 4px; font-size: 15px; -webkit-line-clamp: 2; }
  .pg-grid:not(.pg-grid--media):not(.pg-grid--rail):not(.pg-grid--tiles) > .pg-card:not(.pg-card--media) > .pg-card__meta { grid-area: x; padding-top: 10px; }
  .pg-grid:not(.pg-grid--media):not(.pg-grid--rail):not(.pg-grid--tiles) > .pg-card:not(.pg-card--media) > .pg-card__go { top: 50%; right: 15px; margin-top: -9px; }
  /* ruudud: kaks veergu, ainult ikoon ja pealkiri (nagu rakenduse menüü) */
  .pg-grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pg-grid--tiles > .pg-card { padding: 14px 14px 15px; }
  .pg-grid--tiles .pg-card__mark, .pg-grid--tiles .pg-card__mark--raw svg, .pg-grid--tiles .pg-card__mark .pg-pmark { width: 38px; height: 38px; }
  .pg-grid--tiles .pg-card__mark { border-radius: 11px; }
  .pg-grid--tiles .pg-card__mark svg { width: 19px; height: 19px; }
  .pg-grid--tiles .pg-card__t { margin-top: 12px; padding-right: 0; font-size: 15px; line-height: 1.3; }
  .pg-grid--tiles .pg-card__d, .pg-grid--tiles .pg-card__kick, .pg-grid--tiles .pg-card__go, .pg-grid--tiles .pg-card__meta { display: none; }
  .pg-card--media { padding-bottom: 14px; }
  .pg-card--media > .pg-card__kick, .pg-card--media > .pg-card__t, .pg-card--media > .pg-card__d, .pg-card--media > .pg-card__meta { padding-inline: 12px; }
  .pg-card--media .pg-card__t { font-size: 15px; }
  .pg-card--media .pg-card__d { display: none; }
  .pg-card--media .pg-card__meta { padding-top: 10px; }
  .pg-card--media .pg-card__go { display: none; }
  .pg-group__head { grid-template-columns: auto minmax(0, 1fr); padding-bottom: 14px; margin-bottom: 14px; }
  .pg-group__head--nomark { grid-template-columns: minmax(0, 1fr); }
  .pg-group__mark { width: 42px; height: 42px; border-radius: 12px; }
  .pg-group__n { grid-column: 2; margin-top: 4px; }
  .pg-group__head--nomark .pg-group__n { grid-column: 1; }
  .pg-group__d { font-size: 14.5px; }

  .pg-facts__row { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 13px 0; }
  .pg-facts--compact .pg-facts__row { grid-template-columns: minmax(0, 1fr) auto; }
  .pg-facts--card { padding: 4px 18px; }
  .pg-contact { padding: 16px; }
  .pg-contact--copy { padding-right: 58px; }
  .pg-panel { padding: 18px; }
  .pg-band { padding: 24px 20px; border-radius: 22px; }
  .pg-band::before { right: -230px; top: auto; bottom: -250px; margin: 0; }
  .pg-band__act .btn { width: 100%; }
  .pg-related__head { margin-bottom: 16px; }
  .pg-nf__art { font-size: clamp(96px, 30vw, 128px); }
  .pg-nf__path { margin-top: 20px; }
}
@media (hover: none) {
  .pg-card:hover, .pg-contact--link:hover { transform: none; box-shadow: none; }
  .pg-card--soft:hover { background: var(--bg); border-color: transparent; }
}

/* prindi tekstilehed puhtalt: ainult sisu */
@media print {
  .nav, .tabbar, .sheet, .mcta, .foot, .mlegal, .skip, .pg-toc, .pg-band, .final, .pg-filter, .pg-hero__aside, .pg-anchor, .pg-copy { display: none !important; }
  body { padding: 0 !important; background: #fff; }
  .sxh { padding: 0 0 18px !important; background: none !important; }
  .sx { padding: 18px 0 !important; background: none !important; }
  .pg-doc, .pg-detail { display: block !important; }
  .pg-prose { max-width: none; font-size: 11.5pt; color: #000; }
  .pg-prose a { color: #000; }
  .js .rv { opacity: 1 !important; transform: none !important; }
}
