/* --------------------------
Переменные и базовые настройки
--------------------------- */
:root {
  /* Основные цвета */
  --primary-color: #2e86de;
  --primary-dark: #1c60a8;
  --primary-light: #54a0ff;
  --secondary-color: #00d2d3;
  --secondary-dark: #01a3a4;
  --secondary-light: #48dbfb;
  --accent-color: #ff9f43;
  --accent-dark: #e67e22;
  --accent-light: #feca57;
  
  /* Нейтральные цвета */
  --dark: #2d3436;
  --dark-medium: #636e72;
  --medium: #b2bec3;
  --light-medium: #dfe6e9;
  --light: #f5f6fa;
  
  /* Функциональные цвета */
  --success: #20bf6b;
  --warning: #f7b731;
  --error: #eb3b5a;
  --info: #3867d6;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-light));
  --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-medium));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-elevated: 0 10px 25px rgba(0, 0, 0, 0.18);
  
  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Шрифты */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Размеры шрифтов */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Z-индексы */
  --z-negative: -1;
  --z-normal: 1;
  --z-tooltips: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* --------------------------
Общие стили
--------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

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

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

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 2.5rem;
}

.mb-6 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 2.5rem;
}

.mt-6 {
  margin-top: 3rem;
}

/* --------------------------
Навигация
--------------------------- */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar.is-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
}

.navbar-item {
  transition: color var(--transition-fast);
}

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

.navbar-brand .title {
  color: var(--primary-color);
  margin-bottom: 0;
}

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

.navbar-burger:hover {
  background-color: transparent;
}

.navbar-menu.is-active {
  animation: fadeIn 0.3s ease;
}

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

