/* =========================
   ROOT TOKENS
========================= */
:root {
  --font-main:
    "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;

  --c-bg: #ffffff;
  --c-text: #111111;
  --c-muted: #444444;

  --c-border: #e7e7e7;
  --c-border-2: #ececec;

  --c-teal: #3bb7b5;
  --c-red: #ce1717;
  --c-orange: #f49618;

  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.04), 0 22px 60px rgba(0, 0, 0, 0.06);

  --radius-lg: 24px;
  --radius-md: 16px;
}

/* =========================
   BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top);
}

a {
  color: inherit;
}

/* =========================================================
   HEADER VARIABLES
   ========================================================= */

:root {
  --topbar-h: 44px;
  --nav-h: 102px;
  --nav-h-scrolled: 78px;
}

/* =========================================================
   HEADER LAYOUT
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: calc(var(--topbar-h) + var(--nav-h));
  will-change: transform;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    var(--c-teal),
    var(--c-red) 50%,
    var(--c-orange)
  );
  transition: transform 0.55s;
  will-change: transform;
}

.topbar-inner {
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
}

.topbar-cta {
  margin-left: 80px;
  color: #fff;
  text-decoration: underline;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  height: var(--nav-h);
  background: #fff;
  transition:
    transform 0.2s,
    height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.navbar-inner {
  max-width: 1720px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.logo-link {
  height: 70px;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* desktop nav */

.nav ul {
  display: flex;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #000;
  font-size: 22px;
  position: relative;
}

/* CTA underline animation */

.nav-cta a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  animation: underline 1.6s ease-in-out infinite;
}

@keyframes underline {
  0% {
    transform: scaleX(0);
  }
  50% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* =========================================================
   SCROLL STATE
   ========================================================= */

.site-header.scrolled .navbar {
  height: var(--nav-h-scrolled);
}

/* promo bar odjede */

.site-header.scrolled .topbar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* navbar se posune nahoru */

.site-header.scrolled .navbar {
  transform: translateY(calc(-1 * var(--topbar-h)));
  border-bottom: 1px solid var(--c-border);
}

.site-header.scrolled .logo,
.site-header.scrolled .logo-link {
  height: 46px;
}

/* fix micro lag při otevření menu */
html.menu-open .site-header {
  transform: translateZ(0);
}

/* =========================================================
   HAMBURGER
   ========================================================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}

.hamburger span {
  width: 32px;
  height: 5px;
  background: #000;
  border-radius: 4px;
}

/* =========================================================
   MOBILE MENU (MODAL APP)
   ========================================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  display: none;
  z-index: 2000;
}

.mobile-menu.active {
  display: flex;
}

.mobile-panel {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.mobile-bar {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
}

.mobile-close {
  width: 32px;
  height: 32px;
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
}

.mobile-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 5px;
  background: #000;
}

.mobile-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.mobile-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav {
  max-width: 520px;
  margin: 0 auto 40px auto;
  padding: 14px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-link {
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid var(--c-border);
  padding: 8px 0;
}

.mobile-cta {
  margin-top: 6px;
  border-radius: 999px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--c-red), var(--c-orange));
  color: #fff;
  border-bottom: none;
}

/* body lock when menu open */
.menu-open {
  overflow: hidden;
}

.mobile-panel.promo-active .topbar {
  display: flex;
}

.mobile-panel.promo-active .mobile-logo {
  height: 70px;
}

.mobile-panel.promo-active .mobile-bar a {
  height: 70px;
  width: auto;
}

.mobile-panel.promo-not .topbar {
  display: none;
}
.mobile-panel.promo-not .mobile-logo {
  height: 46px;
}

.mobile-panel.promo-not .mobile-bar a {
  height: 46px;
  width: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 867px) {
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .topbar-cta {
    display: none;
  }
  .topbar-inner {
    font-size: 15px;
  }
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 580px;

  margin: 0 16px;
  margin-top: 2px;

  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050505;

  font-family: var(--font-main);
  padding: 0px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
  filter: contrast(1.1) brightness(0.75) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 5, 5, 0.92) 0%,
    rgba(5, 5, 5, 0.78) 35%,
    rgba(5, 5, 5, 0.45) 60%,
    rgba(5, 5, 5, 0.1) 85%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  padding: clamp(90px, 11vw, 100px) 64px;
  color: #fff;
}

.hero-title {
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}

