/* ==========================================================================
   ZEZZ 2026 — disainisüsteem
   1. Tokenid          6. Nupud
   2. Reset            7. Päis ja navigatsioon
   3. Tüpograafia      8. Sektsioonid ja komponendid
   4. Paigutus         9. Vormid
   5. Abiklassid      10. Jalus
   ========================================================================== */

/* 1. TOKENID --------------------------------------------------------------- */

:root {
  /* Brändi sinine skaala, tuletatud #01437a-st */
  --navy-950: #01192e;
  --navy-900: #01223d;
  --navy-800: #012f56;
  --navy-700: #01437a; /* bränd */
  --navy-600: #015796;
  --navy-500: #026fbd;
  --navy-400: #2b8fd8;
  --navy-300: #6bb2e6;
  --navy-200: #a9d2f1;
  --navy-100: #d8e9f9;
  --navy-50:  #eff6fd;

  /* Neutraalid, kergelt sinaka aluspõhjaga */
  --ink:      #0e1621;
  --grey-900: #16202e;
  --grey-800: #26313f;
  --grey-700: #3c4757;
  --grey-600: #58657a;
  --grey-500: #7b8798;
  --grey-400: #a3adbb;
  --grey-300: #c9d1db;
  --grey-200: #e3e8ee;
  --grey-100: #f1f4f8;
  --grey-50:  #f8fafc;
  --white:    #ffffff;

  /* Aktsent — ainult rõhumärkideks, mitte suurteks pindadeks */
  --amber:      #f5a524;
  --amber-soft: #fdf3e0;
  --green:      #12855f;
  --green-soft: #e6f5ef;

  /* Semantilised rollid */
  --bg:           var(--white);
  --bg-subtle:    var(--grey-50);
  --bg-muted:     var(--grey-100);
  --bg-invert:    var(--navy-900);
  --text:         var(--grey-900);
  --text-muted:   #4a5666;
  --text-invert:  var(--white);
  --border:       var(--grey-200);
  --border-strong:var(--grey-300);
  --brand:        var(--navy-700);
  --brand-hover:  var(--navy-800);
  --link:         var(--navy-600);

  /* Sujuv tüpograafia — skaleerub 360px…1440px vahel */
  --step--1: clamp(0.9375rem, 0.9rem + 0.18vw, 1rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);
  --step-3:  clamp(1.625rem, 1.4rem + 1vw, 2.25rem);
  --step-4:  clamp(1.9375rem, 1.55rem + 1.7vw, 3rem);
  --step-5:  clamp(2.25rem, 1.62rem + 2.8vw, 3.9375rem);

  /* Kanit ja Syne tulevad Breakdance'i globaalsetest seadetest. Hoiame siin
     sama paari, et teema ja lehitseja stiilid ei läheks lahku. */
  --font: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-heading: "Syne", var(--font);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Ruum — 4px baasil */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6.5rem;
  --space-12: 8rem;

  /* Sektsiooni vertikaalne rütm */
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(14, 22, 33, 0.05);
  --shadow-sm: 0 1px 3px rgba(14, 22, 33, 0.07), 0 1px 2px rgba(14, 22, 33, 0.04);
  --shadow:    0 4px 16px rgba(14, 22, 33, 0.07), 0 1px 3px rgba(14, 22, 33, 0.05);
  --shadow-lg: 0 18px 50px -12px rgba(1, 34, 61, 0.22), 0 4px 14px rgba(14, 22, 33, 0.05);
  --shadow-brand: 0 12px 30px -8px rgba(1, 67, 122, 0.4);

  --container: 1200px;
  --container-narrow: 780px;
  --container-wide: 1400px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --duration: 240ms;

  --header-h: 76px;
  --admin-bar-h: 0px; /* ülekirjutatud, kui WP tööriistariba on nähtav */
}

/* Suurtel ekraanidel on sisuala laiem. Muudame ainult tokenit, nii liigub
   kogu leht - päis, sektsioonid ja jalus - korraga kaasa. */
@media (min-width: 1400px) {
  :root {
    --container: 1440px;
    --container-wide: 1680px;
  }
}

/* 2. RESET ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  /* Ei kasuta -webkit-font-smoothing: antialiased - see õhendab jooni ja
     muudab 300-kaalus teksti macOS-is peaaegu loetamatuks. */
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.nav-open { overflow: hidden; }

img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img, video { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

ul, ol { margin: 0; padding: 0; }

:where(a) { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:where(a:hover) { color: var(--brand-hover); }

:focus-visible {
  outline: 3px solid var(--navy-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--navy-200); color: var(--navy-900); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 3. TÜPOGRAAFIA ----------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-heading);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); letter-spacing: -0.032em; line-height: 1.06; }
h2 { font-size: var(--step-4); letter-spacing: -0.028em; line-height: 1.1; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5, h6 { font-size: var(--step-0); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}

blockquote {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--navy-200);
  color: var(--text-muted);
  font-size: var(--step-1);
}

code, pre { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--bg-muted); padding: 0.15em 0.4em; border-radius: var(--radius-sm); }
pre {
  background: var(--navy-950);
  color: var(--grey-100);
  padding: var(--space-5);
  border-radius: var(--radius);
  overflow-x: auto;
}
pre code { background: none; padding: 0; }

