/* =========================================================
   StartupID — põhistiil (Bootstrap 5.3 peal)
   ========================================================= */

:root {
  --sid-blue: #0072CE;
  --sid-blue-dark: #005499;
  --sid-blue-light: #8FBFEA;
  --sid-black: #0B0B0C;
  --sid-ink-2: #1A1C20;
  --sid-line-dark: #2E3137;
  --sid-white: #FFFFFF;
  --sid-mist: #F4F6F9;
  --sid-line: #D5DAE1;
  --sid-muted: #5A6270;
  --sid-muted-dark: #B7BDC8;
  --sid-radius: 24px;
  --sid-font: 'Sora', system-ui, sans-serif;
  --sid-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Bootstrapi muutujad */
  --bs-primary: var(--sid-blue);
  --bs-primary-rgb: 0, 114, 206;
  --bs-body-font-family: var(--sid-font);
  --bs-body-color: var(--sid-black);
  --bs-link-color: var(--sid-blue);
  --bs-link-color-rgb: 0, 114, 206;
  --bs-link-hover-color: var(--sid-blue-dark);
  --bs-border-radius: 14px;
  --bs-border-radius-lg: 20px;
}

body {
  font-family: var(--sid-font);
  color: var(--sid-black);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h3, h4, h5 { font-weight: 700; letter-spacing: -0.02em; }

.mono { font-family: var(--sid-mono); }
.text-muted-sid { color: var(--sid-muted) !important; }
.bg-mist { background: var(--sid-mist); }
.bg-ink { background: var(--sid-black); color: var(--sid-white); }
.text-sid-blue { color: var(--sid-blue) !important; }

.eyebrow {
  font-family: var(--sid-mono);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sid-blue);
}
.bg-ink .eyebrow { color: var(--sid-blue-light); }

.section { padding: 96px 0; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }

/* ---------- Nupud ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .85rem 1.6rem; }
.btn-sm { padding: .5rem 1.1rem; }
.btn-primary {
  --bs-btn-bg: var(--sid-blue);
  --bs-btn-border-color: var(--sid-blue);
  --bs-btn-hover-bg: var(--sid-blue-dark);
  --bs-btn-hover-border-color: var(--sid-blue-dark);
  --bs-btn-active-bg: var(--sid-blue-dark);
  --bs-btn-active-border-color: var(--sid-blue-dark);
}
.btn-ghost-light {
  color: var(--sid-white);
  border: 1px solid #3A3D44;
}
.btn-ghost-light:hover { color: var(--sid-white); border-color: var(--sid-white); }
.btn-dark { --bs-btn-bg: var(--sid-black); --bs-btn-border-color: var(--sid-black); }

/* ---------- Navigatsioon ---------- */
.sid-nav {
  background: rgba(11, 11, 12, .92);
  backdrop-filter: saturate(140%) blur(10px);
  transition: padding .2s ease, box-shadow .2s ease;
  padding: 18px 0;
}
.sid-nav.is-scrolled { padding: 10px 0; box-shadow: 0 1px 0 var(--sid-line-dark); }
.sid-nav .navbar-brand img { height: 30px; width: auto; }
.sid-nav .nav-link { color: #E4E7EC; font-weight: 500; padding: .5rem .9rem !important; }
.sid-nav .nav-link:hover, .sid-nav .nav-link.active { color: var(--sid-white); }
.sid-nav .navbar-toggler { border-color: #3A3D44; }
.sid-nav .navbar-toggler-icon { filter: invert(1); }

.sid-nav.nav-light { background: rgba(255,255,255,.94); }
.sid-nav.nav-light .nav-link { color: var(--sid-muted); }
.sid-nav.nav-light .nav-link:hover, .sid-nav.nav-light .nav-link.active { color: var(--sid-black); }
.sid-nav.nav-light.is-scrolled { box-shadow: 0 1px 0 var(--sid-line); }
.sid-nav.nav-light .navbar-toggler { border-color: var(--sid-line); }
.sid-nav.nav-light .navbar-toggler-icon { filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--sid-black);
  background-image: radial-gradient(circle, #24262B 1.2px, transparent 1.3px);
  background-size: 28px 28px;
  color: var(--sid-white);
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
.hero .lead { color: var(--sid-muted-dark); font-size: 1.25rem; max-width: 34rem; }
.hl-badge {
  color: var(--sid-blue);
  background: var(--sid-white);
  border-radius: .18em;
  padding: 0 .16em;
  white-space: nowrap;
}

/* ---------- Startup ID kaart ---------- */
.card-stage { position: relative; height: 420px; max-width: 560px; margin-inline: auto; }
.card-stage .card-back {
  position: absolute; left: 12%; top: 6%;
  width: 80%; aspect-ratio: 856 / 540;
  border-radius: 26px; background: var(--sid-blue);
  transform: rotate(8deg);
}
.card-stage .sid-card {
  position: absolute; left: 4%; top: 16%; width: 82%;
  transform: rotate(-5deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.card-stage:hover .sid-card { transform: rotate(-2deg) translateY(-6px); }

.sid-card {
  position: relative;
  aspect-ratio: 856 / 540;
  background: var(--sid-white);
  color: var(--sid-black);
  border-radius: 26px;
  padding: 7% 6.5% 5.5%;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  container-type: inline-size;
}
.sid-card::before {               /* nimesildi pilu */
  content: ""; position: absolute; top: 4%; left: 50%;
  width: 13%; height: 2.2%; min-height: 6px;
  transform: translateX(-50%);
  border-radius: 99px; background: var(--sid-black);
}
.sid-card .sc-top { display: flex; justify-content: space-between; align-items: center; }
.sid-card .sc-top img { height: 7.5cqi; width: auto; }
.sid-card .sc-num { font-family: var(--sid-mono); font-size: 3.2cqi; color: var(--sid-muted); }
.sid-card .sc-body { display: flex; gap: 4.5cqi; align-items: center; }
.sid-card .sc-avatar {
  flex: 0 0 auto;
  width: 19cqi; height: 19cqi; border-radius: 4.4cqi;
  background: var(--sid-mist); border: 2px solid var(--sid-blue);
  display: grid; place-items: center;
  font-weight: 700; font-size: 6.5cqi; color: var(--sid-blue);
}
.sid-card .sc-name { font-size: 5.6cqi; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; word-break: break-word; }
.sid-card .sc-role { font-size: 2.9cqi; color: var(--sid-muted); margin-top: 1.2cqi; }
.sid-card .sc-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqi;
  border-top: 1px dashed var(--sid-line); padding-top: 3cqi;
}
.sid-card .sc-label { font-size: 2.2cqi; letter-spacing: .1em; text-transform: uppercase; color: var(--sid-muted); }
.sid-card .sc-idea { font-size: 3.4cqi; font-weight: 600; line-height: 1.25; }
.sid-card .sc-domain { font-family: var(--sid-mono); font-size: 2.6cqi; color: var(--sid-muted); white-space: nowrap; }

/* ---------- Sammud ---------- */
.step {
  height: 100%;
  border-radius: var(--sid-radius);
  background: var(--sid-mist);
  padding: 32px;
}
.step-num {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--sid-black); color: var(--sid-white);
  font-family: var(--sid-mono); font-weight: 500;
  margin-bottom: 22px;
}

/* ---------- Õpiampsud ---------- */
.filter-pills .btn {
  border: 1px solid var(--sid-line);
  color: var(--sid-black);
  background: var(--sid-white);
  padding: .55rem 1.1rem;
}
.filter-pills .btn.active,
.filter-pills .btn:hover { background: var(--sid-black); border-color: var(--sid-black); color: var(--sid-white); }

.bite {
  height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  border: 1px solid var(--sid-line);
  border-radius: var(--sid-radius);
  background: var(--sid-white);
  color: var(--sid-black);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.bite:hover { transform: translateY(-4px); border-color: var(--sid-black); box-shadow: 0 16px 32px rgba(11,11,12,.08); color: var(--sid-black); }
.bite h3 { font-size: 1.3rem; margin: 0; line-height: 1.25; }
.bite p { color: var(--sid-muted); margin: 0; flex-grow: 1; }
.bite-meta { display: flex; gap: 14px; font-family: var(--sid-mono); font-size: .82rem; color: var(--sid-muted); }
.tag {
  align-self: flex-start;
  font-size: .78rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  background: var(--sid-mist); color: var(--sid-black);
}
.tag-blue { background: var(--sid-blue); color: var(--sid-white); }
.bite-col.is-hidden { display: none; }

/* ---------- Juhendid (teekonnad) ---------- */
.path {
  height: 100%;
  border-radius: var(--sid-radius);
  border: 1px solid var(--sid-line-dark);
  background: var(--sid-ink-2);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.path h3 { color: var(--sid-white); font-size: 1.5rem; margin: 0; }
.path-route { display: flex; align-items: center; gap: 10px; font-family: var(--sid-mono); font-size: .85rem; color: var(--sid-blue-light); }
.path-route .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--sid-blue-light); }
.path-route .dot.filled { background: var(--sid-blue-light); }
.path-route .bar { flex: 1; height: 2px; background: var(--sid-line-dark); }
.path ol { margin: 0; padding-left: 1.2rem; color: var(--sid-muted-dark); }
.path ol li { padding: 4px 0; }
.path .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Startup ID loomine ---------- */
.create-box {
  border-radius: 32px;
  background: var(--sid-mist);
  padding: clamp(28px, 5vw, 64px);
}
.form-control, .form-select {
  border-radius: 14px;
  border-color: var(--sid-line);
  padding: .85rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--sid-blue);
  box-shadow: 0 0 0 .25rem rgba(0, 114, 206, .2);
}
.form-label { font-weight: 600; font-size: .92rem; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk svg { flex: 0 0 auto; margin-top: 3px; color: var(--sid-blue); }
.preview-card-wrap { max-width: 520px; margin-inline: auto; }
.preview-card-wrap .sid-card { box-shadow: 0 24px 48px rgba(11,11,12,.14); }

/* ---------- Kogukond ---------- */
.event {
  display: flex; gap: 22px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--sid-line);
}
.event:first-child { border-top: 1px solid var(--sid-line); }
.event-date {
  flex: 0 0 auto;
  width: 76px; height: 76px; border-radius: 18px;
  background: var(--sid-black); color: var(--sid-white);
  display: grid; place-items: center; text-align: center;
  font-family: var(--sid-mono); font-size: .8rem; line-height: 1.2;
}
.event-date b { display: block; font-family: var(--sid-font); font-size: 1.5rem; }
.event h3 { font-size: 1.15rem; margin: 0 0 4px; }
.event p { margin: 0; color: var(--sid-muted); }

.quote-card {
  border-radius: var(--sid-radius);
  background: var(--sid-blue); color: var(--sid-white);
  padding: 36px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.quote-card blockquote { font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; margin: 0; }

/* ---------- Uudiskiri ---------- */
.newsletter {
  border-radius: 32px;
  background: var(--sid-black); color: var(--sid-white);
  padding: clamp(32px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.newsletter::after {
  content: ""; position: absolute; right: -110px; bottom: -130px;
  width: 240px; height: 240px; border-radius: 56px;
  background: var(--sid-blue); transform: rotate(18deg);
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter .form-control { background: var(--sid-ink-2); border-color: var(--sid-line-dark); color: var(--sid-white); }
.newsletter .form-control::placeholder { color: #8A909B; }

/* ---------- Jalus ---------- */
.sid-footer { background: var(--sid-black); color: var(--sid-muted-dark); padding: 72px 0 40px; }
.sid-footer img { height: 32px; width: auto; }
.sid-footer h4 { color: var(--sid-white); font-size: .85rem; font-family: var(--sid-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.sid-footer a { color: var(--sid-muted-dark); text-decoration: none; }
.sid-footer a:hover { color: var(--sid-white); }
.sid-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sid-footer .footer-bottom { border-top: 1px solid var(--sid-line-dark); margin-top: 48px; padding-top: 24px; font-size: .9rem; }

/* =========================================================
   LOGOLEHT
   ========================================================= */
.brand-hero {
  padding: 160px 0 80px;
  background: var(--sid-mist);
}
.brand-hero .logo-xl { width: min(760px, 100%); height: auto; }

.equation {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.03em;
}
.equation .op { color: var(--sid-muted); font-weight: 400; }
.equation .chip { padding: 6px 18px; border-radius: 14px; background: var(--sid-mist); }
.equation .chip.blue { background: var(--sid-blue); color: var(--sid-white); }
.equation .result { color: var(--sid-blue); }

.variant {
  border-radius: var(--sid-radius);
  overflow: hidden;
  border: 1px solid var(--sid-line);
  height: 100%;
  display: flex; flex-direction: column;
}
.variant-stage { min-height: 240px; display: grid; place-items: center; padding: 40px; flex-grow: 1; }
.variant-stage img { max-width: 100%; height: 64px; width: auto; }
.variant-stage img.icon-img { height: 112px; }
.variant-info {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; background: var(--sid-white);
  border-top: 1px solid var(--sid-line);
  font-size: .92rem;
}
.variant-info a { font-weight: 600; text-decoration: none; white-space: nowrap; }

.anatomy {
  position: relative;
  border-radius: var(--sid-radius);
  background: var(--sid-white);
  border: 1px solid var(--sid-line);
  padding: 64px 32px;
  display: grid; place-items: center;
}
.anatomy .clear {
  position: relative;
  outline: 2px dashed var(--sid-blue-light);
  outline-offset: 36px;
}
.anatomy .clear img { height: 90px; width: auto; display: block; }
.anatomy-label {
  font-family: var(--sid-mono); font-size: .8rem; color: var(--sid-muted);
  margin-top: 64px; text-align: center;
}

/* Badge'i konstruktsioon */
.construct-stage {
  border-radius: var(--sid-radius);
  background: var(--sid-mist);
  background-image:
    linear-gradient(rgba(0,114,206,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,114,206,.07) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: clamp(48px, 8vw, 88px);
  display: grid; place-items: center;
}
.construct { position: relative; width: min(320px, 100%); aspect-ratio: 1; }
.construct img { width: 100%; height: 100%; display: block; }
.construct .c-box {             /* ID tindiala */
  position: absolute; left: 18.4%; right: 18.4%; top: 32.2%; bottom: 22.9%;
  outline: 1.5px dashed #FFB000; outline-offset: 0;
}
.construct .c-slot {
  position: absolute; left: 37%; right: 37%; top: 6.2%; height: 5.4%;
  outline: 1.5px dashed #FFB000; border-radius: 99px;
}
.construct .c-dim {
  position: absolute; font-family: var(--sid-mono); font-size: .78rem;
  color: var(--sid-black); background: #FFB000; border-radius: 6px; padding: 2px 7px;
  line-height: 1.3; white-space: nowrap;
}
.construct .c-dim-l { left: 9.2%; top: 60%; transform: translate(-50%, -50%); }
.construct .c-dim-r { right: 9.2%; top: 60%; transform: translate(50%, -50%); }
.construct .c-dim-w { left: 50%; bottom: -36px; transform: translateX(-50%); background: var(--sid-black); color: var(--sid-white); }
.construct .c-dim-h { right: -36px; top: 50%; transform: translateY(-50%); background: var(--sid-black); color: var(--sid-white); }
.construct::before, .construct::after { content: ""; position: absolute; background: var(--sid-black); }
.construct::before { left: 0; right: 0; bottom: -24px; height: 1.5px; }
.construct::after { top: 0; bottom: 0; right: -24px; width: 1.5px; }

.construct-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.construct-list li { display: flex; gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--sid-line); }
.construct-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.construct-list .mono { flex: 0 0 64px; color: var(--sid-blue); font-weight: 500; }
.construct-list li > span:last-child { color: var(--sid-muted); }

.swatch {
  border-radius: var(--sid-radius);
  padding: 24px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  transition: transform .2s ease;
}
.swatch:hover { transform: translateY(-3px); }
.swatch b { font-size: 1.2rem; }
.swatch .mono { font-size: .88rem; opacity: .85; }
.swatch .copied { font-size: .8rem; font-weight: 600; opacity: 0; transition: opacity .2s; }
.swatch.is-copied .copied { opacity: 1; }

.type-specimen {
  border-radius: var(--sid-radius);
  background: var(--sid-mist);
  padding: 36px;
  height: 100%;
}
.type-specimen.bg-ink { background: var(--sid-black); color: var(--sid-white); }
.type-specimen .big { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.weights span { display: inline-block; margin-right: 18px; font-size: 1.3rem; }

.rule {
  border-radius: var(--sid-radius);
  border: 1px solid var(--sid-line);
  overflow: hidden;
  height: 100%;
}
.rule-stage { height: 170px; display: grid; place-items: center; background: var(--sid-mist); overflow: hidden; }
.rule-stage img { height: 44px; width: auto; }
.rule-body { padding: 16px 20px; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.rule-body .mark { font-weight: 700; }
.rule.do .mark { color: #0A7A3E; }
.rule.dont .mark { color: #B42318; }

.dont-stretch img { transform: scaleX(1.5); }
.dont-busy { background-image: repeating-linear-gradient(45deg, #FFB000 0 14px, #E5007E 14px 28px) !important; }
.dont-recolor img { filter: hue-rotate(150deg) saturate(1.6); }

/* Ligipääsetavus */
:focus-visible { outline: 3px solid var(--sid-blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   AVALEHT — miks iduettevõtlus
   ========================================================= */
.hero-home { padding: 150px 0 90px; }
.hero-home h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.hero-photo { position: relative; margin: 0; }
.hero-photo > img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 55% 40%;
  border-radius: 28px;
}
.hero-chip {
  position: absolute; left: -18px; bottom: 28px;
  display: flex; gap: 14px; align-items: center;
  background: var(--sid-white); color: var(--sid-black);
  border-radius: 20px; padding: 14px 20px 14px 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.hero-chip-label { font-family: var(--sid-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sid-muted); }
.hero-chip-title { font-weight: 700; }
@media (max-width: 575.98px) { .hero-chip { left: 12px; bottom: 12px; } }

/* Märksõnade riba */
.word-strip { background: var(--sid-blue); color: var(--sid-white); overflow: hidden; padding: 18px 0; }
.word-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: sid-marquee 38s linear infinite; }
.word-track span { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.word-track i { width: 14px; height: 14px; border-radius: 4px; background: var(--sid-white); opacity: .5; flex: 0 0 auto; }
@keyframes sid-marquee { to { transform: translateX(-50%); } }

/* Fotoraam */
.photo-frame { margin: 0; }
.photo-frame img { width: 100%; height: auto; display: block; border-radius: var(--sid-radius); aspect-ratio: 4/3; object-fit: cover; }

/* Tunnused */
.trait { height: 100%; padding: 28px; border-radius: var(--sid-radius); border: 1px solid var(--sid-line); }
.trait-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--sid-blue); color: var(--sid-white); display: grid; place-items: center; margin-bottom: 18px; }

/* Võrdlus */
.compare { border-radius: 28px; background: var(--sid-mist); padding: clamp(24px, 4vw, 44px); }
.compare-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.compare-toggle { display: inline-flex; background: var(--sid-white); border: 1px solid var(--sid-line); border-radius: 999px; padding: 4px; }
.compare-toggle button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 999px; color: var(--sid-muted); min-height: 44px; }
.compare-toggle button.active { background: var(--sid-black); color: var(--sid-white); }
.compare-toggle button[data-compare="idu"].active { background: var(--sid-blue); }
.compare-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--sid-line); align-items: baseline; }
.compare-k { font-family: var(--sid-mono); font-size: .85rem; color: var(--sid-muted); }
.compare-row > span:not(.compare-k) { font-size: 1.1rem; font-weight: 500; }
[data-compare-view="tava"] .c-idu, [data-compare-view="idu"] .c-tava { display: none; }
[data-compare-view="idu"] .c-idu { color: var(--sid-blue-dark); }
@media (max-width: 575.98px) { .compare-row { grid-template-columns: 1fr; gap: 4px; } }

/* Põhjused */
.reason { height: 100%; background: var(--sid-white); border-radius: var(--sid-radius); padding: 26px; }
.reason-n { font-family: var(--sid-mono); color: var(--sid-blue); font-size: .9rem; }
.reason h3 { font-size: 1.2rem; margin: 10px 0 8px; line-height: 1.25; }
.reason p { color: var(--sid-muted); margin: 0; }

.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 100%; min-height: 560px; }
.collage figure { margin: 0; overflow: hidden; border-radius: var(--sid-radius); }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-a { grid-row: 1 / 3; }
.collage-a img { object-position: 30% 50%; }
@media (max-width: 991.98px) { .collage { min-height: 0; grid-template-rows: 240px 240px; } }
@media (max-width: 575.98px) { .collage { grid-template-rows: 180px 180px; gap: 10px; } }

/* Eesti lugu */
.story-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 16px; }
.story { position: relative; margin: 0; overflow: hidden; border-radius: var(--sid-radius); }
.story img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.story:hover img { transform: scale(1.04); }
.story-big { grid-row: 1 / 3; }
.story:nth-child(2) { grid-column: 2 / 4; }
.story figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 60px 20px 18px;
  background: linear-gradient(to top, rgba(11,11,12,.92), rgba(11,11,12,0));
  color: #E4E7EC; font-size: .95rem; line-height: 1.45;
}
.story figcaption strong { color: var(--sid-white); }
.story-tag { display: block; width: fit-content; margin-bottom: 8px; font-family: var(--sid-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sid-white); background: var(--sid-blue); border-radius: 6px; padding: 3px 8px; }
.story-big figcaption { font-size: 1.05rem; padding: 90px 28px 26px; }
@media (max-width: 991.98px) {
  .story-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 220px 220px; }
  .story-big { grid-row: auto; grid-column: 1 / 3; }
  .story:nth-child(2) { grid-column: 1 / 3; }
}
@media (max-width: 575.98px) {
  .story-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 260px; }
  .story-big, .story:nth-child(2) { grid-column: auto; }
}
.fact { height: 100%; border: 1px solid var(--sid-line-dark); border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.fact b { color: var(--sid-white); font-size: 1.1rem; }
.fact span { color: var(--sid-muted-dark); }

/* Müüdid */
.myth-acc { --bs-accordion-border-color: var(--sid-line); --bs-accordion-border-radius: 20px; --bs-accordion-inner-border-radius: 19px; --bs-accordion-active-bg: var(--sid-mist); --bs-accordion-active-color: var(--sid-black); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(0,114,206,.2); }
.myth-acc .accordion-button { font-weight: 700; font-size: 1.1rem; gap: 14px; padding: 20px 24px; }
.myth-acc .accordion-body { padding: 4px 24px 24px; font-size: 1.05rem; color: var(--sid-muted); }
.myth-tag, .truth-tag { flex: 0 0 auto; font-family: var(--sid-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 3px 8px; font-weight: 500; }
.myth-tag { background: var(--sid-black); color: var(--sid-white); }
.truth-tag { background: var(--sid-blue); color: var(--sid-white); margin-right: 10px; }

/* Test */
.quiz-box { border-radius: 32px; overflow: hidden; border: 1px solid var(--sid-line); background: var(--sid-white); }
.quiz-photo { position: relative; min-height: 280px; }
.quiz-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 75%; display: block; }
.quiz-body { padding: clamp(28px, 5vw, 56px); }
.quiz-q { margin-bottom: 22px; }
.quiz-q legend { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-opts .btn { border: 1px solid var(--sid-line); background: var(--sid-white); color: var(--sid-black); padding: .6rem 1.1rem; font-weight: 500; min-height: 44px; }
.quiz-opts .btn:hover { border-color: var(--sid-black); }
.quiz-opts .btn-check:checked + .btn { background: var(--sid-blue); border-color: var(--sid-blue); color: var(--sid-white); }
.quiz-opts .btn-check:focus-visible + .btn { outline: 3px solid var(--sid-blue); outline-offset: 2px; }
.quiz-result { display: flex; gap: 22px; align-items: flex-start; padding: 24px; border-radius: 22px; background: var(--sid-mist); }
.quiz-result:focus { outline: none; }
.quiz-result-badge { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 18px; background: var(--sid-blue); color: var(--sid-white); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; font-family: var(--sid-mono); }

/* Pakkumise bento */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.bento-card { position: relative; border-radius: var(--sid-radius); padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11,11,12,.12); }
.bento-card h3 { font-size: 1.45rem; margin: 6px 0 0; }
.bento-card p { margin: 0; }
.bento-photo { grid-row: 1 / 3; padding: 0; color: var(--sid-white); }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-overlay { position: relative; margin-top: auto; padding: 120px 28px 28px; background: linear-gradient(to top, rgba(11,11,12,.9), rgba(11,11,12,0)); display: flex; flex-direction: column; gap: 10px; }
.bento-overlay p { color: #DDE2EA; }
.bento-dark { background: var(--sid-black); color: var(--sid-white); }
.bento-dark p { color: var(--sid-muted-dark); }
.bento-dark .tag { background: var(--sid-ink-2); color: var(--sid-white); }
.bento-light { background: var(--sid-white); color: var(--sid-black); }
.bento-light p { color: var(--sid-muted); }
.bento-blue { grid-column: 2 / 4; background: var(--sid-blue); color: var(--sid-white); }
.bento-blue p { color: #DCEBFA; max-width: 30rem; }
.bento-logo { height: 34px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.bento-arrow { position: absolute; right: 24px; bottom: 20px; font-size: 1.6rem; transition: transform .25s ease; }
.bento-card:hover .bento-arrow { transform: translateX(4px); }
@media (max-width: 991.98px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 380px auto auto; }
  .bento-photo { grid-row: auto; grid-column: 1 / 3; }
  .bento-blue { grid-column: 1 / 3; }
}
@media (max-width: 575.98px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: 360px; }
  .bento-photo, .bento-blue { grid-column: auto; }
}
.bento-card .tag { align-self: flex-start; }

/* Lõpu CTA */
.final-cta { border-radius: 32px; background: var(--sid-black); color: var(--sid-white); padding: clamp(32px, 6vw, 72px); background-image: radial-gradient(circle, #24262B 1.2px, transparent 1.3px); background-size: 28px 28px; }
.final-equation { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px; border-radius: 24px; border: 1px solid var(--sid-line-dark); background: rgba(26,28,32,.8); }
.final-equation img { width: min(340px, 100%); height: auto; }
.final-equation .mono { color: var(--sid-blue-light); }

/* ---------- Tunnuste ikoonid: offset ID-badge ---------- */
.traits { padding-top: 26px; }
.trait { position: relative; padding-top: 64px; background: var(--sid-white); transition: border-color .25s ease, transform .25s ease; }
.trait:hover { border-color: var(--sid-black); transform: translateY(-3px); }
.trait .trait-ico {
  position: absolute; top: -30px; left: 26px;
  width: 68px; height: 68px; border-radius: 18px; margin: 0;
  padding-top: 8px;
  transform: rotate(-7deg);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  z-index: 1;
}
.trait .trait-ico::after {          /* nimesildi pilu */
  content: ""; position: absolute; top: 7px; left: 50%;
  width: 20px; height: 5px; margin-left: -10px;
  border-radius: 3px; background: var(--sid-white);
}
.trait .trait-ico::before {         /* nihutatud vari-kaart */
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  border: 2px solid var(--sid-black);
  transform: translate(9px, 9px) rotate(9deg);
  z-index: -1;
}
/* kõik kolm: sama stiil (sinine badge, sinine katkendjoonega vari) */
.traits .trait .trait-ico { transform: rotate(-3deg); }
.traits .trait .trait-ico::before { border: 2px dashed var(--sid-blue); transform: translate(10px, 6px) rotate(12deg); }
.trait:hover .trait-ico { transform: rotate(0deg) translateY(-4px) !important; }

/* ---------- VS võrdlus ---------- */
.versus-wrap { margin-top: 24px; }
.versus-wrap .compare-head { margin-bottom: 28px; align-items: flex-end; }
.versus { position: relative; display: flex; gap: 20px; align-items: stretch; }
.vs-side {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--sid-line);
  background: var(--sid-white);
  cursor: pointer;
  transition: flex-grow .6s cubic-bezier(.2,.8,.2,1), opacity .4s ease, border-color .3s ease, box-shadow .3s ease;
}
.vs-photo { position: relative; margin: 0; height: 360px; overflow: hidden; }
.vs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .5s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.vs-tava .vs-photo img { object-position: 50% 28%; }
.vs-idu .vs-photo img { object-position: 50% 42%; }
.vs-label {
  position: absolute; left: 20px; bottom: 20px;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em;
  padding: 8px 16px; border-radius: 12px;
  background: var(--sid-white); color: var(--sid-black);
}
.vs-idu .vs-label { background: var(--sid-blue); color: var(--sid-white); left: auto; right: 20px; }
.vs-body { padding: 24px 26px 28px; }
.vs-motto { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 18px; }
.vs-list { margin: 0; display: grid; }
.vs-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--sid-line); }
.vs-list dt { font-family: var(--sid-mono); font-size: .78rem; font-weight: 500; color: var(--sid-muted); padding-top: 3px; }
.vs-list dd { margin: 0; font-weight: 500; }

/* aktiivne pool */
[data-compare-view="idu"] .vs-idu,
[data-compare-view="tava"] .vs-tava { flex-grow: 1.45; box-shadow: 0 24px 48px rgba(11,11,12,.12); }
[data-compare-view="idu"] .vs-idu { border-color: var(--sid-blue); }
[data-compare-view="tava"] .vs-tava { border-color: var(--sid-black); }
[data-compare-view="idu"] .vs-tava,
[data-compare-view="tava"] .vs-idu { opacity: .72; }
[data-compare-view="idu"] .vs-tava .vs-photo img,
[data-compare-view="tava"] .vs-idu .vs-photo img { filter: grayscale(1) contrast(.95); }
[data-compare-view="idu"] .vs-idu .vs-photo img,
[data-compare-view="tava"] .vs-tava .vs-photo img { transform: scale(1.03); }
[data-compare-view="idu"] .vs-idu dd { color: var(--sid-blue-dark); }

.vs-badge {
  position: absolute; z-index: 2;
  top: 300px; left: 50%;
  transition: left .6s cubic-bezier(.2,.8,.2,1);
  transform: translate(-50%, 0) rotate(-6deg);
  width: 84px; height: 84px; border-radius: 22px;
  background: var(--sid-black); color: var(--sid-white);
  display: grid; place-items: center;
  font-family: var(--sid-mono); font-weight: 500; font-size: 1.4rem;
  box-shadow: 0 0 0 6px var(--sid-white);
}
.vs-badge::before { content: ""; position: absolute; top: 9px; left: 50%; width: 24px; height: 5px; margin-left: -12px; border-radius: 3px; background: var(--sid-white); }
.vs-badge span { padding-top: 6px; }
/* badge järgib piiri: aktiivne pool 1.45 / passiivne 1 */
[data-compare-view="idu"] .vs-badge { left: calc((100% - 20px) * (1 / 2.45) + 10px); }
[data-compare-view="tava"] .vs-badge { left: calc((100% - 20px) * (1.45 / 2.45) + 10px); }

.vs-note { margin: 24px 0 0; padding: 18px 22px; border-radius: 16px; background: var(--sid-mist); color: var(--sid-muted); }
.vs-note b { color: var(--sid-black); }

@media (max-width: 767.98px) {
  .versus { flex-direction: column; gap: 14px; }
  .vs-photo { height: 260px; }
  .vs-badge, [data-compare-view] .vs-badge { position: relative; top: auto; left: auto; transform: rotate(-6deg); margin: -44px auto; width: 68px; height: 68px; font-size: 1.15rem; }
  [data-compare-view="idu"] .vs-tava, [data-compare-view="tava"] .vs-idu { opacity: .85; }
  .vs-list > div { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vs-side, .vs-badge, .vs-photo img { transition: none !important; } }

/* =========================================================
   ÕPIAMPSUD
   ========================================================= */
.amps-hero {
  background-color: var(--sid-black);
  background-image: radial-gradient(circle, #24262B 1.2px, transparent 1.3px);
  background-size: 28px 28px;
  color: var(--sid-white);
  padding: 150px 0 56px;
}
.amps-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.amps-hero .lead { color: var(--sid-muted-dark); max-width: 36rem; }
.amps-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; justify-content: flex-start; }
@media (min-width: 992px) { .amps-stats { justify-content: flex-end; } }
.amps-stats li { border: 1px solid var(--sid-line-dark); border-radius: 18px; padding: 14px 18px; min-width: 104px; display: flex; flex-direction: column; }
.amps-stats b { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.amps-stats span { font-size: .85rem; color: var(--sid-muted-dark); margin-top: 6px; }

.amps-search { position: relative; margin-top: 40px; }
.amps-search input {
  width: 100%; height: 68px;
  border-radius: 20px; border: 2px solid transparent;
  background: var(--sid-white); color: var(--sid-black);
  font: inherit; font-size: 1.15rem;
  padding: 0 60px 0 60px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.amps-search input:focus { outline: none; border-color: var(--sid-blue); box-shadow: 0 0 0 5px rgba(0,114,206,.35); }
.amps-search input::-webkit-search-cancel-button { display: none; }
.amps-search-ico { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--sid-muted); pointer-events: none; }
.amps-search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: var(--sid-mist); color: var(--sid-black); display: grid; place-items: center;
}
.amps-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: .9rem; color: var(--sid-muted-dark); }
.amps-suggest button {
  border: 1px solid var(--sid-line-dark); background: transparent; color: var(--sid-white);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .88rem; min-height: 36px;
}
.amps-suggest button:hover { border-color: var(--sid-white); }

.amps-main { padding-top: 56px; }

/* Külgriba */
.amps-side { position: sticky; top: 96px; }
.amps-side-title { font-family: var(--sid-mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sid-muted); margin-bottom: 12px; }
.amps-topics { display: flex; flex-direction: column; gap: 4px; }
.amps-topics button {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 0; border-radius: 14px; background: transparent;
  font: inherit; font-weight: 600; color: var(--sid-black); text-align: left;
  transition: background .2s ease;
}
.amps-topics button:hover { background: var(--sid-mist); }
.amps-topics button.active { background: var(--sid-black); color: var(--sid-white); }
.amps-n { font-family: var(--sid-mono); font-size: .8rem; font-weight: 500; min-width: 28px; text-align: center; padding: 2px 8px; border-radius: 8px; background: var(--sid-mist); color: var(--sid-muted); }
.amps-topics button.active .amps-n { background: var(--sid-blue); color: var(--sid-white); }

.amps-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.amps-levels button { border: 1px solid var(--sid-line); background: var(--sid-white); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; font-weight: 500; min-height: 40px; }
.amps-levels button.active { background: var(--sid-blue); border-color: var(--sid-blue); color: var(--sid-white); }

.amps-progress { margin-top: 28px; padding: 20px; border-radius: 20px; background: var(--sid-mist); }
.amps-bar { height: 10px; border-radius: 99px; background: var(--sid-white); overflow: hidden; }
.amps-bar span { display: block; height: 100%; width: 0; background: var(--sid-blue); border-radius: inherit; transition: width .5s cubic-bezier(.2,.8,.2,1); }

@media (max-width: 991.98px) {
  .amps-side { position: static; }
  .amps-topics { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .amps-topics button { width: auto; flex: 0 0 auto; gap: 10px; border: 1px solid var(--sid-line); }
  .amps-progress { display: none; }
}

/* Nimekiri */
.amps-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.amps-card { position: relative; }
.amps-num { font-size: .85rem; color: var(--sid-muted); }
.amps-card mark { background: #CFE3F7; color: inherit; padding: 0 2px; border-radius: 3px; }
.amps-card.is-done { background: var(--sid-mist); }
.amps-done-flag { color: var(--sid-blue-dark); font-weight: 500; }
.amps-empty { text-align: center; padding: 64px 24px; border: 2px dashed var(--sid-line); border-radius: var(--sid-radius); }

/* Lugemisvaade */
.amps-reader { max-width: 760px; }
.amps-reader:focus { outline: none; }
.amps-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-bottom: 24px; min-height: 44px; }
.amps-meta { font-size: .85rem; color: var(--sid-muted); }
.amps-reader-head { padding-bottom: 28px; border-bottom: 1px solid var(--sid-line); margin-bottom: 28px; }
.amps-body { font-size: 1.08rem; line-height: 1.7; }
.amps-body h3 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.amps-body ul, .amps-body ol { padding-left: 1.3rem; }
.amps-body li { margin-bottom: .4rem; }
.amps-body li::marker { color: var(--sid-blue); font-weight: 700; }
.amps-tip {
  position: relative; margin: 2rem 0 0; padding: 22px 24px 22px 24px;
  border-radius: 18px; background: var(--sid-mist);
  border: 2px dashed var(--sid-blue);
}
.amps-tip b { color: var(--sid-blue-dark); }
.amps-dl { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 1.5rem 0 0; }
.amps-dl dt, .amps-dl dd { padding: 14px 0; border-top: 1px solid var(--sid-line); margin: 0; }
.amps-dl dt { font-weight: 700; padding-right: 16px; }
@media (max-width: 575.98px) { .amps-dl { grid-template-columns: 1fr; } .amps-dl dd { border-top: 0; padding-top: 0; } }
.amps-done-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 40px 0; }
.amps-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.amps-pg { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--sid-line); border-radius: 18px; text-decoration: none; color: var(--sid-black); transition: border-color .2s ease; }
.amps-pg:hover { border-color: var(--sid-black); color: var(--sid-black); }
.amps-pg .mono { font-size: .8rem; color: var(--sid-blue); }
.amps-pg.next { text-align: right; }
@media (max-width: 575.98px) { .amps-pager { grid-template-columns: 1fr; } .amps-pg.next { text-align: left; } }

/* ---------- Õpiampsud v2: filtrid üleval, read piltidega ---------- */
.amps-hero { padding: 150px 0 110px; }
.amps-main { padding: 0 0 96px; }

.amps-controls {
  position: relative; z-index: 2;
  margin-top: -64px; margin-bottom: 48px;
  padding: 24px;
  border-radius: 28px;
  background: var(--sid-white);
  box-shadow: 0 24px 60px rgba(11,11,12,.12), 0 0 0 1px var(--sid-line);
}
.amps-controls[hidden] { display: none; }
.amps-controls .amps-search { margin: 0; }
.amps-controls .amps-search input { height: 60px; border: 2px solid var(--sid-line); box-shadow: none; background: var(--sid-mist); }
.amps-controls .amps-search input:focus { background: var(--sid-white); border-color: var(--sid-blue); box-shadow: 0 0 0 5px rgba(0,114,206,.18); }
.amps-controls .amps-search-clear { background: var(--sid-white); }

.amps-filterbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 18px; }
.amps-controls .amps-topics { flex-direction: row; flex-wrap: wrap; gap: 8px; overflow: visible; padding: 0; }
.amps-controls .amps-topics button {
  width: auto; flex: 0 0 auto; gap: 10px; min-height: 44px; padding: 8px 10px 8px 16px;
  border: 1px solid var(--sid-line); border-radius: 999px; background: var(--sid-white);
}
.amps-controls .amps-topics button:hover { border-color: var(--sid-black); background: var(--sid-white); }
.amps-controls .amps-topics button.active { background: var(--sid-black); border-color: var(--sid-black); color: var(--sid-white); }
.amps-controls .amps-n { border-radius: 999px; }
.amps-controls .amps-levels { gap: 4px; padding: 4px; border-radius: 999px; background: var(--sid-mist); }
.amps-controls .amps-levels button { border: 0; background: transparent; color: var(--sid-muted); min-height: 38px; }
.amps-controls .amps-levels button.active { background: var(--sid-blue); color: var(--sid-white); }
.amps-controls .amps-suggest { color: var(--sid-muted); margin-top: 14px; }
.amps-controls .amps-suggest button { border-color: var(--sid-line); color: var(--sid-black); }
.amps-controls .amps-suggest button:hover { border-color: var(--sid-black); }
@media (max-width: 767.98px) {
  .amps-controls { padding: 16px; margin-top: -48px; border-radius: 22px; }
  .amps-controls .amps-topics { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .amps-controls .amps-levels { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .amps-controls .amps-levels button { flex: 0 0 auto; }
}

.amps-toolbar { align-items: flex-end; }
.amps-toolbar .amps-progress { display: flex; flex-direction: column; gap: 8px; min-width: 200px; margin: 0; padding: 0; background: none; }
.amps-toolbar .amps-bar { background: var(--sid-mist); }

/* Read */
.amps-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.amps-row {
  display: grid; grid-template-columns: 300px 1fr auto; gap: 28px; align-items: center;
  padding: 14px 28px 14px 14px;
  border: 1px solid var(--sid-line); border-radius: 26px;
  background: var(--sid-white); color: var(--sid-black); text-decoration: none;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.amps-row:hover { border-color: var(--sid-black); box-shadow: 0 16px 36px rgba(11,11,12,.08); transform: translateY(-2px); color: var(--sid-black); }
.amps-row-img { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; }
.amps-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.amps-row:hover .amps-row-img img { transform: scale(1.04); }
.amps-row-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.amps-row-top { display: flex; align-items: center; gap: 12px; }
.amps-row-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.amps-row-sum { color: var(--sid-muted); font-size: 1.02rem; }
.amps-row mark { background: #CFE3F7; color: inherit; padding: 0 2px; border-radius: 3px; }
.amps-row-go {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sid-mist); color: var(--sid-black);
  transition: background .2s ease, color .2s ease, transform .25s ease;
}
.amps-row:hover .amps-row-go { background: var(--sid-blue); color: var(--sid-white); transform: translateX(3px); }
.amps-row.is-done { background: var(--sid-mist); }
.amps-row.is-done .amps-row-go { background: var(--sid-white); }

@media (max-width: 991.98px) {
  .amps-row { grid-template-columns: 220px 1fr; gap: 20px; padding-right: 20px; }
  .amps-row-go { display: none; }
  .amps-row-title { font-size: 1.25rem; }
}
@media (max-width: 575.98px) {
  .amps-row { grid-template-columns: 1fr; padding: 12px 12px 20px; gap: 16px; }
  .amps-row-body { padding: 0 8px; }
}

/* Lugemisvaade */
.amps-reader { max-width: 820px; margin: 48px auto 0; }
.amps-reader-img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; max-height: 360px; object-fit: cover; border-radius: 26px; margin-bottom: 32px; }

/* ---------- Õpiampsud v3: filtrid külgribal ---------- */
.amps-reader { margin: 0; max-width: none; }
.amps-side .amps-topics button { min-height: 46px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .amps-row { grid-template-columns: 220px 1fr auto; gap: 22px; }
  .amps-row-title { font-size: 1.3rem; }
}
@media (max-width: 991.98px) {
  .amps-side .amps-levels { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .amps-side .amps-levels button { flex: 0 0 auto; }
}

/* Konfetti */
.sid-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2000; }
.amps-cheer {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--sid-black);
  animation: sid-pop .5s cubic-bezier(.2,1.4,.4,1);
}
.amps-cheer::before {
  content: ""; width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto;
  background: var(--sid-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@keyframes sid-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.btn.is-celebrating { animation: sid-bump .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes sid-bump { 30% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .amps-cheer, .btn.is-celebrating { animation: none; } }

/* =========================================================
   MIS ON IDUFIRMA?
   ========================================================= */
.page-hero { padding: 150px 0 90px; }
.page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.page-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.page-toc a { color: var(--sid-white); text-decoration: none; border: 1px solid #3A3D44; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.page-toc a:hover { border-color: var(--sid-white); }

.key { height: 100%; padding: 28px; border-radius: var(--sid-radius); background: var(--sid-mist); position: relative; overflow: hidden; }
.key-n { font-family: var(--sid-mono); font-size: 3.2rem; line-height: 1; color: var(--sid-blue); opacity: .9; display: block; margin-bottom: 18px; }
.key h3 { font-size: 1.3rem; margin-bottom: 8px; }
.key p { color: var(--sid-muted); margin: 0; }

.info-box { height: 100%; padding: clamp(24px, 4vw, 40px); border-radius: 28px; border: 1px solid var(--sid-line); }
.info-box-dark { background: var(--sid-black); color: var(--sid-white); border-color: var(--sid-black); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--sid-line); }
.info-list b { font-weight: 700; }
.info-list span { color: var(--sid-muted); }
@media (max-width: 575.98px) { .info-list li { grid-template-columns: 1fr; gap: 2px; } }
.check-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: #DDE2EA; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--sid-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Elutsükkel */
.lifecycle { background: var(--sid-white); border-radius: 32px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 0 0 1px var(--sid-line); }
.lc-chart { position: relative; height: 260px; margin: 8px 8px 28px 28px; }
.lc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc-axis-zero { position: absolute; left: -24px; top: 50%; transform: translateY(-50%); font-family: var(--sid-mono); font-size: .8rem; color: var(--sid-muted); }
.lc-ylabel { position: absolute; left: -28px; top: 0; font-family: var(--sid-mono); font-size: .75rem; color: var(--sid-muted); transform: rotate(-90deg) translateX(-100%); transform-origin: left top; white-space: nowrap; }
.lc-valley { position: absolute; left: 17%; width: 33%; bottom: 8px; text-align: center; font-family: var(--sid-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sid-muted); }
.lc-dot {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: var(--sid-white); border: 4px solid var(--sid-line);
  cursor: pointer; transition: transform .3s cubic-bezier(.2,1.4,.4,1), border-color .2s, background .2s;
}
.lc-dot.is-past { border-color: var(--sid-blue); background: var(--sid-blue); }
.lc-dot.active { border-color: var(--sid-blue); background: var(--sid-white); transform: scale(1.5); box-shadow: 0 0 0 8px rgba(0,114,206,.15); }

.lc-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.lc-steps button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 16px; min-height: 64px; border-radius: 16px; border: 1px solid var(--sid-line);
  background: var(--sid-white); font: inherit; font-weight: 700; text-align: left; color: var(--sid-black);
  position: relative; transition: background .2s, border-color .2s;
}
.lc-steps button .mono { font-size: .75rem; font-weight: 500; color: var(--sid-muted); }
.lc-steps button:hover { border-color: var(--sid-black); }
.lc-steps button.is-past { background: var(--sid-mist); }
.lc-steps button.is-past .mono { color: var(--sid-blue); }
.lc-steps button.active { background: var(--sid-blue); border-color: var(--sid-blue); color: var(--sid-white); }
.lc-steps button.active .mono { color: #CFE3F7; }
@media (max-width: 991.98px) { .lc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .lc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lc-chart { height: 180px; } .lc-ylabel { display: none; } }

.lc-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: 28px; border-radius: 22px; background: var(--sid-mist); animation: sid-fade .35s ease; }
.lc-panel[hidden] { display: none; }
.lc-panel h3 { font-size: 1.8rem; margin-bottom: 8px; }
.lc-q { font-size: 1.2rem; font-weight: 600; color: var(--sid-blue-dark); }
.lc-main p:last-child { color: var(--sid-muted); margin: 0; }
.lc-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lc-facts > div { background: var(--sid-white); border-radius: 14px; padding: 14px 16px; }
.lc-facts dt { font-family: var(--sid-mono); font-size: .75rem; font-weight: 500; color: var(--sid-muted); margin-bottom: 4px; }
.lc-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 767.98px) { .lc-panel { grid-template-columns: 1fr; padding: 20px; } }
.lc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
@keyframes sid-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lc-panel { animation: none; } }

/* Edulood */
.story-block { padding: 56px 0; }
.story-alt { background: var(--sid-mist); }
.story-block .story-tag { font-size: .8rem; }
.story-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-panel {
  position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1.2px, transparent 1.3px); background-size: 24px 24px;
}
.brand-panel span { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.brand-panel small { font-family: var(--sid-mono); font-size: .9rem; opacity: .75; }
.bp-blue { background-color: var(--sid-blue); color: var(--sid-white); }
.bp-black { background-color: var(--sid-black); color: var(--sid-white); }
.bp-mist { background-color: var(--sid-white); color: var(--sid-black); border: 1px solid var(--sid-line); background-image: radial-gradient(circle, #D5DAE1 1.2px, transparent 1.3px); }
.bp-blue-soft { background-color: #CFE3F7; color: var(--sid-black); background-image: radial-gradient(circle, rgba(0,114,206,.25) 1.2px, transparent 1.3px); }
.story-facts { margin: 20px 0; display: grid; }
.story-facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sid-line); }
.story-facts dt { font-family: var(--sid-mono); font-size: .8rem; font-weight: 500; color: var(--sid-muted); padding-top: 2px; }
.story-facts dd { margin: 0; font-weight: 500; }
.story-lesson { margin: 0; padding: 16px 20px; border-radius: 16px; border: 2px dashed var(--sid-blue); }
.story-alt .story-lesson { background: var(--sid-white); }
.story-lesson b { color: var(--sid-blue-dark); }

/* =========================================================
   KASULIKKU
   ========================================================= */
.ref-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ref-types button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px 8px 16px;
  border: 1px solid var(--sid-line); border-radius: 999px; background: var(--sid-white);
  font: inherit; font-weight: 600; color: var(--sid-black);
}
.ref-types button:hover { border-color: var(--sid-black); }
.ref-types button.active { background: var(--sid-black); border-color: var(--sid-black); color: var(--sid-white); }
.ref-types button.active .amps-n { background: var(--sid-blue); color: var(--sid-white); }

.ref-az {
  position: sticky; top: 72px; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 4px; padding: 10px;
  margin-bottom: 24px; border-radius: 18px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--sid-line);
}
.ref-az a, .ref-az span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .95rem; text-decoration: none; }
.ref-az a { color: var(--sid-black); background: var(--sid-mist); }
.ref-az a:hover { background: var(--sid-blue); color: var(--sid-white); }
.ref-az span { color: #B9C0CB; }
@media (max-width: 767.98px) { .ref-az { flex-wrap: nowrap; overflow-x: auto; top: 64px; } .ref-az a, .ref-az span { flex: 0 0 auto; } }

.ref-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.ref-group { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--sid-line); scroll-margin-top: 150px; }
.ref-letter { font-size: 4rem; font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--sid-blue); margin: 0; position: sticky; top: 150px; align-self: start; }
@media (max-width: 767.98px) { .ref-group { grid-template-columns: 1fr; gap: 12px; } .ref-letter { position: static; font-size: 2.6rem; } }
.ref-entries { display: grid; gap: 12px; }
.ref-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  padding: 20px 24px; border-radius: 20px; border: 1px solid var(--sid-line); background: var(--sid-white);
  transition: border-color .2s ease;
}
.ref-item:hover { border-color: #9AA3B1; }
.ref-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ref-title { font-size: 1.25rem; margin: 0; letter-spacing: -.02em; }
.ref-full { font-size: .85rem; color: var(--sid-muted); margin-top: 4px; }
.ref-desc { margin: 6px 0 0; color: var(--sid-muted); }
.ref-item mark { background: #CFE3F7; color: inherit; padding: 0 2px; border-radius: 3px; }
.ref-type { font-family: var(--sid-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--sid-mist); color: var(--sid-muted); }
.ref-type-investor { background: var(--sid-black); color: var(--sid-white); }
.ref-type-juhend { background: var(--sid-blue); color: var(--sid-white); }
.ref-type-link { background: #CFE3F7; color: var(--sid-blue-dark); }
.ref-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; padding: 10px 14px; border-radius: 12px; background: var(--sid-mist); min-height: 44px; }
.ref-link:hover { background: var(--sid-blue); color: var(--sid-white); }
.ref-toggle { font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 10px 16px; min-height: 44px; background: var(--sid-black); color: var(--sid-white); white-space: nowrap; }
.ref-toggle[aria-expanded="true"] { background: var(--sid-blue); }
.ref-is-juhend { border-color: var(--sid-blue); border-width: 2px; }
.ref-body { grid-column: 1 / -1; margin-top: 12px; padding: 24px; border-radius: 16px; background: var(--sid-mist); line-height: 1.65; }
.ref-body[hidden] { display: none; }
.ref-body h4 { font-size: 1.05rem; margin: 18px 0 8px; }
.ref-body h4:first-child { margin-top: 0; }
.ref-body ol, .ref-body ul { padding-left: 1.3rem; margin-bottom: 12px; }
.ref-body li::marker { color: var(--sid-blue); font-weight: 700; }
.ref-template { padding: 16px 18px; border-radius: 12px; background: var(--sid-white); border-left: 0; border: 2px dashed var(--sid-blue); font-weight: 500; }
@media (max-width: 575.98px) { .ref-item { grid-template-columns: 1fr; padding: 18px; } .ref-action { justify-self: start; } }

/* =========================================================
   MEIST
   ========================================================= */
.mission { border-radius: 32px; padding: clamp(32px, 6vw, 80px); background: var(--sid-blue); color: var(--sid-white); position: relative; overflow: hidden; }
.mission .eyebrow { color: #CFE3F7; }
.mission-text { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; margin: 0; max-width: 22ch; }
.mission-text span { background: var(--sid-white); color: var(--sid-blue); border-radius: .18em; padding: 0 .14em; white-space: nowrap; }
.mission::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 240px; height: 240px; border-radius: 56px; border: 3px dashed rgba(255,255,255,.5); transform: rotate(14deg); }
.why-list { display: grid; gap: 4px; }
.why-item { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--sid-line); }
.why-item:first-child { border-top: 0; padding-top: 0; }
.why-n { color: var(--sid-blue); font-size: 1.1rem; padding-top: 4px; }
.why-item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.why-item p { color: var(--sid-muted); margin: 0; }
.name-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.name-list li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--sid-line-dark); }
.name-list b { color: var(--sid-white); }
.name-list span { color: var(--sid-muted-dark); }
.name-list em { color: var(--sid-blue-light); font-style: normal; font-weight: 700; }
@media (max-width: 575.98px) { .name-list li { grid-template-columns: 1fr; gap: 2px; } }
.check-list-light li { color: var(--sid-black); }
.team-card { height: 100%; padding: 28px 24px; border-radius: var(--sid-radius); border: 1px solid var(--sid-line); display: flex; flex-direction: column; gap: 4px; }
.team-card b { font-size: 1.15rem; margin-top: 14px; }
.team-card > span { color: var(--sid-muted); }
.team-badge { position: relative; width: 84px; height: 84px; border-radius: 22px; background: var(--sid-blue); color: var(--sid-white); display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; transform: rotate(-4deg); }
.team-badge::before { content: ""; position: absolute; top: 8px; left: 50%; width: 24px; height: 5px; margin-left: -12px; border-radius: 3px; background: var(--sid-white); }
.team-badge span { padding-top: 8px; }
.tb-dark { background: var(--sid-black); transform: rotate(3deg); }
.tb-soft { background: #CFE3F7; color: var(--sid-blue-dark); transform: rotate(-2deg); }
.tb-soft::before { background: var(--sid-blue-dark); }
.tb-outline { background: var(--sid-white); color: var(--sid-blue); border: 2px dashed var(--sid-blue); transform: rotate(2deg); }
.tb-outline::before { background: var(--sid-blue); }
.team-join { border: 2px dashed var(--sid-blue); }

/* =========================================================
   LOGI SISSE / REGISTREERU
   ========================================================= */
.auth-main {
  min-height: 100vh; padding: 120px 0 80px;
  background-color: var(--sid-black);
  background-image: radial-gradient(circle, #24262B 1.2px, transparent 1.3px); background-size: 28px 28px;
}
.auth-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45); max-width: 1080px; margin: 0 auto; }
.auth-side { background: var(--sid-blue); color: var(--sid-white); padding: 48px; display: flex; flex-direction: column; }
.auth-side .eyebrow { color: #CFE3F7; }
.auth-side-title { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 28px; }
.auth-card { transform: rotate(-3deg); box-shadow: 0 24px 48px rgba(0,0,0,.3); }
.auth-side .check-list li { color: var(--sid-white); }
.auth-side .check-list li::before { background-color: var(--sid-black); }
.auth-box { background: var(--sid-white); padding: 40px 48px; }
.auth-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sid-mist); margin-bottom: 28px; }
.auth-tabs button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; color: var(--sid-muted); min-height: 44px; }
.auth-tabs button.active { background: var(--sid-black); color: var(--sid-white); }
.eid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.eid-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; min-height: 84px; border-radius: 16px; border: 1px solid var(--sid-line); background: var(--sid-white); font: inherit; font-weight: 600; color: var(--sid-black); transition: border-color .2s, background .2s; }
.eid-btn svg { color: var(--sid-blue); }
.eid-btn:hover { border-color: var(--sid-blue); background: #F2F8FE; }
.eid-btn.is-loading { border-color: var(--sid-blue); background: var(--sid-blue); color: var(--sid-white); }
.eid-btn.is-loading svg { color: var(--sid-white); animation: sid-pulse 1s ease-in-out infinite; }
@keyframes sid-pulse { 50% { opacity: .35; } }
.eid-btn:disabled:not(.is-loading) { opacity: .5; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--sid-muted); font-size: .9rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--sid-line); }
.pass-wrap { position: relative; }
.pass-wrap .form-control { padding-right: 56px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--sid-muted); display: grid; place-items: center; }
.pass-toggle[aria-pressed="true"] { color: var(--sid-blue); }
.pass-meter { height: 6px; border-radius: 99px; background: var(--sid-mist); margin-top: 8px; overflow: hidden; }
.pass-meter span { display: block; height: 100%; width: 0; background: #B42318; border-radius: inherit; transition: width .3s, background .3s; }
.pass-meter span[data-level="2"] { background: #B54708; }
.pass-meter span[data-level="3"] { background: var(--sid-blue); }
.pass-meter span[data-level="4"] { background: #0A7A3E; }
.role-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.role-pick .btn { border: 1px solid var(--sid-line); background: var(--sid-white); color: var(--sid-black); font-weight: 500; padding: .55rem 1.1rem; min-height: 44px; }
.role-pick .btn-check:checked + .btn { background: var(--sid-blue); border-color: var(--sid-blue); color: var(--sid-white); }
.role-pick .btn-check:focus-visible + .btn { outline: 3px solid var(--sid-blue); outline-offset: 2px; }
.auth-msg { color: var(--sid-blue-dark); font-weight: 500; min-height: 1.2em; }
.auth-demo { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--sid-line); font-size: .82rem; color: var(--sid-muted); }
@media (max-width: 991.98px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 575.98px) {
  .auth-main { padding: 96px 0 40px; }
  .auth-box { padding: 28px 20px; }
  .eid-grid { grid-template-columns: 1fr; }
  .eid-btn { flex-direction: row; justify-content: center; min-height: 56px; }
}

/* Menüü profiilinupp */
.nav-profile { display: inline-flex; align-items: center; gap: 10px; color: var(--sid-white); text-decoration: none; font-weight: 600; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid #3A3D44; min-height: 44px; }
.nav-profile:hover { border-color: var(--sid-white); color: var(--sid-white); }
.nav-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--sid-blue); display: grid; place-items: center; font-size: .85rem; font-weight: 800; }
.nav-light .nav-profile { color: var(--sid-black); border-color: var(--sid-line); }

/* =========================================================
   PROFIIL
   ========================================================= */
.profile-main { padding-bottom: 96px; }
.profile-cover {
  height: 240px; background-color: var(--sid-black);
  background-image: radial-gradient(circle, #24262B 1.2px, transparent 1.3px); background-size: 28px 28px;
  position: relative; overflow: hidden;
}
.profile-cover::after { content: ""; position: absolute; right: 8%; top: 40px; width: 260px; height: 260px; border-radius: 60px; background: var(--sid-blue); transform: rotate(16deg); opacity: .9; }
.profile-demo { margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: #FFF6E0; border: 1px solid #F1D48A; font-size: .95rem; }
.profile-demo.is-welcome { background: #EAF4FD; border-color: #9CC8F0; }
.profile-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 28px; margin: -44px 0 40px; position: relative; z-index: 1; }
.profile-demo:not([hidden]) + .profile-head { margin-top: 24px; }
.profile-avatar {
  width: 140px; height: 140px; border-radius: 34px; background: var(--sid-blue); color: var(--sid-white);
  display: grid; place-items: center; font-size: 3rem; font-weight: 800; letter-spacing: -.03em;
  border: 6px solid var(--sid-white); box-shadow: 0 16px 40px rgba(11,11,12,.18); position: relative; padding-top: 10px;
}
.profile-avatar::before { content: ""; position: absolute; top: 14px; left: 50%; width: 36px; height: 7px; margin-left: -18px; border-radius: 4px; background: var(--sid-white); }
.profile-id { flex: 1 1 260px; padding-bottom: 6px; }
.profile-id h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; }

.p-card { border: 1px solid var(--sid-line); border-radius: var(--sid-radius); padding: 24px; margin-bottom: 20px; background: var(--sid-white); }
.p-card-title { font-family: var(--sid-mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sid-muted); margin-bottom: 14px; }
.p-sub { font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.p-meta { margin: 0; display: grid; }
.p-meta > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--sid-line); }
.p-meta dt { font-weight: 500; color: var(--sid-muted); font-size: .9rem; }
.p-meta dd { margin: 0; font-weight: 500; word-break: break-word; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--sid-mist); font-weight: 500; font-size: .92rem; }

