/* CSS-переменные для темы */
:root {
  /* Основная цветовая палитра (дополнительная) */
  --primary-color: #4a6bff;
  --primary-dark: #3a54d6;
  --primary-light: #7a8eff;
  --secondary-color: #ff7a4a;
  --secondary-dark: #e05a2f;
  --secondary-light: #ff9b76;
  
  /* Нейтральные цвета */
  --dark: #1c1c28;
  --dark-gray: #3a3a56;
  --medium-gray: #6b6b86;
  --light-gray: #e2e2ea;
  --off-white: #f7f7fc;
  --white: #ffffff;
  
  /* Функциональные цвета */
  --success: #30d158;
  --warning: #ffd60a;
  --error: #ff3b30;
  --info: #5ac8fa;
  
  /* Тени для нейроморфизма */
  --shadow-light: 8px 8px 16px rgba(220, 220, 240, 0.2), -8px -8px 16px rgba(255, 255, 255, 0.7);
  --shadow-dark: 8px 8px 16px rgba(0, 0, 0, 0.2), -8px -8px 16px rgba(255, 255, 255, 0.05);
  --inner-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.1), inset -4px -4px 8px rgba(255, 255, 255, 0.15);
  
  /* Радиусы */
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 20px;
  --radius-circle: 50%;
  
  /* Отступы */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Анимации */
  --transition-quick: 0.2s ease-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Базовые сбросы и общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--off-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-quick);
}

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

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

section {
  padding: 5rem 0;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Утилиты */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.mb-6 { margin-bottom: var(--spacing-xxl); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mt-6 { margin-top: var(--spacing-xxl); }

.py-1 { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-2 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-3 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-4 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-5 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.py-6 { padding-top: var(--spacing-xxl); padding-bottom: var(--spacing-xxl); }

.px-1 { padding-left: var(--spacing-xs); padding-right: var(--spacing-xs); }
.px-2 { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
.px-3 { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-4 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
.px-5 { padding-left: var(--spacing-xl); padding-right: var(--spacing-xl); }
.px-6 { padding-left: var(--spacing-xxl); padding-right: var(--spacing-xxl); }

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-medium);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  border: none;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: width var(--transition-medium);
}

.button:hover::before {
  width: 100%;
}

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

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

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

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

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

.button.is-outlined {
  background-color: transparent;
  box-shadow: none;
  border: 2px solid currentColor;
}

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

.button.is-outlined.is-secondary {
  color: var(--secondary-color);
}

.button.is-outlined.is-white {
  color: var(--white);
  border-color: var(--white);
}

.button.is-outlined:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.button.is-large {
  font-size: 1.25rem;
  padding: 1rem 2rem;
}

.button.is-medium {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.button.is-small {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.button.is-fullwidth {
  width: 100%;
}

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

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

.buttons.is-centered {
  justify-content: center;
}

/* Навигация */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-medium);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
}

.navbar-item {
  color: var(--dark);
  padding: 0.5rem 1rem;
  position: relative;
  font-weight: 500;
}

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

.navbar-item:hover::after {
  width: 100%;
  left: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-end {
  margin-left: auto;
  display: flex;
}

.navbar-burger {
  display: none;
  cursor: pointer;
  width: 3.25rem;
  height: 3.25rem;
  position: relative;
  margin-left: auto;
}

.navbar-burger span {
  background-color: var(--dark);
  display: block;
  height: 2px;
  width: 25px;
  position: absolute;
  left: calc(50% - 12.5px);
  transition: all var(--transition-quick);
}

.navbar-burger span:nth-child(1) {
  top: calc(50% - 8px);
}

.navbar-burger span:nth-child(2) {
  top: calc(50% - 1px);
}

.navbar-burger span:nth-child(3) {
  top: calc(50% + 6px);
}

.navbar-burger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  z-index: -1;
}

.hero-body {
  width: 100%;
  z-index: 1;
  padding: 5rem 0;
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s both;
}

.hero .subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s 0.2s both;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s 0.4s both;
}

.hero .buttons {
  animation: fadeInUp 1s 0.6s both;
}

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

/* Секция About */
#about {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-circle);
  background-color: rgba(74, 107, 255, 0.05);
  z-index: 0;
}

#about::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 250px;
  height: 250px;
  border-radius: var(--radius-circle);
  background-color: rgba(255, 122, 74, 0.05);
  z-index: 0;
}

