/* ========================================
   CSS VARIABLES
======================================== */
:root {
  /* Colors */
  --primary-color: #1a1a1a;
  --secondary-color: #2d2d2d;
  --accent-color: #ffd700;
  --accent-dark: #e6c200;
  --bg-light: #f8f8f8;
  --bg-white: #FFFFFF;
  --text-dark: #1a1a1a;
  --text-gray: #6c6c6c;
  --text-light: #a8a8a8;
  --border-color: #e5e5e5;
  --success-color: #ffd700;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 60px 0;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 3rem;
  
  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ========================================
   GLOBAL STYLES START
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-color), #ffed4e);
  border-radius: 10px;
  border: 2px solid var(--bg-light);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffed4e, var(--accent-color));
  border-color: rgba(255, 215, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent-dark);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--bg-light);
}

/* Custom Select Styling */
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd700' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1.5rem;
  padding-right: 2.5rem;
}

select:focus {
  outline: none;
}

select option {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 0.5rem;
}

select option:hover,
select option:checked {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  color: var(--primary-color);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
}

.section-title.visible {
  animation: fadeInDown 0.6s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ========================================
   GLOBAL STYLES END
======================================== */

/* ========================================
   BUTTONS START
======================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffed4e 0%, var(--accent-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
  background: var(--primary-color);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-white);
}
/* ========================================
   BUTTONS END
======================================== */

/* ========================================
   HEADER START
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  will-change: background;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  width: calc(100% - 6px);
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, rgba(255,215,0,0.3) 60%, transparent 100%);
  box-shadow: 0 0 10px var(--accent-color);
  z-index: 2;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled::after {
  background: linear-gradient(90deg, #1a1a1a 0%, rgba(26,26,26,0.4) 60%, transparent 100%);
  box-shadow: none;
}

.header.scrolled {
  background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  transition: padding 0.4s ease;
}

.header.scrolled .nav {
  padding: 1rem 0;
}

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

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: filter 0.4s ease;
}

.header.scrolled .logo-img {
  filter: none;
}

.logo-text {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bg-white);
  white-space: nowrap;
  transition: color 0.4s ease;
}

.header.scrolled .logo-text {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--bg-white);
  position: relative;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.header.scrolled .nav-link {
  color: var(--text-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle::after {
  display: none;
}

.nav-dropdown-toggle .arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 1000;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-dark);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-link:hover {
  color: var(--accent-color);
  background: rgba(0,0,0,0.04);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--bg-white);
  border-radius: 2px;
  transition: all 0.4s ease;
}

.header.scrolled .burger span {
  background: var(--primary-color);
}
/* ========================================
   HEADER END
======================================== */

/* ========================================
   HERO START
======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  color: var(--bg-white);
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  animation: rotateGradient 20s linear infinite;
  z-index: 1;
  pointer-events: none;
}

/* Geometric pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(30deg, transparent 48%, rgba(255, 215, 0, 0.03) 48%, rgba(255, 215, 0, 0.03) 52%, transparent 52%),
    linear-gradient(150deg, transparent 48%, rgba(255, 215, 0, 0.03) 48%, rgba(255, 215, 0, 0.03) 52%, transparent 52%);
  background-size: 80px 80px;
  animation: movePattern 30s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes movePattern {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 80px 80px;
  }
}

.hero .container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  height: 100vh;
  max-width: 100%;
  padding: 0;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 11;
  animation: slideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
  overflow: hidden;
}

/* Animated accent line */
.hero-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 0;
  background: linear-gradient(180deg, var(--accent-color) 0%, transparent 100%);
  animation: expandLine 1.5s ease 0.5s forwards;
  box-shadow: 0 0 20px var(--accent-color);
  z-index: 10;
}

@keyframes expandLine {
  to {
    height: 100%;
  }
}

/* Floating particles effect */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 2%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 2%),
    radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.06) 0%, transparent 2%),
    radial-gradient(circle at 60% 20%, rgba(255, 215, 0, 0.09) 0%, transparent 2%);
  background-size: 100% 100%;
  animation: floatParticles 15s ease-in-out infinite;
}

@keyframes floatParticles {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
}

.hero-content h1,
.hero-content p,
.hero-content a {
  position: relative;
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 11;
  animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(15, 15, 15, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Image glow effect */
.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-image img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(1.1) contrast(1.1);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: none;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  position: relative;
  display: inline-block;
}

/* Title underline effect */
.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
  animation: expandWidth 1s ease 1.2s forwards;
  box-shadow: 0 0 10px var(--accent-color);
}

@keyframes expandWidth {
  to {
    width: 100%;
  }
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-content .btn {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
}

.hero-content .btn svg {
  transition: transform 0.3s ease;
}

.hero-content .btn:hover svg {
  transform: translateX(5px);
}

/* Hero actions */
.hero-actions {
  margin-bottom: 3rem;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero image decoration */
.hero-image-decoration {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 0;
}

.hero-image-decoration::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Button shine effect */
.hero-content .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero-content .btn:hover::before {
  left: 100%;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ========================================
   HERO END
======================================== */

/* ========================================
   ABOUT START
======================================== */
.about {
  padding: var(--section-padding);
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.about-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
}

.about-shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  top: -100px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.about-shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  bottom: -50px;
  left: -50px;
  animation: float 15s ease-in-out infinite reverse;
}

.about-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 10s ease-in-out infinite;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.about-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-image-wrapper {
  position: relative;
}

.about-image-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent-color);
  border-radius: 20px;
  z-index: 0;
  opacity: 0.3;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: none;
}

