:root {
  /* Аналоговая цветовая схема */
  --primary-color: #3e7bfa; /* Основной синий */
  --primary-light: #5a90ff;
  --primary-dark: #2e5ec0;
  
  --secondary-color: #4ca5ff; /* Светло-синий */
  --secondary-light: #6eb6ff;
  --secondary-dark: #3a82ca;
  
  --accent-color: #5e55f2; /* Фиолетовый акцент */
  --accent-light: #7a72ff;
  --accent-dark: #4740c9;
  
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #ffffff;
  
  --background-light: #f8f9fa;
  --background-medium: #e9ecef;
  --background-dark: #212529;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  
  /* Тени */
  --box-shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
  --box-shadow-md: 0 4px 10px rgba(0,0,0,0.1);
  --box-shadow-lg: 0 8px 20px rgba(0,0,0,0.1);
  
  /* Скругления */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Переходы и анимации */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
body {
  font-family: 'Merriweather', serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

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

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

/* Utility Classes */
.has-background-gradient-primary {
  background: var(--gradient-primary);
}

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

.has-text-shadow {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Button Styles - Global */
.button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

.button:active {
  transform: translateY(0);
}

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

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

.button.is-rounded {
  border-radius: 30px;
}

/* Navbar Styles */
.navbar {
  transition: background-color var(--transition-medium);
  box-shadow: var(--box-shadow-sm);
}

.navbar.is-transparent {
  z-index: 999;
}

.navbar-item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar-menu.is-navbar-menu-active {
  display: block;
}

.navbar-burger {
  color: var(--text-dark);
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: white;
    box-shadow: var(--box-shadow-md);
  }
}

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

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.hero-body {
  position: relative;
  z-index: 1;
}

.hero .title,
.hero .subtitle,
.hero p {
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Section Styles */
.section {
  padding: 5rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1rem auto 0;
  border-radius: var(--border-radius-sm);
}

/* Card Styles */
.card {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  overflow: hidden;
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
}

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

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

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

.card .title {
  margin-bottom: 1rem;
}

.card .content {
  flex: 1;
}

/* Innovation Section */
.innovation-card {
  text-align: center;
}

header {
  z-index: 999;
}

.innovation-card .card-image {
  height: 250px;
}

.innovation-card .card-image img {
  height: 100%;
  object-fit: cover;
}

/* About Section */
about.html .box {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
  transition: transform var(--transition-medium);
  height: 100%;
}

about.html .box:hover {
  transform: translateY(-5px);
}

about.html figure.image {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
}

/* Success Stories Section */
.success-card .card-image {
  height: 250px;
}

.success-card .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Resources Section */
.resource-card {
  text-align: center;
}

.resource-card .card-image {
  height: 220px;
}

.resource-card .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Events Section */
.event-card .card-image {
  height: 300px;
}

.event-card .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.modal-card-body img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
}

/* Workshops Section */
.workshop-card {
  text-align: center;
}

.workshop-card .card-image {
  height: 220px;
}

.workshop-card .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Partners Section */
.partner-card {
  text-align: center;
  transition: transform var(--transition-medium);
}

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

.partner-card .card-image {
  padding: 1.5rem;
}

.partner-card .card-image img {
  width: auto;
  object-fit: contain;
}

/* Instructors Section */
.instructor-card {
  text-align: center;
}

.instructor-card .card-image {
  height: 300px;
  width: 300px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
}

.instructor-card .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Contact Section */
.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border-radius: var(--border-radius-md);
  box-shadow: none;
  border: 2px solid var(--background-medium);
  transition: border-color 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 1px var(--primary-light);
}

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

.info-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Footer */
.footer {
  background-color: var(--background-dark);
  color: white;
  padding: 4rem 1.5rem;
}

.footer .title {
  color: white;
}

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

.footer a:hover {
  color: white;
}

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

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

.social-links a {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Cookie Consent */
#cookie-consent {
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  box-shadow: var(--box-shadow-lg);
}

#accept-cookies {
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

#accept-cookies:hover {
  background-color: #66bb6a !important;
  transform: scale(1.05);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-message {
  max-width: 600px;
  padding: 3rem;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
}

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

/* Privacy and Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-page .container,
.terms-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
}

/* About Page */
.about-page {
  padding-top: 100px;
}

.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--primary-light);
}

/* Contacts Page */
.contacts-page {
  padding-top: 100px;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-icon {
  flex: 0 0 50px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-info {
  flex: 1;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }
  
  .modal-card {
    max-width: 95%;
    margin: 0 auto;
  }
  
  .instructor-card .card-image {
    height: 250px;
    width: 250px;
  }
}

/* Изогнутые сетки для минималистичного дизайна */
.curved-grid {
  position: relative;
  overflow: hidden;
}

.curved-grid::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -10%;
  width: 120%;
  height: 100px;
  background-color: inherit;
  border-radius: 50%;
  z-index: 1;
}

.curved-grid::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -10%;
  width: 120%;
  height: 100px;
  background-color: inherit;
  border-radius: 50%;
  z-index: 1;
}

.has-background-light.curved-grid::before,
.has-background-light.curved-grid::after {
  background-color: var(--background-light);
}

.curved-top {
  position: relative;
  overflow: hidden;
}

.curved-top::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -10%;
  width: 120%;
  height: 100px;
  background-color: inherit;
  border-radius: 50%;
  z-index: 1;
}

.curved-bottom {
  position: relative;
  overflow: hidden;
}

.curved-bottom::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -10%;
  width: 120%;
  height: 100px;
  background-color: inherit;
  border-radius: 50%;
  z-index: 1;
}

/* Анимации и улучшения для кнопок "Читать далее" */
.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.read-more::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

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

.read-more:hover::after {
  width: 100%;
}

/* Улучшения для социальных иконок в футере */
.social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

.social-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width var(--transition-medium);
}

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

/* Анимации для всех элементов при скролле */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Анимации для модальных окон */
.modal {
  display: none;
}

.modal.is-active {
  display: flex;
  animation: fadeIn var(--transition-fast);
}

.modal-card {
  animation: slideIn var(--transition-medium);
}

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

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

/* Стили для форм */
.box form {
  margin-top: 1rem;
}

.field:not(:last-child) {
  margin-bottom: 1.5rem;
}

.label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

.input, .textarea, .select select {
  border-radius: var(--border-radius-md);
  border: 2px solid var(--background-medium);
  box-shadow: none;
  transition: border-color var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.select:not(.is-multiple):not(.is-loading)::after {
  border-color: var(--primary-color);
}