/* ============================================================
   HYBRIDNÍ VZDĚLÁVÁNÍ — style.css
   Opraveno: responzivita, grid, hamburger od 768px, hover stavy,
   CTA pevná šířka, scroll hint na mobilu, nav-toggle visibility
   ============================================================ */

:root {
  --bg: #f4fbfe;
  --text: #111;
  --muted: #5a5a5a;
  --accent: #f4a621;
  --line: #d7dde1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Funnel Display", "Helvetica Neue", "Arial", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
/* FIX #2: Pevná šířka 1420px → plynulý max-width s paddingem */
.page {
  max-width: 1420px;
  width: 100%;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 80px) 60px;
  position: relative;
}

/* ── DEKORATIVNÍ KRUHY (proc-s-nami) ─────────────────────── */
.proc-graphics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.proc-circle {
  position: absolute;
  width: clamp(300px, 44vw, 630px);
  height: auto;
  opacity: 0.55;
}

.proc-circle-left {
  top: 200px;
  left: -80px;
}

.proc-circle-right {
  top: 120px;
  right: -80px;
}

/* ── NAVIGACE ─────────────────────────────────────────────── */
/* FIX #3: repeat(24, 40px) grid → flexbox
   FIX #4: hamburger od 768px
   FIX #10: nav-toggle vždy hidden */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 176px;
  height: auto;
  display: block;
}

/* FIX #10: Checkbox skrytý bez layout shiftu */
.nav-toggle {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  z-index: 2002;
}

.hamburger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 24px; }

.hamburger::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #111;
  z-index: -1;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 28px;
  font-weight: 600;
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a.active {
  border-color: transparent;
  color: var(--accent);
}

.nav-links a:hover {
  border-color: transparent;
  color: var(--accent);
}

.nav-overlay {
  display: none;
}

/* ── HERO ─────────────────────────────────────────────────── */
/* FIX #3: repeat(24, 40px) → dvousloupcový grid */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-left {
  min-width: 0;
}

.hero-left h1 {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: clamp(42px, 5vw, 71px);
  line-height: 1.05;
  margin: 0 0 14px 0;
  font-weight: 800;
}

.hero-title {
  position: relative;
  display: inline-block;
}

.tag {
  background: var(--accent);
  padding: 5px 13px 6px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 400;
  font-family: "Funnel Display", "Helvetica Neue", "Arial", sans-serif;
}

.tag-inline {
  position: absolute;
  top: 80px;
  left: 50px;
  z-index: 2;
}

.tag.small {
  font-size: 18px;
  padding: 5px 13px 6px;
  font-weight: 400;
  font-family: "Funnel Display", "Helvetica Neue", "Arial", sans-serif;
}

.tag-floating {
  position: absolute;
  top: -4px;
  left: 320px;
}

.lead {
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
  max-width: 460px;
}

.hero-right {
  position: relative;
  min-height: 700px;
  overflow: visible;
  min-width: 0;
}

.hero-graphics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.circle {
  position: absolute;
  width: clamp(400px, 47vw, 683px);
  height: auto;
}

.circle-1 {
  top: 260px;
  left: -720px;
}

.circle-2 {
  top: -310px;
  left: -120px;
}

.hero-text {
  position: relative;
  margin-top: 350px;
  max-width: 460px;
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
  z-index: 1;
}

.hero-text strong {
  color: var(--text);
}

/* ── TÝM ──────────────────────────────────────────────────── */
/* FIX #7: Scroll hint přes mask-image, schovaný scrollbar */
.team {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap;
  margin: 40px 0 60px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 10px;
}

.team::-webkit-scrollbar {
  display: none;
}

.person {
  display: grid;
  grid-template-columns: 160px 100px;
  column-gap: 20px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
  scroll-snap-align: center;
  transition: transform 0.2s ease;
}

/* FIX #8: hover na person */
.person:hover {
  transform: translateY(-3px);
}

.person img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.person:hover img {
  filter: grayscale(20%);
}

.person .name {
  font-size: 24px;
  font-weight: 700;
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  transition: color 0.2s;
}

.person:hover .name {
  color: var(--accent);
}