table { width: 100%; border-collapse: collapse; margin: var(--space-6) 0; font-size: var(--step--1); }
th, td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); text-align: left; }
th { font-weight: 600; background: var(--bg-subtle); }

/* 4. PAIGUTUS -------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--subtle { background: var(--bg-subtle); }
.section--muted { background: var(--bg-muted); }

.section--invert {
  background: var(--bg-invert);
  color: var(--text-invert);
}
.section--invert h1,
.section--invert h2,
.section--invert h3,
.section--invert h4 { color: var(--white); }
.section--invert .lead,
.section--invert p { color: rgba(255, 255, 255, 0.76); }
.section--invert .eyebrow { color: var(--navy-200); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(1.15rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.stack > * + * { margin-top: var(--space-4); }

/* 5. ABIKLASSID ------------------------------------------------------------ */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 999;
  padding: var(--space-3) var(--space-5);
  background: var(--brand);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Ilmumisanimatsioon.
   Peidame elemendid ainult siis, kui JS on kindlalt olemas (.js klass lisatakse
   <html>-ile kohe päises). Ilma selle kaitseta jääks sisu nähtamatuks, kui
   skript ei laadi - sisu nähtavus ei tohi kunagi JS-ist sõltuda. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* 6. NUPUD ----------------------------------------------------------------- */

.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.92em 1.7em;
  min-height: 52px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-pill);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn__arrow { flex: none; transition: transform var(--duration) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { box-shadow: var(--shadow-brand); }
.btn--primary:hover { --btn-bg: var(--brand-hover); box-shadow: 0 16px 36px -8px rgba(1, 67, 122, 0.5); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--brand);
  --btn-border: var(--border-strong);
}
.btn--secondary:hover { --btn-border: var(--brand); --btn-bg: var(--navy-50); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: transparent;
  padding-inline: 0.4em;
  min-height: auto;
}
.btn--ghost:hover { --btn-fg: var(--brand); }

.btn--lg { padding: 1.1em 2.1em; min-height: 60px; font-size: var(--step-1); }
.btn--block { width: 100%; }

/* Nupud tumedal taustal */
.section--invert .btn--primary,
.hero--dark .btn--primary {
  --btn-bg: var(--white);
  --btn-fg: var(--navy-900);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.55);
}
.section--invert .btn--primary:hover,
.hero--dark .btn--primary:hover { --btn-bg: var(--navy-50); }

.section--invert .btn--secondary,
.hero--dark .btn--secondary {
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.34);
}
.section--invert .btn--secondary:hover,
.hero--dark .btn--secondary:hover {
  --btn-border: rgba(255, 255, 255, 0.7);
  --btn-bg: rgba(255, 255, 255, 0.08);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* 7. PÄIS JA NAVIGATSIOON --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}

/* Tumeda hero puhul on päis läbipaistev, kuni scrollida */
body.has-dark-hero .site-header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.has-dark-hero .site-header:not(.is-stuck) .brand__mark { color: var(--white); }
body.has-dark-hero .site-header:not(.is-stuck) .nav__link { color: rgba(255, 255, 255, 0.88); }
body.has-dark-hero .site-header:not(.is-stuck) .nav__link:hover,
body.has-dark-hero .site-header:not(.is-stuck) .nav__link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}
body.has-dark-hero .site-header:not(.is-stuck) .nav__toggle { color: rgba(255, 255, 255, 0.65); }
body.has-dark-hero .site-header:not(.is-stuck) .nav__toggle[aria-expanded="true"] { color: var(--white); }
body.has-dark-hero .site-header:not(.is-stuck) .header__phone { color: rgba(255, 255, 255, 0.88); }
body.has-dark-hero .site-header:not(.is-stuck) .lang-switch__toggle { color: rgba(255, 255, 255, 0.88); }
body.has-dark-hero .site-header:not(.is-stuck) .lang-switch__toggle:hover,
body.has-dark-hero .site-header:not(.is-stuck) .lang-switch__toggle[aria-expanded="true"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}
body.has-dark-hero .site-header:not(.is-stuck) .burger span { background: var(--white); }
body.has-dark-hero .site-header:not(.is-stuck) .btn--secondary {
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.34);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  color: inherit;
}
.brand__mark { color: var(--brand); transition: color var(--duration) var(--ease); }
.brand img { max-height: 34px; width: auto; }

.header__nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav__item { position: relative; }
.nav__item--has-children { display: flex; align-items: center; }

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--grey-700);
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav__link:hover { color: var(--brand); background: var(--navy-50); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 600; }

.nav__item--has-children > .nav__link { padding-right: 0.4rem; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--grey-500);
  border-radius: var(--radius-sm);
  transition: transform var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav__toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--brand); }

.nav__submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  min-width: 260px;
  padding: var(--space-2);
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              visibility var(--duration);
}
.nav__item--has-children:hover > .nav__submenu,
.nav__item--has-children:focus-within > .nav__submenu,
.nav__submenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__submenu .nav__link {
  display: flex;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--grey-700);
  white-space: normal;
}
/* Rippmenüü paneel on alati hele, ka tumeda hero peal - seepärast tuleb
   päise valge tekstivärv siin tagasi tumedaks keerata. */
