/* Kyberlekce — základní styl */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --red: #ec4330;
  --ink: #0a0a0a;
  --paper: #ffffff;
  --dark: #221526;
  --cream: #f7e2c8;
  --line: #0a0a0a;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 3px;
  background: var(--red);
  display: inline-block;
}

/* Header */

.site-header {
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  height: 36px;
  width: 36px;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 4px; }

/* Hero */

.hero {
  padding: 72px 0 56px;
  border-bottom: 2px solid var(--ink);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  max-width: 16ch;
  margin-top: 18px;
}

.hero .lead {
  margin-top: 22px;
  font-size: 19px;
  max-width: 52ch;
  color: #2b2b2b;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  border-radius: 3px;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover { background: var(--red); border-color: var(--red); }

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* Facts strip */

.facts {
  border-bottom: 2px solid var(--ink);
}

.facts .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.facts dl {
  margin: 0;
  padding: 24px 0;
  border-left: 2px solid var(--ink);
  padding-left: 24px;
}

.facts .wrap > dl:first-child { border-left: none; padding-left: 0; }

.facts dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
}

.facts dd {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 18px;
}

/* Sections */

.section {
  padding: 64px 0;
  border-bottom: 2px solid var(--ink);
}

.section:last-of-type { border-bottom: none; }

.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: #2b2b2b;
}

/* Tracks grid */

.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--ink);
}

.track {
  padding: 36px;
}

.track + .track {
  border-left: 2px solid var(--ink);
}

.track .num {
  font-weight: 800;
  font-size: 13px;
  color: var(--red);
  letter-spacing: 0.08em;
}

.track h3 {
  font-size: 24px;
  margin-top: 10px;
}

.track .age {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 2px solid var(--ink);
}

.track p.desc {
  margin-top: 16px;
  color: #2b2b2b;
  font-size: 15px;
}

.track ul {
  margin-top: 18px;
}

.track li {
  padding: 9px 0;
  border-top: 1px solid #d8d8d8;
  font-size: 15px;
  font-weight: 500;
}

.track li:first-child { border-top: none; }

/* Founder note */

.note {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.note blockquote {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.note cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: #6b6b6b;
}

/* People / lektoři */

.people {
  border-top: 2px solid var(--ink);
}

.person {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 2px solid var(--ink);
  align-items: start;
}

.person:first-child { padding-top: 0; }

.avatar {
  width: 96px;
  height: 96px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
}

.person:nth-child(2) .avatar { background: var(--red); }
.person:nth-child(3) .avatar { background: var(--dark); }

.person h3 {
  font-size: 22px;
}

.person .role {
  margin-top: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.person p.bio {
  margin-top: 14px;
  color: #2b2b2b;
  font-size: 15px;
  max-width: 62ch;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-grid h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6b6b;
  font-weight: 700;
}

.contact-grid .value {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
}

.contact-grid .value a:hover { color: var(--red); }

.contact-block + .contact-block {
  margin-top: 32px;
}

.map-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--red);
}

/* CTA band */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
  border-bottom: 2px solid var(--ink);
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 32px);
  max-width: 22ch;
}

.cta-band .btn-solid {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

.cta-band .btn-solid:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Footer */

.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding: 48px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(247, 226, 200, 0.25);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--paper);
}

.footer-brand img { height: 32px; width: 32px; }

.footer-top p { margin-top: 14px; font-size: 14px; color: rgba(247,226,200,0.75); max-width: 36ch; }

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247,226,200,0.6);
  margin-bottom: 14px;
}

.footer-col li { margin-bottom: 10px; font-size: 14px; }

.footer-col a:hover { color: var(--red); }

.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  color: rgba(247,226,200,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  body.nav-open .main-nav {
    display: block;
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    border-top: 2px solid var(--ink);
    padding: 24px;
  }

  body.nav-open .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  body.nav-open .main-nav a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
  }

  .facts .wrap { grid-template-columns: 1fr; }
  .facts dl { border-left: none; border-top: 2px solid var(--ink); padding-left: 0; padding-top: 20px; }
  .facts .wrap > dl:first-child { border-top: none; padding-top: 24px; }

  .tracks { grid-template-columns: 1fr; }
  .track + .track { border-left: none; border-top: 2px solid var(--ink); }

  .note { grid-template-columns: 1fr; gap: 24px; }

  .person { grid-template-columns: 64px 1fr; }
  .avatar { width: 64px; height: 64px; font-size: 18px; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
}