/* --------------------------
Кнопки
--------------------------- */
.button {
  font-family: var(--font-heading);
  font-weight: 500;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.button:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.button.is-primary.is-outlined:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.button.is-white.is-outlined {
  background-color: transparent;
  border-color: white;
  color: white;
}

.button.is-white.is-outlined:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.button.is-rounded {
  border-radius: var(--radius-full);
}

.button.is-large {
  font-size: var(--font-size-lg);
  padding: 0.75em 1.5em;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: var(--z-negative);
}

.hero-body {
  display: flex;
  align-items: center;
  position: relative;
  z-index: var(--z-normal);
}

.hero .title, 
.hero .subtitle, 
.hero p {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: all var(--transition-normal);
  animation: fadeInUp 1s ease;
}

.hero .title {
  font-size: var(--font-size-5xl);
  margin-bottom: 1rem;
  transform: perspective(1000px) rotateX(0deg);
}

.hero .subtitle {
  font-size: var(--font-size-3xl);
  margin-bottom: 1.5rem;
  transform: perspective(1000px) rotateX(0deg);
}

.hero .buttons {
  animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.icon-scroll {
  width: 30px;
  height: 50px;
  margin: 0 auto;
  border: 2px solid white;
  border-radius: 25px;
  position: relative;
  animation: scrollDown 2s infinite;
}

.icon-scroll::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: white;
  border-radius: 50%;
  animation: scrollBall 2s infinite;
}

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

@keyframes scrollBall {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

/* --------------------------
Секция курсов
--------------------------- */
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  background-color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

.card-content p {
  color: var(--dark-medium);
  flex-grow: 1;
}

.progress {
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress.is-primary::-webkit-progress-value {
  background-color: var(--primary-color);
  background-image: var(--gradient-primary);
}

.progress.is-primary::-moz-progress-bar {
  background-color: var(--primary-color);
  background-image: var(--gradient-primary);
}

.progress-container {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.progress-container p {
  font-size: var(--font-size-sm);
  color: var(--dark-medium);
  margin-bottom: 0.5rem;
}

/* --------------------------
Секция ресурсов
--------------------------- */
.recursos-box {
  transition: all var(--transition-normal);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 1.5rem;
}

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

.recursos-box h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 0.75rem;
}

.recursos-box h3 a {
  color: var(--dark);
  transition: color var(--transition-fast);
}

.recursos-box h3 a:hover {
  color: var(--primary-color);
}

.recursos-box p {
  color: var(--dark-medium);
  margin-bottom: 0;
}

/* --------------------------
Секция инструкторов
--------------------------- */
.instructor-social {
  display: flex;
  gap: 0.75rem;
}

.instructor-social .icon {
  color: var(--dark-medium);
  transition: color var(--transition-fast);
}

.instructor-social .icon:hover {
  color: var(--primary-color);
}

/* --------------------------
Секция "За кулисами"
--------------------------- */
.accordion {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.accordion-header {
  background-color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 1px solid var(--light-medium);
}

.accordion.is-active .accordion-header {
  border-bottom-color: transparent;
  background-color: var(--light);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.accordion.is-active .accordion-content {
  padding: 1rem 1.5rem;
  max-height: 500px;
}

.accordion .icon {
  transition: transform var(--transition-normal);
}

/* --------------------------
Секция наград
--------------------------- */
.award-card .card-image {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* --------------------------
Секция событий
--------------------------- */
.event-date {
  margin-bottom: 12px;
}

.tag.is-primary.is-large {
  font-size: var(--font-size-md);
  background-color: var(--primary-color);
  background-image: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.column .card {
  position: relative;
}

/* --------------------------
Секция блога
--------------------------- */
.blog-card {
  transition: all var(--transition-normal);
}

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

.blog-card .card-image {
  height: 250px;
  overflow: hidden;
}

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

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

.blog-card .subtitle {
  color: var(--dark-medium);
  font-size: var(--font-size-sm);
  margin-bottom: 0.5rem;
}

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

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

/* --------------------------
Секция контактов
--------------------------- */
.contact-form .field {
  margin-bottom: 1.5rem;
}

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

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

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 134, 222, 0.2);
}

.contact-form .button {
  margin-top: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons .icon {
  color: var(--dark-medium);
  transition: all var(--transition-fast);
}

.social-icons .icon:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* --------------------------
Футер
--------------------------- */
.footer {
  background-color: var(--dark) !important;
  color: white;
  padding: 4rem 1.5rem !important;
}

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

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

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

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

.footer ul li a {
  color: var(--light-medium);
  transition: all var(--transition-fast);
}

.footer ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer .has-text-centered {
  color: var(--medium);
  font-size: var(--font-size-sm);
}

/* --------------------------
Cookie Consent
--------------------------- */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-top: 4px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s ease;
}

#cookie-accept {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

#cookie-accept:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.success-content {
  max-width: 600px;
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 1s ease;
}

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

.success-content .title {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.success-content p {
  color: var(--dark-medium);
  margin-bottom: 2rem;
}

/* --------------------------
Privacy & Terms Pages
--------------------------- */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.privacy-page .content, .terms-page .content {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.privacy-page h1, .terms-page h1 {
  color: var(--dark);
  margin-bottom: 2rem;
}

.privacy-page h2, .terms-page h2 {
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-page p, .terms-page p {
  color: var(--dark-medium);
  margin-bottom: 1.5rem;
}

/* --------------------------
Media Queries
--------------------------- */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: white;
    box-shadow: var(--shadow-md);
  }
  
  .hero .title {
    font-size: var(--font-size-4xl);
  }
  
  .hero .subtitle {
    font-size: var(--font-size-2xl);
  }
}

@media screen and (max-width: 768px) {
  .hero .title {
    font-size: var(--font-size-3xl);
  }
  
  .hero .subtitle {
    font-size: var(--font-size-xl);
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .footer {
    padding: 3rem 1rem;
  }
  
  .card-image {
    height: 200px;
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: var(--font-size-2xl);
  }
  
  .hero .subtitle {
    font-size: var(--font-size-lg);
  }
  
  .button.is-large {
    font-size: var(--font-size-md);
  }
  
  .section {
    padding: 2rem 0 !important;
  }
  
}

/* --------------------------
Анимации для элементов с data-sr-id
--------------------------- */
[data-sr-id] {
  visibility: hidden;
}

[data-sr-id].is-visible {
  visibility: visible;
}