/* ===========================================================================
 * SOBO OPERATIONS — it.sobo.ee ühine stiil. Laaditakse igal lehel ja igas keeles.
 * Tokenid (:root) on AINULT siin. Ära lisa lehtedele oma :root plokke.
 * ======================================================================== */

/* Kohalikud fondid (SIL Open Font License) — Google Fontsist alla laaditud, et
 * külastaja IP-aadress ei läheks Google'ile. latin + latin-ext (eesti š ja ž,
 * soome å on latin-is) ja vene lehe jaoks cyrillic. Schibsted Groteskil
 * kirillitsat EI OLE — vene lehel on pealkirjad IBM Plex Sansis (vt allpool).
 * NB: noolemärk → (U+2192) ei ole latin-alamhulgas — nooled on SVG-d. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-600-800-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: 'Schibsted Grotesk'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-600-800-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; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-400-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-400-700-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: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-400-700-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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400-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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400-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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-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; }

/* ---------------------------------------------------------------------------
 * Tokenid (founder 2026-10-27): kolm tooni — VALGE taust, SOBO brändivärv
 * #BA8E49 (founder nimetab seda „SOBO roheliseks"; sama mis sobo.ee --primary)
 * ja SINAKASHALL koostöö taustapildist (#608C94 / tume #13272D). --gold* nimi
 * jäi alles, väärtus on SOBO värv.
 *
 * Teema: vaikimisi HELE (founder 2026-10-25), ka tumeda seadmega. Päise nupp
 * paneb <html data-theme="dark|light"> ja jätab valiku meelde (localStorage
 * 'ops_theme') — tume ainult siis, kui inimene selle ise valis.
 *
 * Kandiline (founder 2026-10-27): nuppudel, kaartidel ja väljadel ümarnurki
 * pole — ära lisa border-radius'it. Erandid: näidiste kaardid (.demos) ja häälemängija (.voice) on ümarad.
 * ------------------------------------------------------------------------ */
:root {
  --paper: #FFFFFF;
  --surface: #EEF3F4;          /* sinakashalli hele toon (vahelduvad plokid) */
  --ink: #13272D;
  --muted: #4E6369;
  --line: #D3DEE1;
  --steel: #608C94;            /* sinakashall aktsent */
  --deep: #13272D;
  --deep-ink: #EAF1F2;
  --deep-muted: #A9BEC2;
  --deep-line: #2C4950;
  --gold: #BA8E49;
  --gold-ink: #8C6733;        /* SOBO värv tekstina heledal taustal (kontrast) */
  --ok: #1E7A4C;
  --err: #B3261E;
  --shadow: 0 30px 60px -30px rgba(19, 39, 45, .4);

  --brand: "Schibsted Grotesk", system-ui, sans-serif;   /* logo — sama igas keeles */
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1600px;             /* laiadel ekraanidel ei jää sisu kitsaks ribaks */
  --gutter: clamp(24px, 4vw, 64px);
  --hdr: 64px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0D181C;
  --surface: #132329;
  --ink: #E6EEF0;
  --muted: #9CB0B5;
  --line: #263B41;
  --steel: #7FA7AE;
  --deep: #0F2227;
  --gold-ink: #D2B67F;
  --ok: #5BC48C;
  --err: #F2827A;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
/* Schibsted Groteskil pole kirillitsat — vene lehel pealkirjad IBM Plex Sansis (max 700). */
:root:lang(ru) { --display: "IBM Plex Sans", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
input, textarea, select, button { border-radius: 0; }  /* iOS paneb muidu ise ümarnurgad */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/*
 * Ei teksti märkimist ega kirjutamiskursorit väljaspool vormivälju
 * (founderi soov 2026-10-04). Erand: e-post ja registrikood (.copy), mida
 * inimene tahab kopeerida, ja vormiväljad.
 */
html { -webkit-tap-highlight-color: transparent; }
body {
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
  caret-color: transparent;
}
input, textarea, select, .copy, [contenteditable]:not([contenteditable="false"]) {
  -webkit-user-select: text;
  user-select: text;
  caret-color: auto;
}
input, textarea, select { cursor: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 30; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; margin: 0; }
.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Nupud --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font: 600 15px/1 var(--body);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* --- Päis (kleepuv) --- */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);  /* varu, kui color-mix puudub */
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 22px; height: var(--hdr); }
.mark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; }
.mark b { font: 800 21px/1 var(--brand); letter-spacing: -0.03em; }
.mark b span { color: var(--gold); }
.mark small { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.hdr__cta { padding: 9px 16px; font-size: 14px; white-space: nowrap; }

/* Keelevalik — <details>, töötab ka ilma JS-ita; JS sulgeb väljaspool klõpsates. */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line);
  font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--muted);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); border-color: var(--ink); }

