:root {
  --navy: #4A2C5F;
  --sky-blue: #9B59B6;
  --light-gray: #F2F4F7;
  --charcoal: #333333;
  --white: #ffffff;
  
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 50%;
  
  --shadow-sm: 0 2px 8px rgba(74, 44, 95, 0.1);
  --shadow-md: 0 4px 16px rgba(74, 44, 95, 0.15);
  --shadow-lg: 0 8px 32px rgba(74, 44, 95, 0.2);
  --shadow-glow: 0 0 20px rgba(155, 89, 182, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--light-gray);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(1.75rem, 5vw + 1rem, 2.75rem);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

h2 {
  font-size: clamp(1.5rem, 4vw + 0.5rem, 2.25rem);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  word-wrap: break-word;
}

h3 {
  font-size: clamp(1.25rem, 3vw + 0.5rem, 1.75rem);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  word-wrap: break-word;
}

h4 {
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.35rem);
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

p {
  margin-bottom: var(--space-sm);
  font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1rem);
  line-height: 1.7;
  word-wrap: break-word;
}

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

a:hover {
  color: var(--navy);
}

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

img, video, iframe {
  max-width: 100%;
  height: auto;
  width: 100%;
}

img[srcset] {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  img, video, iframe {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .logo {
    font-size: clamp(0.75rem, 3.5vw, 1.25rem);
    letter-spacing: clamp(0.05em, 0.8vw, 0.1em);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-xs);
  }
  
  .logo {
    font-size: clamp(0.7rem, 4vw, 1rem);
    letter-spacing: 0.05em;
  }
}

.header {
  background: linear-gradient(135deg, var(--navy) 0%, #2D1A3D 100%);
  position: relative;
  z-index: 1000;
  overflow: visible;
  transform: translateY(0);
  transition: transform var(--transition-base);
}

.header.hidden {
  transform: translateY(-100%);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  position: relative;
  z-index: 1000;
}

@media (max-width: 810px) {
  .header-content {
    z-index: 1000;
  }
  
  .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(74, 44, 95, 0.8) !important;
  }
}

@media (max-width: 809px) {
  .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
    position: relative !important;
    width: clamp(44px, 6vw, 48px) !important;
    height: clamp(44px, 6vw, 48px) !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: rgba(74, 44, 95, 0.8) !important;
  }
  
  .nav-toggle span {
    display: block !important;
    background: var(--white) !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: clamp(1.25rem, 4vw, 1.5rem) !important;
    height: 2px !important;
  }
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: clamp(0.05em, 0.5vw, 0.1em);
  position: relative;
  display: inline-block;
  white-space: nowrap;
  z-index: 1001;
  line-height: 1.2;
  transition: font-size var(--transition-base);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 2px;
  background: var(--sky-blue);
  box-shadow: var(--shadow-glow);
}

.nav-toggle {
  display: none;
  background: rgba(74, 44, 95, 0.8) !important;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 10002;
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  opacity: 1 !important;
  visibility: visible;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block !important;
  width: 1.5rem;
  height: 2px;
  background: var(--white) !important;
  margin: 0.3rem 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
}

.nav-toggle.active {
  position: relative;
}

.nav-toggle.active span {
  margin: 0 !important;
}

.nav-toggle.active span:nth-child(1) {
  display: block !important;
  transform: rotate(45deg) !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  margin-left: -0.75rem !important;
  margin-top: -1px !important;
  width: 1.5rem !important;
  background: var(--white) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0 !important;
  transform: scale(0) !important;
  width: 0 !important;
  height: 0 !important;
}

.nav-toggle.active span:nth-child(3) {
  display: block !important;
  transform: rotate(-45deg) !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  margin-left: -0.75rem !important;
  margin-top: -1px !important;
  width: 1.5rem !important;
  background: var(--white) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav a {
  color: var(--white);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  font-weight: 500;
  padding: clamp(0.35rem, 1vw, 0.5rem) clamp(0.6rem, 2vw, 1rem);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  white-space: nowrap;
  min-height: clamp(36px, 5vw, 44px);
}

.nav a > * {
  position: relative;
  z-index: 1;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(155, 89, 182, 0.4), transparent);
  transition: left var(--transition-slow);
  z-index: 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sky-blue);
  transition: width var(--transition-base);
  box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.nav a:hover::before {
  left: 100%;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  background: rgba(155, 89, 182, 0.15);
  color: var(--sky-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.2);
}