body.has-dark-hero .site-header:not(.is-stuck) .nav__submenu .nav__link {
  color: var(--grey-700);
  background: transparent;
}
body.has-dark-hero .site-header:not(.is-stuck) .nav__submenu .nav__link:hover,
.nav__submenu .nav__link:hover {
  color: var(--brand);
  background: var(--navy-50);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--grey-700);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}
.header__phone:hover { color: var(--brand); }

/* --- Keelevahetaja -------------------------------------------------------- */

.lang-switch { position: relative; flex: none; }

.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 40px;
  padding-inline: 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--grey-700);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.lang-switch__toggle > svg { flex: none; }
.lang-switch__toggle:hover,
.lang-switch__toggle[aria-expanded="true"] { color: var(--brand); background: var(--navy-50); }

.lang-switch__code { letter-spacing: 0.04em; }
.lang-switch__chevron {
  display: inline-flex;
  transition: transform var(--duration) var(--ease);
}
.lang-switch__toggle[aria-expanded="true"] .lang-switch__chevron { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 170px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              visibility var(--duration);
}
.lang-switch__menu.is-open { opacity: 1; visibility: visible; transform: none; }

.lang-switch__link {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--grey-700);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.lang-switch__link:hover { color: var(--brand); background: var(--navy-50); }
.lang-switch__link.is-current { color: var(--brand); font-weight: 600; background: var(--navy-50); }

.lang-switch__abbr {
  flex: none;
  min-width: 2.2ch;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--grey-500);
}
.lang-switch__link:hover .lang-switch__abbr,
.lang-switch__link.is-current .lang-switch__abbr { color: inherit; }

/* Lühikoodi lihtne lingirida sisu sees */
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-list a {
  display: inline-flex;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.lang-list a.is-current { color: var(--white); background: var(--brand); border-color: var(--brand); }

/* --- Mobiili CTA (ikooniga) ----------------------------------------------- */

.header__cta-mobile {
  display: none;
  position: relative;
  gap: 0.5em;
  min-height: 46px;
  padding: 0 1.15em;
  font-size: 0.95rem;
}
.header__cta-mobile svg { flex: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  flex: none;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--grey-800);
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .burger { display: flex; }
  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 90;
    margin: 0;
    padding: var(--space-6) clamp(1.15rem, 4vw, 2.5rem) var(--space-10);
    background: var(--white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                visibility var(--duration);
  }
  .header__nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--border); }
  .nav__item--has-children { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav__link { padding: 1rem 0; font-size: var(--step-1); font-weight: 600; color: var(--grey-900); }
  .nav__link:hover { background: none; }
  .nav__toggle { width: 44px; height: 44px; }

  .nav__submenu {
    position: static;
    grid-column: 1 / -1;
    display: none;
    min-width: 0;
    margin: 0 0 var(--space-3);
    padding: 0 0 0 var(--space-4);
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__submenu.is-open { display: block; }
  .nav__item--has-children:hover > .nav__submenu { display: none; }
  .nav__item--has-children:hover > .nav__submenu.is-open { display: block; }
  .nav__submenu .nav__link { font-size: var(--step-0); padding: 0.6rem 0; }

  /* Menüü on siin position:fixed ja seega paigutusest väljas - ilma selleta
     kleepuksid nupud logo külge, mitte päise paremasse serva. */
  .header__actions { margin-left: auto; }

  .header__cta-desktop { display: none; }
  .header__cta-mobile { display: inline-flex; }

  body.has-dark-hero .site-header:not(.is-stuck) .header__nav.is-open .nav__link { color: var(--grey-900); }
}

/* Kitsas lauaarvutivahemik: menüü on juba täies laiuses, aga nuppu ja
   telefoninumbrit koos enam ära ei mahu. Number jääb ikoonina alles. */
@media (max-width: 1200px) {
  .header__inner { gap: var(--space-3); }
  .header__phone span { display: none; }
  .nav__link { padding-inline: 0.55rem; }
}

@media (max-width: 620px) {
  .header__phone { display: none; }

  /* Logo, kolm nuppu ja 360px ekraan - maakera ikoon ja laiem vahe jäävad ära. */
  .header__actions { gap: var(--space-2); }
  .lang-switch__toggle > svg { display: none; }
  .lang-switch__toggle { padding-inline: 0.45rem; }
}

/* Kõige kitsamal ekraanil jääb CTA-st alles ainult ikoon. Silt jääb
   ekraanilugejale alles, seega peidame selle visuaalselt, mitte display:none-ga. */
@media (max-width: 480px) {
  .header__cta-mobile { width: 46px; padding: 0; }
  .header__cta-label {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* Alla 400px ei mahu logo + kolm nuppu enam välja. Nool jääb ära, keelekood
   üksi on piisav vihje - muidu tekiks kogu lehele horisontaalne kerimisriba. */
@media (max-width: 400px) {
  .header__actions { gap: 6px; }
  .lang-switch__chevron { display: none; }
}

/* 8. SEKTSIOONID JA KOMPONENDID -------------------------------------------- */

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 3rem + 8vw, 8rem) clamp(3rem, 2.5rem + 5vw, 6rem);
  overflow: hidden;
}

.hero--dark {
  background: var(--navy-900);
  color: var(--white);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 6vw, 6rem));
}
.hero--dark h1, .hero--dark h2 { color: var(--white); }
.hero--dark .lead { color: rgba(255, 255, 255, 0.78); }
.hero--dark .eyebrow { color: var(--navy-200); }