.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 180px; padding: 6px; display: grid;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px;
  text-decoration: none; font-size: 15px; font-weight: 500;
}
.lang__menu a:hover { background: var(--paper); }
.lang__menu a[aria-current] { color: var(--gold-ink); }
.lang__menu a[aria-current]::after {
  content: ""; width: 10px; height: 5px; margin-top: -3px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* Teema nupp: kuu heledas (vii tumedasse), päike tumedas (vii heledasse). */
.theme-btn {
  width: 38px; height: 38px; padding: 0; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: none; color: var(--muted); cursor: pointer;
}
.theme-btn:hover { color: var(--ink); border-color: var(--ink); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }

/* Referentsid: suured eelvaatega kaardid karussellis (kerib puudutusega/nooltega, snap) */
.refs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.refs-head .sec__head { margin-bottom: 0; }
.car-nav { display: flex; gap: 8px; flex: none; }
.car-nav button {
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.car-nav button:hover:not(:disabled) { border-color: var(--ink); }
.car-nav button:disabled { opacity: .35; cursor: default; }
.car-nav[hidden] { display: none; }
.car {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 6px;
}
.car::-webkit-scrollbar { display: none; }
.proj {
  position: relative; flex: 0 0 min(86%, 1180px); aspect-ratio: 16 / 9; scroll-snap-align: start;
  overflow: hidden; background: var(--deep);
  color: #fff; text-decoration: none; box-shadow: var(--shadow);
}
.proj img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: left top; transition: transform .5s ease;
}
.proj:hover img { transform: scale(1.025); }
/* Tekst eelvaate peal: alt tumenev, et valge tekst oleks loetav igal pildil */
.proj__body {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px;
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(to top, rgba(13, 28, 33, .97) 0%, rgba(13, 28, 33, .9) 62%, rgba(13, 28, 33, 0));
}
.proj__url { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .9rem; color: #E3C58C; }
.proj__url .ico { width: 16px; height: 16px; }
.proj h3 { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 40px); line-height: 1.05; color: #fff; }
.proj p { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, .86); }
.proj__tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.proj__tags li {
  padding: 6px 12px; font-size: .85rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
}
/* Viimane kaart: „+ Teie projekt" → kontaktivorm */
.proj--add {
  flex-basis: min(40%, 420px); aspect-ratio: auto; box-shadow: none;
  scroll-snap-align: end; /* viimane kaart: karussell saab lõpuni kerida */
  display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
  background: var(--surface); color: var(--ink); border: 2px dashed var(--line);
}
.proj--add:hover { border-color: var(--gold); }
.proj--add b { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); }
.proj--add span:last-child { color: var(--gold-ink); font-weight: 600; }
.proj__plus { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--gold-ink); }
/* Telefonis tekst pildi ALL (pildi peal jääks kitsas kaardis liiga kirjuks) */
@media (max-width: 720px) {
  .proj { flex-basis: 88%; aspect-ratio: auto; display: flex; flex-direction: column; }
  .proj img { position: static; height: auto; aspect-ratio: 16 / 10; }
  .proj__body { position: static; flex: 1; align-content: start; padding: 18px; background: rgb(13, 28, 33); }
  .proj__tags li { font-size: .78rem; padding: 5px 10px; }
  .proj--add { flex-basis: 70%; }
}

