/* CSS Variables - Dark Theme Only */
:root {
  /* Dark theme colors */
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-accent: #3a3a3a;
  --text-primary: #e8e8e8;
  --text-secondary: #b8b8b8;
  --text-inverse: #1a1a1a;
  --accent-color: #d4af37;
  --accent-hover: #f0c952;
  --border-color: #444444;
  --shadow: rgba(255, 255, 255, 0.1);
  --shadow-hover: rgba(255, 255, 255, 0.2);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
.header {
  background-color: var(--bg-secondary);
  padding: 1rem 0;
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  color: var(--accent-color);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  animation: logoHover 0.6s ease;
}

@keyframes logoHover {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.logo.loading {
  animation: logoLoading 2s ease-in-out;
}

@keyframes logoLoading {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.1) rotate(180deg); opacity: 1; }
  100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

.site-title {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: bold;
  color: var(--text-primary);
  word-wrap: break-word;
  max-width: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--accent-color);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.lang-btn:hover,
.lang-btn.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-inverse);
}


.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
  word-wrap: break-word;
  hyphens: auto;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Grids */
.trainings-grid,
.trainers-grid,
.partners-grid,
.gallery-grid,
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.training-card,
.trainer-card,
.partner-card,
.gallery-item,
.certificate-item {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
}

.training-card:hover,
.trainer-card:hover,
.partner-card:hover,
.gallery-item:hover,
.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

/* Gallery Carousel */
.gallery-carousel,
.certificates-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}

.gallery-carousel-track,
.certificates-carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

.gallery-item,
.certificate-item {
  flex: 0 0 300px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
}

.gallery-item:hover,
.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.certificate-item img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  background-color: var(--bg-primary);
}

/* Carousel Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-color);
  border: none;
  color: var(--text-inverse);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background-color: var(--accent-color);
  transform: scale(1.3);
}

/* Mobile Carousel */
@media (max-width: 768px) {
  .gallery-carousel,
  .certificates-carousel {
    padding: 0 50px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .gallery-item,
  .certificate-item {
    flex: 0 0 250px;
  }
}

/* Image Viewer Modal */
.image-viewer-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}

.image-viewer-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-viewer-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  touch-action: pan-x pan-y pinch-zoom;
}

.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-color);
  border: none;
  color: var(--text-inverse);
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.image-nav:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.1);
}

.image-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.image-nav-prev {
  left: 20px;
}

.image-nav-next {
  right: 20px;
}

.image-viewer-dialog .modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  border: none;
  color: var(--text-inverse);
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1003;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.image-viewer-dialog .modal-close:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

/* Mobile optimizations for image viewer */
@media (max-width: 768px) {
  .image-viewer-dialog {
    padding: 10px;
  }

  .image-nav {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .image-nav-prev {
    left: 10px;
  }

  .image-nav-next {
    right: 10px;
  }

  .image-viewer-dialog .modal-close {
    width: 44px;
    height: 44px;
    font-size: 2rem;
    top: 10px;
    right: 10px;
  }
}

/* Touch gestures support */
.image-viewer-content img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.trainer-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.trainer-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.trainer-role {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.trainer-bio {
  color: var(--text-secondary);
  text-align: justify;
}

/* Schedule */
.schedule-table {
  width: 100%;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 4px 12px var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
  table-layout: auto;
}

.schedule-table th,
.schedule-table td {
  padding: 0.6rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.schedule-table th {
  background-color: var(--accent-color);
  color: var(--text-inverse);
  font-weight: 600;
}

/* Mobile card layout for schedule */
@media (max-width: 640px) {
  .schedule-table table,
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table th,
  .schedule-table td,
  .schedule-table tr {
    display: block;
  }

  .schedule-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .schedule-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
  }

  .schedule-table td {
    border: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
  }

  .schedule-table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-right: 0.75rem;
    font-size: 0.85rem;
  }
}

/* Form */
.signup-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: #4caf50;
  color: white;
  display: block;
}

.form-message.error {
  background-color: #f44336;
  color: white;
  display: block;
}

/* Contacts */
.contacts-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-info {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
}

.contact-info h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
  color: var(--text-secondary);
}

