/* CSS Variables для цветовой схемы и типографии */
:root {
  /* Основные цвета */
  --primary-color: #3273dc;
  --primary-dark: #2366d1;
  --primary-light: #5aa3f0;
  --secondary-color: #667eea;
  --accent-color: #f093fb;
  --accent-dark: #f5576c;
  
  /* Нейтральные цвета */
  --neutral-100: #f8f9fa;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-400: #ced4da;
  --neutral-500: #6c757d;
  --neutral-600: #495057;
  --neutral-700: #343a40;
  --neutral-800: #212529;
  --neutral-900: #1a1a1a;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-neutral: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --gradient-hero: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  
  /* Типографика */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Source Sans Pro', sans-serif;
  
  /* Размеры и отступы */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--neutral-700);
  overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--neutral-800);
}

p {
  margin-bottom: 1rem;
  color: var(--neutral-600);
}

/* Глобальные стили кнопок */
.btn, 
button, 
input[type='submit'], 
.button {
  font-family: var(--font-secondary);
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn:hover, 
.button:hover,
input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.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 0.5s;
}

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

/* Специфичные стили для кнопок Bulma */
.button.is-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
}

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

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

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

/* Навигация */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-200);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

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

.navbar-item {
  font-family: var(--font-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

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

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

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

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

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

.hero-content {
  animation: fadeInUp 1s ease-out;
  max-width: 800px;
  margin: 0 auto;
}

.hero .title {
  color: white !important;
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 3rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Statistics Section */
.stat-card {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

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

.stat-card .title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  animation: countUp 2s ease-out;
}

/* Blog Section */
.card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

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

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

.card-content p {
  color: var(--neutral-600);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

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

.read-more::after {
  content: ' →';
  transition: var(--transition);
}

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

/* Webinars Section */
.custom-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
}

.webinar-slide {
  min-width: 100%;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.webinar-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.webinar-details p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Testimonials Section */
.testimonial-card {
  height: 100%;
  transition: var(--transition);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

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

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

.testimonial-card .image {
  margin: 0 auto;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.testimonial-card .image img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.testimonial-card blockquote {
  position: relative;
  padding: 1rem 0;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-card blockquote::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  top: -10px;
  left: -20px;
  color: var(--primary-color);
  font-family: var(--font-primary);
}

.testimonial-card cite {
  margin-top: 1rem;
}

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

.field {
  margin-bottom: 1.5rem;
}

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

.input, 
.textarea {
  border: 2px solid var(--neutral-300);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-family: var(--font-secondary);
}

.input:focus, 
.textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.1);
}

.contact-info {
  border-radius: var(--border-radius-lg);
  background: var(--gradient-primary) !important;
}

.contact-info .content {
  color: white;
}

.contact-info .content p {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
  background: var(--gradient-dark) !important;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

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

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  display: inline-block;
}

.social-links a:hover {
  color: white;
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Утилитарные классы */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

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

.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
}

/* Стили для страницы успеха */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-neutral);
  padding: 2rem;
}

.success-content {
  text-align: center;
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
}

/* Стили для страниц условий и конфиденциальности */
.legal-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

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

.legal-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

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

/* Стили для страницы "О нас" */
.about-hero {
  background: var(--gradient-primary);
  color: white;
  padding: 6rem 0 4rem;
  margin-top: 70px;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.team-member .image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.team-member h3 {
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.team-member .role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member p {
  color: var(--neutral-600);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-body {
    padding: 4rem 1rem;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .stat-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .webinar-slide {
    padding: 2rem 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .stat-card .title {
    font-size: 2rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .webinar-slide {
    padding: 1.5rem;
  }
}

/* Стили для мобильной навигации */
@media (max-width: 1023px) {
  .navbar-burger {
    color: var(--neutral-700);
  }
  
  .navbar-burger:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  .navbar-burger.is-active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  
  .navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
}

/* Оптимизация производительности */
.hero,
.card,
.stat-card,
.testimonial-card {
  will-change: transform;
}

.hero::before,
.btn::before,
.button::before {
  will-change: left, opacity;
}

/* Стили для печати */
@media print {
  .navbar,
  .footer,
  .hero,
  .button {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}