/* 03-components.css â nav, mobile-menu, footer, akt, chips, ped-card, float
   ZUÅ  Pardubice â viz CSS-ARCHITEKTURA.md. Vzhled 1:1 z předlohy. */

  .spec-bar {
    background: var(--ink);
    color: var(--bg);
    padding: 8px 0;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
  }
  .spec-bar-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
  }
  .spec-tag { color: var(--yellow); }
  nav.main {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
  }
  .nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }
  .mobile-menu-btn {
    display: none;
    background: var(--ink);
    color: var(--bg);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -3px 3px 0 var(--ink);
  }
  .mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--bg);
    position: relative;
  }
  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--bg);
    transition: transform .2s;
  }
  .mobile-menu-btn span::before { top: -6px; }
  .mobile-menu-btn span::after { top: 6px; }
  .mobile-menu-btn.open span { background: transparent; }
  .mobile-menu-btn.open span::before { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-btn.open span::after { transform: translateY(-6px) rotate(-45deg); }
  .mobile-menu {
    display: none;
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
    padding: 16px 0 calc(40px + env(safe-area-inset-bottom));
    position: sticky;
    top: 92px;
    z-index: 49;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { list-style: none; padding: 0 24px; }
  .mobile-menu li { border-bottom: 1px dashed rgba(31, 27, 26, 0.15); }
  .mobile-menu li:last-child { border-bottom: 0; }
  .mobile-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .mobile-menu a::after {
    content: "→";
    color: var(--ink);
    font-size: 20px;
  }
  .mobile-menu .mob-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 24px 0;
    padding: 16px 22px;
    background: #fff;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-weight: 600;
    box-shadow: -4px 4px 0 var(--ink);
  }
  .mobile-menu .mob-cta::after { color: var(--ink); }
  .brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
  }
  .brand-mark { width: 64px; height: 64px; display: block; flex-shrink: 0; }
  .brand-mark img { width: 64px; height: 64px; object-fit: contain; display: block; }
  .brand-text { display: flex; flex-direction: column; line-height: 1.02; }
  .brand-text strong { font-weight: 800; font-size: 26px; letter-spacing: -0.025em; color: var(--ink); }
  .brand-text small {
    font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
    text-transform: uppercase; color: rgba(31, 27, 26, 0.55); margin-top: 4px;
  }
  .nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    justify-content: center;
  }
  .nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: all .2s;
  }
  .nav-links a:hover { background: var(--ink); color: var(--bg); }
  .nav-cta {
    background: #fff;
    color: var(--ink);
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--ink);
    box-shadow: -4px 4px 0 var(--ink);
    transition: transform .15s, box-shadow .15s;
  }
  .nav-cta:hover {
    transform: translate(2px, -2px);
    box-shadow: -6px 6px 0 var(--ink);
    color: var(--ink);
  }

  /* Párová navigace uchazeč ↔ rodič */
  .audience-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
  }
  .audience-tab {
    padding: 10px 18px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: var(--ink);
    background: transparent;
    transition: background .15s, color .15s, box-shadow .15s;
  }
  .audience-tab:hover {
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
  }
  .audience-tab.is-active {
    background: var(--ink);
    color: var(--yellow);
    box-shadow: -4px 4px 0 var(--yellow);
  }
  .section.uchazec .audience-tab {
    border-color: rgba(255, 255, 255, .35);
    color: var(--bg);
  }
  .section.uchazec .audience-tab:hover,
  .section.uchazec .audience-tab.is-active {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--ink);
    box-shadow: -4px 4px 0 var(--ink);
  }


  /* Aktuality grid */
  .aktuality { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .akt {
    background: var(--bg);
    border: 2px solid var(--ink);
    border-radius: 24px;
    padding: 28px;
    position: relative;
    transition: transform .2s;
  }
  .akt:hover { transform: translateY(-4px); }
  .akt { --akt-c: var(--ink); }
  .akt-big {
    grid-column: span 7;
    grid-row: span 2;
    background: var(--akt-c);
    color: var(--bg);
    box-shadow: -8px 8px 0 var(--ink);
    padding: 40px;
    overflow: hidden;
  }
  .akt-big::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: rgba(255, 248, 236, 0.12);
    border-radius: 50%;
    top: -80px;
    right: -80px;
  }
  .akt-medium { grid-column: span 5; box-shadow: -6px 6px 0 var(--akt-c); }
  .akt-medium-2 { grid-column: span 5; box-shadow: -6px 6px 0 var(--akt-c); }
  .akt-small-1 { grid-column: span 4; box-shadow: -6px 6px 0 var(--akt-c); }
  .akt-small-2 { grid-column: span 4; box-shadow: -6px 6px 0 var(--akt-c); }
  .akt-small-3 { grid-column: span 4; box-shadow: -6px 6px 0 var(--akt-c); }
  .akt-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
    margin-bottom: 16px;
  }
  .akt-big .akt-tag { color: var(--yellow); border-color: var(--yellow); }
  .akt h3 {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    z-index: 1;
    position: relative;
  }
  .akt-big h3 { font-size: 40px; }
  .akt p { font-size: 14px; opacity: 0.9; margin-bottom: 14px; line-height: 1.4; }
  .akt-big p { font-size: 17px; opacity: 1; }
  .akt ul.medals { list-style: none; padding: 0; margin: 12px 0; font-size: 13px; }
  .akt ul.medals li { padding: 4px 0; display: flex; gap: 8px; border-bottom: 1px solid rgba(255, 248, 236, 0.18); }
  .akt ul.medals li::before { content: '★'; color: var(--yellow); }
  .akt-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.6;
  }


  /* Absolventi cloud */
  .absolventi-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    line-height: 1.4;
  }
  .abs-chip {
    background: var(--bg);
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 12px 20px;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 22px;
    transition: all .15s;
    cursor: pointer;
  }
  .abs-chip:hover { background: var(--ink); color: var(--yellow); }
  .abs-chip.lg { font-size: 28px; padding: 14px 24px; background: var(--yellow); }
  .abs-chip.md { font-size: 26px; background: var(--pink); }
  .abs-chip.alt { background: var(--ink); color: var(--bg); }
  .abs-chip.alt-2 { background: var(--pink); color: var(--ink); }
  .abs-chip .role {
    display: inline-block;
    margin-left: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
  }

  /* Footer / Kontakt */
  footer {
    background: var(--ink);
    color: var(--bg);
    border-top: 2px solid var(--ink);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
  }
  footer .blob-f {
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    bottom: -240px; right: -120px;
    background: var(--yellow);
    opacity: 0.15;
  }
  .vedeni {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
  }
  .vedeni-card {
    border: 1.5px solid rgba(255, 248, 236, 0.2);
    border-radius: 18px;
    padding: 24px;
    background: rgba(255, 248, 236, 0.04);
  }
  .vedeni-foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 248, 236, 0.25);
  }
  .vedeni-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .vedeni-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 12px;
  }
  .vedeni-name {
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.1;
  }
  .vedeni-contact {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.85;
  }
  .vedeni-contact a { color: var(--yellow); }
  .foot-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
    padding-top: 40px;
    border-top: 1px dashed rgba(255, 248, 236, 0.2);
  }
  .foot-brand h2 {
    font-size: 56px;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: var(--yellow);
  }
  .foot-brand h2 .serif { color: var(--bg); }
  .foot-tag {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 16px;
    opacity: 0.7;
  }
  .foot-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--yellow);
  }
  .foot-col ul { list-style: none; }
  .foot-col li { padding: 4px 0; font-size: 13px; opacity: 0.85; line-height: 1.5; }
  .foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px dashed rgba(255, 248, 236, 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    opacity: 0.6;
  }
  .foot-social { display: flex; gap: 10px; flex-wrap: wrap; }
  .foot-social .soc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px 0 14px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .foot-social .soc svg { width: 20px; height: 20px; fill: currentColor; }
  .foot-social .soc:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
  .foot-social .soc-izus { padding: 0 18px; }

  /* Floating Apply */
  .float-apply {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 100;
    background: #fff;
    color: var(--ink);
    padding: 16px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--ink);
    box-shadow: -6px 6px 0 var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .2s, box-shadow .2s;
  }
  .float-apply:hover {
    transform: translate(3px, -3px);
    box-shadow: -9px 9px 0 var(--ink);
    color: var(--ink);
  }
  .float-apply::after { content: '→'; transition: transform .2s; }
  .float-apply:hover::after { transform: translateX(3px); }

  
