:root {
  /* Триадная цветовая схема */
  --primary-color: #00a4bd;
  --primary-dark: #008a9e;
  --primary-light: #4ecbdf;
  --secondary-color: #bd5900;
  --secondary-dark: #9e4a00;
  --secondary-light: #df8c4e;
  --tertiary-color: #6500bd;
  --tertiary-dark: #53009e;
  --tertiary-light: #904edf;
  
  /* Нейтральные цвета */
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --medium-bg: #e9ecef;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  
  /* Функциональные цвета */
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  
  /* Размеры */
  --header-height: 70px;
  --section-spacing: 5rem;
  --card-border-radius: 8px;
  --btn-border-radius: 4px;
  
  /* Тени */
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --btn-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Базовые стили */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Контейнеры и секции */
.section {
  padding: 5rem 1.5rem;
}

.section:nth-child(even) {
  background-color: var(--light-bg);
}

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

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

/* Переопределения Bulma */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-item {
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.title {
  font-weight: 700;
}

.title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin: 0.5rem auto 2rem;
}

.button {
  font-weight: 600;
  border-radius: var(--btn-border-radius);
  transition: all 0.3s ease;
  box-shadow: var(--btn-shadow);
}

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

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

.button.is-light {
  background-color: var(--light-bg);
  color: var(--text-dark);
}

.button.is-light:hover {
  background-color: var(--medium-bg);
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

.card {
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.card-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.notification {
  border-radius: var(--card-border-radius);
}

.notification.is-primary {
  background-color: var(--primary-light);
  color: var(--text-dark);
}

.notification.is-info {
  background-color: var(--info);
  color: var(--text-light);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background-color: var(--primary-light);
  color: var(--text-dark);
}

.input, .textarea, .select select {
  border-radius: var(--btn-border-radius);
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(0, 164, 189, 0.25);
}

/* Hero секция */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
}

.hero .title, .hero .subtitle, .hero p {
  color: var(--text-light) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .title::after {
  background: var(--text-light);
  margin: 0.5rem auto 1.5rem;
}

/* Секция галереи */
#galeria .card-image {
  height: 250px;
}

#galeria .card-image img {
  height: 100%;
  object-fit: cover;
}

/* Секция событий */
#eventos .card {
  margin-bottom: 2rem;
}

#eventos .subtitle {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Секция цен */
#precios .table th, #precios .table td {
  text-align: center;
}

#precios .notification {
  margin-top: 2rem;
}

/* Секция историй успеха */
#exitos .tags {
  margin-bottom: 1rem;
}

#exitos .tag {
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Секция insights */
#insights .card-content {
  padding: 1.5rem;
}

/* Контактная форма */
#contacto .card {
  padding: 0;
}

#contacto .input, #contacto .textarea, #contacto .select select {
  font-size: 1rem;
}

#contacto .label {
  font-weight: 600;
}

/* Футер */
.footer {
  padding: 4rem 1.5rem 2rem;
}

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

.footer p, .footer a {
  color: var(--text-light);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 1;
  color: var(--primary-light) !important;
}

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

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

.footer hr {
  margin: 2rem 0;
  opacity: 0.2;
}

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

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

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

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

.terms-content, .privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Ресурсы/Артикулы секция */
#recursos .card {
  height: 100%;
}

#recursos .button {
  margin-top: auto;
}

/* Карта */
#mapa .card-image {
  height: 400px;
}

#mapa .card-image img {
  height: 100%;
  object-fit: cover;
}

/* Модальные окна */
.modal-card-head {
  background-color: var(--primary-color);
}

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

.modal-card-foot {
  background-color: var(--light-bg);
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

/* Микроанимации */
.button {
  position: relative;
  overflow: hidden;
}

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

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

.navbar-item {
  position: relative;
}

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

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

/* Медиа-запросы */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .title {
    font-size: 1.75rem !important;
  }
  
  .subtitle {
    font-size: 1.25rem !important;
  }
  
  .hero-body {
    padding: 6rem 1rem !important;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .column {
    margin-bottom: 2rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .section {
    padding: 4rem 1.5rem;
  }
  
  .card-image {
    height: 200px;
  }
}

/* Стили для куки-баннера */
#cookiePopup {
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

#acceptCookies {
  background-color: var(--primary-color);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#acceptCookies:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Доступность */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Дополнительные утилиты */
.has-text-primary {
  color: var(--primary-color) !important;
}

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

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

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

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

.has-background-tertiary-light {
  background-color: var(--tertiary-light) !important;
  color: var(--text-dark) !important;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--primary-dark);
}

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

/* Центрирование изображений в карточках */
.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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