/* Pehme värvipilv taustal — puhtalt CSS, null päringut */
.hero--dark::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(52% 60% at 78% 12%, rgba(43, 143, 216, 0.32), transparent 62%),
    radial-gradient(46% 52% at 12% 4%, rgba(1, 87, 150, 0.5), transparent 60%),
    radial-gradient(70% 70% at 50% 100%, rgba(1, 25, 46, 0.9), transparent 70%);
}

/* Peen ruudustik, mis annab pinnale tekstuuri */
.hero--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid--split { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

.hero__content { max-width: 40ch; }
.hero__content--wide { max-width: 56ch; }
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { margin-bottom: var(--space-6); }

.hero__points {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-7);
}
.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--step-0);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.hero:not(.hero--dark) .hero__points li { color: var(--grey-700); }

.hero__points li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13) center / 12px 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5 6 12l7.5-8'/%3E%3C/svg%3E");
}
.hero:not(.hero--dark) .hero__points li::before {
  background-color: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312855f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5 6 12l7.5-8'/%3E%3C/svg%3E");
}

.hero__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__note {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--step--1);
  /* 0.76 hoiab kontrasti üle 4.5:1 ka seal, kus taustagradient on kõige heledam. */
  color: rgba(255, 255, 255, 0.76);
}
.hero:not(.hero--dark) .hero__note { color: var(--text-muted); }

/* Hero-sisene usaldusriba */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero:not(.hero--dark) .hero__stats { border-top-color: var(--border); }

.stat__number {
  display: block;
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero:not(.hero--dark) .stat__number,
.section:not(.section--invert) .stat__number { color: var(--brand); }

.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.hero:not(.hero--dark) .stat__label,
.section:not(.section--invert) .stat__label { color: var(--text-muted); }

/* --- Lehe päis (lihtsamad lehed) ------------------------------------------ */

.page-hero {
  background: var(--navy-900);
  color: var(--white);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 4vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 82% 0%, rgba(43, 143, 216, 0.3), transparent 60%),
    radial-gradient(50% 70% at 10% 10%, rgba(1, 87, 150, 0.42), transparent 62%);
}
.page-hero h1 { color: var(--white); margin-bottom: var(--space-4); }
.page-hero .lead { color: rgba(255, 255, 255, 0.76); max-width: 62ch; }

/* --- Leivapuru ------------------------------------------------------------ */

.breadcrumbs { margin-bottom: var(--space-5); font-size: var(--step--1); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li + li::before {
  content: "";
  width: 5px; height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
}
.breadcrumbs a { color: inherit; opacity: 0.82; text-decoration: none; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs [aria-current] { opacity: 0.78; }
.page-hero .breadcrumbs, .hero--dark .breadcrumbs { color: rgba(255, 255, 255, 0.92); }

/* --- Logoriba ------------------------------------------------------------- */

.logobar { padding-block: var(--space-8); border-bottom: 1px solid var(--border); }
.logobar__label {
  margin-bottom: var(--space-5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.logobar__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.logobar__items img {
  max-height: 32px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.logobar__items a:hover img { filter: none; opacity: 1; }

/* --- Kaardid -------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.card p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.62; }
/* .card p on failis hiljem kui .section--invert p, seega peab tumeda kaardi
   tekstivärvi siin uuesti ütlema - muidu jääb hall tekst tumedale taustale. */
.section--invert .card p,
.section--invert .card li { color: rgba(255, 255, 255, 0.78); }
.card--flat:hover { transform: none; box-shadow: none; }

.section--invert .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.11);
}
.section--invert .card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius);
  background: var(--navy-50);
  color: var(--brand);
}
.section--invert .card__icon { background: rgba(255, 255, 255, 0.09); color: var(--navy-200); }
.card__icon svg { width: 22px; height: 22px; }

/* --- Valukoht ("kas see tundub tuttav") ----------------------------------- */

.pains {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  list-style: none;
}
.pains li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--grey-700);
}
.pains li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: #fdeceb center / 11px 11px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c0392b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E");
}

/* --- Protsessi sammud ----------------------------------------------------- */

.steps { counter-reset: step; list-style: none; display: grid; gap: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-7);
}
.steps li:last-child { padding-bottom: 0; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Ühendusjoon sammude vahel */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 62px;
  left: 27.5px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--navy-100), var(--border));
}

.steps h3 { font-size: var(--step-1); margin-bottom: var(--space-2); padding-top: var(--space-3); }
.steps p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.65; }

.section--invert .steps p { color: rgba(255, 255, 255, 0.78); }
.section--invert .steps li::before {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--navy-200);
}
.section--invert .steps li:not(:last-child)::after {
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

@media (min-width: 860px) {
  .steps--2col { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4rem); }
  .steps--2col li:nth-last-child(2):not(:nth-child(even))::after { display: none; }
}

/* --- Nimekiri linnukestega ------------------------------------------------ */

.checklist {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--step-0);
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-soft) center / 12px 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312855f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5 6 12l7.5-8'/%3E%3C/svg%3E");
}
.section--invert .checklist li::before {
  background-color: rgba(255, 255, 255, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5 6 12l7.5-8'/%3E%3C/svg%3E");
}

/* --- Tagasiside ----------------------------------------------------------- */

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.quote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--navy-100);
}