.badge-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge-item { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; border: 1px dashed var(--sid-line); color: var(--sid-muted); }
.badge-item b { font-size: .95rem; color: var(--sid-muted); }
.badge-item small { font-size: .78rem; line-height: 1.3; }
.badge-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sid-mist); color: #9AA3B1; margin-bottom: 8px; }
.badge-item.is-earned { border-style: solid; border-color: var(--sid-line); background: var(--sid-white); }
.badge-item.is-earned b { color: var(--sid-black); }
.badge-item.is-earned .badge-ico { background: var(--sid-blue); color: var(--sid-white); transform: rotate(-4deg); }

.sid-section { border-radius: 28px; padding: clamp(20px, 3vw, 32px); background: var(--sid-mist); margin-bottom: 20px; }
.sid-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 24px; }
.profile-sid-card { box-shadow: 0 24px 48px rgba(11,11,12,.14); transform: rotate(-1.5deg); }
.sid-facts { margin: 0; display: grid; gap: 10px; }
.sid-facts > div { background: var(--sid-white); border-radius: 14px; padding: 12px 16px; }
.sid-facts dt { font-family: var(--sid-mono); font-size: .75rem; font-weight: 500; color: var(--sid-muted); }
.sid-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.stage-track { margin-top: 28px; }
.stage-track ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.stage-track li { position: relative; padding-top: 22px; font-size: .82rem; font-weight: 600; color: var(--sid-muted); }
.stage-track li span { position: absolute; top: 0; left: 0; right: 0; height: 8px; border-radius: 99px; background: var(--sid-line); }
.stage-track li.is-past span { background: var(--sid-blue); }
.stage-track li.is-current { color: var(--sid-black); }
.stage-track li.is-current span { background: var(--sid-blue); box-shadow: 0 0 0 4px rgba(0,114,206,.2); }
@media (max-width: 575.98px) { .stage-track ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } }

