:root {
  /* Триадная цветовая схема */
  --primary: #3a6cf4;
  --primary-dark: #2a50c2;
  --primary-light: #6a8ff6;
  --secondary: #f43a6c;
  --secondary-dark: #d02050;
  --secondary-light: #f6698f;
  --tertiary: #3af4a0;
  --tertiary-dark: #28c27a;
  --tertiary-light: #6af6b8;
  
  /* Нейтральные цвета */
  --dark: #222222;
  --dark-medium: #333333;
  --medium: #666666;
  --light-medium: #aaaaaa;
  --light: #f8f9fa;
  --white: #ffffff;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary), var(--tertiary-light));
  --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
  
  /* Тени */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Интервалы */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

/* Базовые стили */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark-medium);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
}

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

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Контейнеры */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

section {
  padding: var(--spacing-lg) 0;
  position: relative;
}

section h2 {
  margin-bottom: var(--spacing-md);
  text-align: center;
}

/* Кнопки - глобальные стили */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  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.2);
  transition: all var(--transition-normal);
  z-index: -1;
}

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

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

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

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

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

.btn-outline-light {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

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

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

/* Хедер и навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem;
  color: var(--dark-medium);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Hero секция */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1.2s ease-out;
}

.hero .btn {
  animation: fadeInUp 1.4s ease-out;
}

/* Vision секция */
.vision {
  background-color: var(--white);
}

.vision-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--transition-normal);
}

.vision-image:hover {
  transform: perspective(1000px) rotateY(0);
}

/* Statistics секция */
.statistics {
  background-color: var(--light);
}

.statistics .card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
}

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

.statistics .display-3 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Customer Stories секция */
.customer-stories {
  position: relative;
}

.customer-stories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/pattern-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: -1;
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--light-medium);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  left: 0;
  margin-bottom: 60px;
}

.timeline-item.inverted {
  left: 50%;
}

.timeline-image {
  position: absolute;
  width: 100px;
  height: 100px;
  right: -50px;
  top: 20px;
  z-index: 10;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--white);
}

.timeline-item.inverted .timeline-image {
  left: -50px;
  right: auto;
}

.timeline-content {
  padding: 30px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  right: -15px;
  background-color: var(--white);
  border: 4px solid var(--primary);
  top: 30px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.inverted::after {
  left: -15px;
  right: auto;
}

/* Features секция */
.features .card {
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.features .card-image {
  overflow: hidden;
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Portfolio секция */
.portfolio-item {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item .card-image {
  overflow: hidden;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Resources секция */
.resources .card {
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.resources .icon-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.resources .icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Team секция */
.team-member {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.team-member .card-image {
  overflow: hidden;
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Instructors секция */
.instructors {
  background-color: var(--light);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-button {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  padding: 1.25rem;
  background-color: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: var(--white);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--white);
}

/* Contact секция */
.contact {
  position: relative;
}

.contact-info .icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.contact form .form-control {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-medium);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(58, 108, 244, 0.15);
}

.contact form textarea {
  min-height: 120px;
}

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

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

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer a.text-white {
  transition: color var(--transition-fast);
}

.footer a.text-white:hover {
  color: var(--primary-light) !important;
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
}

.social-links a {
  margin-right: 1rem;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-light) !important;
}

/* Cookie Consent */
#cookieConsent {
  transition: opacity var(--transition-normal);
}

#acceptCookies:hover {
  background-color: var(--primary-dark);
}

/* Страница success.html */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  font-size: 5rem;
  color: var(--tertiary);
  margin-bottom: 2rem;
}

/* Страницы terms.html и privacy.html */
.page-content {
  padding-top: 120px;
  padding-bottom: 4rem;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Медиа-запросы */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item.inverted {
    left: 0;
  }
  
  .timeline-image {
    left: -20px;
    right: auto;
    width: 80px;
    height: 80px;
  }
  
  .timeline-item.inverted .timeline-image {
    left: -20px;
  }
  
  .timeline-item::after {
    left: 15px;
    right: auto;
  }
  
  .timeline-item.inverted::after {
    left: 15px;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .social-links a {
    margin-bottom: 0.5rem;
  }
}

/* Утилиты */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-tertiary { background-color: var(--tertiary) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: var(--dark) !important; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-tertiary { color: var(--tertiary) !important; }
.text-light { color: var(--light) !important; }
.text-dark { color: var(--dark) !important; }

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

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

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

/* Параллакс эффект */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}