/* Dekoratiivne jutumärk nurgas - asendab varasema ripakil vasakserva joone. */
.quote::before {
  content: "”";
  position: absolute;
  top: -0.24em;
  right: 0.28em;
  font-family: var(--font-heading);
  font-size: 7rem;
  line-height: 1;
  color: var(--navy-700);
  opacity: 0.07;
  pointer-events: none;
}

.quote__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.quote__stars { display: flex; gap: 2px; color: var(--amber); }
.quote__stars svg { width: 15px; height: 15px; }

/* .quote__text on <blockquote> - nullime üldise blockquote-stiili ääre ja
   veerise, muidu jääb kaardile põhjendamatu sinine püstjoon. */
.quote__text {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--grey-700);
}

/* Kokkuvõtlikus kolmikus lõikame jutu ühtlaselt reapiirilt, mitte keset
   lauset - nii on kaardid sama kõrged ja tekst ei katke poole sõna pealt. */
.quote--compact .quote__text {
  display: -webkit-box;
  -webkit-line-clamp: 9;
  line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quote__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.quote__author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 3px var(--navy-50);
}

.quote__name {
  display: block;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.3;
  color: var(--text);
}
.quote__company {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.quote__company a { color: inherit; text-decoration: none; }
.quote__company a:hover { color: var(--brand); text-decoration: underline; }

.section--invert .quote {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}
.section--invert .quote::before { color: var(--white); opacity: 0.09; }
.section--invert .quote__text { color: rgba(255, 255, 255, 0.84); }
.section--invert .quote__name { color: var(--white); }
.section--invert .quote__company { color: rgba(255, 255, 255, 0.62); }
.section--invert .quote__author { border-top-color: rgba(255, 255, 255, 0.12); }
.section--invert .quote__author img { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1); }

/* --- KKK ------------------------------------------------------------------ */

.faq { display: grid; gap: var(--space-3); max-width: 820px; }

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.faq__item[open] { border-color: var(--navy-200); box-shadow: var(--shadow-sm); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.15rem, 2.5vw, 1.6rem);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: color var(--duration) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand); }

.faq__icon {
  flex: none;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-50);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1.8px;
  border-radius: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--brand); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: var(--white); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq__a {
  padding: 0 clamp(1.15rem, 2.5vw, 1.6rem) clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.7;
  max-width: 68ch;
}

/* --- Hinnaplokk ----------------------------------------------------------- */

.pricebox {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-xl);
}
@media (min-width: 800px) { .pricebox { grid-template-columns: auto 1fr auto; } }

.pricebox__amount {
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--brand);
  white-space: nowrap;
}
.pricebox__amount small {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pricebox__body h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.pricebox__body p { color: var(--text-muted); font-size: var(--step--1); margin: 0; }

/* Tasuta-märgis */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.32em 0.85em;
  border-radius: var(--radius-pill);
  background: var(--amber-soft);
  color: #8a5a06;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--invert { background: rgba(255, 255, 255, 0.13); color: var(--white); }

/* --- CTA riba ------------------------------------------------------------- */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-800);
  color: var(--white);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 90% at 85% 15%, rgba(43, 143, 216, 0.4), transparent 62%),
    radial-gradient(50% 80% at 8% 90%, rgba(1, 25, 46, 0.75), transparent 65%);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.78); }

.cta-band__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.cta-band__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--step--1);
}
.cta-band__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.cta-band__contacts a:hover { text-decoration: underline; }
.cta-band__contacts svg { width: 16px; height: 16px; opacity: 0.7; }

/* --- Portfoolio ----------------------------------------------------------- */

.work-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}

.work {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-900);
  text-decoration: none;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.work--tall { aspect-ratio: 3 / 4; }
/* Kõik plaadid on sama kuvasuhtega, et ridade kõrgus jääks ühtlaseks. */

.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), opacity var(--duration) var(--ease);
}
.work:hover img { transform: scale(1.045); }

.work__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  background: linear-gradient(transparent, rgba(1, 25, 46, 0.86) 62%);
  color: var(--white);
}
.work__title {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.work__tags {
  margin-top: var(--space-2);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
}

/* --- Teenusekaart (avaleht / arhiiv) -------------------------------------- */

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.6rem, 2.8vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--navy-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-100);
  color: inherit;
}
.service-card:hover::after { transform: scaleX(1); }

.service-card h3 { font-size: var(--step-2); margin: 0; }
.service-card p { color: var(--text-muted); font-size: var(--step--1); margin: 0; flex: 1; }
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--brand);
}
.service-card__more svg { transition: transform var(--duration) var(--ease); }
.service-card:hover .service-card__more svg { transform: translateX(4px); }

/* --- Sisuplokid (ACF content repeater) ------------------------------------ */

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { border-radius: var(--radius); margin-block: var(--space-6); }
.prose > *:last-child { margin-bottom: 0; }

.feature-row {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row--flip .feature-row__media { order: -1; }
}
.feature-row + .feature-row { margin-top: clamp(3rem, 6vw, 5.5rem); }
.feature-row__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

/* --- Külgriba teenustele -------------------------------------------------- */