/* ── TRADICE ──────────────────────────────────────────────── */
/* FIX #3: repeat(24, 40px) → dvousloupcový grid */
.tradice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  align-items: start;
  margin-top: 100px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.tradice-title {
  position: relative;
  display: inline-block;
}

.tradice h2 {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: clamp(42px, 5vw, 71px);
  line-height: 1.15;
  margin: 0;
}

.tradice-right {
  font-size: 18px;
  color: var(--text);
  line-height: 1.7;
  padding-top: 10px;
}

/* ── CTA ──────────────────────────────────────────────────── */
/* FIX #11: Pevná width: 640px → max-width, plynulé na malých obrazovkách */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.arrow {
  display: none;
}

.arrow-img {
  width: 48px;
  height: auto;
  transition: transform 0.3s ease;
}

.cta:hover .arrow-img {
  transform: translateY(5px);
}

.cta-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  border: none;
  padding: 30px 48px;
  border-radius: 999px;
  font-size: clamp(22px, 2.5vw, 35px);
  width: 100%;
  max-width: 640px;
  text-align: center;
  font-family: "Funnel Display", "Helvetica Neue", "Arial", sans-serif;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.cta-btn:hover {
  background: var(--accent);
  color: var(--text);
}

/* ── FOOTER ───────────────────────────────────────────────── */
/* FIX #9: Základní struktura pro budoucí obsah */
.footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.9;
}

/* ============================================================
   ŠKOLÍME PAGE
   ============================================================ */

.train-hero {
  margin-top: 20px;
}

.train-hero h1 {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: clamp(34px, 4vw, 57px);
  line-height: 1.1;
  margin: 0 0 20px 0;
  font-weight: 800;
  max-width: 800px;
}

.train-circles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 288px));
  gap: 40px;
  justify-content: center;
  margin: 30px 0 60px;
}

.train-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e6e6e6;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  text-decoration: none;
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.train-circle h3 {
  display: block;
  font-size: clamp(20px, 1.8vw, 27px);
  margin: 0 0 6px 0;
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  max-width: 100%;
}

.train-circle span {
  font-size: 14px;
  line-height: 1.3;
  max-width: 100%;
}

.circle-dark {
  background: #111;
  color: #fff;
}

.train-circle:hover {
  transform: scale(1.06);
  background: var(--accent);
  color: #111;
  box-shadow: 0 12px 32px rgba(244, 166, 33, 0.25);
}

.circle-tag {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  text-transform: lowercase;
  max-width: 100%;
}

/* Reference */
.references {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  margin-top: 20px;
}

.references-left h2 {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: clamp(36px, 3.8vw, 53px);
  margin: 0 0 16px;
}

.references-left p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Logos — 9 loga firem */
.logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}

.logos img {
  width: 100%;
  height: 48px;
  object-fit: contain;
}


.references-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
}

/* FIX #8: hover stav na ref-item */
.ref-item {
  padding: 12px 14px;
  border-radius: 6px;
  transition: background 0.2s;
}

.ref-item:hover {
  background: rgba(244, 166, 33, 0.09);
}

.ref-item p {
  font-size: 16px;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* ============================================================
   PROČ S NÁMI PAGE
   ============================================================ */

.who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  margin-top: 20px;
}

.who-left h1 {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: clamp(42px, 5vw, 71px);
  margin: 0 0 16px;
}

.who-left p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.who-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FIX #8: hover stav na who-person */
.who-person {
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 16px;
  align-items: center;
  border-radius: 10px;
  padding: 10px;
  margin: -10px;
  transition: background 0.2s;
}

.who-person:hover {
  background: rgba(244, 166, 33, 0.08);
}

.who-person img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.who-person:hover img {
  filter: grayscale(20%);
}