.learn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.learn-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 16px; border: 1px solid var(--sid-line); text-decoration: none; color: var(--sid-black); transition: border-color .2s; }
.learn-item:hover { border-color: var(--sid-black); color: var(--sid-black); }
.learn-item img { width: 96px; height: 64px; border-radius: 10px; object-fit: cover; }
.learn-item b { display: block; font-size: 1rem; line-height: 1.3; }
.learn-item small { color: var(--sid-muted); font-family: var(--sid-mono); font-size: .78rem; }
.learn-go { width: 36px; height: 36px; border-radius: 10px; background: var(--sid-mist); display: grid; place-items: center; font-weight: 700; }
.learn-item.is-done { background: var(--sid-mist); }
.learn-item.is-done .learn-go { background: var(--sid-blue); color: var(--sid-white); }
.activity { list-style: none; padding: 0; margin: 0; display: grid; }
.activity li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--sid-line); }
.activity li:first-child { border-top: 0; }
.act-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 4px; background: var(--sid-line); }
.act-check { background: var(--sid-blue); }
.act-idea { background: var(--sid-black); }
.act-id { background: #CFE3F7; border: 2px solid var(--sid-blue); }
.edit-modal { border-radius: 24px; border: 0; }
.edit-modal .modal-header, .edit-modal .modal-footer { border-color: var(--sid-line); padding: 20px 24px; }
.edit-modal .modal-body { padding: 24px; }
@media (max-width: 575.98px) { .profile-avatar { width: 112px; height: 112px; font-size: 2.4rem; } .profile-cover { height: 180px; } .profile-cover::after { width: 160px; height: 160px; } }
.final-equation img.fe-icon { width: 72px; }
.team-join { text-decoration: none; color: var(--sid-black); transition: background .2s; } .team-join:hover { background: #F2F8FE; color: var(--sid-black); }
.pages-dd { border-radius: 16px; padding: 8px; border: 1px solid var(--sid-line); box-shadow: 0 20px 40px rgba(11,11,12,.18); min-width: 240px; }
.pages-dd .dropdown-header { font-family: var(--sid-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sid-muted); padding: 8px 12px 4px; }
.pages-dd .dropdown-item { border-radius: 10px; padding: 8px 12px; font-weight: 500; }
.pages-dd .dropdown-item:hover, .pages-dd .dropdown-item:focus { background: var(--sid-mist); }
.pages-dd .dropdown-item.active, .pages-dd .dropdown-item:active { background: var(--sid-blue); color: var(--sid-white); }
@media (max-width: 1199.98px) { .sid-nav .pages-dd { box-shadow: none; border: 0; background: var(--sid-ink-2); } .sid-nav .pages-dd .dropdown-item { color: #E4E7EC; } .sid-nav .pages-dd .dropdown-item:hover { background: #2a2d33; color: #fff; } .sid-nav .navbar-collapse { max-height: calc(100vh - 80px); overflow-y: auto; } }

/* =========================================================
   STARTUP ESTONIA
   ========================================================= */
.key .key-n { font-size: 1rem; font-family: var(--sid-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.se-panel { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; background-size: 24px 24px; }
.se-panel-blue { background-color: var(--sid-blue); background-image: radial-gradient(circle, rgba(255,255,255,.18) 1.2px, transparent 1.3px); color: var(--sid-white); }
.se-panel-mist { background-color: var(--sid-white); border: 1px solid var(--sid-line); background-image: radial-gradient(circle, #D5DAE1 1.2px, transparent 1.3px); }
.se-panel-black { background-color: var(--sid-black); background-image: radial-gradient(circle, #24262B 1.2px, transparent 1.3px); color: var(--sid-white); }
.se-panel-label { font-size: .85rem; opacity: .8; margin-top: 18px; }
.se-bars { display: flex; align-items: flex-end; gap: 12px; height: 62%; }
.se-bars span { flex: 1; background: var(--sid-white); border-radius: 10px 10px 4px 4px; opacity: .9; }
.se-bars span:nth-child(odd) { opacity: .55; }
.se-docs { position: relative; flex: 1; }
.se-doc { position: absolute; width: 46%; aspect-ratio: 3 / 4; background: var(--sid-white); border: 2px solid var(--sid-black); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 16px 30px rgba(11,11,12,.12); }
.se-doc b { font-size: 1rem; margin-bottom: 6px; }
.se-doc i { display: block; height: 8px; border-radius: 4px; background: var(--sid-line); }
.se-doc i.short { width: 60%; }
.se-doc:nth-child(1) { left: 4%; top: 6%; transform: rotate(-8deg); }
.se-doc:nth-child(2) { left: 27%; top: 0; transform: rotate(2deg); border-color: var(--sid-blue); }
.se-doc:nth-child(2) b { color: var(--sid-blue); }
.se-doc:nth-child(3) { left: 50%; top: 8%; transform: rotate(9deg); }
.se-net { position: relative; flex: 1; }
.se-net .n { position: absolute; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: 999px; border: 1px solid #3A3D44; font-size: .85rem; font-weight: 600; background: var(--sid-ink-2); white-space: nowrap; }
.se-net .n-c { left: 50%; top: 50%; width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; padding: 0; background: var(--sid-blue); border: 0; font-size: 1.4rem; font-weight: 800; }
.se-net .n1 { left: 18%; top: 18%; } .se-net .n2 { left: 80%; top: 16%; } .se-net .n3 { left: 86%; top: 56%; }
.se-net .n4 { left: 70%; top: 90%; } .se-net .n5 { left: 24%; top: 86%; } .se-net .n6 { left: 12%; top: 52%; }
.se-net::before { content: ""; position: absolute; inset: 14% 10%; border: 2px dashed #3A3D44; border-radius: 50%; }
.se-list { padding-left: 1.2rem; margin-bottom: 20px; }
.se-list li { padding: 4px 0; }
.se-list li::marker { color: var(--sid-blue); }
.se-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 12px; background: var(--sid-white); border: 1px solid var(--sid-line); min-height: 44px; }
.story-block:not(.story-alt) .se-link { background: var(--sid-mist); border-color: transparent; }
.se-link:hover { background: var(--sid-blue); border-color: var(--sid-blue); color: var(--sid-white); }
.se-btn { display: inline-flex; align-items: center; gap: 8px; }
.dr-mock { border-radius: 20px; overflow: hidden; background: var(--sid-white); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.dr-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--sid-mist); border-bottom: 1px solid var(--sid-line); }
.dr-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sid-line); }
.dr-url { margin-left: 12px; font-size: .78rem; color: var(--sid-muted); background: var(--sid-white); padding: 4px 12px; border-radius: 8px; flex: 1; }
.dr-body { padding: 20px; }
.dr-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sid-line); color: var(--sid-muted); font-size: .9rem; }
.dr-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.dr-filters span { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--sid-line); color: var(--sid-black); }
.dr-filters span.on { background: var(--sid-blue); border-color: var(--sid-blue); color: var(--sid-white); }
.dr-row { display: grid; grid-template-columns: 36px 1fr 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--sid-line); }
.dr-logo { width: 36px; height: 36px; border-radius: 10px; background: #CFE3F7; }
.dr-logo.b { background: var(--sid-black); }
.dr-l { height: 10px; border-radius: 5px; background: var(--sid-line); }
.dr-l.w1 { width: 80%; } .dr-l.w2 { width: 60%; } .dr-l.w3 { width: 90%; } .dr-l.w4 { width: 45%; }
.dr-tag { font-family: var(--sid-mono); font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: var(--sid-mist); color: var(--sid-muted); }
.se-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--sid-mist); border: 2px dashed var(--sid-blue); }
.se-cta > div { max-width: 40rem; }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact-main { padding: 0 0 96px; }
.contact-form, .contact-done { margin-top: -64px; position: relative; z-index: 2; background: var(--sid-white); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 24px 60px rgba(11,11,12,.12), 0 0 0 1px var(--sid-line); }
.contact-done { text-align: center; padding-top: 48px; padding-bottom: 48px; }
.contact-done:focus { outline: none; }
.contact-done-badge { width: 88px; height: 88px; border-radius: 24px; background: var(--sid-blue); color: var(--sid-white); display: grid; place-items: center; margin: 0 auto 20px; transform: rotate(-6deg); animation: sid-pop .5s cubic-bezier(.2,1.4,.4,1); }
.contact-cards { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 992px) { .contact-cards { margin-top: 32px; } }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--sid-line); }
.contact-card b { display: block; }
.contact-card span:not(.contact-ico) { color: var(--sid-muted); }
.contact-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--sid-mist); color: var(--sid-blue); display: grid; place-items: center; flex: 0 0 auto; }
.contact-join { margin-top: 20px; padding: 24px; border-radius: 22px; background: var(--sid-blue); color: var(--sid-white); }
.contact-join p { color: #DCEBFA; }
.form-check-input.is-invalid ~ .form-check-label { color: #B42318; }

/* Menüü: 7 punkti mahub ühele reale */
.sid-nav .nav-link, .sid-nav .btn, .nav-profile { white-space: nowrap; }
@media (min-width: 1200px) {
  .sid-nav .nav-link { padding: .5rem .6rem !important; font-size: .95rem; }
  .sid-nav .navbar-brand { margin-right: 1rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .sid-nav .nav-link { padding: .5rem .45rem !important; font-size: .9rem; }
  .sid-nav .btn-sm { padding: .45rem .9rem; }
}

/* =========================================================
   ETTEVÕTLIKKUS MAAKONDADES
   ========================================================= */
.mk-crumbs { display: flex; gap: 8px; font-family: var(--sid-mono); font-size: .82rem; letter-spacing: .04em; color: var(--sid-muted-dark); margin-bottom: 14px; }
.mk-crumbs a { color: var(--sid-blue-light); text-decoration: none; }
.mk-crumbs a:hover { text-decoration: underline; }
.mk-main { padding-bottom: 24px; }
.mk-board {
  position: relative; z-index: 2; margin-top: -64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0;
  border-radius: 28px; overflow: hidden; background: var(--sid-white);
  box-shadow: 0 24px 60px rgba(11,11,12,.12), 0 0 0 1px var(--sid-line);
}
.mk-map { position: relative; padding: 28px 28px 20px; background: var(--sid-white);
  background-image: radial-gradient(circle, #E3E7ED 1.2px, transparent 1.3px); background-size: 22px 22px; }
.mk-svg { width: 100%; height: auto; display: block; overflow: visible; }
.mk-county { fill: #CFE3F7; stroke: var(--sid-white); stroke-width: 2.5; stroke-linejoin: round; cursor: pointer; transition: fill .2s ease, opacity .2s ease; outline: none; }
.mk-county.lv1 { fill: #CFE3F7; } .mk-county.lv2 { fill: #8FBFEA; } .mk-county.lv3 { fill: #3B8FE0; } .mk-county.lv4 { fill: #005499; }
.mk-county:hover, .mk-county:focus-visible { fill: var(--sid-black); }
.mk-county:focus-visible { stroke: var(--sid-blue); stroke-width: 5; }
.mk-county.is-active { fill: var(--sid-blue); stroke: var(--sid-black); stroke-width: 4; }
.mk-county.is-dim { opacity: .45; }
.mk-county.is-off { fill: url(#mkHatch); cursor: default; }
.mk-label { font-family: var(--sid-font); font-size: 15px; font-weight: 700; fill: var(--sid-black); pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; }
.mk-label.is-off { fill: #9AA3B1; font-weight: 500; }
.mk-label.is-active { fill: var(--sid-white); stroke: var(--sid-blue); }
.mk-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; z-index: 3; background: var(--sid-black); color: var(--sid-white); border-radius: 12px; padding: 8px 12px; font-size: .85rem; white-space: nowrap; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.mk-tip b { display: block; }
.mk-tip span { color: var(--sid-muted-dark); }
.mk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .8rem; color: var(--sid-muted); margin-top: 12px; }
.mk-legend i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.mk-legend .l1 { background: #CFE3F7; } .mk-legend .l2 { background: #8FBFEA; } .mk-legend .l3 { background: #3B8FE0; } .mk-legend .l4 { background: #005499; }
.mk-legend .l0 { background: repeating-linear-gradient(45deg, #F4F6F9 0 3px, #D5DAE1 3px 6px); margin-left: 8px; }
.mk-panel { padding: 28px; background: var(--sid-mist); border-left: 1px solid var(--sid-line); }
.mk-panel-title { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.mk-close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--sid-line); background: var(--sid-white); display: grid; place-items: center; flex: 0 0 auto; }
.mk-close:hover { border-color: var(--sid-black); }
.mk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 20px; }
.mk-stats > div { background: var(--sid-white); border-radius: 14px; padding: 12px 14px; }
.mk-stats dt { font-size: .75rem; font-weight: 500; color: var(--sid-muted); }
.mk-stats dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.mk-sub { font-family: var(--sid-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sid-muted); margin-bottom: 10px; }
.mk-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mk-bars li { display: grid; grid-template-columns: 104px 1fr 28px; gap: 10px; align-items: center; font-size: .88rem; font-weight: 500; }
.mk-bars i { height: 10px; border-radius: 99px; background: var(--sid-white); overflow: hidden; }
.mk-bars b { display: block; height: 100%; background: var(--sid-blue); border-radius: inherit; transition: width .4s ease; }
.mk-bars em { font-style: normal; font-family: var(--sid-mono); text-align: right; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mk-chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px 8px 16px; border: 1px solid var(--sid-line); border-radius: 999px; background: var(--sid-white); font: inherit; font-weight: 600; font-size: .92rem; }
.mk-chips button[data-c=""] { padding-right: 16px; }
.mk-chips button:hover { border-color: var(--sid-black); }
.mk-chips button.active { background: var(--sid-blue); border-color: var(--sid-blue); color: var(--sid-white); }
.mk-chips button.active .amps-n { background: var(--sid-white); color: var(--sid-blue); }
@media (max-width: 991.98px) {
  .mk-board { grid-template-columns: 1fr; }
  .mk-panel { border-left: 0; border-top: 1px solid var(--sid-line); }
  .mk-label { font-size: 18px; }
}
@media (max-width: 575.98px) { .mk-map { padding: 16px 12px; } .mk-label { font-size: 22px; } .mk-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .mk-chips button { flex: 0 0 auto; } }

.mk-listhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.mk-search { position: relative; flex: 0 1 380px; }
.mk-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--sid-muted); pointer-events: none; }
.mk-search input { width: 100%; height: 52px; border-radius: 14px; border: 2px solid var(--sid-line); background: var(--sid-mist); padding: 0 16px 0 46px; font: inherit; }
.mk-search input:focus { outline: none; border-color: var(--sid-blue); background: var(--sid-white); box-shadow: 0 0 0 4px rgba(0,114,206,.18); }
.mk-group { padding: 28px 0; border-top: 1px solid var(--sid-line); scroll-margin-top: 100px; }
.mk-group-title { display: flex; align-items: center; gap: 12px; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.mk-group-title span { font-family: var(--sid-mono); font-size: .85rem; font-weight: 500; padding: 4px 10px; border-radius: 8px; background: var(--sid-blue); color: var(--sid-white); letter-spacing: 0; }
.mk-cat-block + .mk-cat-block { margin-top: 22px; }
.mk-cat-title { font-family: var(--sid-mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sid-muted); margin-bottom: 10px; }
.mk-org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .mk-org-grid { grid-template-columns: 1fr; } }
.mk-org { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--sid-line); background: var(--sid-white); transition: border-color .2s; }
.mk-org:hover { border-color: #9AA3B1; }
.mk-org-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mk-org-county { font-size: .82rem; font-weight: 600; color: var(--sid-muted); }
.mk-org-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 0; }
.mk-org-sec b { display: block; font-size: .78rem; font-weight: 600; color: var(--sid-muted); margin-bottom: 4px; }
.mk-org-sec ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; }
.mk-org-sec li::marker { color: var(--sid-blue); }
.mk-org-sec p { margin: 0; font-size: .93rem; color: var(--sid-muted); }
.mk-org mark { background: #CFE3F7; color: inherit; padding: 0 2px; border-radius: 3px; }
.mk-org-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--sid-line); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .88rem; }
.mk-org-foot .ref-link { padding: 8px 12px; min-height: 40px; }
.mk-mail { font-weight: 500; word-break: break-all; }
.mk-addr { flex-basis: 100%; color: var(--sid-muted); font-size: .84rem; }
.mk-cat-arenduskeskus { background: var(--sid-black); color: var(--sid-white); }
.mk-cat-innovatsioon { background: var(--sid-blue); color: var(--sid-white); }
.mk-cat-noored { background: #CFE3F7; color: var(--sid-blue-dark); }
.mk-note { margin-top: 32px; padding: 24px; border-radius: 20px; background: var(--sid-mist); border: 2px dashed var(--sid-blue); }
.mk-promo { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 20px; border-radius: 20px; background: var(--sid-blue); color: var(--sid-white); text-decoration: none; transition: transform .2s; }
.mk-promo:hover { color: var(--sid-white); transform: translateY(-2px); }
.mk-promo b { display: block; font-size: 1.1rem; }
.mk-promo small { color: #DCEBFA; }
.mk-promo-ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.15); display: grid; place-items: center; flex: 0 0 auto; }
.mk-promo-go { margin-left: auto; font-size: 1.5rem; }
.mk-org-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.mk-org { min-width: 0; overflow-wrap: anywhere; }
.mk-org-foot .ref-link { white-space: normal; overflow-wrap: anywhere; }

/* Avalehe beeta-silt ja väiksem sissejuhatus */
.eyebrow-beta { display: inline-flex; align-items: center; gap: 10px; }
.beta-badge { font-family: var(--sid-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--sid-blue); color: var(--sid-white); }
.hero .lead.lead-sm { font-size: 1.08rem; max-width: 30rem; }

/* =========================================================
   ÕPPEMATERJALID
   ========================================================= */
.om-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.om-card {
  position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--sid-line); background: var(--sid-white); color: var(--sid-black); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.om-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11,11,12,.12); border-color: var(--sid-black); color: var(--sid-black); }
.om-visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center;
  background-size: 22px 22px; }
.om-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.om-card:hover .om-visual img { transform: scale(1.04); }
.om-v-blue { background-color: var(--sid-blue); background-image: radial-gradient(circle, rgba(255,255,255,.18) 1.2px, transparent 1.3px); color: var(--sid-white); }
.om-v-black { background-color: var(--sid-black); background-image: radial-gradient(circle, #24262B 1.2px, transparent 1.3px); color: var(--sid-white); }
.om-v-soft { background-color: #CFE3F7; background-image: radial-gradient(circle, rgba(0,114,206,.22) 1.2px, transparent 1.3px); color: var(--sid-blue-dark); }
.om-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 78%; transform: rotate(-4deg); }
.om-mosaic img { aspect-ratio: 3 / 2; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
.om-big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; text-align: center; }
.om-big small { display: block; font-family: var(--sid-mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-top: 12px; opacity: .8; }
.om-play { width: 84px; height: 84px; border-radius: 24px; background: var(--sid-white); color: var(--sid-blue); display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 0 16px 30px rgba(0,0,0,.18); position: relative; }
.om-play::before { content: ""; position: absolute; top: 9px; left: 50%; width: 24px; height: 5px; margin-left: -12px; border-radius: 3px; background: var(--sid-blue); }
.om-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.om-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.om-src { font-family: var(--sid-mono); font-size: .78rem; color: var(--sid-muted); }
.om-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.om-desc { color: var(--sid-muted); margin: 0; flex: 1; }
.om-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sid-blue); margin-top: 6px; }
.om-card:hover .om-cta { color: var(--sid-blue-dark); }
.om-num { position: absolute; top: 14px; left: 14px; z-index: 1; font-family: var(--sid-mono); font-size: .8rem; padding: 4px 10px; border-radius: 8px; background: var(--sid-white); color: var(--sid-black); }
.om-ext { position: absolute; top: 14px; right: 14px; z-index: 1; width: 36px; height: 36px; border-radius: 10px; background: var(--sid-white); color: var(--sid-black); display: grid; place-items: center; }
.om-add { border-style: dashed; border-width: 2px; border-color: var(--sid-blue); background: #F7FAFE; align-items: center; justify-content: center; text-align: center; padding: 32px; min-height: 260px; }
.om-add:hover { border-color: var(--sid-blue-dark); }

/* =========================================================
   Loetavus: sisutekst Figtree, pealkirjad ja UI Sora
   ========================================================= */
:root {
  --sid-text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sid-muted: #434A55;          /* tumedam hall heledal taustal */
  --bs-body-font-family: var(--sid-text);
}
body { font-family: var(--sid-text); font-size: 1.0625rem; line-height: 1.6; }
p, li, dd, .lead, .form-control, .form-select, .form-text, .form-check-label, .accordion-body, blockquote, figcaption, td { font-family: var(--sid-text); }
.lead { font-weight: 400; line-height: 1.55; }

/* Sora jääb pealkirjadele, nuppudele, menüüle ja brändielementidele */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.btn, .nav-link, .navbar, .dropdown-item, .tag, .form-label,
.amps-row-title, .om-title, .om-big, .ref-title, .mk-org-name, .mk-panel-title, .mk-group-title,
.sid-card, .sc-name, .sc-idea, .sc-avatar, .hero-chip-title, .brand-panel span, .mission-text,
.equation, .word-track span, .amps-stats b, .mk-stats dd, .sid-facts dd, .lc-facts dd, .lc-steps button,
.key-n, .step-num, .profile-avatar, .team-badge, .nav-avatar, .quiz-result-badge, .contact-done-badge,
.ref-letter, .reason h3, .trait h3, .vs-label, .vs-motto, .story-lesson b, .amps-n, .compare-toggle button,
.ref-types button, .mk-chips button, .amps-topics button, .amps-levels button, .filter-pills .btn, .quiz-opts .btn, .role-pick .btn,
.auth-tabs button, .eid-btn, .badge-item b, .chip, .learn-item b, .bite h3, .path h3, .fact b, .event h3, .mk-promo b, .om-cta, .ref-toggle, .ref-link {
  font-family: var(--sid-font);
}
.mono, .eyebrow, code, .sc-num, .sc-domain, .bite-meta { font-family: var(--sid-mono); }

/* Tumedal taustal jääb sekundaarne tekst heledaks */
.bg-ink .text-muted-sid, .hero .text-muted-sid, .final-cta .text-muted-sid, .newsletter .text-muted-sid { color: var(--sid-muted-dark) !important; }
.text-white-50 { color: rgba(255,255,255,.72) !important; }
/* Esiletõste ei kata eelmise rea alapikendusi (g, j, p) */
.hero h1 { line-height: 1.1; }
.hero h1 .hl-badge { display: inline-block; line-height: 1.02; padding: .02em .16em .08em; margin-top: .12em; }

/* =========================================================
   AVALEHE HERO TAUSTAPILDIGA
   ========================================================= */
.hero-bg { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; padding: 150px 0 72px; background: var(--sid-black); isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 9s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,11,12,.94) 0%, rgba(11,11,12,.82) 34%, rgba(11,11,12,.35) 64%, rgba(11,11,12,.15) 100%),
    linear-gradient(0deg, rgba(11,11,12,.85) 0%, rgba(11,11,12,0) 38%),
    linear-gradient(180deg, rgba(11,11,12,.7) 0%, rgba(11,11,12,0) 22%);
}
.hero-shade::after { /* brändi täpimuster üle pildi */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.10) 1.1px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.hero-bg .lead.lead-sm { color: #D6DBE3; }
.hero-chip-static { position: static; text-decoration: none; color: var(--sid-black); transition: transform .25s ease; }
.hero-chip-static:hover { transform: translateY(-3px); color: var(--sid-black); }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 28px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.35); transition: background .3s, width .3s; }
.hero-dots button.active::before { background: var(--sid-white); width: 40px; }
.hero-dots button:focus-visible { outline: 3px solid var(--sid-blue-light); border-radius: 8px; }
@media (max-width: 991.98px) {
  .hero-bg { min-height: 0; padding: 130px 0 56px; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.78) 55%, rgba(11,11,12,.55) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: opacity .01s; transform: none !important; } }
