:root {
  /* Тетрадная цветовая схема */
  --primary-color: #FF6B35;        /* Яркий оранжевый */
  --primary-dark: #E04E1A;         /* Темно-оранжевый */
  --primary-light: #FF8C64;        /* Светло-оранжевый */
  
  --secondary-color: #5C7AFF;      /* Яркий синий */
  --secondary-dark: #3A55D1;       /* Темно-синий */
  --secondary-light: #7F99FF;      /* Светло-синий */
  
  --accent-1: #00C2A8;             /* Бирюзовый */
  --accent-1-dark: #00A18B;        /* Темно-бирюзовый */
  --accent-1-light: #3DDECB;       /* Светло-бирюзовый */
  
  --accent-2: #F24AB0;             /* Розовый */
  --accent-2-dark: #D02A94;        /* Темно-розовый */
  --accent-2-light: #F57AC5;       /* Светло-розовый */
  
  /* Нейтральные цвета */
  --dark: #1A1A2E;
  --dark-gray: #2D2D40;
  --gray: #5C5C7B;
  --light-gray: #E0E0E7;
  --light: #F8F8FC;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-2));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-1));
  --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-gray));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Размеры и отступы */
  --section-spacing: 5rem;
  --container-padding: 2rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Анимации */
  --transition-fast: all 0.3s ease;
  --transition-normal: all 0.5s ease;
  --transition-slow: all 0.8s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

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

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

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

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

.bg-light {
  background-color: var(--light);
}

.bg-dark {
  background-color: var(--dark);
  color: var(--light);
}

.text-light {
  color: var(--light);
}

/* Секционные стили */
.section-heading {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  color: var(--dark);
}

.bg-dark .section-title {
  color: var(--light);
}

.section-description {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray);
}

.bg-dark .section-description {
  color: var(--light-gray);
}

.title-separator {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin-bottom: 1.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

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

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  transition: var(--transition-fast);
  z-index: -1;
  opacity: 0;
}

.btn:hover::before {
  width: 100%;
  opacity: 1;
}

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

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

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

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

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.animated-btn {
  transform: scale(1);
  transition: transform 0.3s ease;
}

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

/* Хедер и навигация */
.header-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-fast);
  background-color: rgba(26, 26, 46, 0.95);
}

.header-section.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(26, 26, 46, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--light) !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--light-gray);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--light);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
  width: 70%;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: scale(1);
  transition: transform 10s ease;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(92, 122, 255, 0.6));
  z-index: -1;
}

.hero-title {
  font-size: 4rem;
  color: white;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.3s forwards;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s forwards;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* About Section */
.about-image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image-container img {
  transition: var(--transition-normal);
  transform: scale(1);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

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

.about-content p:last-child {
  margin-bottom: 0;
}

/* Features Section */
.feature-card {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  height: 100%;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.feature-icon img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

.feature-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--dark);
}

.feature-description {
  color: var(--gray);
}

/* Courses Section */
.course-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.card-content {
  padding: 2rem;
  text-align: center;
}

.course-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.course-description {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.course-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Vision Section */
.vision-content p:last-child {
  margin-bottom: 0;
}

.vision-image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vision-image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

/* Instructors Section */
.instructor-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.instructor-card .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

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

.instructor-card .card-content {
  padding: 2rem;
  text-align: center;
}

.instructor-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.instructor-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.instructor-bio {
  color: var(--gray);
}

/* Resources Section */
.resources-container {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}

.resource-item {
  margin-bottom: 2rem;
}

.resource-item:last-child {
  margin-bottom: 0;
}

.resource-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

.resource-list {
  list-style: none;
}

.resource-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.resource-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.resource-list a {
  color: var(--secondary-color);
  transition: var(--transition-fast);
}

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

/* Testimonials Section */
.testimonial-card {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  height: 100%;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background-color: var(--light);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 1rem;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2.5rem;
  color: var(--primary-light);
  position: absolute;
}

.testimonial-text::before {
  top: -1.5rem;
  left: -0.5rem;
}

.testimonial-text::after {
  bottom: -2rem;
  right: -0.5rem;
  transform: rotate(180deg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

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

.author-name {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.author-position {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Careers Section */
.careers-image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.careers-image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.careers-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.career-stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 2rem;
}

.stat-item {
  flex-grow: 1;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-description {
  color: var(--gray);
  font-size: 1rem;
}

/* FAQ Section */
.faq-accordion .accordion-item {
  margin-bottom: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  background-color: var(--light);
  padding: 1.5rem;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--light);
  box-shadow: none;
}

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

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF6B35'%3e%3cpath fill-rule='evenodd' d='M8 0a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2H9v6a1 1 0 1 1-2 0V9H1a1 1 0 0 1 0-2h6V1a1 1 0 0 1 1-1z'/%3e%3c/svg%3e");
  transition: var(--transition-fast);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF6B35'%3e%3cpath fill-rule='evenodd' d='M0 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
  padding: 1.5rem;
  color: var(--gray);
}

/* Contact Form Section */
.contact-form-container {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

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

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

.contact-form .form-control {
  height: auto;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

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

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info-item {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  height: 100%;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.contact-icon {
  margin-bottom: 1.5rem;
}

.contact-icon img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

.contact-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.contact-text {
  color: var(--gray);
}

/* Footer Section */
.footer-section {
  background-color: var(--dark);
  color: var(--light);
}

.footer-top {
  padding: 5rem 0;
}

.footer-bottom {
  padding: 1.5rem 0;
  background-color: var(--dark-gray);
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.footer-description {
  margin-bottom: 1.5rem;
  color: var(--light-gray);
}

.footer-social-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-links a {
  color: var(--light);
  transition: var(--transition-fast);
}

.footer-social-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.8rem;
}

.footer-nav a {
  color: var(--light-gray);
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  color: var(--light-gray);
}

.footer-contact-info i {
  margin-right: 0.8rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.copyright-text {
  color: var(--light-gray);
  margin-bottom: 0;
}

.footer-legal {
  list-style: none;
  display: flex;
  margin-bottom: 0;
}

.footer-legal li {
  margin-left: 1.5rem;
}

.footer-legal a {
  color: var(--light-gray);
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--primary-color);
}

/* Animation Reveal on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.39, 0.575, 0.565, 1);
}

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

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

.success-container {
  max-width: 600px;
  padding: 3rem;
  background-color: white;
  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);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

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

.success-message {
  margin-bottom: 2rem;
  color: var(--gray);
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

.content-page .content-container {
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.content-page h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  margin-bottom: 1.5rem;
}

.content-page ul, .content-page ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.content-page li {
  margin-bottom: 0.5rem;
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .navbar-collapse {
    background-color: rgba(26, 26, 46, 0.98);
    padding: 1rem;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .career-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-info, .footer-links, .footer-contact {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .footer-legal {
    flex-direction: column;
  }
  
  .footer-legal li {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
}

/* Utilities */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: var(--transition-fast);
}

.read-more:hover::after {
  transform: translateX(5px);
}