body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

/* Hlavička */
.main-header {
  background-color: white;
  padding: 40px 0;
  text-align: center;
}

.main-header h1 {
  font-size: 45px;
  font-family: 'Sawarabi Mincho', serif;
  margin: 0;
  color: #000;
  letter-spacing: 8px;
}

.main-header h1 a {
  text-decoration: none;
  color: inherit; /* Наследует цвет заголовка */
  cursor: pointer;
}

.main-header h1 a:hover {
  text-decoration: none;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Расстояние между логотипами и текстом */
  flex-wrap: wrap;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.header-logo {
  width: 120px;
  height: auto;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}
.main-header h1 {
  font-size: 45px;
  font-family: 'Sawarabi Mincho', serif;
  margin: 0;
  color: #000;
  letter-spacing: 8px;
  text-align: center;
}

.main-header h1 a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Navigace */
.navbar {
  background-color: #000;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 30px; /* ← Добавлено: расстояние между nav и слайдером */
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-list li {
  display: flex;
  align-items: center;
}

.nav-list li.divider::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 20px;
  background-color: #ccc;
  margin: 0 10px;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
}

.nav-list a:hover {
  background-color: #333;
  color: white;
  border-radius: 4px;
}

.social-icon {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.social-icon a img {
  height: 40px;
  transition: transform 0.3s;
}

.social-icon a img:hover {
  transform: scale(1.1);
}

.section-header {
  text-align: center;
  font-size: 36px;
  margin-top: 60px;
  font-family: 'Sawarabi Mincho', serif;
}

.gym-list {
  max-width: 700px;
  margin: 30px auto;
  text-align: left;
  font-size: 24px;
  font-family: 'Sawarabi Mincho', serif;
  line-height: 2;
  color: #333;
  font-weight: bold; /* делаем текст жирным */
}

.gym-list h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #111;
}

.gym-list a {
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 20px;
  color: #b8860b;
  text-decoration: none;
  font-size: 24px;
  font-weight: normal; /* отменяем жирность только для ссылок */
}

.gym-list a:hover {
  text-decoration: underline;
  color: #daa520;
}

/* Kalendář */
.calendar-section {
  background-color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-title {
  text-align: center;
  color: black;
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-info {
  max-width: 700px;
  margin: 40px auto 60px;
  text-align: left;
  font-size: 28px;
  font-family: 'Sawarabi Mincho', serif;
  line-height: 1.8;
  color: #333;
  font-weight: bold;
}

.contact-info a {
  color: #b8860b;
  text-decoration: none;
  font-weight: normal;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #daa520;
}

.club-info {
  max-width: 700px;
  margin: 40px auto 60px;
  text-align: left;
  font-size: 24px;
  font-family: 'Sawarabi Mincho', serif;
  line-height: 1.8;
  color: #333;
  font-weight: bold;
}

.club-info h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 25px;
  color: #111;
  font-weight: bold;
}

.highlight {
  color: #b8860b; /* тёмно-жёлтый */
  font-weight: bold;
}

/* Галерея */
.gallery-section {
  padding: 40px;
  background-color: #f9f9f9;
  text-align: center;
}

.gallery-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: black;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  justify-items: center;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.03);
}

.gallery-caption {
  margin-top: 4px;
  font-size: 15px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

/* Слайдер */
.slider-container {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: auto;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.slider-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 2;
  pointer-events: none;
}

.slider-buttons button {
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 28px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.slider-buttons button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Modal (lightbox) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  pointer-events: none;
}

.modal-navigation button {
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 32px;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-navigation button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.about-section {
  background-color: #ffffff;
  padding: 40px 20px;
  color: #000;
}

.about-section h2 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 20px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .main-header h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-list {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  .slider-container {
    max-width: 100%;
  }

  .slide img {
    height: 250px;
  }

  .calendar-section iframe {
    width: 100%;
    height: 400px;
  }

  .contact-content {
    padding: 0 10px;
    font-size: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    padding: 0 10px;
    font-size: 15px;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease;
}

#preloader img {
  width: 120px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.trainer-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

.trainer-title {
  text-align: center;
  font-size: 2.8em;
  margin-bottom: 50px;
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}
.trainer-card {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  width: 350px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.trainer-card:hover {
  transform: scale(1.05);
}

.trainer-card img {
  width: 100%;
  height: 400px;        /* Увеличено */
  object-fit: cover;    /* Обрезка по размеру */
  border-radius: 16px;
  margin-bottom: 20px;
}

.trainer-card h3 {
  font-size: 1.6em;
  margin: 14px 0 10px;
}

.trainer-card p {
  font-size: 1.05em;
  line-height: 1.6;
  color: #333;
}

.trainer-description {
  text-align: center;
  font-size: 20px;
  line-height: 1.6;
  color: #333;
  max-width: 900px; 
  margin: 0 auto;    
}

@media (max-width: 768px) {
  .trainer-grid {
    flex-direction: column;
    align-items: center;
  }

  .trainer-card {
    width: 90%;
  }

  .trainer-card img {
    height: 300px;
  }
}

#trainerModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

#trainerModal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 0 20px white;
  animation: fadeIn 0.3s ease-in-out;
}

#trainerModal .close {
  position: fixed;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sponsor-section {
  background-color: #000;
  padding: 50px 20px;
  text-align: center;
  color: #fff;
}

.sponsor-section h2 {
  font-size: 34px;
  margin-bottom: 30px;
  color: #fff; /* теперь белая надпись */
  font-family: 'Sawarabi Mincho', serif;
  font-weight: bold;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.sponsor-logos img {
  max-height: 100px;     /* сделано больше */
  max-width: 180px;      /* увеличено */
  object-fit: contain;
  filter: brightness(0.9);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sponsor-logos img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
  filter: brightness(1.1);
}

.download-application {
  text-align: center;
  margin-top: 30px;
}

.download-button {
  background-color: #d62828;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.download-button:hover {
  background-color: #a61c1c;
}






