
/* === Базові стилі та змінні === */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface-light: #252542;
  --text: #f0f0f5;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === Анімований фон === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* === Контейнер === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  width: 50%;
}

/* === Кнопки === */
.cta {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.cta:hover::before {
  left: 100%;
}

.cta-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-secondary {
  color: var(--muted);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.btn-cancel {
  background: var(--surface-light);
  color: var(--muted);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: var(--surface);
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--surface-light);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* === Hero Section === */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
  padding: 60px 0 80px;
  min-height: 85vh;
}

.hero-left h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.headline {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.2em;
}

.rotator {
  display: inline-block;
  position: relative;
}

.rotator span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: rotateText 8s infinite;
}

.rotator span:nth-child(1) { animation-delay: 0s; }
.rotator span:nth-child(2) { animation-delay: 2s; }
.rotator span:nth-child(3) { animation-delay: 4s; }
.rotator span:nth-child(4) { animation-delay: 6s; }

@keyframes rotateText {
  0%, 20% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-20px); }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 20px;
  min-height: 1.6em;
}

.typewriter {
  border-right: 2px solid var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.news-banner {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  padding: 14px 18px;
  background: rgba(99,102,241,0.1);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

/* === Hero Card === */
.hero-card {
  position: sticky;
  top: 100px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Картки === */
.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 0.03;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

/* === Статистика === */
.stat {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* === Grid === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* === Muted text === */
.muted {
  color: var(--muted);
  font-size: 14px;
}

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === About Section === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--text);
}

.about-text em {
  color: var(--accent);
  font-style: normal;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.about-feature-icon {
  font-size: 24px;
}

.about-feature strong {
  display: block;
  margin-bottom: 4px;
}

.about-feature p {
  margin: 0;
  font-size: 13px;
}

.about-video {
  position: sticky;
  top: 100px;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--surface);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  border-color: var(--primary);
}

.play-button {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-card h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* === Programs Tabs === */
.programs-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.tab-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.program-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.program-header h3 {
  font-size: 1.4rem;
}

.program-price {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.program-card > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.program-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.program-feature {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}

/* === Achievements === */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.achievement-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.achievement-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.achievement-label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.achievements-timeline {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.05);
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-date {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content h4 {
  margin-bottom: 4px;
}

.timeline-content p {
  color: var(--muted);
  font-size: 14px;
}

/* === Team === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  margin: 0 auto 16px;
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 12px;
}

.team-card .muted {
  font-size: 13px;
  line-height: 1.6;
}

.team-social {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.team-social a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background: var(--primary);
  color: white;
}

/* === Testimonials === */
.testimonials-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-card {
  display: none;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.testimonial-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial-author strong {
  display: block;
}

.testimonial-rating {
  font-size: 18px;
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.testimonials-dots {
  display: flex;
  gap: 8px;
}

.testimonials-dots .dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonials-dots .dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.8;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.gallery-item.large {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--muted);
}

/* === Contacts === */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-icon {
  font-size: 24px;
}

.contact-item strong {
  display: block;
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.contact-map {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.map-placeholder span {
  font-size: 48px;
  margin-bottom: 12px;
}

/* === CTA Banner === */
.cta-banner {
  margin-top: 48px;
  background: var(--gradient);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cta-banner p {
  opacity: 0.9;
}

.cta-banner .cta {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta-banner .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* === Footer === */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
  padding-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand .logo {
  width: 56px;
  height: 56px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-column h4 {
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-column a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--text);
}

/* === Modal === */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

.modal-backdrop.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--surface-light);
  border: none;
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

.modal h3 {
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Form Styles === */
form {
  margin-top: 24px;
}

form > div {
  margin-bottom: 18px;
}

form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

form textarea {
  resize: vertical;
  min-height: 80px;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-checkbox label {
  margin: 0;
  font-size: 13px;
}

.form-checkbox a {
  color: var(--accent);
}

/* === Scroll indicator === */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 1001;
  transition: width 0.1s linear;
  width: 0;
}

/* === Parallax Shapes === */
.parallax-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.12);
  top: 5%;
  left: -15%;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(34, 211, 238, 0.08);
  bottom: 20%;
  right: -10%;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.06);
  top: 50%;
  left: 50%;
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* === Success Message === */
.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Particles === */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

/* === Responsive === */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-video {
    position: static;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    background: var(--surface);
    flex-direction: column;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-stat {
    flex: 1 1 40%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }

  .cta-banner {
    text-align: center;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.gallery-item img {
width: 100%;
height: 490px;
object-fit: cover;
border-radius: 12px;
}
