/* CSS Variables для цветовой схемы Раздельно-дополнительная */
:root {
  /* Основные цвета (раздельно-дополнительная схема) */
  --primary-color: #3273dc;
  --primary-dark: #2366d1;
  --primary-light: #5790e8;
  --secondary-color: #ff6b35;
  --secondary-dark: #e55a2b;
  --secondary-light: #ff8659;
  --tertiary-color: #35ff6b;
  --tertiary-dark: #2be55a;
  --tertiary-light: #59ff88;
  
  /* Нейтральные цвета */
  --white: #ffffff;
  --black: #1a1a1a;
  --dark: #2c2c2c;
  --light: #f8f9fa;
  --grey-100: #f5f5f5;
  --grey-200: #e9e9e9;
  --grey-300: #d4d4d4;
  --grey-400: #a3a3a3;
  --grey-500: #737373;
  --grey-600: #525252;
  --grey-700: #404040;
  --grey-800: #262626;
  --grey-900: #171717;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(50, 115, 220, 0.9) 0%, rgba(255, 107, 53, 0.8) 100%);
  --gradient-dark: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(44, 44, 44, 0.9) 100%);
  
  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Типографика */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Source Sans Pro', sans-serif;
  
  /* Анимации */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Размеры */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --container-max-width: 1200px;
  
  /* Z-indexes */
  --z-header: 1000;
  --z-modal: 2000;
  --z-particles: -1;
}

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

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

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

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: 1rem;
}

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

.btn:before, button:before, input[type="submit"]: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: all var(--transition-slow);
}

.btn:hover:before, button:hover:before, input[type="submit"]:hover:before, .button:hover:before {
  left: 100%;
}

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

.btn-primary:hover, .button.is-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

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

.btn-secondary:hover, .button.is-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

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

.btn-outline:hover, .button.is-outlined:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Header */
.navbar {
  background: var(--gradient-dark) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: all var(--transition-normal);
}

.navbar-item {
  color: var(--white) !important;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.navbar-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--tertiary-light) !important;
}

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

.particles-bg {
  background-attachment: fixed;
}

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

.hero-body h1, 
.hero-body .title {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-body p,
.hero-body .subtitle {
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .buttons {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Particles Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-particles);
  pointer-events: none;
}

/* Sections */
.section {
  padding: 4rem 0;
}

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

/* Mission Section */
#mission {
  background: var(--white);
}

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

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

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

.timeline-item:last-child:before {
  bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -8px;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.timeline-content h4 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

/* Workshops Section */
#workshops .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

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

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

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

#workshops .card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

#workshops .card-content h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Clientele Section */
#clientele .box {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 2rem 1.5rem;
}

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

#clientele .box img {
  border-radius: 50%;
  margin: 0 auto 1rem;
  width: 128px;
  height: 128px;
  object-fit: cover;
}

.stats-widget-container {
  background: var(--gradient-primary);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-item .title {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
}

.counter {
  animation: countUp 2s ease-out;
}

/* Accolades Section */
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--grey-200);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.accordion-header {
  padding: 1.5rem;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.accordion-header:hover {
  background: var(--grey-100);
}

.accordion-header h4 {
  margin: 0;
  color: var(--dark);
}

.accordion-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-toggle {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background: var(--grey-100);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}

.accordion-content p {
  padding: 1.5rem;
  margin: 0;
  color: var(--grey-700);
}

/* Gallery Section */
.gallery-item {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Insights Section */
.insight-article {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.insight-article h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.insight-article p {
  color: var(--grey-700);
  line-height: 1.7;
}

/* Contact Section */
.contact-form .field {
  margin-bottom: 1.5rem;
}

.contact-form .label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border: 2px solid var(--grey-200);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

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

/* Resources Section */
.resource-box {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

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

.resource-box h4 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.resource-box p {
  color: var(--grey-700);
  flex: 1;
}

.resource-box .button {
  margin-top: auto;
}

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

.footer h4, 
.footer h5 {
  color: var(--white) !important;
  margin-bottom: 1rem;
}

.footer p {
  color: var(--grey-300);
  margin-bottom: 1rem;
}

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

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

.footer ul li a {
  color: var(--grey-300);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
  position: relative;
}

.footer ul li a:hover {
  color: var(--tertiary-light);
  transform: translateX(5px);
}

.footer ul li a:before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tertiary-light);
  transition: width var(--transition-normal);
}

.footer ul li a:hover:before {
  width: 100%;
}

.footer hr {
  border: none;
  height: 1px;
  background: var(--grey-600);
  margin: 2rem 0 1rem;
}

/* Утилиты */
.h-100 {
  height: 100% !important;
}

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

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

/* Анимации */
@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 pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

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

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

.success-content {
  text-align: center;
  color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.terms-page,
.privacy-page {
  padding-top: 120px;
}

.terms-content,
.privacy-content {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

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

.terms-content p,
.privacy-content p,
.terms-content li,
.privacy-content li {
  color: var(--grey-700);
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

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

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

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

/* Адаптивность */
@media (max-width: 1024px) {
  .section {
    padding: 3rem 0;
  }
  
  .stats-widget-container {
    padding: 2rem 1rem;
  }
  
  .timeline-container {
    padding-left: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    background: var(--gradient-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero-body {
    padding: 4rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .accordion-header {
    padding: 1rem;
  }
  
  .accordion-content p {
    padding: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .stat-item .title {
    font-size: 2rem !important;
  }
  
  .success-content,
  .terms-content,
  .privacy-content {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-body {
    padding: 3rem 0;
  }
  
  .buttons .button {
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .timeline-container {
    padding-left: 0.5rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .stats-widget-container {
    padding: 1.5rem 1rem;
  }
  
  .success-content,
  .terms-content,
  .privacy-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* Оптимизация производительности */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

.lazyload {
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lazyload.loaded {
  opacity: 1;
}

/* Скрыть элементы для анимации */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

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

/* Улучшения для доступности */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles для доступности */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:focus,
button:focus,
input[type="submit"]:focus,
.button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.3);
}