.hero-text {
  font-size: 17px;
  line-height: 1.7;
  color: #e6e6e6;
  max-width: 540px;
  margin-bottom: 42px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* HERO — buttons */
.btn {
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn.primary {
  background: linear-gradient(135deg, var(--c-red), var(--c-orange));
  color: #fff;
  box-shadow:
    0 6px 18px rgba(206, 23, 23, 0.35),
    0 0 0 rgba(244, 150, 24, 0);
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 30px rgba(206, 23, 23, 0.55),
    0 0 20px rgba(244, 150, 24, 0.5);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn.secondary:hover {
  border-color: var(--c-teal);
  color: var(--c-teal);
  box-shadow: 0 0 18px rgba(59, 183, 181, 0.45);
  transform: translateY(-2px);
}

/* HERO — responsive */
@media (max-width: 1024px) {
  .hero-content {
    padding: 120px 48px;
  }
  .hero-img {
    object-position: 70% center;
  }
}

@media (max-width: 768px) {
  .hero {
    border-radius: var(--radius-md);
    min-height: 560px;
    margin: 0 8px;
  }
  .hero-img {
    object-position: center;
  }

  .hero-inner {
    padding: 20px 12px;
    text-align: center;
  }
  .hero-content {
    padding: 0;
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 90%;
  }
}

/* =========================
   ACADEMY
========================= */
.academy {
  background: var(--c-bg);
  font-family: var(--font-main);
  color: var(--c-text);
  padding: 82px 16px 0px 16px;
}

.academy-container {
  max-width: 1200px;
  margin: 0 auto;
}

.academy-header h2 {
  font-size: 56px;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.academy-lead {
  font-size: 22px;
  max-width: 760px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 60px;
}

.academy-about {
  margin-bottom: 120px;
}

.academy-text {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-muted);
  margin-bottom: 50px;
}

.academy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.academy-card {
  position: relative;
  padding: 34px 28px 28px;
  border: 1px solid var(--c-border-2);
  transition: all 0.35s ease;
  background: #fff;
}

.academy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.academy-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.academy-card p {
  color: #555;
  line-height: 1.75;
}

.accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
}

.accent-teal {
  background: var(--c-teal);
}
.accent-orange {
  background: var(--c-orange);
}
.accent-red {
  background: var(--c-red);
}

/* ACADEMY — career path */
.academy-vision {
  margin-top: 120px;
}

.academy-vision h3 {
  font-size: 36px;
  margin-bottom: 12px;
}

.vision-intro p {
  color: #555;
  max-width: 650px;
}

.career-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  padding-top: 0;
}

.career-path::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 42px;
  height: 2px;
  background: #000;
  z-index: 0;
}

.path-stage {
  position: relative;
  text-align: center;
}

.path-stage::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.25s ease;
}

.path-stage:hover::before {
  background: #000;
  transform: translateX(-50%) scale(1.15);
}

.stage-card {
  margin-top: 60px;
  padding: 26px 24px 24px;
  border: 1px solid var(--c-border-2);
  background: #fff;
  min-height: 170px;
  transition: 0.3s ease;
}

.stage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

.stage-number {
  display: block;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #888;
  margin-bottom: 10px;
}

.stage-card h4 {
  font-size: 19px;
  margin-bottom: 8px;
}

.stage-card p {
  color: #555;
  line-height: 1.7;
}

/* ACADEMY — responsive */
@media (max-width: 1000px) {
  .academy-cards {
    grid-template-columns: 1fr;
  }

  .vision-intro p {
    margin-bottom: 40px;
  }

  .stage-number {
    font-size: 28px;
  }
  .stage-card {
    padding: 44px 24px 24px;
  }

  .career-path {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 0;
  }

  .career-path::before {
    top: 0;
    bottom: 0;
    left: 14px;
    right: auto;
    width: 2px;
    height: auto;
    background: #000;
  }

  .path-stage {
    text-align: left;
  }

  .path-stage::before {
    left: 3px;
    top: 25%;
    transform: none;
  }

  .path-stage:hover::before {
    background: #000;
    transform: scale(1.15);
  }

  .stage-card {
    margin-top: 0;
    margin-left: 30px;
  }
}

/* =========================
   TEAM
========================= */
.team-academy {
  padding: 82px 16px 0px 16px;
}

.team-sub {
  font-size: 32px;
  margin: 40px 0 20px;
}

