:root {
  /* Пастельная цветовая схема */
  --primary-color: #7c3aed;
  --primary-light: #a855f7;
  --primary-dark: #5b21b6;
  --secondary-color: #06b6d4;
  --secondary-light: #22d3ee;
  --secondary-dark: #0891b2;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  
  /* Пастельные оттенки */
  --pastel-pink: #fce7f3;
  --pastel-blue: #dbeafe;
  --pastel-purple: #ede9fe;
  --pastel-green: #d1fae5;
  --pastel-yellow: #fef3c7;
  --pastel-orange: #fed7aa;
  
  /* Нейтральные цвета */
  --white: #ffffff;
  --light: #f8fafc;
  --light-gray: #f1f5f9;
  --gray: #64748b;
  --dark-gray: #334155;
  --dark: #1e293b;
  --black: #0f172a;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(124, 58, 237, 0.9) 0%, rgba(6, 182, 212, 0.8) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Анимации */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Типография */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Размеры */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Типография */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.title {
  font-family: var(--font-heading) !important;
}

.subtitle {
  font-family: var(--font-body) !important;
  font-weight: 400;
}

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

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

.btn:active,
button:active,
.button:active,
input[type='submit']:active,
input[type='button']:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

/* Стили кнопок по типам */
.btn-primary,
.button.is-primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.btn-primary:hover,
.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--white);
}

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

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

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

/* Размеры кнопок */
.btn-large,
.button.is-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-small,
.button.is-small {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Навигация */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  transition: all var(--transition-base);
  z-index: 1000;
}

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

.navbar-brand .navbar-item {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.75rem;
}

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

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

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

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

/* Hero секция */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  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: var(--spacing-xl) 0;
}

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

.hero .title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  animation: slideInUp 1s ease-out;
}

.hero .subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 300;
  margin-bottom: var(--spacing-xl);
  animation: slideInUp 1s ease-out 0.2s both;
}

/* Секции */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section.has-background-light {
  background: linear-gradient(45deg, var(--pastel-blue) 0%, var(--pastel-purple) 100%);
}

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

/* Карточки */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: all var(--transition-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(124, 58, 237, 0.3);
}

.card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 200px;
  background: var(--light-gray);
}

.card-image figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

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

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

.card-content {
  padding: var(--spacing-lg);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Команда */
.team-member,
.testimonial,
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member .card-image,
.testimonial .card-image,
.item .card-image {
  width: 100%;
  height: 250px;
  border-radius: 50% 50% var(--border-radius) var(--border-radius);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  border: 4px solid var(--primary-color);
  position: relative;
}

.team-member img,
.testimonial img,
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
  display: block;
}

/* Статистика */
.stats-widget {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.stat-item {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  background: var(--gradient-card);
  transition: all var(--transition-base);
}

.stat-item:hover {
  transform: scale(1.05);
  background: rgba(124, 58, 237, 0.1);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--spacing-sm);
}

/* Формы */
.field {
  margin-bottom: var(--spacing-md);
}

.label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--spacing-xs);
}

.input,
.textarea,
.select select {
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  outline: none;
  background: var(--white);
}

.select {
  position: relative;
}

.select::after {
  border-color: var(--primary-color);
}

/* Теги */
.tags {
  margin-top: var(--spacing-md);
}

.tag {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 6px 12px;
  margin-right: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}

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

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

.tag.is-success {
  background: #10b981;
  color: var(--white);
}

.tag.is-warning {
  background: var(--accent-color);
  color: var(--white);
}

/* Футер */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
}

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

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

.footer a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.social-links a {
  display: inline-block;
  margin-right: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
}

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

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

.read-more-link::after,
.link-primary::after {
  content: '→';
  margin-left: var(--spacing-xs);
  transition: transform var(--transition-base);
}

.read-more-link:hover,
.link-primary:hover {
  color: var(--primary-dark);
}

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

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

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

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

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

/* Искривленные сетки */
.curved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  transform: perspective(1000px) rotateX(5deg);
  margin: var(--spacing-xl) 0;
}

.curved-grid .card {
  transform: rotateX(-5deg);
}

/* Успешная страница */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  text-align: center;
}

.success-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
}

/* Страницы политик */
.policy-page,
.terms-page {
  padding-top: 100px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.125rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .curved-grid {
    transform: none;
  }
  
  .curved-grid .card {
    transform: none;
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .btn,
  .button {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
  
  .btn-large,
  .button.is-large {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .stats-widget {
    padding: var(--spacing-lg);
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

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

.bg-glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Контактная информация */
.contact-info p {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.contact-info strong {
  color: var(--white);
  font-weight: 600;
}