/* ------------------------------------
   VARIABLES
   ------------------------------------ */
:root {
  /* Основные цвета (Раздельно-дополнительная схема) */
  --primary-color: #1e3de6; /* Основной синий */
  --primary-dark: #0b28b4; /* Темно-синий */
  --primary-light: #4d65f5; /* Светло-синий */
  --secondary-color: #ff6b00; /* Дополнительный оранжевый */
  --secondary-dark: #cc5500; /* Темно-оранжевый */
  --secondary-light: #ff8c33; /* Светло-оранжевый */
  --accent-color: #00ccbb; /* Акцентный бирюзовый */
  --accent-dark: #00a192; /* Темно-бирюзовый */
  
  /* Нейтральные цвета */
  --dark: #121a35; /* Темный синий почти черный */
  --dark-gray: #2d3747;
  --medium-gray: #5e6a7d;
  --light-gray: #e6e9f2;
  --white: #ffffff;
  
  /* Футуристические градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-gray));
  
  /* Гиперреалистичные текстуры - фоновые наложения */
  --texture-overlay-dark: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  --texture-overlay-light: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  
  /* Тени */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 15px 50px rgba(0, 0, 0, 0.25);
  
  /* Закругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Переходы и анимации */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Шрифты */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
}

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

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

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);
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

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

.section {
  position: relative;
  padding: 4rem 1.5rem;
}

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

/* ------------------------------------
   УТИЛИТЫ И КОМПОНЕНТЫ
   ------------------------------------ */
.has-text-primary {
  color: var(--primary-color) !important;
}

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

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

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

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

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

/* 3D-эффекты и гласморфизм */
.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animated-item {
  animation: fadeIn 0.8s forwards;
}

.scale-in {
  animation: scaleIn 0.5s forwards;
}

.float-animation {
  animation: floatAnimation 3s infinite ease-in-out;
}

/* ------------------------------------
   КНОПКИ
   ------------------------------------ */
.button {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-medium);
  border: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
}

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

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

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

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

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

.button.is-accent {
  background: var(--gradient-accent) !important;
  color: white;
}

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

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

/* Анимированная кнопка с пульсацией */
.pulse-animation {
  animation: pulse 2s infinite;
  position: relative;
  box-shadow: 0 0 0 0 rgba(30, 61, 230, 0.7);
}

/* ------------------------------------
   НАВИГАЦИЯ И ШАПКА
   ------------------------------------ */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  padding: 0.5rem 0;
  z-index: 100;
}

.navbar-brand h1 {
  margin: 0;
}

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

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

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

.navbar-menu {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

/* Добавляем отступ для контента при фиксированной навигации */
body {
  padding-top: 3.25rem;
}

/* Страницы privacy и terms */
.privacy-page, .terms-page {
  padding-top: 100px;
}

/* ------------------------------------
   HERO SECTION
   ------------------------------------ */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--texture-overlay-dark);
  z-index: 1;
}

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

.hero .title, 
.hero .subtitle,
.hero p {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .title.is-1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

.hero .subtitle.is-3 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.progress-container {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.progress-item {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
}

.progress-item.active {
  background-color: white;
  transform: scale(1.2);
}

.scroll-down-icon {
  display: inline-block;
  margin-top: 2rem;
}

.animated-icon {
  animation: floatAnimation 2s infinite ease-in-out;
}

/* ------------------------------------
   HISTORY SECTION
   ------------------------------------ */
#history {
  position: relative;
  overflow: hidden;
  background-color: var(--white);
}

#history .title.is-2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

#history .title.is-2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
}

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

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

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

.timeline {
  position: relative;
  padding: 1.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 25px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
}

.timeline-item .year {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.timeline-item .event {
  font-size: 1rem;
}

/* ------------------------------------
   WORKSHOPS SECTION
   ------------------------------------ */
#workshops {
  background-color: var(--light-gray);
  position: relative;
}

#workshops .title.is-2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

#workshops .title.is-2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-secondary);
}

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

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

#workshops .card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 250px;
}

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

#workshops .card:hover .card-image img {
  transform: scale(1.1);
}

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

#workshops .card-content h3 {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

/* ------------------------------------
   CUSTOMER STORIES SECTION
   ------------------------------------ */
#customer-stories {
  background-color: var(--white);
  position: relative;
}

#customer-stories .title.is-2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

#customer-stories .title.is-2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
}

#customer-stories .card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

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

#customer-stories .card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 350px;
}

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

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

#customer-stories .card-content {
  padding: 2rem;
  flex-grow: 1;
}

#customer-stories .card-content h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

#customer-stories .card-content .subtitle {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

#customer-stories .card-content p {
  color: var(--medium-gray);
}

/* Внешние ссылки */
.card a {
  position: relative;
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
  display: inline-block;
}

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

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

.card a:hover::after {
  width: 100%;
}

/* ------------------------------------
   TESTIMONIALS SECTION
   ------------------------------------ */
#testimonials {
  position: relative;
  background-color: var(--white);
}

#testimonials .title.is-2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

#testimonials .title.is-2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
}

.testimonial-card {
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary-light);
  box-shadow: var(--shadow-md);
}

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

.testimonial-card h3 {
  color: var(--dark);
  margin-bottom: 0.25rem;
}

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

.testimonial-card p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.stars {
  color: var(--secondary-color);
}

/* ------------------------------------
   NEWS SECTION
   ------------------------------------ */
#news {
  background-color: var(--light-gray);
  position: relative;
}

#news .title.is-2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

#news .title.is-2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-secondary);
}

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

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

#news .card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 200px;
}

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

#news .card:hover .card-image img {
  transform: scale(1.1);
}

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

#news .card-content h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

#news .card-content .subtitle {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

#news .card-content p {
  color: var(--medium-gray);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

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

/* Читать далее ссылки */
#news .button.is-link {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
}

#news .button.is-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ------------------------------------
   CONTACT SECTION
   ------------------------------------ */
#contact {
  background-color: var(--white);
  position: relative;
}

#contact .title.is-2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

#contact .title.is-2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
}

#contact .card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

#contact .card-content {
  padding: 2rem;
}

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

#contact .input, 
#contact .textarea,
#contact .select select {
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#contact .input:focus, 
#contact .textarea:focus,
#contact .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(30, 61, 230, 0.2);
}

.contact-hours h4 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.contact-hours p {
  margin-bottom: 0.5rem;
  color: var(--medium-gray);
}

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

.success-container {
  max-width: 600px;
}

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

/* ------------------------------------
   FOOTER
   ------------------------------------ */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 5rem 1.5rem 3rem;
  position: relative;
}

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

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

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

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

.social-links p {
  margin-bottom: 0.25rem;
}

.social-links a {
  font-weight: 600;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  padding-left: 5px;
}

/* ------------------------------------
   МЕДИА ЗАПРОСЫ
   ------------------------------------ */
@media screen and (max-width: 768px) {
  .hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-item::before {
    left: 9px;
    width: 12px;
    height: 12px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .section {
    padding: 3.5rem 1.25rem;
  }
}

@media screen and (min-width: 1024px) {
  .hero-body {
    padding: 8rem 1.5rem;
  }
  
  .hero .title.is-1 {
    font-size: 4rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 2.25rem;
  }
}