:root {
  /* Основная цветовая схема (дополнительная) */
  --primary-color: #3a6ea5;
  --primary-dark: #2a5080;
  --primary-light: #4a7ec5;
  --secondary-color: #d68c45;
  --secondary-dark: #c47835;
  --secondary-light: #e69c55;
  --accent-color: #4caf50;
  --accent-dark: #3d8b40;
  --accent-light: #66bb6a;
  
  /* Нейтральные цвета */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f7fa;
  --bg-dark: #2c3e50;
  --gray-light: #e0e0e0;
  --gray-medium: #9e9e9e;
  --gray-dark: #616161;
  
  /* Цвета состояний */
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --info: #2196f3;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  --gradient-dark-overlay: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5));
  
  /* Тени */
  --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);
  
  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  
  /* Типографика */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  
  /* Размеры */
  --container-max: 1200px;
  --section-spacing: 5rem;
  --element-spacing: 1.5rem;
}

/* Глобальные стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

/* Анимации появления элементов */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  border: none;
}

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

.button.is-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.button.is-secondary {
  background: var(--gradient-secondary);
  color: var(--text-light);
}

.button.is-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
}

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

.button.is-white {
  color: var(--text-light);
}

.button.is-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.buttons {
  display: flex;
  gap: 1rem;
}

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

.navbar.is-fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 30;
}

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

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

.navbar-burger {
  margin-left: auto;
  height: 3.25rem;
  width: 3.25rem;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-light);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-dark-overlay);
  z-index: 0;
}

.hero-body {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
}

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

.hero-body .title {
  font-size: clamp(2rem, 5vw, var(--font-size-4xl));
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-body .subtitle {
  font-size: clamp(1.25rem, 3vw, var(--font-size-2xl));
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

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

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

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

.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(--text-dark);
  margin-bottom: 0.75rem;
}

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

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

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

.section .title {
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
}

.section .title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto;
  border-radius: 2px;
}

.section .subtitle {
  text-align: center;
  color: var(--gray-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section.has-background-light {
  background-color: var(--bg-light);
}

.section.has-background-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section.has-background-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Сервисы */
.progress-container {
  margin-top: auto;
}

.progress {
  margin-bottom: 0.5rem;
  height: 0.75rem;
  border-radius: var(--radius-sm);
}

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

.progress-container span {
  font-size: var(--font-size-sm);
  color: var(--gray-dark);
}

/* Команда */
.team-member {
  text-align: center;
}

.team-member img {
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal);
  margin: 0 auto;
}

.team-member:hover img {
  transform: scale(1.05);
}

/* Отзывы */
.media {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.media-left {
  margin-right: 1rem;
}

.media-content {
  flex-grow: 1;
}

.has-text-warning {
  color: var(--warning);
}

.is-rounded {
  border-radius: 50%;
}

/* Формы */
.field {
  margin-bottom: 1.5rem;
}

.label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  background-color: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
  outline: none;
}

.select {
  position: relative;
  display: block;
}

.select::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--gray-medium);
  pointer-events: none;
}

/* Галерея */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Блог */
.blog-post {
  margin-bottom: 2rem;
}

.blog-post .title {
  margin-bottom: 0.5rem;
}

.blog-post .subtitle {
  color: var(--gray-dark);
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
}

.blog-post .button {
  margin-top: 1rem;
}

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

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

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

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

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

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

.footer ul li a:hover {
  color: var(--text-light);
}

.social-links a {
  display: block;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

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

/* Дополнительные страницы */
.about-page,
.privacy-page,
.terms-page,
.contacts-page {
  padding-top: 100px;
}

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

.success-container {
  max-width: 600px;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
}

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

/* Cookie Consent */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

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

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

/* Медиа-запросы */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .hero-body {
    padding: 3rem 1rem;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .columns {
    margin-left: 0;
    margin-right: 0;
  }
  
  .column {
    padding: 0.75rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .hero-body .title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-body .subtitle {
    font-size: var(--font-size-xl);
  }
}

@media screen and (min-width: 1024px) {
  .container {
    max-width: var(--container-max);
    margin: 0 auto;
  }
  
  .section {
    padding: var(--section-spacing) 2rem;
  }
}

/* Утилиты */
.has-text-centered {
  text-align: center;
}

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

.is-fullwidth {
  width: 100%;
}

.is-large {
  font-size: var(--font-size-lg);
  padding: 1rem 2rem;
}

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

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

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

/* Добавочные стили для читаемости текста на изображениях */
[style*="background-image"] {
  position: relative;
}

[style*="background-image"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 0;
}

[style*="background-image"] > * {
  position: relative;
  z-index: 1;
}

/* Для карточек блога - кнопка "Читать далее" */
.card .button.is-primary {
  align-self: flex-start;
  margin-top: auto;
  font-size: var(--font-size-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  box-shadow: none;
}

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