:root {
  /* Пастельная цветовая схема */
  --primary-color: #a7d7c5;
  --primary-dark: #74b49b;
  --secondary-color: #f9c5bd;
  --secondary-dark: #f5a491;
  --accent-color: #b6a6ca;
  --accent-dark: #9d8cb1;
  --neutral-light: #f8f9fa;
  --neutral-mid: #e9ecef;
  --neutral-dark: #333333;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --success-color: #8bc8a9;
  --warning-color: #f8d7a8;
  --error-color: #f0a9a9;
  
  /* Тени и эффекты */
  --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  
  /* Скругления */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Отступы */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

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

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: 'Cairo', 'Tajawal', 'Roboto', sans-serif;
  color: var(--text-dark);
  background-color: var(--neutral-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', 'Tajawal', 'Archivo Black', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

h1.title.has-text-white,
h2.subtitle.has-text-white,
p.has-text-white {
  color: var(--text-light) !important;
}

p {
  margin-bottom: var(--spacing-sm);
}

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

a:hover {
  color: var(--accent-color);
}

.divider {
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto var(--spacing-md);
}

/* Кнопки */
.button {
  transition: var(--transition);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-md);
}

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

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

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

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

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

/* Навигация */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-item {
  font-weight: 600;
  color: var(--neutral-dark);
  transition: var(--transition);
}

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


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

/* Hero секция */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero .title,
.hero .subtitle,
.hero p {
  text-shadow: var(--text-shadow);
}

/* Секции */
.section {
  padding: var(--spacing-lg) var(--spacing-md);
}

.section:nth-child(odd) {
  background-color: var(--neutral-light);
}

.section:nth-child(even) {
  background-color: var(--neutral-mid);
}

/* Карточки */
.card {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: var(--spacing-md);
}

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

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

.card-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  object-fit: cover;
}

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

.card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.card-content p {
  margin-bottom: var(--spacing-md);
}

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

/* Проекты */
.project-card .card-image {
  height: 250px;
}

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

/* Инструкторы / Команда */
.instructor-card .card-image {
  border-radius: 50%;
  overflow: hidden;
  width: 150px;
  height: 150px;
  margin: var(--spacing-md) auto;
}

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

.instructor-card .card-content {
  text-align: center;
}

/* Внешние ресурсы */
.resource-card .card-image {
  height: 200px;
}

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

/* Контактная форма */
.contact-form-box {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-md);
}

.contact-info .card {
  height: 100%;
}

.contact-info i {
  margin-left: var(--spacing-sm);
  color: var(--primary-color);
}

.map-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Блог и события */
.blog-card .blog-date,
.event-card .event-date,
.webinar-card .webinar-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.blog-card .card-image,
.event-card .card-image,
.webinar-card .card-image {
  height: 200px;
}

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

/* Отзывы */
.testimonial-card {
  text-align: center;
  padding: var(--spacing-md);
}

.testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--spacing-md);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-stars {
  color: var(--warning-color);
  margin-bottom: var(--spacing-sm);
}

.testimonial-text {
  font-style: italic;
}

/* Награды */
.accolade-card {
  text-align: center;
  height: 100%;
}

.accolade-icon {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

/* Карьера */
.accordion {
  width: 100%;
}

.accordion-item {
  margin-bottom: var(--spacing-sm);
  border: 1px solid var(--neutral-mid);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.accordion-header {
  background-color: var(--neutral-light);
}

.accordion-button {
  width: 100%;
  padding: var(--spacing-sm);
  background: none;
  border: none;
  text-align: right;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-button::after {
  content: '+';
  font-size: 1.5rem;
  transition: var(--transition);
}

.accordion-item.is-active .accordion-button::after {
  content: '-';
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.is-active .accordion-content {
  padding: var(--spacing-md);
  max-height: 500px;
}

/* Видение */
.vision-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
}

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

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

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

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

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

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

.social-links a {
  color: var(--text-light);
  margin-left: var(--spacing-sm);
  transition: var(--transition);
}

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

/* Cookie consent */
#cookie-consent {
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

#cookie-consent p {
  margin-bottom: var(--spacing-sm);
}

/* Success page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--spacing-md);
  text-align: center;
}

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

/* Страницы privacy и terms */
.privacy-page,
.terms-page {
  padding-top: 120px;
  padding-bottom: var(--spacing-lg);
}

.privacy-page .content,
.terms-page .content {
  max-width: 800px;
  margin: 0 auto;
}

/* Медиа запросы */
@media screen and (max-width: 768px) {
  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.95);
  }
  
  .hero-body {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .section {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .instructor-card .card-image {
    width: 120px;
    height: 120px;
  }
  
  .card-content {
    padding: var(--spacing-sm);
  }
  
  h1.title.is-1 {
    font-size: 2rem;
  }
  
  h2.subtitle.is-3 {
    font-size: 1.5rem;
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

.fadeInRight {
  animation-name: fadeInRight;
}

.scaleIn {
  animation-name: scaleIn;
}

/* 3D эффекты */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateY(5deg) translateY(-5px);
}

.button.button-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button.button-3d:hover {
  transform: translateY(-3px) translateZ(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.button.button-3d::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateZ(-5px);
  transition: transform 0.3s ease;
}

.button.button-3d:hover::before {
  transform: translateZ(-10px);
}

/* Parallax эффекты */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Специальные эффекты для изображений */
.image-hover-zoom {
  overflow: hidden;
}

.image-hover-zoom img {
  transition: transform 0.5s ease;
}

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

/* Для form inputs */
.input, .textarea {
  border-radius: var(--border-radius-md);
  transition: var(--transition);
  border: 2px solid var(--neutral-mid);
}

.input:focus, .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(167, 215, 197, 0.25);
}

.label {
  font-weight: 600;
  color: var(--neutral-dark);
}

/* Для страницы about */
.about-page {
  padding-top: 120px;
}

.about-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  margin-bottom: var(--spacing-lg);
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-title {
  color: var(--text-light);
  text-shadow: var(--text-shadow);
}

.container {
  padding-inline: 10px;
}