/* Vlast na školách — design systém
   Barvy a typografie podle brand manuálu (červenec 2026) */

/* Cely web jede na jednom pismu — Inter, nadpisy i text. Oficialni
   Joost z brand manualu je jen v logu (to je obrazek), jako webfont
   ho nepouzivame: nema ceskou diakritiku a nemame webovou licenci.
   Pismo hostujeme sami, ne pres Google Fonts: usetri to dve cizi domeny
   na kriticke ceste. Je to variable font, jeden soubor pokryva cely
   rozsah vah. Subset latin-ext je pro ceskou diakritiku nutny. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --indigo: #190881;
  --red: #d80300;
  --green: #16532e;
  --yellow: #f4b200;
  --orange: #ff8e09;
  --paper: #ffffff;
  --ink: #12123a;
  --muted: #5a5a78;
  --line: #e2e2ec;

  --display: var(--text);
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --max: 1180px;
}

* { box-sizing: border-box; }

/* .form ma display:grid, ktery by prebil vychozi [hidden] */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* hlavicka je sticky; bez odsazeni by po skoku na kotvu zakryla nadpis sekce */
html { scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--indigo); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- typografie ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 .6em;
  color: var(--indigo);
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--indigo); font-weight: 500; }

.kicker {
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.2rem;
}

/* ---------- hlavička ---------- */

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--indigo);
}

.bar {
  max-width: var(--max); margin: 0 auto; padding: .85rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.bar img { height: 34px; width: auto; }

nav { display: flex; align-items: center; gap: 1.6rem; }

nav a {
  font-family: var(--display); font-weight: 500; font-size: .98rem;
  color: var(--indigo); text-decoration: none;
}

nav a:hover { color: var(--red); }

.nav-links { display: flex; gap: 1.6rem; }

/* tlacitko mobilniho menu — na desktopu neni */
.menu-toggle { display: none; }

/* ---------- tlačítka ---------- */

.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  background: var(--red); color: #fff; text-decoration: none;
  padding: .8rem 1.6rem; border: 2px solid var(--red);
  transition: background .15s, color .15s;
}

.btn:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: #fff; }

/* ---------- sekce ---------- */

section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

section + section { border-top: 1px solid var(--line); }

.section-indigo { background: var(--indigo); color: #fff; border-top: none; }
.section-indigo h2, .section-indigo h3, .section-indigo .lead { color: #fff; }
.section-indigo .kicker { color: var(--yellow); }
.section-indigo a { color: #fff; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }

.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--red); }

.hero p { max-width: 52ch; font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- fakta ---------- */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact { background: var(--paper); padding: 1.6rem 1.4rem; }
.fact b { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 700; color: var(--indigo); line-height: 1; }
.fact span { display: block; margin-top: .5rem; font-size: .9rem; color: var(--muted); }

/* ---------- posuvny pas ---------- */

/* Pri rolovani se stopa posouva doleva; hybe s ni skript na konci index.html.
   Bez JS nebo pri omezenem pohybu zustane stat a je proste videt. */
.pas { background: var(--indigo); overflow: hidden; padding: 1.5rem 0; border-top: none; }
.pas-stopa {
  display: flex; align-items: center; gap: 2.2rem;
  width: max-content; white-space: nowrap; will-change: transform;
}
.pas span {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); letter-spacing: -.02em; color: #fff;
}
.pas .pas-tecka { color: var(--yellow); }

/* ---------- mřížky ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }

.topic { border-top: 4px solid var(--red); padding-top: 1.2rem; }
.topic .num { font-family: var(--display); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--red); }
.topic h3 { margin: .4rem 0 .5rem; }
.topic p { margin: 0; font-size: .95rem; color: var(--muted); }

.section-indigo .topic { border-top-color: var(--yellow); }
.section-indigo .topic .num { color: var(--yellow); }
.section-indigo .topic p { color: rgba(255,255,255,.82); }

/* ---------- průběh ---------- */

.steps { counter-reset: s; margin-top: 2.5rem; display: grid; gap: 0; }
.step { counter-increment: s; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--red);
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- reference ---------- */

.quote-big { margin: 0 0 1.5rem; padding: 0 0 0 1.4rem; border-left: 4px solid var(--yellow); }
.quote-big p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2;
  letter-spacing: -.01em; color: #fff; margin: 0 0 .8rem;
}
.quote-big cite { font-style: normal; font-size: .9rem; color: var(--yellow); }

