:root {
  /* Основная цветовая схема - дополнительная */
  --primary-color: #3a7bd5;
  --primary-dark: #2a5ca0;
  --primary-light: #6e9de8;
  --secondary-color: #d5803a;
  --secondary-dark: #b56828;
  --secondary-light: #e9a46b;
  --accent-color: #9c27b0;
  --accent-dark: #7b1fa2;
  --accent-light: #ce93d8;
  
  /* Нейтральные цвета */
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --medium-gray: #e0e5ec;
  --dark-gray: #4a5568;
  --black: #1a202c;
  
  /* Глассморфизм */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(31, 38, 135, 0.25);
  
  /* Тени для объемных элементов */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  
  /* Закругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  /* Переходы */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Шрифты */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Размеры шрифтов */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Размеры контейнеров */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* ===== Базовые стили ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--dark-gray);
  line-height: 1.6;
  background-color: var(--light-gray);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--black);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--black);
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 0.5rem auto 0;
  border-radius: var(--radius-full);
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
  z-index: -1;
}

.btn:hover:before {
  left: 0;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

button, input[type='submit'] {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

/* ===== Глассморфизм ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

/* ===== Объемные элементы UI ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  transform: translateZ(0);
}

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

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  width: 100%;
  text-align: center;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

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

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

.logo img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-list li {
  margin-left: 1.5rem;
}

.nav-list a {
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-list a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-list a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
}

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

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--dark-gray);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/hero-background.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  margin-top: 0;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: var(--text-xl);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ===== Mission Section ===== */
.mission-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.mission-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.mission-image {
  flex: 1;
  min-width: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition-slow);
}

.mission-image:hover img {
  transform: scale(1.05);
}

.mission-text {
  flex: 1;
  min-width: 300px;
}

.mission-values {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.animated-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  transition: var(--transition-normal);
}

.animated-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ===== Services Section ===== */
.services-section {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ===== Success Stories Section ===== */
.success-stories-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.stories-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.stories-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.timeline-marker {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.timeline-content {
  width: 45%;
  margin-left: auto;
  margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

/* ===== Accolades Section ===== */
.accolades-section {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

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

.accolade-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.accolade-image {
  width: 200px;
  height: 200px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.accolade-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.accolade-item:hover .accolade-image img {
  transform: scale(1.1);
}

.accolade-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

/* ===== Resources Section ===== */
.resources-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.resources-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ===== Instructors Section ===== */
.instructors-section {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

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

/* ===== Contact Section ===== */
.contact-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.info-item .animated-icon {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  margin-bottom: 0;
}

.contact-form-container {
  flex: 2;
  min-width: 300px;
}

.contact-form {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-md);
  background-color: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
}

/* ===== Footer ===== */
.footer {
  padding: 4rem 0 2rem;
  background-color: var(--dark-gray);
  color: var(--white);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  flex: 2;
  min-width: 300px;
}

.footer-logo img {
  margin-bottom: 1.5rem;
  height: 60px;
  width: auto;
}

.footer-links, .footer-legal, .footer-social {
  flex: 1;
  min-width: 200px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: var(--radius-full);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--medium-gray);
  transition: var(--transition-normal);
}

.footer a:hover {
  color: var(--white);
  text-decoration: none;
  padding-left: 5px;
}

.footer-social a {
  display: inline-block;
  transition: var(--transition-normal);
}

.footer-social a:hover {
  transform: translateY(-3px);
}

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

/* ===== Success Page ===== */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  background-color: var(--light-gray);
}

.success-content {
  max-width: 600px;
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background-color: var(--primary-light);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-full);
}

/* ===== Privacy & Terms Pages ===== */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== Media Queries ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  .hero-content {
    max-width: 600px;
  }
  
  .timeline-content {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 2rem;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    padding-left: 2rem;
    padding-right: 0;
  }
  
  .stories-timeline:before {
    left: 0;
  }
  
  .timeline-marker {
    left: 0;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-list li {
    margin: 1rem 0;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .mission-content, .contact-container {
    flex-direction: column;
  }
  
  .mission-image, .mission-text {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-logo, .footer-links, .footer-legal, .footer-social {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  .hero-content p {
    font-size: var(--text-md);
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .success-content, .privacy-content, .terms-content {
    padding: 2rem;
  }
}

/* ===== Animation Particles ===== */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  pointer-events: none;
}

/* ===== Cookie Popup ===== */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: 15px;
  z-index: 9999;
  text-align: center;
}

.cookie-popup button {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  margin: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.cookie-popup button:hover {
  background-color: var(--secondary-dark);
}

/* ===== Additional Utility Classes ===== */
.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

.w-full {
  width: 100%;
}

.hidden {
  display: none;
}

.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.hover-scale {
  transition: var(--transition-normal);
}

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

.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.shadow-hover {
  transition: var(--transition-normal);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg);
}