.about-badge-float {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--accent-color), #ffed4e);
  padding: 20px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.badge-number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 5px;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-content h3 {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

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

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateX(10px);
}

.highlight-item svg {
  flex-shrink: 0;
  color: var(--accent-color);
  width: 24px;
  height: 24px;
}

.highlight-item span {
  font-weight: 500;
  color: var(--text-dark);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  position: relative;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: var(--accent-color);
  transform: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--accent-color), #ffed4e);
  transform: none;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent-color);
  transition: color 0.4s ease;
}

.feature-card:hover .feature-icon svg {
  color: var(--primary-color);
}

.feature-content h3 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-content p {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 1rem;
}

.feature-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-number {
  color: rgba(255, 215, 0, 0.2);
  transform: none;
}
/* ========================================
   ABOUT END
======================================== */

/* ========================================
   SECTIONS START
======================================== */
.sections {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
  position: relative;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.2rem;
  text-align: left;
}

.section-card:hover {
  transform: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.section-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  flex: 1;
  margin-bottom: 0;
}

.section-card-header h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.section-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  align-self: center;
}

.section-card:hover .section-icon {
  background: linear-gradient(135deg, var(--accent-color), #ffed4e);
  transform: none;
}

.section-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.section-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-card:hover .section-icon svg {
  color: var(--primary-color);
}

.section-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  justify-content: space-between;
}

.section-body .booking-btn {
  margin-top: auto;
}

.section-body h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.section-body p {
  color: var(--text-gray);
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.section-content p {
  color: var(--text-gray);
  margin: 0 0 1rem 0;
  line-height: 1.5;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.section-content .booking-btn {
  background: var(--primary-color);
  color: var(--bg-white);
  border: 1px solid var(--primary-color);
  font-weight: 500;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-block;
  width: auto;
  border-radius: 20px;
}

.section-content .booking-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.section-content .booking-btn:hover::before {
  width: 200px;
  height: 200px;
}

.section-content .booking-btn:hover {
  border-color: var(--accent-color);
  color: var(--primary-color);
}
/* ========================================
   SECTIONS END
======================================== */

/* ========================================
   SCHEDULE START
======================================== */
.schedule {
  padding: var(--section-padding);
  background: var(--bg-white);
  position: relative;
}

.schedule-table {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--border-color);
}

.schedule-row {
  display: grid;
  grid-template-columns: 180px repeat(3, 1fr);
  border-bottom: 1px solid var(--border-color);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: var(--bg-white);
}

.schedule-row.visible {
  opacity: 1;
  transform: translateX(0);
}

.schedule-row:nth-child(2) {
  transition-delay: 0.1s;
}

.schedule-row:nth-child(3) {
  transition-delay: 0.2s;
}

.schedule-row:nth-child(4) {
  transition-delay: 0.3s;
}

.schedule-row:nth-child(5) {
  transition-delay: 0.4s;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:not(.schedule-header):hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.05), transparent);
}

.schedule-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-white);
  font-weight: 600;
}

.schedule-cell {
  padding: 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.schedule-header .schedule-cell {
  border-right-color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-primary);
  font-size: 1.05rem;
}

.schedule-cell:last-child {
  border-right: none;
}

.schedule-cell.time {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-primary);
}

