:root {
  /* Основная цветовая схема - раздельно-дополнительная */
  --primary-color: #3850e0;
  --primary-dark: #2a3db0;
  --primary-light: #5a6ee5;
  
  --secondary-color: #e04c38;
  --secondary-dark: #b03a2a;
  --secondary-light: #e57a6e;
  
  --tertiary-color: #38e0b8;
  --tertiary-dark: #28b08f;
  --tertiary-light: #6ae5c9;
  
  --neutral-dark: #222222;
  --neutral: #555555;
  --neutral-light: #f5f5f5;
  
  /* Переходы и тени */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  --shadow-small: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.2);
  
  /* Градиенты для фонов */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary-color), var(--tertiary-light));
  --gradient-dark-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  
  /* Радиусы скругления */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
  --radius-circle: 50%;
}

/* Base Styles */
html, body {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

p {
  margin-bottom: 1.5rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-medium);
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1rem auto 0;
  border-radius: var(--radius-small);
}

/* Button Styles */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  box-shadow: var(--shadow-small);
}

.button.is-primary {
  background: var(--gradient-primary);
  color: white;
}

.button.is-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.button.is-secondary {
  background: var(--gradient-secondary);
  color: white;
}

.button.is-secondary:hover {
  background: var(--secondary-dark);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.button.is-outlined {
  background: transparent;
  border: 2px solid currentColor;
}

.button.is-outlined.is-white {
  color: white;
  border-color: white;
}

.button.is-outlined:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.button.is-large {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

/* Header/Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.98);
}

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

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}
@media (max-width: 768px) {
  .navbar-brand{
    width: 100%;
  }
}

.navbar-menu {
  display: flex;
}

.navbar-item {
  margin-left: 1.5rem;
  color: var(--neutral-dark);
  font-weight: 500;
  position: relative;
}

.navbar-item:hover {
  color: var(--primary-color);
}

.navbar-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-small);
}

.navbar-item:hover::after {
  width: 100%;
}

.navbar-burger {
  display: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.navbar-burger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.navbar-burger span:nth-child(1) { top: 0; }
.navbar-burger span:nth-child(2) { top: 10px; }
.navbar-burger span:nth-child(3) { top: 20px; }

.navbar-burger.is-active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark-overlay);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4rem 0;
}

.hero .title, 
.hero .subtitle {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 800px;
}

.hero .buttons {
  margin-top: 2rem;
}

/* Success Stories Section */
.success-stories {
  background-color: var(--neutral-light);
}

.card {
  height: 100%;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

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

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

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

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

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.card-content p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* Innovation Section */
.innovation-section {
  overflow: hidden;
}

.innovation-section .columns {
  align-items: center;
}

.innovation-section img {
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium);
}

.innovation-section img:hover {
  transform: scale(1.03);
}

.innovation-section .title {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Instructors Section */
.instructors-section {
  background-color: var(--neutral-light);
}

.instructors-section .card {
  text-align: center;
}

.instructors-section .card-image {
  height: 300px;
}

.instructors-section .subtitle {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* External Resources Section */
.external-resources .resource-card {
  text-align: center;
}

.external-resources .card-image {
  height: 200px;
}

.external-resources .button {
  margin-top: auto;
}

/* Testimonials Section */
.testimonials-section {
  position: relative;
  color: white;
}

.testimonials-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark-overlay);
  z-index: 1;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

.testimonials-section .title {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  animation: fadeIn var(--transition-medium);
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-large);
  text-align: center;
  padding: 2rem;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-controls {
  margin-top: 2rem;
}

.testimonial-controls button {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin: 0 0.5rem;
}

.testimonial-controls button:hover {
  background: white;
  color: var(--primary-color);
}

/* Team Section */
.team-section .card {
  text-align: center;
}

.team-section .card-image {
  height: 300px;
  width: 300px;
  margin: 0 auto;
  border-radius: var(--radius-circle);
  overflow: hidden;
}

.team-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-section .subtitle {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Clientele Section */
.clientele-section {
  background-color: var(--neutral-light);
}

.client-group {
  text-align: center;
  margin-bottom: 2rem;
}

.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.client-logo {
  width: 200px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
  padding: 1rem;
  transition: transform var(--transition-fast);
}

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

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* News Section */
.news-section .card-content .subtitle {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.news-section .button {
  margin-top: auto;
}

/* Contact Section */
.contact-section {
  background-color: var(--neutral-light);
}

.contact-info .info-item {
  margin-bottom: 2rem;
}

.contact-info .title {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-info .title i {
  margin-right: 0.5rem;
}

.map-container {
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.contact-form-container {
  background: white;
  border-radius: var(--radius-large);
  padding: 2rem;
  box-shadow: var(--shadow-medium);
}

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

.contact-form .input,
.contact-form .textarea {
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-medium);
  padding: 0.75rem;
  font-family: 'Rubik', sans-serif;
  transition: border-color var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(56, 80, 224, 0.1);
}

.contact-form .button {
  margin-top: 1rem;
}

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

.footer .title {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  font-weight: 500;
}

.social-links a:hover {
  color: white;
}

.newsletter-form .input {
  border: none;
  border-radius: var(--radius-medium) 0 0 var(--radius-medium);
}

.newsletter-form .button {
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
}

/* Modal */
.modal {
  display: none;
}

.modal.is-active {
  display: flex;
}

.modal-background {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  max-width: 500px;
  width: 90%;
  margin: auto;
}

.modal-close {
  background: none;
}

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

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

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

/* Additional Pages */
.about-page,
.privacy-page,
.terms-page,
.contacts-page {
  padding-top: 100px; /* Отступ от фиксированного header */
}

.about-page .section,
.privacy-page .section,
.terms-page .section,
.contacts-page .section {
  margin-bottom: 4rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* Cookie Consent */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  display: none;
}

#cookie-consent button {
  margin-top: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

#cookie-consent button:hover {
  background-color: var(--primary-dark);
}

/* Media Queries */
@media (max-width: 1023px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-medium);
    padding: 1rem;
    z-index: 1000;
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
  }
  
  .navbar-item {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
  }
  
  .navbar-burger {
    display: block;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .team-section .card-image {
    height: 250px;
    width: 250px;
  }
}

@media (max-width: 480px) {
  .button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero .buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
}