:root {
  /* Яркая цветовая схема в ретро стиле */
  --primary-color: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary-color: #4ecdc4;
  --secondary-dark: #3db8b0;
  --accent-color: #ffe66d;
  --accent-dark: #e6cf62;
  --success-color: #00d1b2;
  --info-color: #3273dc;
  --warning-color: #ffdd57;
  --danger-color: #ff3860;
  
  /* Нейтральные цвета */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --black: #000000;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--info-color));
  --gradient-dark: linear-gradient(135deg, var(--dark-gray), var(--black));
  
  /* Типографика */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  /* Размеры */
  --border-radius: 12px;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 16px 48px rgba(0, 0, 0, 0.2);
  
  /* Анимации */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Глобальные стили */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Адаптивная типографика */
h1, h2, h3, h4, h5, h6,
.title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.title.is-1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

.title.is-2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.title.is-3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
}

.title.is-4 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Глобальные стили кнопок */
.btn,
.button,
input[type='submit'],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-light);
}

.btn::before,
.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before,
.button:hover::before {
  left: 100%;
}

.btn:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

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

.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
}

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

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

.button.is-light {
  background: var(--white);
  color: var(--dark-gray);
  border: 2px solid var(--primary-color);
}

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

.cta-button {
  margin: 0.5rem;
  min-width: 160px;
}

/* Ссылки "Читать далее" */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

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

.read-more:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

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

/* Навигация */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dark-gray);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

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

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

/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
}

#hero .title,
#hero .subtitle {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 1s var(--transition-slow) forwards;
}

.animate-fade-in-delay {
  animation: fadeIn 1s var(--transition-slow) 0.3s forwards;
  opacity: 1;
}

.animate-slide-up {
  animation: slideUp 1s var(--transition-slow) 0.6s forwards;
  opacity: 1;
}

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

/* Секции */
.section {
  padding: 4rem 0;
  position: relative;
}

.parallax-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Research Section */
.research-section {
  background: var(--light-gray);
}

.research-section .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.research-section .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.research-section .card-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

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

.research-section .card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

/* Insights Section */
.insights-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.insights-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
  z-index: 1;
}

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

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

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-30px);
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-light);
  z-index: 2;
}

.timeline-marker.is-info {
  background: var(--info-color);
}

.timeline-marker.is-success {
  background: var(--success-color);
}

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-left: 1rem;
  transition: all var(--transition-medium);
}

.timeline-content:hover {
  box-shadow: var(--shadow-medium);
  transform: translateX(8px);
}

.animate-timeline {
  animation: slideIn 0.6s var(--transition-slow) forwards;
}

.animate-timeline:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-timeline:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.instructors-section .card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.instructors-section .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.instructors-section .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.instructors-section .card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Resources Section */
.resources-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.resources-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

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

.resources-section .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.resources-section .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.resources-section .card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* News Section */
.news-section {
  background: var(--light-gray);
}

.custom-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 500px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity var(--transition-slow);
  background: var(--white);
  padding: 3rem;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin: 0 auto;
  display: block;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.prev-btn,
.next-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-light);
}

.prev-btn:hover,
.next-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* Contact Section */
.contact-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95));
  z-index: 1;
}

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

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  height: fit-content;
}

.contact-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.contact-description {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--light-gray), rgba(255, 255, 255, 0.8));
  border-radius: var(--border-radius);
}

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

.field {
  margin-bottom: 1.5rem;
}

.label {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.input,
.textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  background: var(--light-gray);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

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

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

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-fast);
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--accent-color);
  opacity: 1;
  transform: translateX(4px);
}

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

.social-links a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 2rem 0 1rem;
}

/* Модальные окна */
.modal {
  z-index: 1000;
}

.modal-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  animation: modalSlideIn 0.3s var(--transition-medium);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-card-head {
  background: var(--gradient-primary);
  color: var(--white);
}

.modal-card-body {
  padding: 2rem;
}

.modal-card-foot {
  background: var(--light-gray);
}

/* Анимации карточек */
.animate-card {
  opacity: 1;

  transition: all var(--transition-slow);
}

.animate-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .section {
    padding: 3rem 0;
  }
  
  .parallax-section {
    background-attachment: scroll;
  }
  
  .slider-container {
    height: auto;
    min-height: 400px;
  }
  
  .slide {
    position: relative;
    padding: 2rem 1rem;
    height: auto;
    min-height: 400px;
  }
  
  .slide .columns {
    flex-direction: column;
  }
  
  .slide img {
    height: 200px;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline::before {
    left: 0.5rem;
  }
  
  .timeline-marker {
    left: -0.25rem;
    width: 0.5rem;
    height: 0.5rem;
  }
  
  .timeline-content {
    margin-left: 0.5rem;
    padding: 1.5rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .slider-controls {
    position: static;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .custom-slider {
    margin: 0 1rem;
  }
}

@media screen and (max-width: 480px) {
  .cta-button {
    display: block;
    margin: 0.5rem auto;
    width: 100%;
    max-width: 280px;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .slide {
    padding: 1rem;
  }
  
  .hero-body {
    padding: 2rem 1rem;
  }
}

/* Стили для страниц about, privacy, terms, success, contacts */
.page-content {
  padding-top: 100px;
  min-height: 100vh;
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-primary);
  color: var(--white);
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-heavy);
}

.page-section {
  padding: 2rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Утилиты */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift:hover {
  transform: translateY(-4px);
  transition: transform var(--transition-fast);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Дополнительные стили для центрирования изображений */
.card,
.item,
.testimonial,
.team-member,
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card .card-image,
.item .image-container,
.testimonial .image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card img,
.item img,
.testimonial img {
  margin: 0 auto;
  display: block;
}

/* Исправления для правильного отображения */
.columns.is-multiline > .column {
  display: flex;
}

.columns.is-multiline .card {
  width: 100%;
  margin: 0;
}