.team-managers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.team-card {
  border: 1px solid var(--c-border-2);
  background: #fff;
  transition: 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.team-photo {
  aspect-ratio: 7/8;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-body {
  padding: 24px;
}

.team-body h4 {
  font-size: 22px;
  margin-bottom: 6px;
}

.role {
  display: block;
  color: #666;
  font-size: 14px;
  margin-bottom: 14px;
}

.team-body ul {
  padding-left: 18px;
  line-height: 1.8;
  color: #444;
}

/* TEAM — racers slider */
.racers-slider {
  position: relative;
  margin-top: 20px;
  z-index: 0; /* vytvoří základní kontext */
}

.racers-track {
  display: flex;
  gap: 24px;
  overflow-x: hidden;
  overflow-y: visible; /* <<< DŮLEŽITÉ */
  scroll-behavior: smooth;
  padding-top: 10px; /* prostor pro hover lift */
}
.racer-card {
  min-width: 240px;
  border: 1px solid var(--c-border-2);
  background: #fff;
  text-align: center;
  transition: 0.3s;
  position: relative; /* aby z-index fungoval správně */
  z-index: 1;
}

.racer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  z-index: 2; /* jen nad ostatními kartami, ne nad šipkou */
}

.racer-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.racer-card h4 {
  margin: 14px 0 4px;
  font-size: 18px;
}

.racer-card span {
  color: #777;
  font-size: 14px;
  display: block;
  margin-bottom: 16px;
}

.slider-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 44px;
  text-align: center;
  transition: 0.2s;

  z-index: 50; /* <<< KRITICKÉ */
  pointer-events: auto; /* jistota klikatelnosti */
}

.slider-btn:hover {
  background: #000;
  color: #fff;
}

.prev {
  left: -10px;
}
.next {
  right: -10px;
}

/* TEAM — responsive */
@media (max-width: 900px) {
  .team-managers {
    grid-template-columns: 1fr;
    width: 70%;
    margin: auto;
  }
  .slider-btn {
    display: none;
  }
  .racers-track {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .racers-track {
    scroll-snap-type: x mandatory;
    width: 100%;
    min-width: 0;
  }

  .racer-card {
    scroll-snap-align: start;
  }

}

/* =========================
   JOIN PANEL (CTA)
========================= */
.prihlaska {
  padding: 82px 0 0 0;
}

.partner-home-cta {
  padding: 56px 16px 0;
}

.partner-home-cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-border-2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    linear-gradient(
      90deg,
      rgba(59, 183, 181, 0.08),
      rgba(206, 23, 23, 0.08),
      rgba(244, 150, 24, 0.08)
    );
  box-shadow: var(--shadow-soft);
  padding: 88px 32px;
  text-align: center;
}

.partner-home-cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(59, 183, 181, 0.2), transparent 34%),
    radial-gradient(circle at 88% 75%, rgba(244, 150, 24, 0.24), transparent 32%),
    linear-gradient(
      120deg,
      transparent 0 46%,
      rgba(17, 17, 17, 0.03) 46% 49%,
      transparent 49% 100%
    );
  pointer-events: none;
}

.partner-home-cta-panel > * {
  position: relative;
  z-index: 1;
}

.partner-home-cta-badge {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #787878;
}

.partner-home-cta-panel h2 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.partner-home-cta-panel p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--c-muted);
}

.partner-home-cta-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}
.join-panel {
  position: relative;
  margin: auto;
  border-radius: 1px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9e9e9;
  max-width: 1200px;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  padding: 0;
  margin: 0 auto;
}

.join-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(59, 183, 181, 0.28),
      transparent 100%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(244, 150, 24, 0.48),
      transparent 60%
    ),
    radial-gradient(circle at 60% 30%, rgba(206, 23, 23, 0.65), transparent 50%);
  pointer-events: none;
}