.nav a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(155, 89, 182, 0.15);
}

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2D1A3D 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--white);
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 250px;
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 44, 95, 0.85) 0%, rgba(45, 26, 61, 0.85) 100%);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.15) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-50px, 50px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
  }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
  animation: slideInUp 0.8s ease;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
  animation: slideInUp 1s ease 0.2s both;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 0.95rem) clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: auto;
  min-width: min(140px, 100%);
  min-height: 44px;
  line-height: 1.5;
  white-space: nowrap;
  box-sizing: border-box;
  z-index: 1;
}

.btn > * {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .btn {
    padding: 0.8rem 1.75rem;
    font-size: 0.9rem;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    min-width: 100%;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-blue) 0%, #7D3C98 100%);
  color: var(--white) !important;
  box-shadow: var(--shadow-md);
}

.btn-primary,
.btn-primary * {
  color: var(--white) !important;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--sky-blue);
}

.btn-secondary,
.btn-secondary * {
  color: var(--white) !important;
}

.btn-secondary:hover {
  background: var(--sky-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.section {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-blue), transparent);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

@media (min-width: 1400px) {
  .grid {
    gap: var(--space-lg);
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1399px) and (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .grid {
    gap: var(--space-md);
  }
  
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  }
}

@media (max-width: 768px) {
  .grid {
    gap: var(--space-md);
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .grid {
    gap: var(--space-sm);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-blue), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

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

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--sky-blue);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.7;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .course-card:hover {
    transform: none;
  }
  
  .card:hover {
    transform: none;
  }
}

.course-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
}

.course-image i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  z-index: 2;
}

.course-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sky-blue);
  margin: var(--space-sm) 0;
  font-family: var(--font-display);
}

.contact-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--sky-blue);
  margin-top: 0.2rem;
}

.contact-item div h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-item div p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--charcoal);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-base);
  background: var(--white);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 768px) {
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 0.9rem;
  }
}

@media (max-width: 480px) {
  .form-group input,
  .form-group textarea {
    padding: 0.85rem;
    font-size: 16px;
  }
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.3rem;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}

.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-md);
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-md) 0 var(--space-sm);
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--sky-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.thank-you-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
}

.thank-you-content {
  max-width: 600px;
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.thank-you-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-blue), var(--navy));
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--sky-blue);
  margin-bottom: var(--space-md);
  animation: scaleIn 0.5s ease;
}

.thank-you-container .btn-primary {
  background: linear-gradient(135deg, var(--sky-blue) 0%, #7D3C98 100%) !important;
  color: var(--white) !important;
}

.thank-you-container .btn-primary,
.thank-you-container .btn-primary * {
  color: var(--white) !important;
}

.thank-you-container .btn-secondary {
  background: var(--sky-blue) !important;
  color: var(--white) !important;
  border: 2px solid var(--sky-blue) !important;
}

.thank-you-container .btn-secondary,
.thank-you-container .btn-secondary * {
  color: var(--white) !important;
}

.thank-you-container .btn-secondary:hover {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
}

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

.policy-content {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 2px solid var(--light-gray);
}

.policy-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-content ul, .policy-content ol {
  margin-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.policy-content li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.table-wrapper {
  overflow-x: auto;
  margin: var(--space-sm) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table th,
table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

table tr:hover {
  background: rgba(155, 89, 182, 0.05);
}

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100%);
  transition: var(--transition-base);
  border-top: 3px solid var(--sky-blue);
}

.privacy-popup.show {
  transform: translateY(0);
}

.privacy-popup-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-popup p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 250px;
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-sm);
}

.privacy-popup button {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-base);
}

.privacy-accept {
  background: var(--sky-blue);
  color: var(--white);
}

.privacy-accept:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.privacy-decline {
  background: var(--light-gray);
  color: var(--charcoal);
}

.privacy-decline:hover {
  background: var(--charcoal);
  color: var(--white);
}