/* Mobilní menu — oborové položky v barvě oboru */
.mobile-menu .mob-obor { color: var(--c); font-weight: 700; }
.mobile-menu .mob-obor::after { color: var(--c); }

/* Při otevřeném mobilním menu skrýt globální plovoucí Přihlášku
   (menu má vlastní CTA .mob-cta; jinak fixed pill překrývá poslední položky) */
body.menu-open .float-apply { display: none; }

/* Sledujte nás — odkazy na sociální sítě (sekce na stránce Aktuality) */
.soc-btns { display: flex; flex-wrap: wrap; gap: 18px; }
.soc-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  box-shadow: -5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.soc-btn:hover { transform: translate(2px,-2px); box-shadow: -8px 8px 0 var(--ink); }
.soc-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* Stránkování aktualit (Novější / Starší) */
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; flex-wrap: wrap; }
.pager-btn {
  display: inline-block; padding: 12px 22px; background: var(--bg); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: -5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.pager-btn:hover { transform: translate(2px,-2px); box-shadow: -8px 8px 0 var(--ink); }
.pager-info { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }

/* Cover foto na kartě aktuality */
.akt { overflow: hidden; }
.akt-foto { display: block; margin: -28px -28px 16px; }
.akt-foto img { width: 100%; height: 180px; object-fit: cover; display: block; }
.akt-big .akt-foto { margin: -40px -40px 24px; }
.akt-big .akt-foto img { height: 300px; }

/* carousel médií v kartě aktuality (slide jako na sítích) */
.akt-carousel { position: relative; overflow: hidden; }
.akt-carousel .carousel-track { display: flex; transition: transform .35s ease; }
.akt-carousel .carousel-slide { flex: 0 0 100%; background: var(--akt-c); }
.akt-carousel .carousel-slide img { width: 100%; height: 180px; object-fit: contain; display: block; }
.akt-big .akt-carousel .carousel-slide img { height: 300px; }
.akt-carousel .carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--ink); border: 2px solid var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .15s, transform .12s;
}
.akt-carousel:hover .carousel-arrow { opacity: 1; }
.akt-carousel .carousel-arrow.prev { left: 10px; }
.akt-carousel .carousel-arrow.next { right: 10px; }
.akt-carousel .carousel-arrow:active { transform: translateY(-50%) scale(.92); }
.akt-carousel .carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2;
  display: flex; gap: 6px; justify-content: center;
}
.akt-carousel .carousel-dots .dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(255, 248, 236, .55); border: 1px solid var(--ink);
  transition: background .15s, transform .15s;
}
.akt-carousel .carousel-dots .dot.active { background: var(--bg); transform: scale(1.25); }
/* karta s jedinou fotkou ve feedu — stejný vzhled jako carousel (fotka celá + barevný rám) */
.akt-foto-fit { background: var(--akt-c); }
.akt-foto-fit img { object-fit: contain; }
@media (hover: none) {
  .akt-carousel .carousel-arrow { opacity: 1; }
}

