/* CSS Variables - Пастельная цветовая схема */
:root {
  /* Основные цвета */
  --primary-color: #8B5FBF;
  --primary-light: #A985D1;
  --primary-dark: #6D4999;
  --secondary-color: #5FB3D4;
  --secondary-light: #85C5DE;
  --secondary-dark: #4A8FA8;
  
  /* Акцентные цвета */
  --accent-color: #F4A6CD;
  --accent-light: #F7B8D8;
  --accent-dark: #E891B8;
  --success-color: #A8E6CF;
  --warning-color: #FFD3A5;
  --error-color: #FFA8A8;
  
  /* Нейтральные цвета */
  --text-primary: #2C3E50;
  --text-secondary: #5D6D7E;
  --text-light: #85929E;
  --text-white: #FFFFFF;
  --background-main: #FDFEFE;
  --background-light: #F8F9FA;
  --background-card: #FFFFFF;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #8B5FBF 0%, #5FB3D4 100%);
  --gradient-secondary: linear-gradient(135deg, #F4A6CD 0%, #FFD3A5 100%);
  --gradient-overlay: linear-gradient(rgba(139, 95, 191, 0.8), rgba(95, 179, 212, 0.8));
  --gradient-dark-overlay: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  
  /* Тени */
  --shadow-soft: 0 4px 15px rgba(139, 95, 191, 0.1);
  --shadow-medium: 0 8px 25px rgba(139, 95, 191, 0.15);
  --shadow-strong: 0 15px 35px rgba(139, 95, 191, 0.2);
  
  /* Шрифты */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

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

.subtitle {
  font-family: var(--font-body) !important;
  opacity: 0.9;
}

/* Global Button Styles */
.btn,
.button,
input[type='submit'],
button {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

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

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

.button.is-light:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

.button.is-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.navbar {
  padding: var(--spacing-sm) 0;
}

.navbar-item {
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.navbar-brand .title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

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

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

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

#hero .title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

#hero .subtitle {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

.progress-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width var(--transition-medium);
}

/* Parallax Animation */
.parallax-section {
  position: relative;
}

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

/* Sections */
.section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

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

/* Cards */
.card {
  background: var(--background-card);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.card-image {
  position: relative;
  overflow: hidden;
}

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

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

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

/* Box */
.box {
  background: var(--background-card);
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(139, 95, 191, 0.1);
}

/* Progress bars */
.progress-container {
  margin-bottom: var(--spacing-md);
}

.progress {
  height: 8px;
  border-radius: 4px;
  background-color: rgba(139, 95, 191, 0.1);
}

.progress.is-primary::-webkit-progress-value {
  background: var(--gradient-primary);
}

.progress.is-info::-webkit-progress-value {
  background: var(--secondary-color);
}

.progress.is-success::-webkit-progress-value {
  background: var(--success-color);
}

/* Custom Slider */
.custom-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.slider-container {
  display: flex;
  transition: transform var(--transition-slow);
}

.slide {
  min-width: 100%;
  padding: var(--spacing-lg);
  background: var(--background-card);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.slide.is-active {
  opacity: 1;
}

.slide blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-left: var(--spacing-lg);
}

.slide blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--primary-color);
  line-height: 1;
}

.slide cite {
  font-weight: 600;
  font-style: normal;
}

.slider-controls {
  position: absolute;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  display: flex;
  gap: var(--spacing-xs);
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

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

/* Contact Form */
.contact-form {
  background: var(--background-card);
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: var(--spacing-lg);
}

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

.input,
.textarea,
.select select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(139, 95, 191, 0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
  background: var(--background-main);
}

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

/* Events */
.event-item {
  padding: var(--spacing-lg);
  background: var(--background-light);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--text-white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
}

.footer .title,
.footer .subtitle {
  color: var(--text-white) !important;
}

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

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

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

.footer-links a:hover {
  color: var(--primary-light);
}

.social-links a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  display: inline-block;
}

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

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

.success-content {
  text-align: center;
  background: var(--background-card);
  padding: var(--spacing-xxl);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  max-width: 500px;
  width: 100%;
}

/* Privacy and Terms Pages */
.privacy-content,
.terms-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --spacing-xxl: 2rem;
    --spacing-xl: 1.5rem;
  }
  
  #hero .title {
    font-size: 2.5rem;
  }
  
  #hero .subtitle {
    font-size: 1.1rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .slider-controls {
    position: relative;
    justify-content: center;
    margin-top: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  #hero .title {
    font-size: 2rem;
  }
  
  .button.is-large {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}

/* Glassmorphism Effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

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

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

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

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

/* Link Styles */
.read-more-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.read-more-link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
  transform: translateX(5px);
}

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

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

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.shadow-medium {
  box-shadow: var(--shadow-medium);
}

.border-radius {
  border-radius: 12px;
}

.transition-smooth {
  transition: all var(--transition-medium);
}

/* Custom Bulma Overrides */
.has-text-dark {
  color: var(--text-primary) !important;
}

.has-text-grey-dark {
  color: var(--text-secondary) !important;
}

.has-text-light {
  color: var(--text-light) !important;
}

.has-text-white {
  color: var(--text-white) !important;
}

.has-text-primary {
  color: var(--primary-color) !important;
}

.has-background-light {
  background-color: var(--background-light) !important;
}

/* Ensure proper centering for all card-like elements */
.card, 
.item, 
.testimonial, 
.team-member, 
.product-card,
.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card img,
.item img,
.testimonial img,
.team-member img,
.product-card img {
  margin: 0 auto;
}