.join-inner {
  position: relative;
  padding: 140px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.join-text {
  max-width: 560px;
}

.join-text h2 {
  font-size: 44px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.join-text p {
  font-size: 18px;
  color: var(--c-muted);
  line-height: 1.7;
}

.join-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.join-secondary {
  border: 1px solid #dcdcdc;
  color: #111;
  background: #fff;
}

.join-secondary:hover {
  border-color: var(--c-teal);
  color: var(--c-teal);
  box-shadow: 0 6px 18px rgba(59, 183, 181, 0.25);
}

/* JOIN PANEL — responsive */
@media (max-width: 800px) {
  .join-inner {
    padding: 50px 26px;
    align-items: flex-start;
  }

  .join-text h2 {
    font-size: 34px;
  }

  .partner-home-cta {
    padding-top: 42px;
  }

  .partner-home-cta-panel {
    padding: 56px 24px;
  }

  .partner-home-cta-panel h2 {
    font-size: 34px;
  }

  .partner-home-cta-panel p {
    font-size: 16px;
    line-height: 1.75;
  }

  .partner-home-cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================
   GALLERY + LIGHTBOX
========================= */
.gallery {
  background: #fff;
  padding: 82px 16px 0px 16px;
}

.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery h2 {
  font-size: 44px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.gallery-intro {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-muted);
  margin-bottom: 34px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  background: #f1f1f1;
  cursor: pointer;
  position: relative;
}

/* bez radiusu */
.gallery-item,
.gallery-item img {
  border-radius: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

/* 2 velké */
.gallery-item:nth-child(1),
.gallery-item:nth-child(2) {
  grid-column: span 6;
  aspect-ratio: 4/3;
}

/* 3 menší */
.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5) {
  grid-column: span 4;
  aspect-ratio: 4/3;
}

/* wide hero */
.gallery-item:nth-child(6) {
  grid-column: 1 / -1;
  aspect-ratio: 5/4;
}

@media (max-width: 768px) {
  .gallery-grid {
    gap: 8px;
  }

  /* dvě nahoře */
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2) {
    grid-column: span 6;
    aspect-ratio: 4/3;
  }

  /* jedna široká */
  .gallery-item:nth-child(3) {
    grid-column: 1 / -1;
    aspect-ratio: 4/3;
  }

  /* dvě pod ní */
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 6;
    aspect-ratio: 4/3;
  }

  /* banner */
  .gallery-item:nth-child(6) {
    grid-column: 1 / -1;
    aspect-ratio: 16/10;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  padding: 12px;
  line-height: 1;
}

.lightbox-close {
  top: 30px;
  right: 40px;
  font-size: 48px;
}

.lightbox-prev {
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================
   TRÉNINKOVÉ CENTRUM
========================= */
.center {
  background: #fff;
  font-family: var(--font-main);
  padding: 82px 16px 0px 16px;
}

.center-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.center-card {
  border: 1px solid var(--c-border-2);
  background: #fff;
  padding: 34px 28px 28px;
  transition: 0.35s ease;
}

.center-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.center-card h3 {
  font-size: 22px;
  margin-bottom: 18px;
}

.center-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.meta-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.meta-label {
  width: 80px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  flex: 0 0 auto;
  margin-top: 3px;
}

.meta-value {
  color: #222;
  line-height: 1.6;
}

.meta-value a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.center-text {
  color: #555;
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 560px;
}

.center-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.center-secondary {
  border: 1px solid #dcdcdc;
  color: #111;
  background: #fff;
}

.center-secondary:hover {
  border-color: var(--c-teal);
  color: var(--c-teal);
  box-shadow: 0 6px 18px rgba(59, 183, 181, 0.25);
  transform: translateY(-2px);
}

.center-map {
  border: 1px solid var(--c-border-2);
  background: #fff;
  overflow: hidden;
}

.center-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* CENTER — responsive */
@media (max-width: 1000px) {
  .center-grid {
    grid-template-columns: 1fr;
  }
  .center-map iframe {
    min-height: 360px;
  }
}

/* =========================
   FAQ
========================= */
.faq {
  background: transparent;
  font-family: var(--font-main);
  padding: 82px 26px 0px 26px;
}

.faq-inner {
  max-width: 900px;
  margin: 0 auto;
}

.faq h2 {
  font-size: 56px;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
  font-family: var(--font-main);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--c-border);
  padding: 22px 4px;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--c-text);
  transition: 0.2s ease;
  font-family: var(--font-main);
}

.faq-item:hover {
  transform: translateY(-1px);
}

.faq-icon {
  font-size: 20px;
  color: #999;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-content p {
  margin: 12px 0 28px 8px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--c-muted);
  max-width: 680px;
}

.faq-item.faq-open {
  border-bottom: 1px solid transparent;
}

.faq-item.faq-open + .faq-content {
  padding-bottom: 6px;
}

.faq-item.faq-open .faq-icon {
  transform: rotate(45deg);
  color: var(--c-text);
}