.who-name {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.methodika {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  margin-top: 40px;
  align-items: start;
}

.method-box {
  background: #fff;
  padding: 24px 26px;
  box-shadow: 0 0 0 1px #e6eef2;
  font-size: 18px;
  line-height: 1.55;
}

.method-box p {
  margin: 0 0 12px;
}

.method-box ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.method-box ul li {
  margin-bottom: 10px;
}

.method-right h2 {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 40px;
}

.method-right h3 {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: 22px;
  margin: 0 0 30px;
}

.method-right p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   RESPONZIVITA
   ============================================================ */

/* ── TABLET (1100px) ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .hero-right {
    min-height: auto;
  }

  .circle-1,
  .circle-2 {
    display: none;
  }

  .hero-text {
    margin-top: 0;
  }

  .tradice {
    grid-template-columns: 1fr;
    row-gap: 24px;
    margin-top: 60px;
  }

  .who,
  .methodika,
  .references {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .train-circles {
    grid-template-columns: repeat(2, minmax(0, 240px));
  }

  .proc-circle {
    width: clamp(250px, 50vw, 450px);
    opacity: 0.35;
  }

  .proc-circle-left {
    left: -40px;
  }

  .proc-circle-right {
    right: -40px;
  }
}

/* FIX #4: Hamburger od 768px místo 480px ──────────────────── */
@media (max-width: 768px) {
  .nav {
    position: relative;
    z-index: 2002;
  }

  /* Zobraz hamburger */
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2000;
    display: none;
  }

  .nav-toggle:checked ~ .nav-overlay {
    display: block;
  }

  /* Drawer menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 32px 40px;
    font-size: 26px;
    font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0.25s ease;
    visibility: hidden;
    pointer-events: none;
    flex-wrap: nowrap;
  }

  .nav-links a {
    font-size: 26px;
    border-bottom: none;
    padding-bottom: 0;
    border-left: 3px solid transparent;
    padding-left: 12px;
    transition: border-color 0.2s, color 0.2s;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent);
    border-left-color: var(--accent);
  }

  .nav-toggle:checked ~ .nav-links {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Animace hamburgeru → X */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .hamburger span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
  }

  /* Hero */
  .hero-left h1 {
    font-size: 48px;
  }

  .tag-inline {
    position: static;
    display: inline-block;
    margin-left: 8px;
    margin-top: 6px;
  }

  .hero-title {
    display: block;
  }

  .lead,
  .hero-text,
  .tradice-right {
    max-width: 100%;
    font-size: 16px;
  }

  /* FIX #7: Scroll hint — gradient maska naznačí další prvky */
  .team {
    margin: 30px 0 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 20px 12px;
    -webkit-mask-image: linear-gradient(to right, black 82%, transparent 100%);
    mask-image: linear-gradient(to right, black 82%, transparent 100%);
  }

  .person {
    grid-template-columns: 120px 1fr;
  }

  .person img {
    width: 120px;
    height: 120px;
  }

  .person .name {
    font-size: 20px;
  }

  .tradice h2 {
    font-size: 48px;
  }

  .tag-floating {
    position: static;
    display: inline-block;
    margin-top: 10px;
  }

  /* FIX #11: CTA plynulá šířka */
  .cta-btn {
    width: 100%;
    max-width: 100%;
    font-size: 28px;
    padding: 20px 24px;
  }

  .arrow-img {
    width: 40px;
  }

  .cta {
    gap: 16px;
    margin-top: 24px;
  }

  .tradice {
    grid-template-columns: 1fr;
    row-gap: 24px;
    margin-top: 60px;
  }

  .footer {
    font-size: 13px;
    padding-top: 28px;
    margin-top: 60px;
  }

  /* Proč s námi */
  .who-left h1 {
    font-size: 40px;
  }

  .who-right {
    gap: 16px;
  }

  .method-right h2 {
    font-size: 32px;
  }

  /* Školíme */
  .references-right {
    grid-template-columns: 1fr;
  }

  .train-circles {
    grid-template-columns: minmax(0, 260px);
    justify-content: center;
  }
}

/* ── MALÝ MOBIL (480px) ───────────────────────────────────── */
@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 40px;
  }

  .tradice h2 {
    font-size: 34px;
    line-height: 1.2;
  }

  .lead,
  .hero-text,
  .tradice-right {
    font-size: 15px;
  }

  .person {
    grid-template-columns: 96px 1fr;
  }

  .person img {
    width: 96px;
    height: 96px;
  }

  .person .name {
    font-size: 18px;
  }

  .cta-btn {
    font-size: 22px;
    padding: 18px 20px;
  }

  .arrow-img {
    width: 34px;
  }

  .train-hero h1 {
    font-size: 30px;
  }

  .who-left h1 {
    font-size: 34px;
  }
}