/* Ekvalizér — statický motiv z fasády budovy (obarvitelný přes CSS mask) */
.eq-band {
  height: 90px; width: 100%;
  -webkit-mask: var(--eq) center/cover no-repeat;
  mask: var(--eq) center/cover no-repeat;
}
@media (max-width: 640px) { .eq-band { height: 60px; } }

/* Modal s kontaktem pedagoga (klik na .ped-card) */
.ped-card[data-ped] { cursor: pointer; }
.ped-modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(31, 27, 26, .9); padding: 24px;
}
.ped-modal.open { display: flex; }
.ped-modal-card {
  position: relative; width: 100%; max-width: 380px; text-align: center;
  background: var(--bg); border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink); padding: 38px 32px 34px;
}
.ped-modal-avatar {
  width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.ped-modal-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ped-modal-avatar img.ped-ikona { width: 54%; height: 54%; object-fit: contain; }
.ped-modal-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 6px; }
.ped-modal-role { font-size: 15px; opacity: .8; margin-bottom: 4px; }
.ped-modal-obor {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; opacity: .6; margin-bottom: 20px;
}
.ped-modal-obor:empty { display: none; }
.ped-modal-kontakt { display: flex; flex-direction: column; gap: 10px; }
.ped-modal-kontakt a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border: 2px solid var(--ink); border-radius: 10px;
  text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600;
  transition: transform .12s, background .12s;
  max-width: 100%; min-width: 0; overflow-wrap: anywhere; /* dlouhý e-mail se na mobilu zalomí, nepřeteče přes rámeček */
}
/* E-mail bývá dlouhý (až 37 znaků) — menší písmo, aby se vešel na jeden řádek (karta má max-width 380px). */
.ped-modal-kontakt a[href^="mailto:"] { font-size: 13px; }
.ped-modal-kontakt a:hover { transform: translateY(-2px); background: var(--yellow); }
.ped-modal-nokont { opacity: .5; font-size: 14px; }
.ped-modal-close {
  position: absolute; top: -14px; right: -14px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; transition: transform .12s;
}
.ped-modal-close:hover { transform: scale(1.08); }