.with-sidebar {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 940px) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 280px; }

  /* Külgriba vasakule. Sisu jääb DOM-is esimeseks, et ekraanilugeja ja
     klaviatuur jõuaks päris sisuni enne teenuste nimekirja - visuaalse
     järjekorra paneb paika ainult grid. */
  .with-sidebar--left { grid-template-columns: 280px minmax(0, 1fr); }
  .with-sidebar--left > .service-main { grid-column: 2; grid-row: 1; }
  .with-sidebar--left > .sidebar-nav { grid-column: 1; grid-row: 1; }
}

.sidebar-nav {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.sidebar-nav h2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.sidebar-nav ul { list-style: none; display: grid; gap: 2px; }
.sidebar-nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--grey-700);
  font-size: var(--step--1);
  line-height: 1.45;
  text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.sidebar-nav a:hover { background: var(--white); color: var(--brand); }
.sidebar-nav .is-current a {
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
}

/* --- Blogi ---------------------------------------------------------------- */

.post-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--bg-muted); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.post-card__meta { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.02em; }
.post-card h3 { font-size: var(--step-1); margin: 0; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { font-size: var(--step--1); color: var(--text-muted); margin: 0; flex: 1; }

.pagination { margin-top: var(--space-9); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--grey-700);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* 9. VORMID ---------------------------------------------------------------- */

.form-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.form-panel h3 { font-size: var(--step-2); margin-bottom: var(--space-2); color: var(--text); }
.form-panel > p { color: var(--text-muted); font-size: var(--step--1); margin-bottom: var(--space-5); }
.form-panel .wpcf7 { margin-top: var(--space-5); }
.form-panel .wpcf7-form > p:first-child { margin-top: 0; }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="number"], input[type="search"], input[type="password"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: var(--step-0);
  line-height: 1.4;
  color: var(--text);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
/* CF7 annab textarea'le rows="10", mis venitab paneeli liiga pikaks.
   Fikseerime kõrguse siin ja lubame kasutajal ise venitada. */
textarea { height: 128px; min-height: 96px; resize: vertical; }

input::placeholder, textarea::placeholder { color: var(--grey-400); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(2, 111, 189, 0.16);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237b8798' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.5 6 8.5l4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

label { display: block; margin-bottom: var(--space-2); font-size: var(--step--1); font-weight: 600; }

/* Contact Form 7 */
.wpcf7-form p { margin-bottom: var(--space-4); }
.wpcf7-form p:last-child { margin-bottom: 0; }
.wpcf7-form label { width: 100%; margin-bottom: 0; }
/* Sildi sees olev <p> ei tohi lisada oma vahet - CF7 märgistus on pesastatud. */
.wpcf7-form label > p,
.wpcf7-form .form-col > p { margin: 0; }
.wpcf7-form br { display: none; }
.wpcf7-form > .form-row:first-of-type:empty,
.wpcf7-form .form-col:empty { display: none; }

.wpcf7-form .form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.wpcf7-form input[type="submit"] {
  width: 100%;
  min-height: 56px;
  padding: 1em 2em;
  background: var(--brand);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: var(--step-0);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.wpcf7-form input[type="submit"]:hover { background: var(--brand-hover); transform: translateY(-2px); }

/* Cloudflare Turnstile. Vidin ise on cross-origin iframe - selle sisu me
   kujundada ei saa, seega joondame ainult raami: sama nurgaraadius nagu
   väljadel ja sama vertikaalne rütm. Laiuse annab vormitagi size:flexible.
   Hele teema tuleb samuti tagist (theme:light), sest lehel pole tumedat
   režiimi ja Turnstile'i vaikeväärtus "auto" jälgiks külastaja OS-i seadet -
   nii sattus valgele kaardile tume kast. */
.wpcf7-form .wpcf7-turnstile {
  display: block;
  margin: var(--space-4) 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* iframe on vaikimisi inline - baasjoone tõttu tekiks alla paari piksli triip. */
.wpcf7-form .wpcf7-turnstile iframe { display: block; }

.wpcf7-not-valid-tip { display: block; margin-top: var(--space-2); font-size: 0.82rem; color: #c0392b; }
.wpcf7-form .wpcf7-not-valid { border-color: #c0392b; }

.wpcf7-response-output {
  margin: var(--space-5) 0 0 !important;
  padding: var(--space-4) var(--space-5) !important;
  border-width: 1px !important;
  border-radius: var(--radius) !important;
  font-size: var(--step--1);
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--green) !important; background: var(--green-soft); color: var(--green); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #c0392b !important; background: #fdeceb; color: #a5281b; }

.wpcf7-spinner { margin-inline: auto; display: block; }

.form-note {
  margin-top: var(--space-4);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.search-form { display: flex; gap: var(--space-2); }
.search-form .search-field { flex: 1; }
.search-form .search-submit {
  padding-inline: var(--space-5);
  background: var(--brand);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
}

/* 10. JALUS ---------------------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(3rem, 5vw, 4.5rem) var(--space-6);
  font-size: var(--step--1);
}

.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}

.footer__brand .brand__mark { color: var(--white); }
.footer__tagline { margin-top: var(--space-4); max-width: 34ch; line-height: 1.6; }

.site-footer h2, .site-footer .widget__title, .footer__title {
  margin-bottom: var(--space-4);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer ul { list-style: none; display: grid; gap: var(--space-3); }
.site-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color var(--duration) var(--ease); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer__contact { display: grid; gap: var(--space-3); }
.footer__contact a { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 600; }
.footer__contact svg { width: 16px; height: 16px; opacity: 0.6; flex: none; }

.site-footer .btn {
  white-space: nowrap;
  padding-inline: 1.35em;
  font-size: 0.95rem;
  min-height: 48px;
}

.footer__socials { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.footer__socials a:hover { background: var(--navy-600); color: var(--white); transform: translateY(-2px); }
.footer__socials svg { width: 18px; height: 18px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }

/* --- Kleepuv mobiili-CTA -------------------------------------------------- */

.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  display: none;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 320ms var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 48px; padding-inline: 1rem; font-size: 0.95rem; }
.sticky-cta .btn--secondary { flex: 0 0 auto; }
.sticky-cta .btn__arrow { display: none; }

@media (max-width: 780px) {
  body.is-landing .sticky-cta { display: flex; }
  body.is-landing .site-footer { padding-bottom: 5.5rem; }
}

/* --- 404 ------------------------------------------------------------------ */

.error-404 { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-404__code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--navy-100);
}

/* --- Trüki --------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .sticky-cta, .cta-band, .btn { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* --- Menüü sisene CTA (ainult mobiilis) ----------------------------------- */

.nav__mobile-cta { display: none; margin-top: var(--space-6); }
@media (max-width: 1024px) { .nav__mobile-cta { display: block; } }

/* --- Postituse navigatsioon ja kommentaarid ------------------------------- */

.post-nav {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
@media (min-width: 700px) { .post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.post-nav a {
  display: block;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.post-nav a:hover { border-color: var(--brand); background: var(--navy-50); }
.post-nav .nav-next { text-align: right; }

.comments { margin-top: var(--space-9); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.comments__title { font-size: var(--step-2); margin-bottom: var(--space-6); }
.comment-list, .comment-list .children { list-style: none; display: grid; gap: var(--space-5); }
.comment-list .children { margin-top: var(--space-5); padding-left: var(--space-6); border-left: 2px solid var(--border); }
.comment-body { padding: var(--space-5); background: var(--bg-subtle); border-radius: var(--radius); }
.comment-author { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-3); }
.comment-respond { margin-top: var(--space-8); }
.comment-reply-title { font-size: var(--step-2); margin-bottom: var(--space-5); }

.page-links { margin-top: var(--space-6); display: flex; gap: var(--space-2); align-items: center; font-size: var(--step--1); }
.page-links a { padding: 0.35rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; }

/* --- Vidinad -------------------------------------------------------------- */

.widget { margin-bottom: var(--space-7); }
.widget__title { font-size: var(--step-1); margin-bottom: var(--space-4); }
.widget ul { list-style: none; display: grid; gap: var(--space-3); }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }

/* --- WP joondusklassid ---------------------------------------------------- */

.alignleft { float: left; margin: 0 var(--space-5) var(--space-4) 0; }
.alignright { float: right; margin: 0 0 var(--space-4) var(--space-5); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { width: min(100vw - 3rem, 1100px); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.sticky { position: relative; }

/* --- Kontaktinimekiri ----------------------------------------------------- */

.contact-list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.contact-list a, .contact-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.contact-list a:hover { border-color: var(--brand); background: var(--navy-50); color: inherit; }
.contact-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--brand);
}
.contact-list strong { display: block; font-size: var(--step-0); font-weight: 600; }
.contact-list small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--text-muted); }

/* --- Logosein ------------------------------------------------------------- */

.logo-wall {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(min(50%, 200px), 1fr));
  background: rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: var(--space-6);
  background: var(--navy-900);
  transition: background var(--duration) var(--ease);
}
.logo-wall__item:hover { background: var(--navy-800); }
/* Kliendilogod on segamini: osa valgeid, osa tumedaid, osa värvilisi.
   Taandame kõik ühele valgele siluetile tumedal alusel - nii on sein
   ühtlane ja ükski logo ei kao tausta sisse ära. */
.logo-wall__item img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity var(--duration) var(--ease);
}
.logo-wall__item:hover img { opacity: 1; }

/* --- Meeskonna foto ------------------------------------------------------- */

.team__photo {
  margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-5);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-muted);
}
.team__photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- CF7 vana märgistuse ühildamine --------------------------------------- */

.wpcf7-form .form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-bottom: var(--space-4);
}
.wpcf7-form .form-col { min-width: 0; }
.wpcf7-form .form-col--full { grid-column: 1 / -1; }
.wpcf7-form .form-row:empty { display: none; margin: 0; }
.wpcf7-form .form-row > .form-col > label { margin-bottom: 0; }
.wpcf7-form p:empty { display: none; margin: 0; }

