/* CSS Variables для цветовой схемы и дизайн-системы */
:root {
  /* Основные цвета - нейтральная палитра */
  --primary-color: #2c3e50;
  --primary-dark: #1a252f;
  --primary-light: #34495e;
  --secondary-color: #3498db;
  --secondary-dark: #2980b9;
  --secondary-light: #5dade2;
  --accent-color: #e74c3c;
  --accent-dark: #c0392b;
  --accent-light: #ec7063;
  
  /* Нейтральные цвета */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Радиусы */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  /* Шрифты */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--neutral-700);
  background-color: var(--neutral-100);
  scroll-behavior: smooth;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1, .title.is-1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2, .title.is-2 { font-size: clamp(2rem, 4vw, 3rem); }
h3, .title.is-3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4, .title.is-4 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h5, .title.is-5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6, .title.is-6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

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

.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.2), 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-lg);
}

.btn.is-primary,
.button.is-primary {
  background: var(--gradient-primary);
  color: var(--neutral-100);
}

.btn.is-secondary,
.button.is-secondary {
  background: var(--gradient-secondary);
  color: var(--neutral-100);
}

.btn.is-light,
.button.is-light {
  background: var(--neutral-100);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Навигация */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-300);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

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

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

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

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

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.hero .title,
.hero .subtitle {
  color: var(--neutral-100);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Статистики в Hero */
.stats-widget {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
  margin-bottom: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--neutral-100);
  font-family: var(--font-heading);
}

.stat-label {
  color: var(--neutral-200);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Прогресс-индикаторы */
.progress-indicators {
  margin-top: 2rem;
}

.progress-item {
  margin-bottom: 1.5rem;
}

.progress-label {
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.5rem;
  display: block;
}

.progress {
  height: 8px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: var(--neutral-300);
}

.progress::-webkit-progress-bar {
  background: var(--neutral-300);
  border-radius: var(--border-radius-sm);
}

.progress::-webkit-progress-value {
  border-radius: var(--border-radius-sm);
}

/* Карточки */
.card {
  background: var(--neutral-100);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid var(--neutral-300);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

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

.card-content .title {
  margin-bottom: 1rem;
  color: var(--neutral-800);
}

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

/* Теги */
.tag {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-xl);
  margin-top: auto;
  align-self: center;
}

.tag.is-success {
  background: var(--secondary-light);
  color: var(--neutral-100);
}

.tag.is-primary {
  background: var(--primary-color);
  color: var(--neutral-100);
}

.tag.is-info {
  background: var(--secondary-color);
  color: var(--neutral-100);
}

.tag.is-warning {
  background: var(--accent-light);
  color: var(--neutral-100);
}

/* Цитаты и отзывы */
blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--neutral-700);
  border-left: 4px solid var(--primary-color);
  padding-left: 2rem;
  margin: 2rem 0;
}

/* Success Stories - специальные стили для отзывов */
.success-stories .card {
  text-align: center;
  align-items: center;
}

.success-stories .card-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  border: 4px solid var(--neutral-300);
}

.success-stories .card-image img {
  border-radius: 50%;
}

/* Награды и достижения */
.accolades .image {
  margin: 0 auto;
  text-align: center;
}

.accolades .column {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accolades img {
  object-fit: cover;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.accolades img:hover {
  transform: scale(1.1);
}

/* Уведомления */
.notification {
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  font-family: var(--font-heading);
}

.notification.is-warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
  color: #b8860b;
}

.notification.is-info {
  background: rgba(52, 152, 219, 0.1);
  border-color: rgba(52, 152, 219, 0.3);
  color: var(--secondary-dark);
}

.notification.is-success {
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.3);
  color: #27ae60;
}

/* Боксы */
.box {
  background: var(--neutral-100);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-300);
  transition: box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.box .image {
  text-align: center;
  margin-bottom: 1rem;
}

.box img {
  object-fit: cover;
  border-radius: var(--border-radius-md);
}

.box .content {
  flex-grow: 1;
}

/* Ссылки "Читать далее" */
.button.is-text,
a[href="#"].button.is-text,
.read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  position: relative;
  transition: all var(--transition-normal);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.button.is-text:hover,
.read-more-link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
  transform: translateX(4px);
}

.button.is-text::after,
.read-more-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform var(--transition-normal);
}

.button.is-text:hover::after,
.read-more-link:hover::after {
  transform: translateX(4px);
}

/* Формы */
.field {
  margin-bottom: 1.5rem;
}

.label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.5rem;
}

.input,
.textarea,
.select select {
  border: 2px solid var(--neutral-400);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  transition: all var(--transition-normal);
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
  outline: none;
}

/* Contact форма */
.contact-form .box {
  background: var(--neutral-100);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
}

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

.section.has-background-light {
  background-color: var(--neutral-200);
}

.section.has-background-primary {
  background: var(--gradient-primary);
  color: var(--neutral-100);
}

.section.has-background-white-ter {
  background-color: var(--neutral-200);
}

/* Футер */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: 3rem 0 2rem;
}

.footer .title {
  color: var(--neutral-100);
}

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

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

.footer-links a {
  color: var(--neutral-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--neutral-100);
}

.social-links a {
  color: var(--neutral-300);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  position: relative;
  margin-right: 1rem;
}

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

.social-links a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width var(--transition-normal);
}

.social-links a:hover::before {
  width: 100%;
}

/* Cookie consent */
.cookie-consent {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--neutral-700);
}

/* Страницы Terms и Privacy */
.terms-content,
.privacy-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
}

.terms-content .content,
.privacy-content .content {
  font-size: 1rem;
  line-height: 1.8;
}

.terms-content h2,
.privacy-content h2 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

/* Success страница */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--neutral-100);
}

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

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

/* About страница */
.about-page {
  padding-top: 100px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member .image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem auto;
  border: 4px solid var(--primary-color);
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Рисованные анимации */
.draw-line {
  position: relative;
  overflow: hidden;
}

.draw-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
  to {
    transform: scaleX(1);
  }
}

/* Ховер эффекты для карточек */
.hover-lift {
  transition: all var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Медиа запросы для адаптивности */
@media (max-width: 768px) {
  .hero-body {
    padding: 4rem 0;
  }
  
  .stats-widget {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 480px) {
  .hero-body {
    padding: 3rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .box,
  .card-content {
    padding: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Утилитарные классы */
.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(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hover-rotate:hover {
  transform: rotate(5deg);
}

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

.border-gradient {
  border: 2px solid;
  border-image: var(--gradient-primary) 1;
}

figure {
  width: 100%;
}