html {
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#o-nas, #bojovnici, #reference, #kontakty {
  scroll-margin-top: 100px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  font-family: 'Inter', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
}

.section-wrapper {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
}

/* LOGO INTRO */
@keyframes logo-in {
  0%   { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-logo img {
  animation: logo-in 2s cubic-bezier(0, 0, 0.3, 1) 0.4s both;
}

/* SCROLL ANIMACE */
.scroll-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-card.scroll-anim {
  transform: none;
  transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.founder-card.scroll-anim.visible {
  opacity: 1;
}

/* HERO */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('Zdroje/BG main.jpeg');
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-nav,
.hero-logo {
  position: relative;
  z-index: 1;
}

.hero-nav {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-nav ul {
  list-style: none;
  display: flex;
  gap: 72px;
}

.hero-nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
}

.hero-nav a:hover {
  transform: scale(1.1);
  color: #c61624;
}

.hero-logo img {
  max-width: 450px;
  width: 100%;
  display: block;
}

.red {
  color: #c61624;
}

/* ABOUT */
.about {
  background: #ffffff;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
}

.about-image {
  position: relative;
  z-index: 1;
  margin-top: -150px;
  align-self: center;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px;
  gap: 28px;
}

.about-content h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 42px;
  letter-spacing: 0.04em;
  color: #0a0a0a;
  line-height: 1.1;
}

.about-content p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 2.0;
  color: #444444;
}

.about-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 0 80px;
}

.about-box {
  min-width: 0;
  background: #ffffff;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.16);
  border-radius: 25px;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.box-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.box-icon {
  width: 22px;
  height: 22px;
  color: #c61624;
  flex-shrink: 0;
}

.about-box h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #0a0a0a;
}

.about-box p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 2.0;
  color: #444444;
}

@media (max-width: 1150px) {
  .about-boxes,
  .founders-grid,
  .founders-header {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-top: -200px;
    padding: 0;
  }

  .about-content {
    text-align: center;
  }

  .about-content {
    padding: 48px 28px;
  }

  .about-content h2 {
    font-size: 28px;
  }

  .about-boxes {
    grid-template-columns: 1fr;
    padding: 40px 28px 60px;
  }
}

/* FIGHTERS */
.fighters {
  background: #111111;
  padding: 100px 0 130px;
  margin-top: 80px;
}

.fighters-header {
  text-align: center;
  margin-bottom: 56px;
}

.fighters-header h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 25px;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.fighters-carousel-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}

.fighters-carousel {
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-behavior: auto;
  flex: 1;
}

.fighter-card {
  flex: 0 0 calc((100% - 2 * 24px) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fighter-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #2e2e2e;
  border-radius: 25px;
  overflow: hidden;
}

.fighter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fighter-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fighter-firstname {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #aaaaaa;
  letter-spacing: 0.04em;
}

.fighter-lastname {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.carousel-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.carousel-btn::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transition: border-color 0.3s ease;
}

.carousel-btn--prev::before {
  transform: rotate(-135deg);
}

.carousel-btn--next::before {
  transform: rotate(45deg);
}

.carousel-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

.carousel-btn:hover::before {
  border-color: #c61624;
}

@media (max-width: 1024px) {
  .fighter-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .fighter-card {
    flex: 0 0 100%;
  }

  .fighters-carousel-wrap .carousel-btn {
    visibility: hidden;
  }
}

/* HAMBURGER */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 101;
  background: #c61624;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE NAV PANEL */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80vw;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
  text-align: center;
}

.mobile-nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-nav.is-open a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav.is-open li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-nav.is-open li:nth-child(2) a { transition-delay: 0.16s; }
.mobile-nav.is-open li:nth-child(3) a { transition-delay: 0.22s; }
.mobile-nav.is-open li:nth-child(4) a { transition-delay: 0.28s; }

.mobile-nav a:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* OVERLAY */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* CAROUSEL DOTS */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background: #c61624;
  transform: scale(1.25);
}

/* REFERENCE */
.reference {
  background: #ffffff;
  padding: 100px 0 150px;
}

.reference-header {
  text-align: center;
  margin-bottom: 56px;
}

.reference-header h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 25px;
  letter-spacing: 0.1em;
  color: #0a0a0a;
}

.reference-carousel-wrap .carousel-btn::before {
  border-top-color: #0a0a0a;
  border-right-color: #0a0a0a;
}

.reference-carousel-wrap .carousel-btn:hover::before {
  border-color: #c61624;
}

.reference-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reference-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  flex: 1;
}

.reference-card {
  min-width: 0;
  flex: 0 0 calc((100% - 2 * 20px) / 3);
  background: #F1F1F1;
  border-radius: 25px;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.reference-card p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 2.0;
  color: #7A7A7A;
}

.reference-author {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #0a0a0a;
}

@media (max-width: 1024px) {
  .reference-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 768px) {
  .reference-card {
    flex: 0 0 100%;
  }

  .reference-carousel-wrap .carousel-btn {
    visibility: hidden;
  }
}

/* FOUNDERS */
.founders {
  background: #F7F7F7;
  padding: 100px 0 130px;
}

.founders-header {
  text-align: center;
  margin-bottom: 56px;
}

.founders-header h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 25px;
  letter-spacing: 0.1em;
  color: #0a0a0a;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.founder-card img {
  width: 100%;
  display: block;
  border-radius: 25px;
  object-fit: cover;
}

.founder-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.founder-name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #0a0a0a;
  letter-spacing: 0.02em;
}

.founder-role {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #7A7A7A;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* CONTACT */
.contact {
  position: relative;
  padding: 180px 20px 140px;
  background-image: url('Zdroje/BG main.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-inner h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 25px;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 80px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.contact-line {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 25px;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-line:hover {
  color: #c61624;
}

.contact-socials {
  display: flex;
  gap: 28px;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c61624;
  color: #ffffff;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  background: #a01020;
  transform: scale(1.12);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  .hero-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-logo img {
    max-width: calc(100vw - 100px);
  }
}