/* --- Meeskonna kaart: pilt ja tekst pooleks ------------------------------- */

.team-list { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }

.team-card {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 760px) {
  /* 50% pilt, 50% tekst */
  .team-card { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.team-card__media { position: relative; min-height: 320px; background: var(--bg-muted); }
.team-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.team-card__body h3 { font-size: var(--step-2); margin: 0; }
.team-card__role {
  color: var(--brand);
  font-weight: 600;
  font-size: var(--step--1);
  margin: 0;
}
.team-card__body p { color: var(--text-muted); margin: 0; }

.team-card__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.team-card__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--grey-700);
  text-decoration: none;
}
.team-card__contact a:hover { color: var(--brand); text-decoration: underline; }
.team-card__contact svg { width: 16px; height: 16px; color: var(--brand); }

/* --- Breakdance'iga ehitatud lehe sisu vajab täislaiust ------------------- */

.bd-content { max-width: none; }
.bd-content > p:empty { display: none; }
/* Breakdance mähib sisu .breakdance konteinerisse; esimese sektsiooni
   ülemine hingamisruum tuleb juba page-hero alt. */
.bd-content .breakdance > .bde-section:first-child { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* --- WordPressi tööriistariba --------------------------------------------- */

/* Tööriistariba on position:fixed top:0. Kleepuv päis peab jääma selle alla,
   muidu kaob päis riba taha ära. Riba kõrgus on 32px, alla 783px 46px. */
body.admin-bar { --admin-bar-h: 32px; }
body.admin-bar .site-header { top: var(--admin-bar-h); }
body.admin-bar { scroll-padding-top: calc(var(--header-h) + var(--admin-bar-h) + 1.5rem); }

@media (max-width: 782px) {
  body.admin-bar { --admin-bar-h: 46px; }
}

@media (max-width: 1024px) {
  body.admin-bar .header__nav { top: calc(var(--header-h) + var(--admin-bar-h)); }
}

/* Kleepuv mobiili-CTA ei tohi tööriistariba alla jääda - riba on ekraani
   ülaservas, seega siin muudatust vaja ei ole, aga jätame z-indeksi
   tööriistaribast madalamale. */
.sticky-cta { z-index: 95; }

/* --- Üksiktöö leht -------------------------------------------------------- */

/* Faktiriba hero all: maht, tunnihind, lubadus. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  list-style: none;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 1em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.92);
}
.facts svg { flex: none; opacity: 0.75; }
.facts strong { font-weight: 600; }

/* Mahupaneel sisu järel */
.scope {
  display: grid;
  gap: var(--space-5);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
}
@media (min-width: 720px) {
  .scope { grid-template-columns: 1fr auto; align-items: center; }
}

.scope__figures { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 2.75rem); }
.scope__figure { min-width: 0; }
.scope__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
  white-space: nowrap;
}
.scope__label {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scope__note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--navy-100);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* Lühike kolmesammuline protsess üksiktööl */
.steps--compact li { grid-template-columns: 44px 1fr; gap: var(--space-4); padding-bottom: var(--space-5); }
.steps--compact li::before { width: 44px; height: 44px; font-size: 0.85rem; }
.steps--compact li:not(:last-child)::after { top: 50px; left: 21.5px; }
.steps--compact h3 { font-size: var(--step-1); padding-top: 0.55rem; }