@media (max-width: 1024px) {
  .hero {
    padding: var(--space-xl) 0;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .grid-2,
  .grid-3 {
    gap: var(--space-md);
  }
}

@media (min-width: 1400px) {
  .nav-toggle {
    display: none !important;
  }
  
  .nav {
    display: flex !important;
    gap: var(--space-lg);
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  .nav a {
    font-size: 1rem;
    padding: var(--space-sm) var(--space-md);
  }
}

@media (min-width: 1025px) and (max-width: 1399px) {
  .nav-toggle {
    display: none !important;
  }
  
  .nav {
    display: flex !important;
    gap: var(--space-md);
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .nav a {
    font-size: 0.95rem;
    padding: var(--space-xs) var(--space-md);
  }
}

@media (min-width: 811px) and (max-width: 1024px) {
  .nav-toggle {
    display: none !important;
  }
  
  .nav {
    display: flex !important;
    gap: clamp(var(--space-xs), 2vw, var(--space-sm));
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  .nav a {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    padding: clamp(0.3rem, 1vw, 0.4rem) clamp(0.45rem, 1.5vw, 0.7rem);
    min-height: clamp(36px, 5vw, 40px);
  }
}

@media (max-width: 810px) {
  .nav-toggle {
    display: flex !important;
    position: relative !important;
    z-index: 10002 !important;
    width: clamp(44px, 6vw, 48px) !important;
    height: clamp(44px, 6vw, 48px) !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: var(--space-xs) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(74, 44, 95, 0.8) !important;
  }
  
  .nav-toggle span {
    display: block !important;
    width: clamp(1.25rem, 4vw, 1.5rem) !important;
    height: 2px !important;
    margin: clamp(0.25rem, 1vw, 0.3rem) 0 !important;
    background: var(--white) !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
  }
  
  .nav-toggle.active span {
    margin: 0 !important;
  }
  
  .nav-toggle.active span:nth-child(1) {
    display: block !important;
    transform: rotate(45deg) !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin-left: clamp(-0.75rem, -2vw, -0.625rem) !important;
    margin-top: -1px !important;
    width: clamp(1.25rem, 4vw, 1.5rem) !important;
    background: var(--white) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0) !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  .nav-toggle.active span:nth-child(3) {
    display: block !important;
    transform: rotate(-45deg) !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin-left: clamp(-0.75rem, -2vw, -0.625rem) !important;
    margin-top: -1px !important;
    width: clamp(1.25rem, 4vw, 1.5rem) !important;
    background: var(--white) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 809px) {
  .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
    position: relative !important;
    background: rgba(74, 44, 95, 0.8) !important;
  }
}

@media (max-width: 810px) {
  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: clamp(280px, 85vw, 320px);
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, var(--navy) 0%, #2D1A3D 100%);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(70px, 10vw, 80px);
    padding-left: clamp(var(--space-sm), 5vw, var(--space-md));
    padding-right: clamp(var(--space-sm), 5vw, var(--space-md));
    padding-bottom: var(--space-xl);
    gap: clamp(var(--space-xs), 2vw, var(--space-sm));
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 10000 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }
  
  .nav.active {
    display: flex !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10000 !important;
  }
  
  .nav.active * {
    pointer-events: auto !important;
  }
  
  .nav.active a,
  .nav a {
    width: 100%;
    text-align: left;
    padding: clamp(0.65rem, 2.5vw, 0.9rem) clamp(0.85rem, 4vw, 1.25rem);
    display: flex !important;
    align-items: center;
    color: var(--white) !important;
    position: relative;
    z-index: 10001 !important;
    border-radius: var(--radius-sm);
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    min-height: clamp(40px, 7vw, 48px);
    transition: all var(--transition-base) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border-left: clamp(2px, 0.5vw, 3px) solid transparent;
    -webkit-tap-highlight-color: rgba(155, 89, 182, 0.3);
    pointer-events: auto !important;
    touch-action: manipulation;
    white-space: normal;
    word-wrap: break-word;
  }
  
  .nav a:hover,
  .nav a:focus {
    background: rgba(155, 89, 182, 0.3) !important;
    color: var(--sky-blue) !important;
    border-left-color: var(--sky-blue) !important;
    border-left-width: 4px !important;
    padding-left: calc(var(--space-md) + 8px) !important;
    transform: translateX(10px) !important;
    box-shadow: -4px 0 12px rgba(155, 89, 182, 0.3) !important;
    transition: all var(--transition-base) !important;
  }
  
  .nav a:active {
    background: rgba(155, 89, 182, 0.4) !important;
    transform: translateX(8px) scale(0.98) !important;
    box-shadow: -2px 0 8px rgba(155, 89, 182, 0.4) !important;
  }
  
  .nav a::before {
    display: none;
  }
  
  .hero,
  .section,
  .footer {
    position: relative;
    z-index: 1;
  }
  
  .hero::before,
  .hero::after {
    z-index: 1;
  }
  
  .hero-content {
    z-index: 2;
    position: relative;
  }
  
  body.menu-open {
    overflow: hidden;
    width: 100%;
    height: 100%;
  }
  
  .hero {
    padding: var(--space-lg) 0;
    min-height: 350px;
    display: flex;
    align-items: center;
  }
  
  .hero-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
  }
  
  .hero h1 {
    margin-bottom: var(--space-sm);
  }
  
  .hero p {
    margin-bottom: var(--space-md);
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    margin-bottom: var(--space-md);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .privacy-popup-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .privacy-popup-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .privacy-popup button {
    flex: 1;
    min-width: 120px;
  }
  
  .course-card {
    margin-bottom: var(--space-sm);
  }
  
  .course-image {
    height: 180px;
  }
  
  .course-image i {
    font-size: 3rem;
  }
  
  .card {
    margin-bottom: var(--space-sm);
  }
  
  .card-icon {
    font-size: 2rem;
  }
  
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    font-size: 0.85rem;
    min-width: 500px;
  }
  
  table th,
  table td {
    padding: 0.6rem;
  }
  
  .policy-content {
    padding: var(--space-md);
  }
  
  .thank-you-content {
    padding: var(--space-md);
  }
  
  .map-container {
    height: 250px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xs: 0.4rem;
    --space-sm: 0.8rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-xxl: 3.5rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    padding: var(--space-md) 0;
    min-height: 300px;
  }
  
  .hero h1 {
    margin-bottom: var(--space-sm);
  }
  
  .hero p {
    margin-bottom: var(--space-md);
  }
  
  .header-content {
    padding: var(--space-xs) 0;
  }
  
  .card {
    padding: var(--space-sm);
  }
  
  .card h3 {
    font-size: 1.1rem;
  }
  
  .card p {
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    width: 100%;
    margin-bottom: var(--space-xs);
  }
  
  .btn-secondary {
    margin-bottom: 0;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
  
  h3 {
    font-size: 1.15rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .course-price {
    font-size: 1.5rem;
  }
  
  .course-image {
    height: 150px;
  }
  
  .course-image i {
    font-size: 2.5rem;
  }
  
  .contact-section {
    padding: var(--space-md);
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.7rem;
  }
  
  .footer {
    padding: var(--space-sm) 0;
    font-size: 0.8rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .policy-content {
    padding: var(--space-sm);
  }
  
  .policy-content h2 {
    font-size: 1.25rem;
  }
  
  .policy-content p,
  .policy-content li {
    font-size: 0.85rem;
  }
  
  .thank-you-icon {
    font-size: 3rem;
  }
  
  .map-container {
    height: 200px;
  }
  
  .privacy-popup {
    padding: var(--space-sm);
  }
  
  .privacy-popup p {
    font-size: 0.85rem;
  }
  
  .privacy-popup button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
  
  .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10002 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: rgba(74, 44, 95, 0.8) !important;
  }
  
  .nav-toggle span {
    display: block !important;
    background: var(--white) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .hero {
    padding: var(--space-sm) 0;
    min-height: 250px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
  }
  
  .hero p {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
  }
  
  .section {
    padding: var(--space-md) 0;
  }
  
  .container {
    padding: 0 var(--space-xs);
  }
  
  .logo {
    font-size: clamp(0.65rem, 5vw, 0.9rem);
    letter-spacing: 0.03em;
  }
  
  .btn {
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    min-width: 100%;
  }
  
  .nav {
    width: 90%;
    max-width: 280px;
    padding-top: clamp(55px, 12vw, 65px);
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
    gap: var(--space-xs);
  }
  
  .nav.active a,
  .nav a {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    padding: clamp(0.5rem, 2vw, 0.65rem) clamp(0.65rem, 3vw, 0.85rem);
    min-height: clamp(38px, 7vw, 44px);
  }
  
  .nav-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0.3rem;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10002 !important;
    background: rgba(74, 44, 95, 0.8) !important;
  }
  
  .nav-toggle span {
    display: block !important;
    width: 1.125rem;
    height: 2px;
    margin: 0.2rem 0;
    background: var(--white) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

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

@media (max-width: 768px) {
  a, button, .btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(155, 89, 182, 0.2);
  }
  
  .nav a {
    min-height: 48px;
  }
  
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  html {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

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

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--sky-blue);
  outline-offset: 2px;
}

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

@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
  
  .hero {
    min-height: -webkit-fill-available;
  }
}