.hero-bg .eyebrow { color: #9CC8F0; }

/* ===== Toetajad ===== */
.sp-card { height: 100%; background: var(--sid-white); border: 1px solid rgba(11,11,12,.08); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; transition: transform .25s ease, box-shadow .25s ease; }
.sp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,40,90,.35); }
.sp-logo { aspect-ratio: 16 / 7; border-radius: 14px; background: var(--sid-mist); display: grid; place-items: center; padding: 16px; }
.sp-logo img { max-width: 78%; max-height: 70%; object-fit: contain; }
.sp-mark { font-family: 'Sora', sans-serif; font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.03em; color: var(--sid-black); }
.sp-mark b { font-weight: 800; color: var(--sid-blue); }
.sp-name { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sid-muted); }
.sp-join { padding-top: 32px; }
.sp-ways li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid rgba(11,11,12,.08); color: var(--sid-muted); }
.sp-ways li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 14px; border-radius: 4px; background: var(--sid-blue); }
.sp-ways b { color: var(--sid-black); }
[data-msg-err][hidden] { display: none !important; }
[data-count] { white-space: nowrap; }

/* ===== Organisatsioonid ===== */
.org-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.org-toc a { font-family: 'Sora', sans-serif; font-size: .85rem; font-weight: 500; color: var(--sid-white); text-decoration: none; padding: 8px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; transition: background .2s, border-color .2s; }
.org-toc a:hover, .org-toc a:focus-visible { background: var(--sid-blue); border-color: var(--sid-blue); }
.org-section { padding-top: 64px; }
.org-list { display: grid; gap: 20px; }
.org-item { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: center; padding: 20px; background: var(--sid-white); border: 1px solid rgba(11,11,12,.08); border-radius: 22px; scroll-margin-top: 100px; transition: box-shadow .25s ease, transform .25s ease; }
.org-item:hover { box-shadow: 0 20px 44px -28px rgba(0,40,90,.4); transform: translateY(-2px); }
.org-media { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--sid-mist); }
.org-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.org-item:hover .org-media img { transform: scale(1.04); }
.org-num { position: absolute; left: 12px; top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: var(--sid-white); background: var(--sid-blue); border-radius: 6px; padding: 3px 7px; }
.org-body { padding-right: 12px; }
.org-type { font-family: 'IBM Plex Mono', monospace; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sid-blue); margin-bottom: 8px; }
.org-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 10px; }
.org-title a { color: var(--sid-black); text-decoration: none; }
.org-title a:hover { color: var(--sid-blue); }
.org-desc { color: var(--sid-muted); max-width: 46rem; margin-bottom: 18px; }
.org-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(11,11,12,.08); }
.org-meta { font-size: .9rem; color: var(--sid-muted); }
.org-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--sid-black); color: var(--sid-white); font-family: 'Sora', sans-serif; font-weight: 600; font-size: .88rem; text-decoration: none; transition: background .2s; }
.org-link:hover, .org-link:focus-visible { background: var(--sid-blue); color: var(--sid-white); }
.org-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 24px 28px; border-radius: 18px; background: var(--sid-mist); }
@media (max-width: 767.98px) {
  .org-item { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .org-body { padding: 0 6px 6px; }
}
@media (prefers-reduced-motion: reduce) { .org-item, .org-media img { transition: none; } .org-item:hover, .org-item:hover .org-media img { transform: none; } }

/* ===== Jalus v2 ===== */
.sid-footer { padding: 64px 0 36px; }
.sid-footer .footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 28px 32px; margin-bottom: 56px; border-radius: 20px; background: var(--sid-ink-2); border: 1px solid var(--sid-line-dark); }
.sid-footer .footer-top h2 { color: var(--sid-white); }
.footer-nl { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 340px; max-width: 460px; }
.footer-nl .form-control { flex: 1 1 200px; min-height: 48px; background: var(--sid-black); border-color: var(--sid-line-dark); color: var(--sid-white); border-radius: 99px; padding: 0 20px; }
.footer-nl .form-control::placeholder { color: #8A909B; }
.footer-nl .form-control:focus { border-color: var(--sid-blue); box-shadow: 0 0 0 3px rgba(0,114,206,.35); }
.footer-nl .btn { min-height: 48px; padding: 0 24px; }
.footer-nl-msg { flex-basis: 100%; margin: 0; font-size: .88rem; color: var(--sid-blue-light); min-height: 1.2em; }
.sid-footer .footer-h { color: var(--sid-white); font-size: .82rem; font-family: var(--sid-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.sid-footer ul a, .footer-linkbtn { display: inline-block; padding: 3px 0; }
.footer-linkbtn { background: none; border: 0; color: var(--sid-muted-dark); font: inherit; text-align: left; cursor: pointer; }
.footer-linkbtn:hover { color: var(--sid-white); }
.sid-footer a:focus-visible, .footer-linkbtn:focus-visible { outline: 2px solid var(--sid-blue-light); outline-offset: 3px; border-radius: 4px; }
.footer-beta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; }
.footer-beta a { color: var(--sid-white); text-decoration: underline; text-underline-offset: 3px; }
.sid-footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ===== Küpsiste dialoog ===== */
.consent { position: fixed; right: 20px; bottom: 20px; z-index: 1080; width: min(400px, calc(100vw - 24px)); background: var(--sid-white); color: var(--sid-black); border-radius: 20px; padding: 22px 22px 18px; box-shadow: 0 24px 60px -18px rgba(11,11,12,.45), 0 0 0 1px rgba(11,11,12,.06); opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.consent.is-in { opacity: 1; transform: none; }
.consent:focus { outline: none; }
.consent:focus-visible { outline: 3px solid var(--sid-blue); }
.consent-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.consent-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--sid-blue); color: var(--sid-white); }
.consent-title { font-size: 1.15rem; margin: 0; }
.consent-text { font-size: .92rem; color: var(--sid-muted); margin-bottom: 14px; }
.consent-opts { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--sid-mist); }
.consent-opts .form-check { margin: 0; }
.consent-opts label { display: grid; font-size: .9rem; }
.consent-opts label span { color: var(--sid-muted); font-size: .82rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.consent-actions .btn { min-height: 40px; }
.consent-actions .btn-link { color: var(--sid-black); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 575.98px) { .consent { right: 12px; bottom: 12px; padding: 18px; } }

/* ===== Ligipääsetavuse menüü ===== */
.nav-a11y .a11y-toggle { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.a11y-menu { width: 300px; padding: 18px; border-radius: 18px; }
.a11y-title { font-family: var(--sid-font); font-weight: 600; margin-bottom: 12px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.a11y-label { font-size: .92rem; }
.a11y-seg { display: inline-flex; border: 1px solid var(--sid-line); border-radius: 99px; overflow: hidden; }
.a11y-seg button { min-width: 44px; min-height: 40px; border: 0; background: transparent; font-family: var(--sid-font); font-weight: 600; color: var(--sid-black); }
.a11y-seg button[aria-pressed="true"] { background: var(--sid-black); color: var(--sid-white); }
.a11y-seg button:focus-visible { outline: 3px solid var(--sid-blue); outline-offset: -3px; }
.a11y-switch { min-height: 36px; display: flex; align-items: center; gap: 10px; margin: 0; }
.a11y-switch .form-check-input { width: 2.4em; height: 1.3em; margin: 0 0 0 -2.5em; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sid-line); font-size: .85rem; }
.a11y-foot .btn-link { font-size: .85rem; color: var(--sid-muted); }
.a11y-foot a { color: var(--sid-blue); }

/* Ligipääsetavuse režiimid */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-links a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-contrast { --sid-muted: #16181C; --sid-muted-dark: #EDEFF2; --sid-line: #8A919C; }
html.a11y-contrast .hero-shade { background: rgba(0,0,0,.8) !important; }
html.a11y-contrast .text-muted-sid, html.a11y-contrast .org-desc, html.a11y-contrast .org-meta { color: #16181C !important; }
html.a11y-contrast .lead, html.a11y-contrast .amps-hero .lead { color: #FFFFFF; }
html.a11y-contrast a:focus-visible, html.a11y-contrast button:focus-visible { outline: 3px solid #FFD400 !important; outline-offset: 2px; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ===== Sisupuu ja ligipääsetavuse leht ===== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.sitemap-group { background: var(--sid-white); border: 1px solid rgba(11,11,12,.08); border-radius: 20px; padding: 24px; }
.sitemap-group h2 { font-family: var(--sid-mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sid-blue); margin-bottom: 14px; }
.sitemap-tree, .sitemap-tree ul { list-style: none; margin: 0; padding: 0; }
.sitemap-tree > li { padding: 8px 0; border-top: 1px solid rgba(11,11,12,.07); }
.sitemap-tree > li:first-child { border-top: 0; padding-top: 0; }
.sitemap-tree > li > a { font-family: var(--sid-font); font-weight: 600; color: var(--sid-black); text-decoration: none; }
.sitemap-tree > li > a:hover { color: var(--sid-blue); }
.sitemap-tree ul { margin: 6px 0 2px 6px; padding-left: 14px; border-left: 2px solid var(--sid-mist); }
.sitemap-tree ul a { display: inline-block; padding: 2px 0; font-size: .92rem; color: var(--sid-muted); text-decoration: none; }
.sitemap-tree ul a:hover { color: var(--sid-blue); text-decoration: underline; }
.prose-sid { max-width: 46rem; }
.prose-sid h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose-sid p, .prose-sid li { color: var(--sid-muted); }
.prose-sid ul { padding-left: 1.2rem; }
.consent-actions .btn-link { padding-left: 6px; padding-right: 6px; }
@media (max-width: 1199.98px) {
  .nav-a11y .a11y-menu { position: static !important; transform: none !important; width: 100%; max-width: 360px; margin-top: 10px; }
}
.consent-text a { color: var(--sid-blue); }
.privacy p, .privacy li { line-height: 1.7; }
.sp-logo { background: var(--sid-white); border: 1px solid rgba(11,11,12,.06); }
.sp-logo .sp-img { width: auto; max-width: 78%; max-height: 46px; object-fit: contain; }
.sp-logo .sp-img-procommerce { max-height: 36px; }

/* Meist: lugu */
.story-box { background: var(--sid-mist); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.story-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; position: relative; }
.story-steps::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--sid-line); }
.story-steps li { position: relative; display: grid; gap: 4px; padding-top: 28px; }
.story-steps b { font-family: var(--sid-font); }
.story-steps span:not(.story-dot) { font-size: .9rem; color: var(--sid-muted); }
.story-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--sid-white); border: 3px solid var(--sid-black); }
.story-dot.is-now { background: var(--sid-blue); border-color: var(--sid-blue); box-shadow: 0 0 0 5px rgba(0,114,206,.18); }
@media (max-width: 575.98px) {
  .story-steps { grid-template-columns: 1fr; gap: 14px; }
  .story-steps::before { left: 7px; right: auto; top: 7px; bottom: 7px; width: 2px; height: auto; }
  .story-steps li { padding: 0 0 0 30px; }
}
.team-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.team-badge.team-photo { width: 120px; height: 120px; border-radius: 28px; padding: 5px; overflow: visible; }
.team-badge.team-photo img { border-radius: 23px; display: block; }
.team-badge.team-photo::before { z-index: 1; top: 12px; width: 30px; margin-left: -15px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }

#ole-kursis { scroll-margin-top: 100px; }

/* ===== Mobiilimenüü v2 ===== */
@media (max-width: 1199.98px) {
  body.nav-locked { overflow: hidden; }
  .sid-nav.menu-open { background: var(--sid-black); box-shadow: 0 1px 0 var(--sid-line-dark); }
  .sid-nav .navbar-toggler { width: 48px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 12px; }
  .sid-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0,114,206,.45); }
  .sid-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(33,37,41,1)' stroke-linecap='round' stroke-width='2.2' d='M8 8l14 14M22 8L8 22'/%3E%3C/svg%3E");
  }
  .sid-nav .navbar-collapse {
    margin: 12px calc(var(--bs-gutter-x, 1.5rem) * -.5) 0;
    padding: 4px calc(var(--bs-gutter-x, 1.5rem) * .5) 24px;
    background: var(--sid-black);
    border-top: 1px solid var(--sid-line-dark);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sid-nav .navbar-nav { margin: 0 !important; }
  .sid-nav .navbar-nav > .nav-item { border-bottom: 1px solid var(--sid-line-dark); }
  .sid-nav .navbar-nav > .nav-item > .nav-link {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 56px; padding: 0 4px !important; font-size: 1.12rem; font-weight: 600; white-space: normal;
  }
  .sid-nav .nav-link.dropdown-toggle::after { border-top-width: .4em; border-right-width: .4em; border-left-width: .4em; transition: transform .2s ease; }
  .sid-nav .nav-link.dropdown-toggle.show::after { transform: rotate(180deg); }
  .sid-nav .navbar-nav .dropdown-menu {
    position: static !important; transform: none !important; float: none;
    margin: 0 0 12px; padding: 6px; border: 0; border-radius: 14px; background: var(--sid-ink-2); box-shadow: none;
  }
  .sid-nav .navbar-nav .dropdown-item { color: #E4E7EC; padding: 12px 14px; border-radius: 10px; font-size: 1rem; white-space: normal; }
  .sid-nav .navbar-nav .dropdown-item:hover, .sid-nav .navbar-nav .dropdown-item:focus { background: #2A2D33; color: #fff; }
  .sid-nav .navbar-nav .dropdown-item.active, .sid-nav .navbar-nav .dropdown-item:active { background: var(--sid-blue); color: #fff; }
  .nav-a11y { padding-top: 18px !important; }
  .nav-a11y .a11y-toggle { width: 100%; justify-content: center; min-height: 48px; font-size: 1rem; }
  .nav-a11y .a11y-menu { max-width: none; }
}
@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce) { .sid-nav .navbar-collapse.collapsing { transition: none; } }

@media (max-width: 1199.98px) {
  .sid-nav .navbar-collapse.show { min-height: calc(100dvh - 72px); }
}

/* ===== Alamlehtede hero: paigal püsiv taust (gradient + kasvugraafik), sisu kerib üle ===== */
.amps-hero, .hero.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--sid-black); }
.amps-hero::before, .hero.page-hero::before,
.amps-hero::after, .hero.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none;
  transform: translate3d(0, var(--hero-y, 0px), 0); will-change: transform;
}
.amps-hero::before, .hero.page-hero::before {
  top: 0; bottom: 0;
  background:
    radial-gradient(60% 80% at 92% 0%, rgba(0,114,206,.32), transparent 62%),
    radial-gradient(40% 60% at 0% 100%, rgba(0,114,206,.12), transparent 70%),
    linear-gradient(180deg, rgba(0,114,206,.16) 0%, rgba(11,11,12,0) 70%);
}
.amps-hero::after, .hero.page-hero::after {
  top: 72px; bottom: 0; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201200%20400%22%20preserveAspectRatio%3D%22xMaxYMax%20slice%22%3E%3Cpath%20d%3D%22M0%20372%20L110%20360%20L200%20366%20L300%20338%20L390%20346%20L480%20312%20L560%20322%20L650%20270%20L730%20284%20L820%20222%20L900%20236%20L980%20160%20L1060%20128%20L1130%2074%20L1168%2044%22%20fill%3D%22none%22%20stroke%3D%22%233A3E46%22%20stroke-width%3D%222%22%20stroke-dasharray%3D%222%208%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3Cg%20fill%3D%22%233A3E46%22%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%22360%22%20r%3D%223.2%22/%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%22338%22%20r%3D%223.2%22/%3E%3Ccircle%20cx%3D%22480%22%20cy%3D%22312%22%20r%3D%223.2%22/%3E%3Ccircle%20cx%3D%22650%22%20cy%3D%22270%22%20r%3D%223.2%22/%3E%3Ccircle%20cx%3D%22820%22%20cy%3D%22222%22%20r%3D%223.2%22/%3E%3Ccircle%20cx%3D%22980%22%20cy%3D%22160%22%20r%3D%223.2%22/%3E%3Ccircle%20cx%3D%221130%22%20cy%3D%2274%22%20r%3D%223.2%22/%3E%3C/g%3E%3Ccircle%20cx%3D%221168%22%20cy%3D%2244%22%20r%3D%225%22%20fill%3D%22%230072CE%22%20fill-opacity%3D%22.55%22/%3E%3C/svg%3E") right bottom / 100% 100% no-repeat;
}
.amps-hero > .container, .hero.page-hero > .container {
  position: relative;
  transform: translate3d(0, var(--hero-c, 0px), 0);
  opacity: var(--hero-o, 1);
}