/* Arhiivikaardi mahumärgis */
.service-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.75em;
  border-radius: var(--radius-pill);
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  color: var(--navy-700);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag svg { opacity: 0.7; }
.tag--muted {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-muted);
}

/* --- Hero taustapildiga ---------------------------------------------------- */

/* Avalehe esiletõstetud pilt katab kogu hero ala. Tekst hoiab vasakut poolt,
   pilt jääb paremale - seetõttu on ka varjund vasakult tugevam. */
.hero--image { padding-block: clamp(4.5rem, 3rem + 10vw, 9.5rem) clamp(3.5rem, 2.5rem + 6vw, 6.5rem); }
.hero--image .hero__content { max-width: 44ch; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fookus paremale, kus pildil on sisu; vasak pool jääb teksti alla. */
  object-position: 72% center;
}

/* Pildiga hero ei vaja CSS-i värvipilve ega ruudustikku - selle asemel
   varjund, mis hoiab teksti kontrasti sõltumata sellest, kui hele pilt on. */
.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  height: auto;
  /* Varjundi tugevus on mõõdetud, mitte pakutud: pildi tekstialune osa on
     juba nii tume, et 99% pikslitest annab valge tekstiga üle 6:1. Vaja on
     ainult nii palju, et üksikud heledad osakesed teksti alt ära pehmendada -
     seetõttu jääb pilt ise peaaegu puutumata. */
  background:
    linear-gradient(
      100deg,
      rgba(1, 25, 46, 0.62) 0%,
      rgba(1, 25, 46, 0.46) 26%,
      rgba(1, 25, 46, 0.30) 48%,
      rgba(1, 25, 46, 0.14) 70%,
      rgba(1, 25, 46, 0.10) 100%
    );
}

.hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(1, 25, 46, 0.35) 0%, transparent 20%),
    linear-gradient(0deg, rgba(1, 25, 46, 0.72) 0%, transparent 26%);
  mask-image: none;
  -webkit-mask-image: none;
}

/* Kitsal ekraanil on pilt teksti taga, mitte kõrval - siis peab varjund
   olema ühtlaselt tugev, muidu satub tekst heledatele kohtadele. */
@media (max-width: 860px) {
  .hero--image .hero__content { max-width: none; }
  .hero--image::before {
    background: linear-gradient(
      175deg,
      rgba(1, 25, 46, 0.72) 0%,
      rgba(1, 25, 46, 0.62) 55%,
      rgba(1, 25, 46, 0.74) 100%
    );
  }
  .hero__bg img { object-position: 62% center; }
}
