:root {
  /* Основные цвета */
  --primary-color: #2d3142;
  --secondary-color: #4f5d75;
  --accent-color: #ef8354;
  --accent-hover: #ff9b6a;
  --light-color: #f5f5f5;
  --dark-color: #1a1a1a;
  
  /* Нейтральные цвета */
  --neutral-100: #ffffff;
  --neutral-200: #f5f5f5;
  --neutral-300: #e0e0e0;
  --neutral-400: #bdbdbd;
  --neutral-500: #9e9e9e;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  
  /* Тени */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  
  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Размеры шрифтов */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
}

/* Общие стили */
html, body {
  font-family: 'Roboto', sans-serif;
  color: var(--neutral-800);
  background-color: var(--neutral-200);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  transition: width var(--transition-normal);
}

.section-title:hover::after {
  width: 100px;
}

p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--neutral-700);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-normal), transform var(--transition-normal);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-normal);
}

/* Контейнер с асимметричным балансом */
.asymmetric-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  margin: 0 auto;
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Классы анимаций */
.fade-in-up {
  animation: fadeInUp var(--transition-normal) forwards;
}

.scale-in {
  animation: scaleIn var(--transition-normal) forwards;
}

.slide-in-left {
  animation: slideInLeft var(--transition-normal) forwards;
}

.slide-in-right {
  animation: slideInRight var(--transition-normal) forwards;
}

/* Кнопки */
.btn, button, input[type="submit"] {
  position: relative;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transform-origin: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: -1;
}

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

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--neutral-100);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--shadow-lg);
  color: var(--neutral-100);
}

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

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

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

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

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

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--neutral-100);
}

/* Навигация */
header {
  transition: background-color var(--transition-normal);
  z-index: 1000;
}

.navbar {
  padding: 15px 0;
  background-color: rgba(45, 49, 66, 0.95);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.navbar-brand {
  font-size: var(--font-size-xl);
  color: var(--neutral-100) !important;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
  transition: all var(--transition-normal);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  color: var(--neutral-100) !important;
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 0 !important;
  position: relative;
  transition: all var(--transition-normal);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  padding-top: 80px;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 0;
}

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

.hero-section h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeInUp var(--transition-slow) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-section p {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp var(--transition-slow) forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-section .btn {
  animation: fadeInUp var(--transition-slow) forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* History Section */
#history {
  background-color: var(--neutral-100);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.history-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.history-image:hover img {
  transform: scale(1.02);
}

.history-content h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: var(--font-size-xl);
}

/* Instructors Section */
#instructors {
  background-color: var(--neutral-200);
  padding: 80px 0;
}

#instructors .card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

#instructors .card-image {
  overflow: hidden;
  height: 300px;
}

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

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

#instructors .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#instructors .card-content h3 {
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

#instructors .text-muted {
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
}

/* Success Stories Section */
#success-stories {
  background-color: var(--neutral-100);
  padding: 80px 0;
}

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

#success-stories .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

#success-stories .image-container {
  overflow: hidden;
}

#success-stories .image-container img {
  transition: transform var(--transition-slow);
}

#success-stories .card:hover .image-container img {
  transform: scale(1.05);
}

#success-stories .card-title {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

#success-stories .card-subtitle {
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
}

/* Media Section */
#media {
  background-color: var(--neutral-200);
  padding: 80px 0;
}

.media-card {
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal);
}

.media-card:hover {
  transform: translateY(-10px);
}

.media-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.media-card:hover img {
  transform: scale(1.03);
}

.media-caption {
  text-align: center;
}

.media-caption h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.media-caption p {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
}

/* Resources Section */
#resources {
  padding: 80px 0;
}

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

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

#resources .card-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

#resources .card-text {
  color: var(--neutral-700);
  margin-bottom: 1.5rem;
}

#resources .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Contact Section */
#contact {
  padding: 80px 0;
  background-color: var(--neutral-100);
}

.contact-info, .contact-form {
  height: 100%;
}

.contact-info h3, .contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info strong {
  color: var(--primary-color);
}

.map-container {
  overflow: hidden;
  border-radius: var(--radius-md);
}

form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--neutral-700);
}

form input,
form select,
form textarea {
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: var(--font-size-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(239, 131, 84, 0.25);
}

/* Footer */
footer {
  padding: 80px 0 30px;
  background-color: var(--dark-color);
}

footer h3 {
  color: var(--neutral-100);
  font-size: var(--font-size-lg);
  margin-bottom: 1.5rem;
}

footer p {
  color: var(--neutral-400);
}

footer ul {
  padding-left: 0;
}

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

footer a {
  color: var(--neutral-400);
  transition: color var(--transition-normal);
}

footer a:hover {
  color: var(--neutral-100);
  text-decoration: none;
}

footer hr {
  border-color: var(--neutral-700);
}

/* Modal */
.modal-content {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-header {
  background-color: var(--primary-color);
  color: var(--neutral-100);
  border-bottom: none;
}

.modal-title {
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: none;
  padding: 1rem 2rem 2rem;
}

.btn-close {
  color: var(--neutral-100);
  opacity: 1;
}

/* Cookie Consent */
#cookieConsent {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-lg);
}

#acceptCookies {
  border-radius: var(--radius-md);
  padding: 8px 20px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

#acceptCookies:hover {
  background-color: #0069d9;
  transform: translateY(-2px);
}

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

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

.success-icon {
  font-size: 5rem;
  color: #4CAF50;
  margin-bottom: 2rem;
}

.success-title {
  font-size: var(--font-size-3xl);
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.success-message {
  margin-bottom: 2rem;
  font-size: var(--font-size-lg);
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 120px;
  padding-bottom: 60px;
}

.privacy-page h1, .terms-page h1 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.privacy-page h2, .terms-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.privacy-page p, .terms-page p {
  margin-bottom: 1.5rem;
}

/* Медиа-запросы */
@media (max-width: 991.98px) {
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-section h1 {
    font-size: var(--font-size-3xl);
  }
  
  .hero-section p {
    font-size: var(--font-size-md);
  }
  
  .navbar-collapse {
    background-color: rgba(45, 49, 66, 0.95);
    padding: 1rem;
    border-radius: var(--radius-md);
  }
  
  .nav-link {
    padding: 10px 0 !important;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .hero-section h1 {
    font-size: var(--font-size-2xl);
  }
  
  .hero-section {
    padding-top: 60px;
  }
  
  #history, #instructors, #success-stories, #media, #resources, #contact {
    padding: 60px 0;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  footer {
    padding: 60px 0 30px;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: var(--font-size-xl);
  }
  
  .btn, button, input[type="submit"] {
    padding: 10px 20px;
    font-size: var(--font-size-sm);
  }
  
  .section-title::after {
    width: 60px;
  }
  
  .section-title:hover::after {
    width: 80px;
  }
}

/* Вспомогательные классы */
.shadow-hover {
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.text-primary {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.object-fit-cover {
  object-fit: cover;
}

/* Анимации при прокрутке */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-normal);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Стили для "Читать далее" ссылок */
.read-more-link {
  display: inline-block;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-sm);
  position: relative;
  padding-right: 20px;
  transition: all var(--transition-normal);
}

.read-more-link::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition-normal);
}

.read-more-link:hover {
  color: var(--accent-hover);
  padding-right: 25px;
}

.read-more-link:hover::after {
  right: -5px;
}