/* FAQ — responsive */
@media (max-width: 768px) {
  .faq h2 {
    font-size: 40px;
  }
  .faq-item {
    font-size: 17px;
    padding: 18px 2px;
  }
  .faq-content p {
    font-size: 16px;
  }
}

/* =========================
   ORIGIN / F4 ACADEMY
========================= */
.origin-panel {
  position: relative;
  margin: 82px auto 0px auto;
  max-width: 1200px;
  background: #fff;
  border: 1px solid var(--c-border-2);
  overflow: hidden;
}

.origin-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(59, 183, 181, 0.18),
      transparent 60%
    ),
    radial-gradient(circle at 80% 70%, rgba(206, 23, 23, 0.18), transparent 60%);
  pointer-events: none;
}

.origin-inner {
  position: relative;
  padding: 120px 50px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.origin-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 18px;
}

.origin-text h2 {
  font-size: 48px;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.origin-text p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--c-muted);
  margin-bottom: 16px;
  text-align: justify;
}

.origin-note {
  color: var(--c-text);
  font-weight: 500;
}

.origin-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.origin-logo-wrap {
  padding: 60px;
  border: 1px solid var(--c-border-2);
  background: #fff;
  transition: 0.3s ease;
}

.origin-logo-wrap img {
  max-width: 260px;
  width: 100%;
  display: block;
}

.origin-logo-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.origin-actions {
  display: flex;
  justify-content: center;
  margin: auto;
}

/* ORIGIN — responsive */
@media (max-width: 900px) {
  .origin-inner {
    grid-template-columns: 1fr;
    padding: 80px 26px;
  }

  .origin-text h2 {
    font-size: 36px;
  }
  .origin-visual {
    margin-top: 20px;
  }
  .origin-logo-wrap {
    padding: 40px;
  }
}

/* =========================
   FOOTER
========================= */
.f2 {
  background: #0a0a0a;
  position: relative;
  margin-top: 120px;
}

.f2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(59, 183, 181, 0.12),
      transparent 55%
    ),
    radial-gradient(circle at 80% 90%, rgba(206, 23, 23, 0.12), transparent 55%);
  pointer-events: none;
}

.f2_about {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 50px;

  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px 20px;

  font-family: var(--font-main);
  color: #fff;
  position: relative;
}

.f2_about img {
  width: 100%;
  max-width: 300px;
}

.f2_about_txt {
  font-size: 17px;
  line-height: 1.85;
  color: #d6d6d6;
  max-width: 520px;
}

.f2_odkazy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 20px;
  position: relative;
}

.f2_line {
  border: none;
  height: 2px;
  margin: 40px 0 50px;
  background: linear-gradient(
    90deg,
    var(--c-teal) 0%,
    var(--c-red) 45%,
    var(--c-orange) 100%
  );
  opacity: 0.9;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 70px;
  align-items: start;
  padding-bottom: 30px;
}

.footer-column h4 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #bdbdbd;
  text-decoration: none;
  font-size: 15px;
  transition: 0.25s ease;
  position: relative;
}

.footer-column a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: var(--c-red);
  transition: 0.25s ease;
}

.footer-column a:hover {
  color: #fff;
}
.footer-column a:hover::after {
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
}

.contact-info div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #d0d0d0;
}

.icon_circle {
  background: #ffffff14;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright {
  border-top: 1px solid #1f1f1f;
  margin-top: 30px;
  padding: 26px 0 10px;
  text-align: center;
  color: #9c9c9c;
  font-size: 14px;
  font-family: var(--font-main);
}

.copyright p {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.jvsoft {
  background: #fff;
  border-radius: 6px;
  padding: 5px 6px 0px 6px;
  vertical-align: middle;
}

.jvsoft img {
  height: 18px;
}

/* FOOTER — responsive */
@media (max-width: 950px) {
  .f2_about {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 60px;
    justify-items: center;
    text-align: center;
  }

  .f2_about img {
    margin: 0 auto;
  }
  .f2_about_txt {
    margin: 0 auto;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .f2_about {
    justify-items: center;
    text-align: center;
  }

  .f2_about_txt {
    font-size: 16px;
    line-height: 1.75;
  }

  .copyright {
    font-size: 13px;
  }
}

/* =========================
   INPUTS (file input)
========================= */
.file-input {
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.file-input:hover {
  border-color: #9ca3af;
}

.file-input:focus-within {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}

.file-placeholder {
  font-size: 0.95rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
