:root {
  /* Основная палитра (раздельно-дополнительная) */
  --primary: #2c6ec8;
  --primary-dark: #1c509e;
  --primary-light: #5c9ee8;
  --secondary: #e87828;
  --secondary-dark: #c85a10;
  --secondary-light: #f8a868;
  --accent-1: #28b2e8;
  --accent-2: #e82860;
  --neutral-dark: #333333;
  --neutral-medium: #777777;
  --neutral-light: #f6f8fa;
  --white: #ffffff;
  --black: #222222;
  
  /* Типографика */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Тени */
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Размеры и отступы */
  --container-padding: 2rem;
  --section-spacing: 5rem;
  --card-padding: 1.5rem;
  --border-radius: 8px;
  --card-border-radius: 12px;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--neutral-dark);
}

p {
  margin-bottom: 1.25rem;
}

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

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

.container {
  padding: 0 var(--container-padding);
}

section {
  padding: 4rem 0;
}

.section {
  padding: 4rem 0;
}

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

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

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

.subtitle {
  font-family: var(--body-font);
}

/* ===== КНОПКИ ===== */
.button {
  transition: all var(--transition-medium);
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

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

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.button:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

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

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

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

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

.button.is-text {
  padding-left: 0;
  padding-right: 0;
  text-decoration: none;
  position: relative;
}

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

.button.is-text:hover::after {
  width: 100%;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--white);
  transition: background-color var(--transition-medium);
}

.navbar-item {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  position: relative;
}

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

.navbar-item:hover::after {
  width: 60%;
  left: 20%;
}

.navbar-burger {
  height: 4rem;
}

.navbar-burger span {
  height: 2px;
  width: 20px;
  left: calc(50% - 10px);
}

/* ===== ГЕРОЙ ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.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.4));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 9rem 1.5rem;
}

.hero-title {
  font-size: 3rem !important;
  margin-bottom: 1.5rem;
  color: var(--white) !important;
  text-shadow: var(--text-shadow);
}

.hero-subtitle {
  font-size: 1.75rem !important;
  margin-bottom: 1.5rem;
  color: var(--white) !important;
  text-shadow: var(--text-shadow);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  text-shadow: var(--text-shadow);
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.5rem !important;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
}

/* ===== КАРТОЧКИ ===== */
.card {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

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

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

.card-content {
  padding: var(--card-padding);
  flex-grow: 1;
  width: 100%;
}

.service-card .card-content h3 {
  margin-bottom: 1rem;
}

.blog-card .subtitle {
  color: var(--neutral-medium);
}

.resource-card {
  padding: 0;
  transition: transform var(--transition-medium);
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-card a {
  color: var(--primary);
  text-decoration: none;
}

.resource-card a:hover {
  color: var(--primary-dark);
}

/* ===== ВОРКШОПЫ ===== */
.workshop-card {
  margin-bottom: 2rem;
}

.workshop-card .card-image img {
  height: 250px;
  object-fit: cover;
}

.workshop-card .card-content p {
  margin-bottom: 0.75rem;
}

.workshop-card .button {
  margin-top: 1rem;
}

/* ===== ВЕБИНАРЫ ===== */
.webinar-card .card-image img {
  height: 200px;
  object-fit: cover;
}

.webinar-card .card-content {
  display: flex;
  flex-direction: column;
}

.webinar-card .button {
  margin-top: auto;
}

/* ===== БЛОГ ===== */
.blog-card .card-image img {
  height: 220px;
  object-fit: cover;
}

.blog-card .button.is-text {
  padding: 0;
  height: auto;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

.blog-card .button.is-text:hover {
  color: var(--primary-dark);
}

/* ===== ИНСТРУКТОРЫ ===== */
.instructor-card {
  text-align: center;
}

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

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

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

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

/* ===== КЛИЕНТЫ ===== */
.testimonial-card {
  height: 100%;
}

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

.testimonial-card .content {
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-card .content::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 2.5rem;
  color: var(--primary-light);
  font-family: var(--heading-font);
  opacity: 0.5;
}

/* ===== УСТОЙЧИВОСТЬ ===== */
.rounded-image {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium);
}

.rounded-image:hover {
  transform: scale(1.02);
}

/* ===== КОНТАКТ ===== */
.contact-info .info-item {
  margin-bottom: 2rem;
}

.contact-info h3 {
  margin-bottom: 0.75rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

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

.field {
  margin-bottom: 1.5rem;
}

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

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

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

/* ===== ФУТЕР ===== */
.footer {
  background-color: var(--neutral-dark);
  color: var(--neutral-light);
  padding: 5rem 1.5rem 2rem;
}

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

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

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

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

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

.social-links {
  display: flex;
  flex-direction: column;
}

.social-links a {
  color: var(--neutral-light);
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

/* ===== ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ ===== */
.has-text-white {
  color: var(--white) !important;
}

.has-text-centered {
  text-align: center !important;
}

/* ===== ПАРАЛЛАКС ЭФФЕКТ ===== */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  background-color: var(--neutral-light);
}

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

.success-page .title {
  margin-bottom: 1.5rem;
}

.success-page .content {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== PAGES (ABOUT, PRIVACY, TERMS) ===== */
.page-content {
  padding-top: 120px;
  padding-bottom: 5rem;
}

.page-content .title {
  margin-bottom: 2rem;
}

.page-content p {
  margin-bottom: 1.5rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

/* ===== COOKIE CONSENT ===== */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  text-align: center;
}

#accept-cookies {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

#accept-cookies:hover {
  background-color: var(--primary-dark);
}

/* ===== МЕДИА ЗАПРОСЫ ===== */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-item::after {
    bottom: 5px;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .title.is-2 {
    font-size: 1.75rem !important;
  }
  
  .card-image img {
    height: 200px;
  }
  
  .instructor-card .image-container {
    height: 250px;
  }
  
  .hero-body {
    padding: 7rem 1rem;
  }
}

@media screen and (max-width: 480px) {
  .card-image img {
    height: 180px;
  }
  
  .instructor-card .image-container {
    height: 220px;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.25rem !important;
  }
}