/* CSS Variables для согласованной темы */
:root {
  /* Нейтральная цветовая схема с эко-минимализмом */
  --primary-color: #2E5266;
  --primary-light: #4A7A95;
  --primary-dark: #1A3A4A;
  --secondary-color: #7FB069;
  --secondary-light: #9BC97F;
  --secondary-dark: #5A8B48;
  
  /* Акцентные цвета */
  --accent-color: #D4A574;
  --accent-light: #E4B894;
  --accent-dark: #B8934C;
  
  /* Нейтральные цвета */
  --neutral-100: #F8F9FA;
  --neutral-200: #E9ECEF;
  --neutral-300: #DEE2E6;
  --neutral-400: #CED4DA;
  --neutral-500: #ADB5BD;
  --neutral-600: #6C757D;
  --neutral-700: #495057;
  --neutral-800: #343A40;
  --neutral-900: #212529;
  
  /* Семантические цвета */
  --success-color: #28A745;
  --warning-color: #FFC107;
  --danger-color: #DC3545;
  --info-color: #17A2B8;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-neutral: linear-gradient(135deg, var(--neutral-200) 0%, var(--neutral-100) 100%);
  
  /* Затемняющие оверлеи */
  --overlay-light: rgba(0, 0, 0, 0.3);
  --overlay-medium: rgba(0, 0, 0, 0.5);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  
  /* Стеклянные эффекты (гласморфизм) */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Типографика */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'IBM Plex Sans', sans-serif;
  
  /* Размеры */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--neutral-700);
}

/* Глобальные стили кнопок */
.btn,
button,
input[type='submit'],
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.btn:before,
button:before,
.button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover:before,
button:hover:before,
.button:hover:before {
  left: 100%;
}

.btn.is-primary,
.button.is-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn.is-primary:hover,
.button.is-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.is-secondary,
.button.is-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn.is-light,
.button.is-light {
  background: var(--neutral-100);
  color: var(--neutral-800);
  border: 2px solid var(--neutral-300);
}

.btn.is-light:hover,
.button.is-light:hover {
  background: var(--neutral-200);
  border-color: var(--primary-color);
}

.btn.is-info,
.button.is-info {
  background: var(--gradient-accent);
  color: white;
}

.custom-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.custom-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.custom-button:hover::after {
  opacity: 1;
}

/* Навигация */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-200);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-item {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--neutral-700);
  transition: var(--transition);
  position: relative;
}

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

.navbar-item:hover {
  color: var(--primary-color);
}

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

/* Hero секция */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-medium);
}

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

.hero .title {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.hero .subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Карточки */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

/* Контейнеры для изображений */
.image-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
}

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

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

/* Секции */
.section {
  padding: 4rem 1.5rem;
  position: relative;
}

.section.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section.has-background-light {
  background: var(--gradient-neutral);
}

/* Заголовки секций */
.section .title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section .title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Временная шкала */
.timeline-container {
  position: relative;
}

.timeline-item {
  position: relative;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

/* Слайдер */
.custom-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  padding: 3rem;
  background: white;
  border-radius: var(--border-radius-lg);
}

/* Галерея */
#gallery .columns {
  gap: 1.5rem;
}

#gallery .image-container {
  height: 300px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

#gallery .image-container:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Ценообразование */
.card.is-featured {
  border: 3px solid var(--primary-color);
  transform: scale(1.05);
}

.card.is-featured .card-content {
  background: var(--gradient-primary);
  color: white;
}

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

.field {
  margin-bottom: 1.5rem;
}

.label {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.input,
.textarea {
  border: 2px solid var(--neutral-300);
  border-radius: var(--border-radius);
  padding: 0.875rem;
  font-family: var(--font-secondary);
  transition: var(--transition);
}

.input:focus,
.textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 82, 102, 0.1);
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Футер */
.footer {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer .title,
.footer h4,
.footer h5 {
  color: white;
}

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

.footer a:hover {
  color: white;
  text-decoration: underline;
}

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

.footer li {
  margin-bottom: 0.5rem;
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 0.5rem;
}

/* Страница успеха */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-neutral);
  padding: 2rem;
}

.success-content {
  text-align: center;
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
}

/* Страницы политики и условий */
.legal-page {
  padding-top: 100px;
}

.legal-content {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

/* Ссылки "Читать далее" */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.read-more::after {
  content: '→';
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* Утилитарные классы */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.parallax-element {
  transform: translateZ(0);
  will-change: transform;
}

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

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Медиа-запросы */
@media (max-width: 768px) {
  .hero-body {
    padding: 4rem 1rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .navbar-burger {
    color: var(--neutral-700);
  }
  
  .timeline-item {
    padding: 1.5rem;
  }
  
  .slide {
    padding: 2rem 1rem;
  }
  
  #gallery .image-container {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .btn, .button {
    padding: 0.75rem 1rem;
    min-width: 100px;
    font-size: 0.875rem;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .section .title::after {
    width: 40px;
    height: 2px;
  }
}

/* Высокие разрешения */
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
  
  .section {
    padding: 6rem 1.5rem;
  }
  
  .hero-body {
    padding: 8rem 1.5rem;
  }
}

/* Предотвращение горизонтального скролла */
html, body {
  overflow-x: hidden;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Стили для загрузки */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Доступность */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Фокус для доступности */
.btn:focus,
.button:focus,
.input:focus,
.textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}