/* Responsive design */
/* --- Extra Small Devices (up to 480px) --- */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 0.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .language-switcher {
    gap: 0.3rem;
  }

  .lang-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    min-width: 40px;
  }

  .training-card,
  .trainer-card,
  .partner-card {
    padding: 1.5rem;
  }

  .modal-dialog {
    margin: 1vh 5px;
    max-width: calc(100% - 10px);
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .schedule-table table {
    min-width: 350px;
    font-size: 0.8rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.4rem 0.25rem;
  }
}

/* --- Small to Medium (481px to 768px) --- */
@media (min-width: 481px) and (max-width: 768px) {
  .trainings-grid,
  .trainers-grid,
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* About section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Why Choose Us section */
.why-choose-us {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
}

.why-choose-us-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.benefits-list li {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
  font-weight: 500;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 1.2rem;
}


/* --- Modal --- */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.modal.open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: relative;
  max-width: 640px;
  margin: 5vh auto;
  padding: 0;
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: 0 20px 60px var(--shadow-hover);
  animation: modalIn 0.18s ease-out;
}

@keyframes modalIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--text-inverse);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-weight: normal;
  font-family: Arial, sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.modal-close:hover,
.modal-close:active {
  transform: scale(1.1);
  background: var(--accent-hover);
}

.modal-close::before {
  content: "×";
  display: block;
}

.modal .signup-form-container {
  margin: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 16px;
}


.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* не переносим элементы */
  gap: 1rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.logo-container,
.nav,
.header-controls {
  flex-shrink: 0; /* не даём элементам сжиматься */
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: nowrap;
}

.site-title {
  white-space: nowrap; /* не переносим название при смене языка */
}

.trainer-bio {
  white-space: pre-line; /* сохраняет \n как перевод строки */
}

/* === CONTACTS SECTION === */
.contacts {
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-accent) 100%
  );
  padding: 4rem 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contacts .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.contacts .section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Контентная сетка */
.contacts-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Карточка контактной информации */
.contact-info {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
  text-align: center;
  max-width: 320px;
  width: 100%;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.contact-info:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px var(--shadow-hover);
  border-color: var(--accent-color);
}

.contact-info h3 {
  color: var(--accent-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-link:hover {
  color: var(--accent-color);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* === Responsive === */
@media (max-width: 768px) {
  .contacts {
    padding: 3rem 0;
  }

  .contacts .section-title {
    font-size: 1.8rem;
  }

  .contact-info {
    max-width: 100%;
    padding: 1.5rem;
  }
}






/* === PARTNERS SECTION === */
.partner-card a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.partner-card a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.partner-card a::after {
  content: " ↗";
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partner-card a:hover::after {
  opacity: 1;
}

/* === Responsive Enhancements === */

/* --- Mobile First (up to 768px) --- */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .nav {
    display: none;
    width: 100%;
  }

  .nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-list a {
    padding: 0.5rem 0;
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .trainings-grid,
  .trainers-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .trainer-photo {
    height: 200px;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .modal-dialog {
    margin: 2vh 10px;
    max-width: calc(100% - 20px);
  }

  .modal-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .signup-form-container {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group select {
    font-size: 16px;
  }
}

/* --- Tablet (768px to 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .trainings-grid,
  .trainers-grid,
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Desktop (1024px and up) --- */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .hero {
    padding: 6rem 0;
  }

  .trainings-grid,
  .trainers-grid,
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trainer-photo {
    height: 280px;
  }
}

/* --- Large Desktop (1440px and up) --- */
@media (min-width: 1440px) {
  .container {
    max-width: 1100px;
  }

  .trainings-grid,
  .trainers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Ultra Wide Desktop (1920px and up) --- */
@media (min-width: 1920px) {
  .container {
    max-width: 1200px;
  }
}

/* --- Landscape orientation for mobile devices --- */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 2rem 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .modal-dialog {
    margin: 1vh auto;
    max-height: 95vh;
    overflow-y: auto;
  }
}

/* --- Print styles --- */
@media print {
  .header,
  .mobile-menu-toggle,
  .language-switcher,
  .btn,
  .modal,
  .footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* --- High contrast mode for accessibility --- */
@media (prefers-contrast: high) {
  :root {
    --border-color: #ffffff;
    --shadow: rgba(255, 255, 255, 0.3);
  }
}

/* --- Reduced motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Focus visible for keyboard navigation --- */
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

/* --- Smooth scrolling --- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}