/* Näidised (eraldi leht /projektid/ (oli /naidised/), founder 2026-10-27): kaks suurt kaarti reas, eelvaade brauseriaknas.
   Pilt on lehe ülemised 2400 px (1440 laiusel); hiire all kerib aken lehe aeglaselt läbi, telefonis on
   aken kõrgem. Tekst alati pildi all. */
.demos { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demos .proj { aspect-ratio: auto; display: flex; flex-direction: column; background: rgb(13, 28, 33); }
.proj__aken { display: block; padding: 14px 14px 0; background: linear-gradient(180deg, #1A3138, rgb(13, 28, 33)); }
.proj__riba {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  background: #24393F;
}
.proj__riba i { width: 10px; height: 10px; background: rgba(255, 255, 255, .22); flex: none; }
.proj__riba i:first-child { background: #E3C58C; }
.demos .proj__url {
  margin-left: 10px; flex: 1; min-width: 0; height: 24px; padding: 0 10px;
  background: rgba(255, 255, 255, .07); font-size: .8rem; white-space: nowrap; overflow: hidden; margin-right: 76px;
}
/* märk „Näidis" brauseririba paremas otsas, et ei kataks lehe logo */
.demos .proj__vaade { position: static; }
.demos .proj__badge { top: 21px; left: auto; right: 26px; padding: 2px 10px; font-size: .76rem; box-shadow: none; }
@media (max-width: 720px) { .demos .proj__badge { top: 17px; right: 20px; } }
.proj__vaade { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #fff; }
.demos .proj img {
  position: static; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transition: object-position 7s cubic-bezier(.45, 0, .55, 1);
}
.demos .proj:hover img { transform: none; }
.demos .proj:hover img, .demos .proj:focus-visible img { object-position: 50% 100%; transition-duration: 9s; }
.demos .proj__body { position: static; flex: 1; align-content: start; background: none; padding: 22px 26px 26px; }
.demos .proj h3 { font-size: clamp(24px, 2.3vw, 32px); }
/* Erand kandilisest teemast (founder 2026-10-27): näidiste kaardid on ümarad. */
.demos .proj { border-radius: 20px; }
.demos .proj__riba { border-radius: 10px 10px 0 0; }
.demos .proj__riba i { border-radius: 50%; }
.demos .proj__url { border-radius: 6px; }
.demos .proj__vaade { border-radius: 0 0 6px 6px; }
.demos .proj__badge, .demos .proj__tags li { border-radius: 999px; }
.proj__badge {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px;
  background: #E3C58C; color: #13272D; font-weight: 700; font-size: .85rem;
  box-shadow: 0 4px 14px rgba(13, 28, 33, .25);
}
@media (max-width: 860px) {
  .demos { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .proj__aken { padding: 10px 10px 0; }
  .proj__vaade { aspect-ratio: 4 / 5; }
  .demos .proj__body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .demos .proj img, .demos .proj:hover img { transition: none; object-position: 50% 0; }
}
.demos-cta {
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.demos-cta p { margin: 0; font: 700 clamp(20px, 2vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; }

/* Reklaamid (/reklaamid/, founder 2026-11-01): üks plokk. Kaardipakk on nagu raamat: lehed on kinnitatud vasakust servast,
   pealmine on viltu vaataja poole ja keerates läheb üle serva. Nurgad ja nihked arvutab site.js. Ilma JS-ita tavaline kerimisrida. */
.ads { overflow-x: clip; }
.ads__in {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr;
  grid-template-areas: "txt deck" "voice deck"; gap: 36px clamp(28px, 5vw, 72px); align-items: start;
}
.ads__txt { grid-area: txt; }
.voices { grid-area: voice; display: grid; gap: 14px; }
.voice { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 14px 20px 14px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.voice__play { grid-row: 1 / 3; width: 60px; height: 60px; display: grid; place-items: center; cursor: pointer; border: 0; border-radius: 50%; background: var(--gold); color: #13272D; }
.voice__play:hover { background: var(--ink); color: var(--paper); }
.voice__play .ico { width: 26px; height: 26px; }
.voice__play .play { fill: currentColor; }
.voice__play .pause, .voice.is-playing .voice__play .play { display: none; }
.voice.is-playing .voice__play .pause { display: block; }
.voice__name { align-self: end; }
.voice__bar { grid-column: 2 / 4; align-self: start; display: block; height: 6px; border-radius: 999px; overflow: hidden; background: var(--line); }
.voice__bar i { display: block; height: 100%; border-radius: 999px; background: var(--gold); transform: translateX(-100%); }
.voice:not(.is-playing) .voice__bar i { transition: transform .3s ease-out; }  /* lõpus libiseb tagasi, mitte ei hüppa */
.voice__time { align-self: end; font-family: var(--mono); font-size: .85rem; color: var(--muted); white-space: nowrap; }
.deck { grid-area: deck; --w: min(34vw, 460px); perspective: calc(var(--w) * 4); perspective-origin: 30% 40%; outline-offset: 12px; padding-top: 28px; }
.deck__stage { display: flex; gap: 12px; overflow-x: auto; }
.leaf { position: relative; flex: 0 0 var(--w); aspect-ratio: 4 / 5; overflow: hidden; background: var(--deep); box-shadow: 0 26px 54px rgba(13, 28, 33, .3); }
.leaf.proj--add { background: var(--surface); }
.leaf img, .leaf video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Heli nupp häälega videol – ümar nagu häälenäidise play-nupp. */
.leaf__sound { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(13, 28, 33, .72); color: #fff; cursor: pointer; }
.leaf__sound:hover { background: rgba(13, 28, 33, .9); }
.leaf__sound:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.leaf__sound .ico { width: 20px; height: 20px; stroke-width: 1.5; }
.leaf__sound .on, .leaf__sound[aria-pressed="true"] .off { display: none; }
.leaf__sound[aria-pressed="true"] .on { display: block; }
.leaf::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0);
  background: linear-gradient(90deg, rgba(13, 28, 33, .6), rgba(13, 28, 33, .15));
}
.js .deck__stage {
  display: block; overflow: visible; position: relative; width: var(--w); height: calc(var(--w) * 1.25);
  transform-style: preserve-3d; transform: rotateX(5deg) rotateZ(-1.2deg);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.js .leaf {
  position: absolute; top: 0; left: 0; width: var(--w); transform-origin: 0 50%; will-change: transform;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .8s cubic-bezier(.2, .75, .25, 1), opacity .45s ease;
}
.js .deck.is-drag .leaf { transition: none; }
.js .deck.is-drag .deck__stage { cursor: grabbing; }
.deck__nav { display: none; }
.js .deck__nav { display: flex; align-items: center; justify-content: center; width: var(--w); margin-top: 34px; }
.deck__count { min-width: 8ch; text-align: center; font-family: var(--mono); font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .ads__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "txt" "deck" "voice"; }
  .deck { --w: min(72vw, 460px); }
  .js .deck__stage { margin-inline: auto; left: -36px; }
  .js .deck__nav { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js .leaf { transition: none; }
}

/* Pildid (Unsplash, tasuta litsents; failid assets/pildid/, ID-d index.html-i kommentaaris).
   Tumeda taustapildiga plokk: tokenid pööratakse heledaks, pildi peal tume üleminek loetavuseks. */
.sec--img, .page-hero--img {
  --paper: var(--deep); --ink: var(--deep-ink); --muted: var(--deep-muted); --line: var(--deep-line); --gold-ink: #D2B67F;
  position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--ink);
}
.sec--img::before, .page-hero--img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(19, 39, 45, .94) 0%, rgba(19, 39, 45, .72) 50%, rgba(19, 39, 45, .25) 100%);
}
.sec__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero--img { padding: 56px 0 72px; }
/* Teenusekaardi ülaosas pilt üle kaardi laiuse */
.svc__img { width: calc(100% + 60px); max-width: none; margin: -32px -30px 28px; aspect-ratio: 12 / 5; object-fit: cover; }
/* Pilt pealkirja all kahe veeruga plokis (KKK, kontakt); kitsal ekraanil peidus, et sisu jääks lähedale */
.sec__pic { width: 100%; margin-top: 36px; aspect-ratio: 4 / 3; object-fit: cover; }

.menu-btn {
  display: none;
  width: 42px; height: 42px; margin-right: -8px;
  border: 0; background: none; color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; display: block; margin: auto; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu-btn[aria-expanded="true"] .bars { display: none; }
.mnav { border-top: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: grid; }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 18px/1.2 var(--display); }
.mnav__langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 2px; }
.mnav .mnav__langs a {
  padding: 8px 14px; border: 1.5px solid var(--line);
  font: 500 15px/1.2 var(--body);
}
.mnav .mnav__langs a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mnav .btn { margin-top: 18px; justify-content: center; padding: 14px 18px; }

/* ---------------------------------------------------------------------------
 * Punktiirjoonega rida — lehe läbiv motiiv. Nimi vasakul, punktid täidavad
 * vahe, hind paremal: nagu hinnatahvlil.
 * ------------------------------------------------------------------------ */
.ld { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.ld__k { font-weight: 600; }
.ld__k small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.ld__d { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--steel); transform: translateY(-5px); transform-origin: left; }
.ld__v { font: 500 15px/1.3 var(--mono); white-space: nowrap; text-align: right; }
.ld__v i { font-style: normal; color: var(--muted); font-size: 13px; margin-right: 4px; }
/* Punktid joonistuvad, kui plokk jõuab vaatesse (ainult JS-iga; ilma on kohe näha). */
.js .draw .ld__d { transform: translateY(-5px) scaleX(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .draw.in .ld__d { transform: translateY(-5px) scaleX(1); }

/* --- Hero (founder 2026-10-27): täislaiuses taustapilt, tekst peal. Tume üleminek ja heledad
   tokenid tulevad .sec--img-st (vt Pildid); SOBO värvi põhinupp. --- */
.hero { display: flex; align-items: center; min-height: clamp(520px, 76vh, 820px); padding: 88px 0; }
.hero .wrap { width: 100%; }
.hero__txt { max-width: 660px; }
.hero h1 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: .98;
  font-weight: 800;
  margin-top: 18px;
}
.hero h1 em { font-style: normal; color: var(--gold); display: block; }  /* moto kahel real: "Kõik lahendused" / "ühest kohast." */
.hero .lead { max-width: 54ch; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.hero .sec__bg { object-position: 65% 50%; }
.hero .btn--solid { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.hero .btn--solid:hover { background: transparent; color: var(--ink); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Kolm lubadust hero all. */
.pillars {
  list-style: none; margin: 0; padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 48px;
}
.pillars li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
.pillars .ico { width: 22px; height: 22px; color: var(--gold-ink); grid-row: span 2; margin-top: 1px; }
.pillars b { font: 700 17px/1.3 var(--display); letter-spacing: -0.01em; }
.pillars span { color: var(--muted); font-size: 15px; }

/* --- Sektsioonid --- */
.sec { padding: 88px 0; }
.sec--tint { background: var(--surface); border-block: 1px solid var(--line); }
.sec__head { max-width: 640px; margin-bottom: 40px; }
.sec__head h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; margin-top: 12px; }
.sec__head p { color: var(--muted); margin: 16px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 80px; align-items: start; }
.split .sec__head { margin-bottom: 0; }
@media (min-width: 1101px) {
  /* Pikk parem veerg (KKK lahti) — pealkiri jääb kõrvale näha. */
  .split .sec__head { position: sticky; top: calc(var(--hdr) + 32px); }
}

/* Teenused */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); overflow: hidden; }
.svc article { background: var(--surface); padding: 32px 30px 28px; display: flex; flex-direction: column; }
.sec--tint .svc article { background: var(--paper); }
/* Viies teenus (Reklaamvideod) üle kahe veeru: pilt vasakus pooles, tekst paremas. Alla 901 px nagu teised kaardid. */
@media (min-width: 901px) {
  .svc > .svc__wide { grid-column: 1 / -1; position: relative; padding-left: calc(50% + 30px); }
  .svc__wide .svc__img { position: absolute; top: 0; left: 0; width: 50%; height: 100%; margin: 0; aspect-ratio: auto; }
}
.svc__top { display: flex; align-items: center; gap: 14px; }
.svc__top .ico { width: 26px; height: 26px; color: var(--gold-ink); stroke-width: 1.75; }
.svc h3 { font-size: 24px; line-height: 1.15; }
.svc__pitch { color: var(--muted); margin: 14px 0 24px; }
.svc ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.svc li { position: relative; padding-left: 28px; }
.svc li::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.svc__foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.svc__price { font: 800 24px/1 var(--display); letter-spacing: -0.02em; }
.svc__price small { display: block; font: 400 13px/1.4 var(--mono); letter-spacing: 0; color: var(--muted); margin-bottom: 4px; }
.svc__foot .btn { padding: 9px 16px; font-size: 14px; }
/* Reklaamvideote kaardil kaks nuppu: kõrvuti paremal; kitsamal laiusel hind eraldi real, nupud täidavad rea. */
.svc__wide .svc__price { margin-right: auto; }
@media (max-width: 1180px) {
  .svc__wide .svc__price { flex: 1 1 100%; }
  .svc__wide .svc__foot .btn { flex: 1 1 0; justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  .svc__wide .svc__foot { gap: 16px 8px; }
  .svc__wide .svc__foot .btn { padding-inline: 8px; align-self: stretch; }
}

/* Koostöö — päris järjekord, seega nummerdatud. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); font: 500 12px/1 var(--mono); color: var(--gold-ink); }
.steps h3 { font-size: 17px; margin-top: 12px; }
.steps p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }

/* Hinnakiri */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
@media (min-width: 1280px) {
  .prices { grid-template-columns: repeat(3, 1fr); gap: 48px 56px; }
}
.prices h3 { font-size: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.prices .ld { padding: 14px 0; border-bottom: 1px solid var(--line); }
.prices .ld__k { font-size: 15px; }
.prices__note { margin: 48px 0 0; max-width: 70ch; color: var(--muted); font-size: 15px; }
.prices__note p { margin: 0 0 8px; }
.prices a.ld:hover .ld__k { color: var(--gold-ink); }

/* Veebilehe variandid (founder 2026-10-28): kolm maksmise viisi + ise hallatav (tume kaart). */
.plans { margin-bottom: 72px; }
.plans:last-child { margin-bottom: 0; }
.plans__head { margin-bottom: 24px; }
.plans__head h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.15; }
.plans__head p { margin: 10px 0 0; max-width: 78ch; color: var(--muted); font-size: 15px; }
.plans__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plan { background: var(--paper); padding: 28px 26px 26px; display: flex; flex-direction: column; }
.plan__tag { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 20px; }
.plan__price b { font: 800 clamp(40px, 3.6vw, 54px)/1 var(--display); letter-spacing: -0.035em; white-space: nowrap; }
.plan__price span { font: 500 16px/1.3 var(--mono); white-space: nowrap; }
.plan__sum { margin: 10px 0 0; color: var(--muted); }
.plan dl { margin: 22px 0 26px; border-top: 1px solid var(--line); }
.plan dl div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.plan dt { font: 500 12px/1.4 var(--mono); color: var(--muted); }
.plan dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.plan .btn { margin-top: auto; align-self: flex-start; padding: 10px 16px; font-size: 14px; }
.plan__more { margin: -10px 0 24px; color: var(--muted); font-size: 14px; }
.plan--self { --paper: var(--deep); --ink: var(--deep-ink); --muted: var(--deep-muted); --line: var(--deep-line); --gold-ink: #D2B67F; color: var(--ink); }
.plan--self .btn--solid { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.plan--self .btn--solid:hover { background: transparent; color: var(--ink); }
/* E-poe lisa ise hallatava kaardil (founder 2026-10-29: e-pood = 500 € lisa). */
.plan__lisa { border: 1px solid var(--line); padding: 14px 16px; margin: -6px 0 24px; }
.plan__lisa-pea { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan__lisa-pea span { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.plan__lisa-pea b { font: 500 16px/1 var(--mono); white-space: nowrap; }
.plan__lisa p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 1279px) { .plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .plans__grid { grid-template-columns: 1fr; } .plans { margin-bottom: 56px; } }

/* KKK */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0;
  font: 600 18px/1.35 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--gold-ink); }
.faq details > div { padding: 0 48px 22px 0; color: var(--muted); }
.faq details p { margin: 0 0 10px; }

/* Kontakt */
.contact__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.contact__mail { margin-top: 28px; font-size: 16px; color: var(--muted); }
.contact__mail a { display: inline-block; margin-top: 4px; font: 500 18px/1.3 var(--mono); color: var(--ink); }
form { background: var(--surface); border: 1px solid var(--line); padding: 32px; display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label, legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
label small, legend small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], textarea {
  width: 100%;
  padding: 12px 14px;
  font: 400 16px/1.4 var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; font-size: 15px; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); transition: border-color .15s, background .15s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.send button { cursor: pointer; }
.send button:disabled { opacity: .6; cursor: wait; }
.status { font-size: 15px; margin: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.form__note { margin: 0; font-size: 13px; color: var(--muted); }
.form__note a { text-underline-offset: 3px; }

/* --- Jalus (tume) --- */
.ftr { background: var(--deep); color: var(--deep-muted); padding: 64px 0 32px; font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px 48px; padding-bottom: 48px; border-bottom: 1px solid var(--deep-line); }
.ftr .mark b { color: var(--deep-ink); }
.ftr .mark small { color: var(--deep-muted); }
.ftr__brand p { margin: 16px 0 0; max-width: 34ch; }
.ftr h2 { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 6px 0 18px; }
.ftr nav, .ftr__col { display: grid; gap: 10px; align-content: start; }
.ftr a { color: var(--deep-ink); text-decoration: none; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.ftr__col p { margin: 0; }
.ftr__soc { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.ftr__soc .ico { width: 16px; height: 16px; stroke-width: 1.5; color: var(--gold); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 14px; }

/* --- Alamlehed (privaatsus, 404) --- */
.crumbs { font: 400 13px/1.4 var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.page-hero { padding: 48px 0 56px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1; font-weight: 800; margin-top: 20px; }
.page-hero .lead { max-width: 62ch; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.doc { max-width: 72ch; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc > h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { text-underline-offset: 3px; }

/* --- Kitsas ekraan --- */
@media (max-width: 1200px) {
  .hdr__in { gap: 18px; }
  .nav { gap: 18px; }
}
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .split .sec__pic { display: none; }
}
@media (max-width: 1100px) {
  /* Menüü, keel ja pakkumise nupp lähevad sahtlisse; teema nupp jääb päisesse.
     1100, mitte 1000: kuue menüüpunktiga (ka „Uus leht") ei mahtunud vene päis 1001–1100 px laiusel. */
  .nav, .hdr__cta, .lang { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid .sec__pic { display: none; }
  .svc, .prices { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 20px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --hdr: 58px; }
  .hdr__in { gap: 10px; }
  .mark small { letter-spacing: .1em; }
  .hero { min-height: 0; padding: 64px 0 72px; }
  .sec { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .svc article, form { padding: 26px 20px 22px; }
  .svc__img { width: calc(100% + 40px); margin: -26px -20px 22px; }
  .page-hero--img { padding: 40px 0 52px; }
  .ld__v { font-size: 14px; white-space: normal; }
  .faq summary { font-size: 17px; }
  .faq details > div { padding-right: 0; }
  .ftr__grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .mark small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .draw .ld__d { transition: none; transform: translateY(-5px) scaleX(1); }
}