/* ===== Avalehe hero mobiilis: portreekärbe, sisu pildi alaosas ===== */
@media (max-width: 991.98px) {
  .hero-bg { min-height: 100svh; min-height: 100vh; padding: 0 0 40px; align-items: flex-end; }
  @supports (height: 100svh) { .hero-bg { min-height: 100svh; } }
  .hero-bg .hero-slide { background-position: var(--mpos, 50% 50%) !important; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(11,11,12,.97) 0%, rgba(11,11,12,.9) 30%, rgba(11,11,12,.55) 50%, rgba(11,11,12,0) 68%),
      linear-gradient(180deg, rgba(11,11,12,.6) 0%, rgba(11,11,12,0) 18%);
  }
  .hero-shade::after { -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 45%); mask-image: linear-gradient(0deg, #000 0%, transparent 45%); }
  .hero-bg h1 { font-size: clamp(2.3rem, 10vw, 3rem); margin-bottom: 1rem !important; }
  .hero-bg .lead-sm { margin-bottom: 1.5rem !important; }
  .hero-bg .eyebrow { margin-bottom: 1rem !important; }
  .hero-bg .hero-dots { margin-top: -4px; }
}

/* ===== Ikooni alt avatavad tööriistad (õpiampsud, sõnastik) ===== */
.tools-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 20px; }
.tools-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tools-actions { display: flex; gap: 8px; }
.tool-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--sid-line); background: var(--sid-white); color: var(--sid-black);
  font-family: var(--sid-font); font-weight: 600; font-size: .95rem; transition: background .2s, border-color .2s, color .2s;
}
.tool-btn:hover { border-color: var(--sid-black); }
.tool-btn.is-open { background: var(--sid-black); border-color: var(--sid-black); color: var(--sid-white); }
.tool-btn:focus-visible { outline: 3px solid var(--sid-blue); outline-offset: 2px; }
.tool-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--sid-blue); color: #fff; font-size: .75rem; font-family: var(--sid-mono); }
.tool-dot { position: absolute; top: 8px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--sid-blue); }
.tool-panel.amps-controls { margin: 0 0 24px; padding: 20px; border-radius: 22px; box-shadow: 0 18px 40px -24px rgba(11,11,12,.25), 0 0 0 1px var(--sid-line); animation: toolIn .2s ease; }
.tool-panel .amps-suggest { color: var(--sid-muted); margin-top: 14px; }
.tool-panel .amps-suggest button { border-color: var(--sid-line); color: var(--sid-black); }
.tool-panel .amps-suggest button:hover { border-color: var(--sid-black); }
.tool-panel-group + .tool-panel-group { margin-top: 18px; }
.tool-panel .amps-side-title { margin-bottom: 10px; }
.tool-panel .ref-types { margin: 0; }
@keyframes toolIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.amps-progress-mini { display: flex; align-items: center; gap: 10px; }
.amps-progress-mini .amps-bar { width: 120px; margin: 0; }
.amps-main .amps-reader { max-width: 860px; margin: 0 auto; }
@media (max-width: 575.98px) {
  .tools-head { align-items: stretch; }
  .tools-right { width: 100%; justify-content: space-between; }
  .tools-actions { flex: 1; }
  .tool-btn { flex: 1; justify-content: center; }
  .amps-progress-mini { width: 100%; }
  .amps-progress-mini .amps-bar { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .tool-panel.amps-controls { animation: none; } }

/* ===== Juhendid ===== */
.guides-wrap { max-width: 920px; }
.guides .accordion-item { border: 1px solid var(--sid-line); border-radius: 20px !important; overflow: hidden; margin-bottom: 14px; background: var(--sid-white); }
.guides .accordion-button { gap: 18px; padding: 22px 24px; background: var(--sid-white); color: var(--sid-black); box-shadow: none; align-items: flex-start; }
.guides .accordion-button:not(.collapsed) { background: var(--sid-mist); }
.guides .accordion-button:focus-visible { outline: 3px solid var(--sid-blue); outline-offset: -3px; }
.guides .accordion-button::after { margin-top: 6px; }
.guide-n { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sid-blue); color: #fff; font-size: .85rem; }
.guide-head { display: grid; gap: 4px; }
.guide-title { font-family: var(--sid-font); font-weight: 700; font-size: 1.2rem; }
.guide-desc { color: var(--sid-muted); font-size: .98rem; }
.guide-body { padding: 8px 24px 26px 82px; }
.guide-share { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sid-line); font-size: .9rem; }
@media (max-width: 575.98px) { .guide-body { padding: 8px 20px 22px; } .guides .accordion-button { padding: 18px; gap: 14px; } }