.foto { margin: 0; }
.foto img { width: 100%; height: auto; }
.foto figcaption { margin-top: .8rem; font-size: .85rem; line-height: 1.5; color: rgba(255,255,255,.7); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.quote { border-top: 4px solid var(--yellow); padding-top: 1.2rem; }
.quote p { margin: 0; font-size: .98rem; color: rgba(255,255,255,.9); }
.quotes-note { margin: 1.2rem 0 0; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- tým ---------- */

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.member b { font-family: var(--display); font-size: 1.05rem; color: var(--indigo); display: block; }
.member span { font-size: .9rem; color: var(--muted); }

/* kolecko s fotkou; dokud fotka neni, jsou v nem inicialy */
.avatar {
  width: 100%; max-width: 132px; aspect-ratio: 1;
  margin-bottom: 1rem;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--indigo);
  overflow: hidden;
  display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar .initials { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: #fff; }

/* ---------- formulář ---------- */

.form { display: grid; gap: 1rem; margin-top: 2rem; max-width: 560px; }
.form label { font-size: .88rem; font-weight: 600; color: var(--indigo); display: block; margin-bottom: .35rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: .98rem;
  padding: .7rem .85rem; border: 2px solid var(--line); background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--indigo); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { width: auto; margin-top: .25rem; flex: 0 0 auto; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* formulář na tmavém pozadí */
.section-indigo .form label { color: #fff; }
.section-indigo .consent { color: rgba(255,255,255,.85); }
.section-indigo .form input,
.section-indigo .form textarea,
.section-indigo .form select { border-color: rgba(255,255,255,.35); }
.section-indigo .form input:focus,
.section-indigo .form textarea:focus,
.section-indigo .form select:focus { border-color: var(--yellow); }

/* stav po odeslani + chyba */
.form-error { font-size: .88rem; margin: .25rem 0 0; color: var(--red); font-weight: 500; }
.section-indigo .form-error { color: var(--yellow); }

.form-done { margin-top: 2rem; border-left: 4px solid var(--yellow); padding: .25rem 0 .25rem 1.4rem; max-width: 46ch; }
.form-done h3 { margin-bottom: .5rem; }
.form-done p { margin: 0; color: rgba(255,255,255,.85); font-size: .96rem; }

/* ---------- patička ---------- */

footer { background: var(--indigo); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
footer a { color: #fff; }
footer img.logo { height: 52px; width: auto; }

.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.foot-top h4 { font-family: var(--display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin: 0 0 .8rem; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }

.eu { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.25); display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.eu img { height: 46px; width: auto; }
.eu-text { font-size: .8rem; line-height: 1.55; color: rgba(255,255,255,.78); max-width: 62ch; }

.legal { margin-top: 2rem; font-size: .8rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; }

/* ---------- animace pri scrollu ---------- */

/* Trida js-anim se pridava inline skriptem v <head>, takze se prvky
   skryji jeste pred prvnim vykreslenim a nic neproblikne. Kdyz JS
   nebezi nebo si uzivatel vyzada omezeny pohyb, trida se neprida
   a cely web je staticky videt — animace je jen prikrasa.
   Hero se zamerne neanimuje, at se nezdrzuje prvni vykresleni. */

.js-anim .fact,
.js-anim .topic,
.js-anim .step,
.js-anim .member {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--d, 0ms);
}

.js-anim .fact.is-in,
.js-anim .topic.is-in,
.js-anim .step.is-in,
.js-anim .member.is-in {
  opacity: 1;
  transform: none;
}

/* kolecka u tymu dojedou z mensiho — kruh je nosny tvar webu */
.js-anim .member .avatar {
  transform: scale(.88);
  transition: transform .55s ease;
  transition-delay: var(--d, 0ms);
}
.js-anim .member.is-in .avatar { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .fact, .js-anim .topic, .js-anim .step, .js-anim .member,
  .js-anim .member .avatar {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---------- responzivita ---------- */

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 620px) {
  /* hlavicka: logo, vyzva a tlacitko menu se musi vejit i na 360 px */
  .bar { gap: .75rem; }
  .bar img { height: 28px; }
  nav { gap: .6rem; }
  nav .btn { padding: .6rem .85rem; font-size: .92rem; white-space: nowrap; }

  /* bez JS: odkazy zalomene pod logo, at je navigace aspon nejaka */
  .bar { flex-wrap: wrap; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
  .nav-links { flex-wrap: wrap; gap: .3rem 1rem; order: 3; width: 100%; justify-content: flex-end; }

  /* s JS: vysouvaci panel pod hlavickou */
  .js .bar, .js nav { flex-wrap: nowrap; }
  .js nav .btn { order: 1; }
  .js .menu-toggle {
    order: 2;
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; padding: 0; flex: 0 0 auto;
    background: transparent; border: 2px solid var(--indigo); cursor: pointer;
  }
  .menu-ikona,
  .menu-ikona::before,
  .menu-ikona::after {
    display: block; width: 20px; height: 2px; background: var(--indigo);
    transition: transform .2s ease, background .2s ease;
  }
  .menu-ikona { position: relative; }
  .menu-ikona::before, .menu-ikona::after { content: ""; position: absolute; left: 0; }
  .menu-ikona::before { top: -6px; }
  .menu-ikona::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-ikona { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-ikona::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-ikona::after { transform: translateY(-6px) rotate(-45deg); }

  .js .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    width: auto; margin-top: 2px;
    flex-direction: column; gap: 0;
    background: var(--indigo);
    padding: .4rem var(--pad) 1.4rem;
    border-bottom: 4px solid var(--red);
  }
  .js .nav-links.is-open { display: flex; }
  .js .nav-links a {
    color: #fff; font-size: 1.2rem; font-weight: 600;
    padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.18);
  }
  .js .nav-links a:hover, .js .nav-links a:focus-visible { color: var(--yellow); }

  .team { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .avatar { max-width: 104px; }
  .avatar .initials { font-size: 1.3rem; }
  .form .row { grid-template-columns: 1fr; }
}

/* nejuzsi telefony (320 px): at se hlavicka nezalomi */
@media (max-width: 359px) {
  .bar img { height: 24px; }
  .bar, nav { gap: .5rem; }
  nav .btn { padding: .55rem .6rem; font-size: .85rem; }
  .js .menu-toggle { width: 38px; height: 38px; }
  /* „zdarma" a „celá ČR" se velkym pismem do dvou sloupcu nevejdou */
  .facts { grid-template-columns: 1fr; }
}
