:root {
  --bg: #fbfaf6;
  --bg-alt: #f1efe7;
  --ink: #1b1d22;
  --muted: #5a5f69;
  --line: #dedad0;
  --move: #e8562a;      /* pohyb – oranžová */
  --digi: #2a5be8;      /* digitál – modrá */
  --make: #14a37f;      /* tvorba – zelená */
  --card: #ffffff;
  --radius: 14px;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a; --bg-alt: #1b1e23; --ink: #eef0f3; --muted: #a3a9b3;
    --line: #2c3038; --card: #1f2228;
    --move: #ff7a4d; --digi: #6f93ff; --make: #3fcfa6;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 700; }
a { color: var(--digi); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 1.15rem var(--font-head); }
.logo svg { width: 34px; height: 34px; }
.logo-bg { fill: var(--ink); }
.logo-a { fill: none; stroke: var(--bg); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-dot { fill: var(--move); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--move); }
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:nth-child(1), .nav a:nth-child(4) { display: none; }
}

/* Hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--muted); }
.accent { color: var(--digi); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--ink); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { color: var(--ink); }

.hero-art { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1; }
.tile { border-radius: 22px; display: grid; place-items: center;
  font: 800 clamp(1.3rem, 3vw, 2rem) var(--font-head); color: #fff; }
.tile-move { background: var(--move); grid-row: span 2; }
.tile-digi { background: var(--digi); }
.tile-make { background: var(--make); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 3 / 1.4; max-width: 520px; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 36px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; border-top: 5px solid var(--ink); }
.card p { color: var(--muted); margin: 0; }
.card-move { border-top-color: var(--move); }
.card-digi { border-top-color: var(--digi); }
.card-school { border-top-color: var(--make); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.course { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.course p { color: var(--muted); margin: 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  color: #fff; margin-bottom: 10px; }
.badge-digi { background: var(--digi); }
.badge-make { background: var(--make); }
.badge-move { background: var(--move); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px;
  padding: 14px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 820px) { .courses { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

.note { font-size: .92rem; color: var(--muted); margin-top: 20px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.legal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.legal p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.site-footer a { color: var(--muted); }

.prose { padding: clamp(40px, 7vw, 80px) 0; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.facts dd small { font-weight: 400; color: var(--muted); }
.checklist { margin: 0 0 1em; padding-left: 1.2em; }
.checklist li { margin-bottom: .3em; }

/* Podstránky kroužků */
.hero-sub { padding-bottom: clamp(32px, 5vw, 56px); }
.hero-sub h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.eyebrow a { color: inherit; }
.accent-make { color: var(--make); }
.facts-wide { grid-template-columns: repeat(4, 1fr); max-width: 760px; margin-top: 28px; }
@media (max-width: 640px) { .facts-wide { grid-template-columns: 1fr 1fr; } }
.card-make { border-top-color: var(--make); }
.cards-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .cards-4 { grid-template-columns: 1fr; } }
.tech-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tech { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tech p { color: var(--muted); margin: 0 0 .6em; }
.tech a { font-weight: 600; font-size: .95rem; }
.more { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* O spolku / Pro školy */
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 820px; border-left: 5px solid var(--digi); }
.person-role { color: var(--muted); margin-top: -.3em; }
.timeline { display: grid; gap: 14px; max-width: 760px; }
.tl-item { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.tl-item p { margin: 0; }
.tl-date { font: 800 1.1rem var(--font-head); color: var(--move); }
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.program { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.program p { color: var(--muted); }
.program-meta { font-size: .92rem; font-weight: 600; color: var(--ink) !important; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 10px; }
@media (max-width: 900px) { .programs, .steps { grid-template-columns: 1fr; } }
.footer-inner p { margin: .2em 0; }
@media (max-width: 640px) { .nav a:nth-child(1), .nav a:nth-child(4) { display: inline; } .nav { gap: 12px; font-size: .9rem; } }