/* ===== Avalehe hero mobiilis: nupud ja indikaator keskel ===== */
@media (max-width: 991.98px) {
  .hero-bg .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-bg .hero-ctas .btn { width: 100%; text-align: center; }
  .hero-bg .hero-dots { justify-content: center; }
}
.amps-main { padding-top: 48px; }
.amps-progress-mini .amps-bar { background: var(--sid-mist); }
a.ref-toggle { display: inline-flex; align-items: center; text-decoration: none; }
a.ref-toggle:hover { background: var(--sid-blue); color: var(--sid-white); }
.story-credit { display: block; margin-top: 6px; font-size: .72rem; opacity: .7; }

/* Fotode autor (paremas ülanurgas) */
*:has(> .photo-credit) { position: relative; }
.photo-credit {
  position: absolute; top: 8px; right: 10px; z-index: 3; pointer-events: none;
  font-family: var(--sid-text, sans-serif); font-size: 10px; line-height: 1.2; letter-spacing: .02em;
  color: #fff; opacity: .85; text-shadow: 0 1px 3px rgba(0,0,0,.65);
}
.hero-bg > .photo-credit-hero { top: 92px; right: 16px; z-index: 1; }
@media (max-width: 1199.98px) { .hero-bg > .photo-credit-hero { top: 84px; } }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-size: .92rem; }
.form-error a { color: inherit; font-weight: 600; }
.footer-mail { margin-bottom: 12px; }
.footer-mail a { color: var(--sid-white); font-weight: 600; }
.soon-badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 9px; border-radius: 99px; background: #FFD84D; color: #0B0B0C; font-family: var(--sid-mono); font-size: .68rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.btn .soon-badge { margin-left: 10px; }