#about .content {
  position: relative;
  z-index: 1;
}

#about .image {
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium);
}

#about .image:hover {
  transform: translateY(-10px);
}

/* Features Section */
.feature-card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

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

.feature-card .title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Workshop Cards */
.workshop-card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.workshop-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.workshop-card .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

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

.workshop-card .title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.workshop-card .price {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.workshop-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.workshop-card li {
  margin-bottom: 0.5rem;
}

/* Instructor Cards */
.instructor-card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.instructor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.instructor-card .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

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

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

.instructor-card .title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.instructor-card .subtitle {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Resources */
.resource-card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
}

.resource-card .title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Testimonials */
.testimonial-card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

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

.testimonial-card .media {
  display: flex;
  margin-bottom: 1.5rem;
}

.testimonial-card .media-left {
  margin-right: 1rem;
}

.testimonial-card .media-content {
  overflow: hidden;
}

.testimonial-card .is-rounded {
  border-radius: var(--radius-circle);
}

.testimonial-card .title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.testimonial-card .subtitle {
  font-size: 0.875rem;
  color: var(--medium-gray);
}

/* Events */
.event-card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.event-card .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

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

.event-card .title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Blog Posts */
.blog-card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.blog-card .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

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

.blog-card .title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.blog-card .subtitle {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-bottom: 1rem;
}

.blog-card .content {
  flex: 1;
}

.blog-card a.button {
  align-self: flex-start;
  margin-top: auto;
}

/* Contact Form */
.contact-card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  padding: 2rem;
}

.contact-info-card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  padding: 2rem;
  height: 100%;
}

.field {
  margin-bottom: 1.5rem;
}

.label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.input, .textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-small);
  background-color: var(--white);
  transition: border-color var(--transition-quick), box-shadow var(--transition-quick);
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--off-white);
  padding: 5rem 0 2rem;
}

.footer .title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--light-gray);
  margin-bottom: 2rem;
}

.footer ul {
  list-style: none;
  margin-bottom: 2rem;
}

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

.footer ul li a {
  color: var(--light-gray);
  transition: color var(--transition-quick);
}

.footer ul li a:hover {
  color: var(--white);
}

.footer .has-text-centered {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: var(--medium-gray);
}

/* Утилиты цветов */
.has-background-light {
  background-color: var(--off-white);
}

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

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

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

/* Успешная отправка формы */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

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

.success-icon {
  font-size: 5rem;
  color: var(--success);
  margin-bottom: 2rem;
}

/* Страницы Terms и Privacy */
.page-content {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.page-content .container {
  background-color: var(--white);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-light);
  padding: 3rem;
}

/* Чтение далее ссылки */
a.button.is-primary.is-outlined {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
  transition: all var(--transition-medium);
}

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

/* Медиа-запросы */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
    align-items: center;
  }
  
  .navbar-item {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
  
  .navbar-burger {
    display: block;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .columns {
    flex-direction: column;
  }
  
  .column {
    width: 100% !important;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
  }
  
  .feature-card, .workshop-card, .instructor-card, .event-card, .blog-card {
    margin-bottom: 2rem;
  }
}

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

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

/* Применение рисованных анимаций и нейроморфизма */
.card, .button, .input, .textarea, .image {
  position: relative;
  z-index: 1;
}

.card::after, .button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, 
    rgba(255,255,255,0.2) 0%, 
    rgba(255,255,255,0) 50%, 
    rgba(255,255,255,0.2) 100%);
  z-index: -1;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Динамические цветовые переходы */
.title:not(.has-text-white), .subtitle:not(.has-text-white) {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section:nth-child(odd) {
  background: linear-gradient(135deg, var(--off-white) 0%, rgba(255,255,255,1) 100%);
}

.section:nth-child(even) {
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, var(--off-white) 100%);
}

/* Cookie Consent */
#cookie-consent {
  border-radius: var(--radius-small) var(--radius-small) 0 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

#accept-cookies {
  transition: all var(--transition-quick);
}

#accept-cookies:hover {
  opacity: 0.9;
  transform: scale(1.05);
}