.schedule-row:not(.schedule-header) .schedule-cell:not(.time):hover {
  background: rgba(255, 215, 0, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}
/* Schedule Tabs */
.schedule-tabs {
  display: inline-flex;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 6px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  width: auto;
  /* center the inline-flex block */
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 2rem;
}

.schedule-tab {
  padding: 0.75rem 2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  color: var(--text-gray);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.schedule-tab.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.schedule-tab:not(.active):hover {
  color: var(--primary-color);
  background: rgba(0, 0, 0, 0.05);
}

.schedule-panel {
  display: none;
}

.schedule-panel.active {
  display: block;
}
/* ========================================
   SCHEDULE END
======================================== */

/* ========================================
   TRAINERS START
======================================== */
.trainers {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.trainers-grid {
  display: flex;
  gap: 3rem;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.trainer-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 2rem 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.trainer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.trainer-card:hover::before {
  transform: scaleX(1);
}

.trainer-card:hover {
  transform: none;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.trainer-photo {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--accent-color);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  position: relative;
  transition: all 0.4s ease;
}

.trainer-card:hover .trainer-photo {
  border-width: 6px;
  transform: none;
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.trainer-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.trainer-card:hover .trainer-photo::before {
  opacity: 1;
}

.trainer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.trainer-card:hover .trainer-photo img {
  transform: none;
}

.trainer-card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.trainer-position {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.trainer-experience {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 1rem;
  border-top: 2px solid var(--bg-light);
  margin-top: 1rem;
}

/* Trainer photo placeholder (no photo) */
.trainer-photo-placeholder {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trainer-photo-placeholder span {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trainer-modal-photo-placeholder {
  background: linear-gradient(135deg, #3a3a3a, #2a2a2a) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.trainer-modal-photo-placeholder::after {
  content: 'Нет фото';
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Trainers carousel */
.trainers-carousel-wrapper {
  position: relative;
  padding: 0 60px;
}

.trainers-carousel-container {
  overflow: hidden;
  border-radius: 20px;
}

.trainer-card {
  flex: 0 0 calc((100% - 6rem) / 3);
}

.trainers-carousel-prev {
  left: 0;
}

.trainers-carousel-next {
  right: 0;
}

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

@media (max-width: 768px) {
  .trainer-card {
    flex: 0 0 calc(100vw - 140px);
  }

  .trainers-carousel-wrapper {
    padding: 0 50px;
  }
}

/* ========================================
   TRAINERS END
======================================== */

/* ========================================
   PRICES START
======================================== */
.prices {
  padding: var(--section-padding);
  background: var(--bg-white);
}

.prices-table-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  border: 2px solid var(--border-color);
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
}

.prices-table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-white);
}

.prices-table th {
  padding: 1.5rem;
  text-align: left;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.prices-table th:last-child {
  border-right: none;
}

.prices-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.prices-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.05), transparent);
}

.prices-table tbody tr:last-child {
  border-bottom: none;
}

.prices-table td {
  padding: 1.5rem;
  color: var(--text-dark);
  vertical-align: top;
  transition: background 0.3s ease;
  border-right: 1px solid var(--border-color);
}

.prices-table td:last-child {
  border-right: none;
}

.prices-table td:first-child {
  font-weight: 700;
  color: #1a1a1a;
  background: var(--accent-color);
  font-family: var(--font-primary);
}

.prices-table td small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 400;
  margin-top: 0.3rem;
}

.prices-table td:nth-child(2),
.prices-table td:nth-child(3),
.prices-table td:nth-child(4) {
  text-align: center;
  font-weight: 500;
}
/* ========================================
   PRICES END
======================================== */

/* ========================================
   CERTIFICATES START
======================================== */
.certificates {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.certificates-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.certificates-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.certificates-grid.show-all::after {
  opacity: 0;
}

.certificates-actions {
  text-align: center;
  margin-top: 2rem;
}

.certificate-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.certificate-card:hover::before {
  opacity: 1;
}

.certificate-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  color: var(--bg-white);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.certificate-card:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.certificate-card:hover {
  transform: none;
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.certificate-image {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-image img {
  transform: none;
}

.certificate-placeholder {
  font-size: 3.5rem;
  filter: grayscale(100%) brightness(200%);
}

.certificate-card h4 {
  font-family: var(--font-primary);
  color: var(--primary-color);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Certificates carousel */
.certificates-carousel-wrapper {
  position: relative;
  padding: 0 60px;
}

.certificates-carousel-container {
  overflow: hidden;
  border-radius: 12px;
}

.certificate-card {
  flex: 0 0 calc((100% - 6rem) / 4);
}

.certificates-carousel-prev { left: 0; }
.certificates-carousel-next { right: 0; }

@media (max-width: 1024px) {
  .certificate-card { flex: 0 0 calc((100% - 4rem) / 3); }
}
@media (max-width: 768px) {
  .certificate-card { flex: 0 0 calc((100% - 2rem) / 2); }
  .certificates-carousel-wrapper { padding: 0 50px; }
}
@media (max-width: 480px) {
  .certificate-card { flex: 0 0 calc(100vw - 140px); }
}

/* ========================================
   CERTIFICATES END
======================================== */

/* ========================================
   NEWS START
======================================== */
.news {
  padding: var(--section-padding);
  background: var(--bg-white);
}

.news-carousel-wrapper {
  position: relative;
  padding: 0 60px;
}

.news-carousel-container {
  overflow: hidden;
  border-radius: 20px;
}

.news-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.news-card {
  flex: 0 0 calc((100% - 4rem) / 3);
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.news-image {
  height: 220px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.news-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-card:hover .news-image::before {
  opacity: 1;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
  transform: none;
}

.news-card:hover .news-image video {
  transform: none;
}

.news-placeholder {
  font-size: 4rem;
  filter: grayscale(100%) brightness(200%);
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-date {
  display: inline-block;
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card h3 {
  font-family: var(--font-primary);
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 700;
  transition: color 0.3s ease;
}

.news-card:hover h3 {
  color: var(--accent-color);
}

.news-card p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.news-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  align-self: center;
  margin-top: auto;
}

.news-carousel-prev,
.news-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.news-carousel-prev {
  left: 0;
}

.news-carousel-next {
  right: 0;
}

/* Responsive news carousel */
@media (max-width: 1024px) {
  .news-card {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}

@media (max-width: 768px) {
  .news-card {
    flex: 0 0 calc(100vw - 140px);
  }
  
  .news-carousel-wrapper {
    padding: 0 50px;
  }
}
/* ========================================
   NEWS END
======================================== */

/* ========================================
   MODAL START
======================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--bg-white);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.modal-close:hover {
  background: var(--secondary-color);
  color: var(--bg-white);
  transform: rotate(90deg);
}

.modal-body {
  padding: 3rem;
}

.modal-date {
  display: inline-block;
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-primary);
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.modal-text {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 1.05rem;
}

.modal-text p {
  margin-bottom: 1rem;
}

/* News modal */
.modal-news {
  max-width: 860px;
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.modal-images img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, opacity 0.2s ease;
  display: block;
}

.modal-images img:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0.9;
}

.modal-certificate {
  max-width: none;
  width: auto;
  max-height: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.modal-certificate .modal-body {
  padding: 0;
  display: inline-block;
  position: relative;
}

.modal-certificate .modal-close {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  top: 15px;
  right: 15px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
}

.modal-certificate .modal-close:hover {
  background: var(--secondary-color);
  color: var(--bg-white);
}

.modal-certificate img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-form input,
.booking-form textarea {
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: var(--transition-base);
}

.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.4;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--accent-color);
  cursor: pointer;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  padding: 0;
}

.consent-label span {
  user-select: none;
}

.selected-section {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.selected-section strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.selected-section span {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Trainer Modal Styles */
.modal-trainer {
  max-width: 1100px;
  width: 90vw;
  max-height: 85vh;
  background: var(--bg-white);
  aspect-ratio: auto;
  overflow: hidden;
}

.modal-trainer .modal-body {
  padding: 0;
  height: 100%;
  max-height: 85vh;
  overflow: hidden;
}

.trainer-modal-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 100%;
  max-height: 85vh;
}

/* Left Column - Photo and Info */
.trainer-modal-header {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  max-height: 85vh;
}

.trainer-modal-header::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.3;
}

.trainer-modal-photo-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.trainer-modal-photo {
  width: 180px;
  height: 180px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: var(--bg-white);
  margin: 0 auto;
}

.trainer-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.trainer-modal-header-info {
  color: var(--bg-white);
  text-align: center;
  width: 100%;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.trainer-modal-name {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  color: var(--bg-white);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.trainer-modal-position {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.trainer-modal-birthdate {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.trainer-about-section {
  text-align: left;
  flex: 1;
  min-height: 0;
}

.trainer-about-section h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--bg-white);
  margin-bottom: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trainer-about-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Right Column - Details */
.trainer-modal-info {
  padding: 2rem 2rem;
  background: var(--bg-white);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.trainer-modal-description {
  color: var(--text-gray);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.trainer-info-section {
  position: relative;
}

.trainer-info-section h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trainer-info-section h4 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-style: italic;
}

.trainer-info-section p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-gray);
}

.trainer-info-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.trainer-info-section ul li {
  /* padding: 0.6rem 0; */
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.trainer-info-section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.trainer-info-section ul li strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Skills Section */
.trainer-skills {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.skill-name {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: 600;
}

.skill-years {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 500;
  background: rgba(255, 215, 0, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.skill-bar {
  height: 10px;
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color) 0%, #ffed4e 100%);
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Schedule Compact */
.schedule-compact {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.schedule-compact ul li {
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Trainer Certificates Carousel */
.trainer-certificates-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.trainer-certificates-section h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trainer-certificates-carousel {
  position: relative;
  padding: 0 50px;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 12px;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease-in-out;
}

.carousel-certificate {
  min-width: calc(33.333% - 0.667rem);
  flex-shrink: 0;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}

.carousel-certificate::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  /* background: rgba(0, 0, 0, 0.7); */
  color: var(--bg-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.carousel-certificate:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.carousel-certificate:hover {
  transform: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.carousel-certificate:active {
  transform: translateY(-2px) scale(0.98);
}

.carousel-certificate img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
  max-height: 200px;
  background: #f8f9fa;
}

.carousel-certificate:hover img {
  transform: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--primary-color);
}

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

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

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

/* Certificate Viewer inside Trainer Modal */
.certificate-viewer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.certificate-viewer.active {
  display: flex;
}

.certificate-viewer-content {
  position: relative;
  width: 300px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.certificate-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.certificate-viewer-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 45px;
  height: 45px;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.certificate-viewer-close:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: rotate(90deg) scale(1.15);
}

/* Responsive certificate viewer */
@media (max-width: 1024px) {
  .certificate-viewer-content {
    width: 70vw;
    height: calc(70vw * 1.39);
    max-height: 85vh;
  }
}

@media (max-width: 768px) {
  .certificate-viewer-content {
    width: 85vw;
    height: calc(85vw * 1.39);
    max-height: 80vh;
  }
  
  .certificate-viewer-close {
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* Responsive */
@media (max-width: 1200px) and (min-width: 1051px) {
  .modal-trainer {
    max-width: 1000px;
    width: 95vw;
    max-height: 85vh;
    overflow: hidden;
  }
  
  .trainer-modal-content {
    grid-template-columns: 320px 1fr;
    gap: 0;
    max-height: 85vh;
  }
  
  .trainer-modal-header {
    padding: 2rem 1.5rem;
    max-height: 85vh;
    overflow: hidden;
  }
  
  .trainer-modal-photo {
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
  }
  
  .trainer-modal-name {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
  }
  
  .trainer-modal-position {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  
  .trainer-about-section {
    margin-top: 0;
  }
  
  .trainer-about-section h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
  
  .trainer-about-section p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .trainer-modal-info {
    padding: 1.2rem 1rem;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .trainer-certificates-section {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }
  
  .trainer-certificates-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .carousel-certificate {
    min-width: calc(50% - 0.5rem);
  }
  
  .carousel-certificate img {
    max-height: 200px;
  }
  
  .trainer-certificates-carousel {
    padding: 0 30px;
  }
  
  .carousel-track-container {
    padding: 5px 0;
  }
  
  .carousel-btn {
    width: 30px;
    height: 30px;
  }
  
  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 1050px) {
  .modal-trainer {
    aspect-ratio: auto;
    max-height: 90vh;
    overflow: hidden;
    width: 95vw;
  }
  
  .trainer-modal-content {
    grid-template-columns: 1fr;
    gap: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .trainer-modal-header {
    padding: 2rem 1.5rem;
    position: relative;
    flex-shrink: 0;
  }
  
  .trainer-modal-photo-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
  }
  
  .trainer-modal-photo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }
  
  .trainer-modal-header-info {
    text-align: left;
    flex: 1;
  }
  
  .trainer-modal-name {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }
  
  .trainer-modal-position {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .trainer-about-section {
    margin-top: 1.5rem;
  }
  
  .trainer-about-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  .trainer-modal-info {
    padding: 1.5rem;
    overflow-y: scroll;
    flex: 1;
    min-height: 0;
  }
  
  .trainer-certificates-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
  
  .trainer-certificates-carousel {
    padding: 0 40px;
    margin-top: 1rem;
  }
  
  .carousel-track-container {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
  
  .carousel-track {
    transition: transform 0.3s ease;
  }
  
  .carousel-certificate {
    min-width: calc(50% - 0.5rem);
    cursor: pointer;
    touch-action: manipulation;
  }
  
  .carousel-certificate img {
    transition: transform 0.2s ease;
    max-height: 200px;
  }
  
  .carousel-certificate:hover img {
    transform: scale(1.05);
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
  }
  
  .carousel-track-container {
    padding: 5px 0;
  }
}

@media (max-width: 1024px) {
  .modal-trainer {
    aspect-ratio: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .trainer-modal-content {
    grid-template-columns: 1fr;
  }
  
  .trainer-modal-header {
    padding: 2rem;
  }
  
  .trainer-modal-photo {
    width: 180px;
    height: 180px;
  }
  
  .trainer-modal-name {
    font-size: 1.8rem;
  }
  
  .carousel-certificate {
    min-width: calc(50% - 0.5rem);
  }
}

@media (max-width: 768px) {
  .modal-trainer {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .modal:has(.modal-trainer) {
    padding: 0;
    align-items: stretch;
  }

  .modal-trainer .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
  }

  .modal-trainer .modal-body {
    flex: 1;
    height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .trainer-modal-content {
    grid-template-columns: 1fr;
    height: auto;
  }

  .trainer-modal-header {
    padding: 1.5rem 1rem 1.2rem;
  }

  .trainer-modal-photo-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .trainer-modal-photo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .trainer-modal-header-info {
    text-align: left;
    flex: 1;
  }

  .trainer-modal-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .trainer-modal-position {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .trainer-modal-info {
    padding: 1.2rem 1rem;
    overflow-y: visible;
    max-height: none;
  }

  .trainer-info-section h3,
  .trainer-certificates-section h3 {
    font-size: 1rem;
  }

  .carousel-certificate {
    min-width: calc(100% - 1rem);
    margin: 0 0.5rem;
  }
  
  .carousel-certificate img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 250px;
  }
  
  .carousel-certificate:active img {
    transform: scale(0.98);
  }
  
  .trainer-certificates-carousel {
    padding: 0 35px;
    margin-top: 1rem;
  }
  
  .carousel-track-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }
  
  .carousel-track-container::-webkit-scrollbar {
    display: none;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .carousel-btn:active {
    transform: scale(0.95);
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
  
  /* Improve touch scrolling for carousel */
  .carousel-track {
    scroll-snap-type: x mandatory;
  }
  
  .carousel-certificate {
    scroll-snap-align: start;
  }
  
  .carousel-certificate:active img {
    transform: scale(0.98);
  }
  
  /* Improve touch scrolling for carousel */
  .carousel-track {
    scroll-snap-type: x mandatory;
  }
  
  .carousel-certificate {
    scroll-snap-align: start;
  }
}
/* ========================================
   MODAL END
======================================== */

/* ========================================
   GALLERY START
======================================== */
.gallery {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.gallery-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.gallery-event-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.gallery-event-card:hover {
  transform: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.gallery-event-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.gallery-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-event-card:hover .gallery-event-image img {
  transform: scale(1.1);
}

.gallery-event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-event-card:hover .gallery-event-overlay {
  opacity: 1;
}

.gallery-event-count {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.gallery-event-info {
  padding: 1.5rem;
}

.gallery-event-info h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.gallery-event-info p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Gallery Event Modal */
.modal-gallery-event {
  max-width: 1200px;
  width: 90vw;
  max-height: 90vh;
}

.gallery-event-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-event-modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

.gallery-event-modal-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.gallery-event-modal-date {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.gallery-event-modal-description {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* 3-photo preview + bear + vk inside modal */
.gallery-modal-preview-section {
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border-color);
}

/* Outer grid: left big photo | right column */
.gallery-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-modal-photo-large {
  overflow: hidden;
  border-radius: 8px 0 0 8px;
  aspect-ratio: 4/3;
}

.gallery-modal-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Right column: top row (2 small photos) + bottom row (bear + button) */
.gallery-modal-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-modal-photos-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}

.gallery-modal-photos-small img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-modal-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-light);
  padding: 1rem 1.2rem;
  border-radius: 0 0 8px 0;
  flex-wrap: wrap;
}

.gallery-modal-bear {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.gallery-modal-vk-btn {
  display: inline-block;
  background: #0077ff;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  flex: 1;
  text-align: center;
  min-width: 0;
}

.gallery-modal-vk-btn:hover {
  background: #005fcc;
  transform: translateY(-1px);
  color: #fff;
}

@media (max-width: 600px) {
  .gallery-modal-footer {
    padding: 0.8rem 1rem;
    gap: 0.7rem;
  }
  .gallery-modal-bear {
    width: 60px;
    height: 60px;
  }
  .gallery-modal-vk-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
}

@media (max-width: 600px) {
  .gallery-modal-grid {
    grid-template-columns: 1fr;
  }
  .gallery-modal-photo-large {
    border-radius: 8px 8px 0 0;
    aspect-ratio: 4/3;
  }
  .gallery-modal-photos-small {
    grid-template-columns: 1fr;
  }
  .gallery-modal-photos-small img {
    aspect-ratio: 4/3;
  }
}

.gallery-event-modal-photos {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.gallery-event-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-event-photo-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.gallery-event-photo-item:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.gallery-event-photo-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  color: var(--bg-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.gallery-event-photo-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .modal-gallery-event {
    width: 95vw;
  }
  
  .gallery-event-modal-header {
    padding: 1.5rem;
  }
  
  .gallery-event-modal-title {
    font-size: 1.5rem;
  }
  
  .gallery-event-modal-photos {
    padding: 1.5rem;
  }
  
  .gallery-event-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .gallery-event-photos-preview {
    height: 160px;
  }

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

/* Gallery carousel */
.gallery-carousel-wrapper {
  position: relative;
  padding: 0 60px;
}

.gallery-carousel-container {
  overflow: hidden;
  border-radius: 20px;
}

.gallery-event-card {
  flex: 0 0 calc((100% - 4rem) / 3);
}

.gallery-carousel-prev { left: 0; }
.gallery-carousel-next { right: 0; }

@media (max-width: 1024px) {
  .gallery-event-card { flex: 0 0 calc((100% - 2rem) / 2); }
}
@media (max-width: 768px) {
  .gallery-event-card { flex: 0 0 calc(100vw - 140px); }
  .gallery-carousel-wrapper { padding: 0 50px; }
}

/* ========================================
   GALLERY END
======================================== */

/* ========================================
   INSTRUCTIONS START
======================================== */
.instructions {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.instructions-carousel-wrapper {
  position: relative;
  padding: 0 60px;
}

.instructions-carousel-container {
  overflow: hidden;
  border-radius: 12px;
}

.instructions-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.instruction-card {
  flex: 0 0 calc((100% - 6rem) / 4);
}

.instruction-image {
  aspect-ratio: 3/4;
}

.instruction-image img {
  object-fit: cover;
}

.instructions-carousel-prev { left: 0; }
.instructions-carousel-next { right: 0; }

@media (max-width: 1024px) {
  .instruction-card { flex: 0 0 calc((100% - 4rem) / 3); }
}

@media (max-width: 768px) {
  .instruction-card { flex: 0 0 calc((100% - 2rem) / 2); }
  .instructions-carousel-wrapper { padding: 0 50px; }
}

@media (max-width: 480px) {
  .instruction-card { flex: 0 0 calc(100vw - 140px); }
}

/* ========================================
   INSTRUCTIONS END
======================================== */

/* ========================================
   CONTACTS START
======================================== */
.contacts {
  padding: var(--section-padding);
  background: var(--bg-white);
}

.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.contacts-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.contacts-info-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-item-compact {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-item-compact:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: var(--accent-color);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-item-compact:hover .contact-icon {
  background: linear-gradient(135deg, var(--accent-color), #ffed4e);
  transform: scale(1.05);
}

.contact-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
  transition: color 0.3s ease;
}

.contact-item-compact:hover .contact-icon svg {
  color: var(--primary-color);
}

.contact-item-compact h4 {
  font-family: var(--font-primary);
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-item-compact p {
  color: var(--text-gray);
  line-height: 1.5;
  font-size: 0.85rem;
  margin: 0;
}

.contact-item-compact a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item-compact a:hover {
  color: var(--accent-color);
}

.contact-map {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--border-color);
  min-height: 300px;
}

.contact-map iframe {
  display: block;
}

.contact-form {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form h3 {
  font-family: var(--font-primary);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--bg-white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  flex: 1;
}

.contact-form button {
  width: 100%;
  margin-top: auto;
}
/* ========================================
   CONTACTS END
======================================== */

/* ========================================
   FORM TOAST START
======================================== */
.form-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-toast {
  min-width: 280px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.form-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.form-toast--success {
  background: linear-gradient(135deg, #1f1f1f 0%, #2b2b2b 100%);
  border-color: rgba(255, 215, 0, 0.45);
  color: #fff;
}

.form-toast--error {
  background: linear-gradient(135deg, #2a1a1a 0%, #3a2222 100%);
  border-color: rgba(255, 120, 120, 0.5);
  color: #fff;
}

.form-toast__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.form-toast--success .form-toast__icon {
  background: var(--accent-color);
  color: var(--primary-color);
}

.form-toast--error .form-toast__icon {
  background: rgba(255, 120, 120, 0.18);
  color: #ffb3b3;
}

.form-toast__text {
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 576px) {
  .form-toast-container {
    right: 12px;
    left: 12px;
    top: 12px;
  }

  .form-toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}
/* ========================================
   FORM TOAST END
======================================== */

/* ========================================
   FOOTER START
======================================== */
.footer {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-logo .logo-text {
  color: var(--bg-white);
  font-size: 1.3rem;
}

.footer-description {
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-contact {
  opacity: 0.9;
}

.footer-contact p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.footer-contact strong {
  color: var(--accent-color);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 1.5rem;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition-base);
  font-size: 0.95rem;
  white-space: nowrap;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  color: var(--bg-white);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link--max img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-link--max:hover img {
  filter: brightness(0);
}

.social-link:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  color: var(--primary-color);
}

.footer-partner {
  margin-top: 1rem;
}

.footer-partner p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.partner-link {
  display: inline-block;
  transition: var(--transition-base);
}

.partner-logo {
  height: 100px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition-base);
}

.partner-link:hover .partner-logo {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(25deg) brightness(1.2);
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.legal-link {
  opacity: 0.8;
  transition: var(--transition-base);
  font-size: 0.9rem;
}

.legal-link:hover {
  opacity: 1;
  color: var(--accent-color);
}

.separator {
  opacity: 0.5;
}

.footer-disclaimer {
  opacity: 0.6;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 1rem;
}

.footer-copyright {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 1rem;
}

@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content .footer-column:first-child,
  .footer-content .footer-column:last-child {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-content .footer-column:last-child .footer-social {
    justify-content: center;
  }

  .footer-content .footer-column:last-child .footer-partner {
    text-align: center;
  }

  .footer-column h4 {
    font-size: 0.95rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .footer-logo {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .separator {
    display: none;
  }
}
/* ========================================
   FOOTER END
======================================== */

/* ========================================
   SCROLL TO TOP BUTTON START
======================================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent-dark);
  transform: translateY(-5px);
}
/* ========================================
   SCROLL TO TOP BUTTON END
======================================== */

/* ========================================
   BEAR WIDGET START
======================================== */
.bear-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bear-widget.visible {
  opacity: 1;
  visibility: visible;
}

.bear-widget-video {
  width: 120px;
  height: 120px;
  object-fit: contain;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
  background: transparent;
}

.bear-widget-video:hover {
  transform: scale(1.08);
}

.bear-bubble {
  position: relative;
  background: #fff;
  border: 2px solid var(--accent-color);
  border-radius: 16px 16px 4px 16px;
  padding: 1rem 2.2rem 1rem 1rem;
  max-width: 220px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  animation: bubblePop 0.4s cubic-bezier(0.16,1,0.3,1);
}

.bear-bubble.hidden {
  display: none;
}

@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.bear-bubble p {
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.bear-bubble p:last-of-type {
  margin-bottom: 0.8rem;
}

.bear-bubble strong {
  color: var(--primary-color);
}

.bear-bubble-btn {
  width: 100%;
  text-align: center;
  font-size: 0.88rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  background: var(--accent-color) !important;
  color: var(--primary-color) !important;
  border: none !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bear-bubble-btn:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

.bear-bubble-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.bear-bubble-close:hover {
  color: var(--text-dark);
}

@media (max-width: 480px) {
  .bear-widget {
    bottom: 85px;
    right: 10px;
  }
  .bear-widget-video {
    width: 70px;
    height: 70px;
  }
  .bear-bubble {
    max-width: 180px;
  }
}
/* ========================================
   BEAR WIDGET END
======================================== */

/* ========================================
   RESPONSIVE STYLES START
======================================== */

/* Large tablets and small desktops (1200px - 1400px) */
@media (max-width: 1400px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .nav-menu {
    gap: 1.2rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
  }
}

/* Tablets and medium screens (968px - 1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
}

/* Hide logo text on smaller screens to prevent overlap */
@media (max-width: 1700px) {
  .logo-text {
    display: none;
  }
  
  .hero-title {
    font-size: 4rem;
    letter-spacing: 2px;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

}

@media (max-width: 1600px) {
  .logo-text {
    display: none;
  }
  
  .hero-title {
    font-size: 2.8rem;
    letter-spacing: 2px;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

}
@media (max-width: 1200px) {
  .logo-text {
    display: none;
  }
  
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 2px;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 1000px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 1.5px;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
}

@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 2rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu > li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu > li:last-child {
    border-bottom: none;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 0.9rem 0;
    color: var(--text-dark);
    font-size: 1rem;
  }

  .nav-dropdown .dropdown-menu {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.6rem 1rem;
    min-width: unset;
    border-left: 2px solid var(--accent-color);
    margin: 0 0 0.4rem;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-dropdown-toggle .arrow {
    display: none;
  }

  .dropdown-link {
    display: block;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    color: var(--text-gray);
  }

  .burger {
    display: flex;
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    height: auto;
    max-width: var(--container-width);
    padding: 0 20px;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
    padding: 100px 30px 60px;
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .hero-image {
    display: flex;
    justify-content: center;
    height: 400px;
  }

  .hero-image-decoration {
    width: 150px;
    height: 150px;
  }

  .hero-image-decoration::before {
    width: 100px;
    height: 100px;
  }

  .hero-image img {
    max-width: 400px;
    height: 100%;
    object-fit: contain;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

  .about-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image img {
    height: 400px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-text-content h3 {
    font-size: 1.6rem;
  }

  .sections-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .section-card {
    padding: 2rem;
  }

  .section-icon {
    width: 80px;
    height: 80px;
  }

  .section-icon svg {
    width: 40px;
    height: 40px;
  }

  .section-card h3 {
    font-size: 1.2rem;
    min-height: auto;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .schedule-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem;
  }

  .schedule-row:not(.schedule-header) .schedule-cell:last-child {
    border-bottom: none;
  }

  .trainers-grid {
    gap: 2rem;
  }

  .trainer-card {
    padding: 2.5rem 2rem;
  }

  .contacts-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacts-left {
    order: 2;
  }

  .contact-form {
    padding: 2.5rem;
    order: 1;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-item-compact {
    padding: 1.2rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
  }
  
  .contact-map {
    min-height: 300px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .modal-body {
    padding: 2rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 1px;
    word-wrap: break-word;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .hero-content .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .hero-image {
    height: 300px;
  }

  .hero-image img {
    max-width: 300px;
    height: 300px;
  }

  .hero-image-decoration {
    width: 100px;
    height: 100px;
  }

  .hero-image-decoration::before {
    width: 70px;
    height: 70px;
  }

  .about-header {
    margin-bottom: 3rem;
  }

  .about-subtitle {
    font-size: 1rem;
  }

  .about-main {
    gap: 2rem;
  }

  .about-image img {
    height: 300px;
  }

  .about-badge-float {
    padding: 15px 20px;
    bottom: 20px;
    right: 20px;
  }

  .badge-number {
    font-size: 2rem;
  }

  .badge-text {
    font-size: 0.8rem;
  }

  .about-text-content h3 {
    font-size: 1.4rem;
  }

  .about-text-content p {
    font-size: 1rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .feature-number {
    font-size: 2rem;
  }

  .prices-table-wrapper {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .prices-table th,
  .prices-table td {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }

  .prices-table th {
    font-size: 0.8rem;
  }

  .prices-table th:first-child,
  .prices-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 130px;
  }

  .prices-table td:first-child {
    background: var(--accent-color);
  }

  .prices-table thead th:first-child {
    background: var(--primary-color);
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    max-height: 400px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .contact-form h3 {
    font-size: 1.5rem;
  }
  
  .contact-map {
    min-height: 250px;
  }

  .contact-item-compact {
    padding: 1rem;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .contact-item-compact h4 {
    font-size: 0.85rem;
  }

  .contact-item-compact p {
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item::after {
    font-size: 2rem;
  }

  .logo-img {
    height: 40px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .footer-logo .logo-img {
    height: 50px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.85rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}
/* ========================================
   RESPONSIVE STYLES END
======================================== */

/* ===== SPORT SCHEDULE TABLE ===== */
.schedule-table-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  border: 2px solid var(--border-color);
}

.sport-schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
}

.sport-schedule-table thead tr {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-white);
}

.sport-schedule-table th {
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sport-schedule-table th:last-child {
  border-right: none;
}

.sport-schedule-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.sport-schedule-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.05), transparent);
}

.sport-schedule-table tbody tr:last-child {
  border-bottom: none;
}

.sport-schedule-table td {
  padding: 1.2rem 1rem;
  text-align: center;
  color: var(--text-dark);
  vertical-align: middle;
  transition: background 0.3s ease;
  font-size: 0.95rem;
  border-right: 1px solid var(--border-color);
}

.sport-schedule-table td:last-child {
  border-right: none;
}

.sport-schedule-table td.time-cell {
  font-weight: 700;
  color: #1a1a1a;
  font-family: var(--font-primary);
  white-space: nowrap;
  background: var(--accent-color);
}

/* ========================================
   MOBILE HEADER FIX
   Prevents header from jumping when browser
   chrome (address bar) shows/hides on scroll
======================================== */
@media (max-width: 968px) {
  .header {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* ========================================
   BURGER MENU CONTACTS
======================================== */
.nav-menu-contacts {
  display: none;
}

@media (max-width: 968px) {
  .nav-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem 0 0.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu-phone {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .nav-menu-phone:hover {
    color: var(--accent-dark);
  }

  .nav-menu-address {
    font-size: 0.9rem;
    color: var(--text-gray);
  }

  .nav-menu-socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.4rem;
  }

  .nav-menu-socials .social-link {
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
  }

  .nav-menu-socials .social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
  }

  .nav-menu-socials .social-link--max img {
    filter: brightness(0);
  }

  .nav-menu-socials .social-link--max:hover img {
    filter: brightness(0);
  }
}

@media (max-width: 768px) {
  .schedule-table-wrapper {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .sport-schedule-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--primary-color);
    min-width: 70px;
  }

  .sport-schedule-table td.time-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 70px;
    background: var(--accent-color);
  }

  .sport-schedule-table th,
  .sport-schedule-table td {
    padding: 0.7rem 0.5rem;
    font-size: 0.78rem;
    min-width: 80px;
  }
}

@media (max-width: 576px) {
  .schedule-tabs {
    max-width: 100%;
    padding: 4px;
  }

  .schedule-tab {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }
}