/* VS mobiilis: üks pool korraga (lülitiga), kõrgus ei kuku kokku */
@media (max-width: 767.98px) {
  .versus .vs-side { flex: 0 0 auto !important; opacity: 1 !important; }
  [data-compare-view="idu"] .vs-tava, [data-compare-view="tava"] .vs-idu { display: none; }
  .versus .vs-badge { display: none; }
  .versus .vs-side { animation: vsIn .35s ease; box-shadow: 0 18px 40px -24px rgba(11,11,12,.3); }
  .versus .vs-photo img { filter: none !important; }
  .versus-wrap .compare-toggle { width: 100%; }
  .versus-wrap .compare-toggle button { flex: 1; }
}
@keyframes vsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .versus .vs-side { animation: none; } }
a.contact-card { color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: var(--sid-blue); transform: translateY(-2px); }
a.contact-card:hover b { color: var(--sid-blue); }
a.contact-card:focus-visible { outline: 3px solid var(--sid-blue); outline-offset: 2px; }

/* ===== 404 ===== */
.nf-path { color: #9CC8F0; background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 6px; word-break: break-all; }
.nf-search { display: flex; gap: 8px; max-width: 520px; }
.nf-search input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--sid-line-dark); background: var(--sid-ink-2); color: #fff; }
.nf-search input::placeholder { color: #8A909B; }
.nf-search input:focus { outline: none; border-color: var(--sid-blue); box-shadow: 0 0 0 3px rgba(0,114,206,.35); }
.nf-search .btn { min-height: 52px; padding: 0 26px; }
.nf-badge { position: relative; width: 260px; height: 260px; border-radius: 64px; background: var(--sid-blue); display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 0 30px 60px -30px rgba(0,114,206,.8); }
.nf-badge::before { content: ""; position: absolute; top: 26px; left: 50%; width: 72px; height: 14px; margin-left: -36px; border-radius: 8px; background: var(--sid-white); }
.nf-badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px dashed rgba(255,255,255,.35); transform: translate(18px, 14px) rotate(10deg); z-index: -1; }
.nf-badge span { font-family: var(--sid-font); font-weight: 800; font-size: 5.4rem; color: #fff; letter-spacing: -.04em; padding-top: 18px; }
.nf-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.nf-link { display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--sid-line); color: var(--sid-black); text-decoration: none; transition: border-color .2s, transform .2s; }
.nf-link b { font-family: var(--sid-font); }
.nf-link span { color: var(--sid-muted); font-size: .92rem; }
.nf-link:hover { border-color: var(--sid-blue); transform: translateY(-2px); }
.nf-link:hover b { color: var(--sid-blue); }
.nf-link:focus-visible { outline: 3px solid var(--sid-blue); outline-offset: 2px; }
@media (max-width: 575.98px) { .nf-search { flex-direction: column; } }
.nf-links { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991.98px) { .nf-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .nf-links { grid-template-columns: 1fr; } }

/* Sõnastiku otsing alati nähtaval (koos tähestikuga kleepuv) */
.ref-sticky { position: sticky; top: 72px; z-index: 6; margin-bottom: 24px; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 12px 30px -20px rgba(11,11,12,.35), 0 0 0 1px var(--sid-line); }
.ref-sticky .ref-searchbar .amps-search { margin: 0; }
.ref-sticky .ref-searchbar .amps-search input { font-size: 1.1rem; }
.ref-sticky .ref-az { position: static; margin: 12px 0 0; padding: 0; box-shadow: none; background: transparent; border: 0; }
@media (max-width: 767.98px) { .ref-sticky { top: 64px; padding: 10px; } }
.ref-group, .ref-letter { scroll-margin-top: 250px; }
