/* EDUCA — verejný web, komponenty nad educa-v2.css (tokeny).
   Systémové fonty, bez externých zdrojov, bez inline štýlov (CSP style-src 'self').
   Svetlá (default) + tmavá cez [data-theme] na <html>. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.kicker { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0; }
.muted { color: var(--muted); }

/* ---------- tlačidlá (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--hit); padding: 11px 22px; border-radius: var(--r-ctl);
  font: inherit; font-size: var(--fs-small); font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-primary { background: var(--a1); color: var(--on-a); }
.btn-primary:hover { filter: brightness(1.06); color: var(--on-a); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--a1); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- hlavička ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--a1); color: var(--on-a);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; letter-spacing: -.03em;
  flex: 0 0 auto;
}
.word { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.nav .menu { display: flex; align-items: center; gap: 26px; }
.nav .menu a { font-size: var(--fs-small); color: var(--muted); text-decoration: none; }
.nav .menu a:hover { color: var(--text); }
.nav .right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-ctl); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--a1); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-dark-only { display: none; }
[data-theme="dark"] .theme-dark-only { display: block; }
[data-theme="dark"] .theme-light-only { display: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: var(--fs-display); font-weight: 800; max-width: 18ch; margin: 14px 0 18px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 54ch; margin: 0 0 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* pás faktov */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.fact { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 20px; }
.fact .k { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.fact .p { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); }

/* ---------- sekcie ---------- */
section { padding: 64px 0; }
section.alt { background: var(--surface-2); }
.sec-head { max-width: 62ch; margin-bottom: 36px; }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 800; margin: 10px 0 10px; }
.sec-head p { color: var(--muted); margin: 0; }

/* metodika */
.metody { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metoda { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.metoda .n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--a1); font-weight: 700; }
.metoda h3 { font-size: 16px; font-weight: 700; margin: 10px 0 6px; letter-spacing: -.01em; }
.metoda p { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.metoda.feature { background: var(--a1); border-color: var(--a1); color: var(--on-a); }
.metoda.feature .n { color: var(--on-a); opacity: .85; }
.metoda.feature p { color: var(--on-a); opacity: .9; }

/* kurzy */
.kurzy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.kurz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 12px; border-radius: var(--r-ctl); margin-bottom: 16px; }
.tag-ok { background: color-mix(in srgb, var(--a2) 16%, transparent); color: var(--a2); }
.tag-soon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.kurz .code { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kurz h3 { font-size: 20px; font-weight: 800; margin: 6px 0 10px; letter-spacing: -.02em; }
.kurz p { margin: 0 0 16px; color: var(--muted); font-size: var(--fs-small); }
.kurz ul { list-style: none; margin: 0 0 20px; padding: 0; }
.kurz li { font-size: var(--fs-small); color: var(--muted); padding: 7px 0; border-top: 1px solid var(--line-soft); }
.kurz li:first-child { border-top: 0; }
.kurz .foot { margin-top: auto; }

/* na mieru */
.mieru .wrap { display: grid; gap: 28px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.step .n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--a1); font-weight: 700; }
.step h3 { font-size: 15px; font-weight: 700; margin: 10px 0 6px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
footer.ft { border-top: 1px solid var(--line); padding: 44px 0; }
footer.ft .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer.ft .word { font-weight: 800; letter-spacing: -.02em; }
footer.ft .col { font-size: var(--fs-small); color: var(--muted); line-height: 1.9; }
footer.ft a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
footer.ft a:hover { border-bottom-color: var(--a1); }

/* ---------- login ---------- */
.auth { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px var(--gutter); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card-lg); box-shadow: var(--shadow-md); padding: 34px 30px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.auth .lead { color: var(--muted); margin: 0 0 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.input { width: 100%; min-height: var(--hit); padding: 12px 18px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.input:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 25%, transparent); }
.auth .err { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger);
  border-radius: var(--r-card); padding: 10px 14px; font-size: 13px; margin-bottom: 18px; }
.auth .sub { text-align: center; margin: 16px 0 0; font-size: 13px; }

@media (max-width: 860px) {
  .metody { grid-template-columns: 1fr 1fr; }
  .kurzy { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav .menu { display: none; }
  .hero { padding: 48px 0 40px; }
  .metody, .steps, .facts { grid-template-columns: 1fr; }
}

.ft-ident { margin-top: 8px; }
