/* Глобальный шрифт Inter */
* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Убираем стандартное поведение ссылок */
a {
  text-decoration: none !important;
  outline: none !important;
}

a:visited {
  color: inherit !important;
}

a:focus {
  outline: none !important;
  box-shadow: none !important;
}

a:active {
  color: inherit !important;
  outline: none !important;
}

a:hover {
  outline: none !important;
}

/* Минимальные кастомные стили без конфликтов с Tailwind */

/* Только критически важные переопределения */

/* Убираем синие границы в формах ТОЛЬКО где это действительно нужно */
#booking-form input:focus,
#booking-form select:focus,
#booking-form textarea:focus {
  outline: none !important;
  border-color: #9ca3af !important;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1) !important;
  --tw-ring-color: transparent !important;
  --tw-ring-shadow: none !important;
}

/* Стили для полей формы - одинаковый размер, белый фон и отступы */
#booking-form input,
#booking-form select,
#booking-form textarea {
  background-color: white !important;
  height: 48px !important; /* Одинаковая высота для всех полей кроме textarea */
  padding: 12px 16px !important; /* Добавляем отступы внутри полей */
  font-size: 16px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

/* Исправление выравнивания чекбокса и текста */
#booking-form input[type="checkbox"],
input[type="checkbox"]#privacy_agree,
input[type="checkbox"]#privacy_agree_mobile {
  width: 18px !important;
  height: 18px !important;
  margin-top: 0 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  top: 2px !important;
  cursor: pointer !important;
  /* Убираем стандартный вид */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  /* Добавляем кастомный стиль - убираем серую тень */
  border: 1px solid #e5e7eb !important;
  border-radius: 4px !important;
  background-color: white !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  /* Центрируем галочку */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Стили для состояния checked в десктопной версии */
#booking-form input[type="checkbox"]:checked,
input[type="checkbox"]#privacy_agree:checked,
input[type="checkbox"]#privacy_agree_mobile:checked {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}

/* Добавляем галочку через псевдоэлемент в десктопной версии */
#booking-form input[type="checkbox"]:checked::after,
input[type="checkbox"]#privacy_agree:checked::after,
input[type="checkbox"]#privacy_agree_mobile:checked::after {
  content: "✓" !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  display: block !important;
}

/* Стили при фокусе в десктопной версии */
#booking-form input[type="checkbox"]:focus,
input[type="checkbox"]#privacy_agree:focus,
input[type="checkbox"]#privacy_agree_mobile:focus {
  outline: none !important;
  border-color: var(--brand-green) !important;
  box-shadow: none !important;
}

/* Контейнер для чекбокса - используем flexbox для правильного выравнивания */
#booking-form .flex.items-start,
.desktop-form .flex.items-start {
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Лейбл для чекбокса - выравниваем по верху и исправляем перенос текста */
#booking-form label[for="privacy_agree"],
#booking-form label[for="privacy_agree_mobile"],
label[for="privacy_agree"],
label[for="privacy_agree_mobile"] {
  line-height: 1.4 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  flex: 1 !important;
}

#booking-form textarea {
  height: auto !important; /* textarea остается с автоматической высотой */
  min-height: 96px !important;
  padding: 12px 16px !important; /* Отступы для textarea */
  resize: vertical !important;
}

/* Поддержка Tailwind классов скругления - высокая специфичность */
#booking-form input.rounded-3xl,
#booking-form select.rounded-3xl,
#booking-form textarea.rounded-3xl,
input#client_name.rounded-3xl {
  border-radius: 1.5rem !important; /* 24px для rounded-3xl */
}

#booking-form input.rounded-2xl,
#booking-form select.rounded-2xl,
#booking-form textarea.rounded-2xl {
  border-radius: 1rem !important; /* 16px для rounded-2xl */
}

#booking-form input.rounded-xl,
#booking-form select.rounded-xl,
#booking-form textarea.rounded-xl {
  border-radius: 0.75rem !important; /* 12px для rounded-xl */
}

#booking-form input.rounded-lg,
#booking-form select.rounded-lg,
#booking-form textarea.rounded-lg {
  border-radius: 0.5rem !important; /* 8px для rounded-lg */
}

/* Специальные стили для select - убираем серый фон */
#booking-form select {
  background-color: white !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  /* Исправление выравнивания текста по вертикали */
  display: flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}

/* Дополнительные стили для мобильных select полей */
@media (max-width: 768px) {
  #booking-form select {
    /* Предотвращаем выход текста за границы на мобильных */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 15px !important;
    padding-right: 45px !important;
  }

  #booking-form select option {
    padding: 8px 12px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Дополнительные стили для очень маленьких экранов */
  @media (max-width: 360px) {
    #booking-form select {
      font-size: 14px !important;
      padding: 14px 16px !important;
      padding-right: 40px !important;
    }

    #booking-form select option {
      font-size: 14px !important;
    }
  }
}

/* Стили для заблокированных полей */
#booking-form select:disabled,
#booking-form select[readonly] {
  background-color: #f3f4f6 !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.6 !important;
}

#guests_count:disabled,
#guests_count[readonly],
#guests_count_mobile:disabled,
#guests_count_mobile[readonly] {
  background-color: #f3f4f6 !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.6 !important;
}

/* Стили для мобильной формы */
@media (max-width: 768px) {
  #booking-form .desktop-form {
    display: none !important;
  }

  #booking-form .mobile-form {
    display: block !important;
  }

  .mobile-form-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
  }

  .mobile-form-section.active {
    border-color: var(--brand-green);
    box-shadow: 0 4px 12px rgba(37, 63, 102, 0.15);
  }

  .mobile-form-section.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  }

  .mobile-form-section.completed::before {
    content: "✓";
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
  }

  .mobile-form-section:not(.active) {
    display: none;
  }

  .mobile-form-section.active {
    animation: slideInUp 0.3s ease-out;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Красивые стили для полей в мобильной форме */
  .mobile-form-section input,
  .mobile-form-section select,
  .mobile-form-section textarea {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: white !important; /* Белый фон для всех полей */
    transition: all 0.3s ease !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      Roboto, sans-serif !important;
    color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: 56px !important; /* Одинаковая высота для всех полей кроме textarea */
  }

  /* Textarea в мобильной форме */
  .mobile-form-section textarea {
    height: auto !important;
    min-height: 100px !important;
  }

  .mobile-form-section input:focus,
  .mobile-form-section select:focus,
  .mobile-form-section textarea:focus {
    border-color: var(--brand-green) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(37, 63, 102, 0.1), 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
  }

  .mobile-form-section input::placeholder,
  .mobile-form-section textarea::placeholder {
    color: #9ca3af !important;
    font-size: 16px !important;
  }

  /* Стили для select */
  .mobile-form-section select {
    background-color: white !important; /* Принудительно белый фон */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 16px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    padding-right: 50px !important;
    /* Исправление выравнивания текста по вертикали */
    display: flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    /* Предотвращаем выход текста за границы */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Уменьшаем размер шрифта для длинных названий */
    font-size: 15px !important;
  }

  /* Дополнительные стили для опций select на мобильных */
  .mobile-form-section select option {
    padding: 8px 12px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Дополнительные стили для очень маленьких экранов */
  @media (max-width: 360px) {
    .mobile-form-section select {
      font-size: 14px !important;
      padding: 14px 16px !important;
      padding-right: 45px !important;
    }

    .mobile-form-section select option {
      font-size: 14px !important;
    }
  }

  /* Стили для textarea */
  .mobile-form-section textarea {
    min-height: 100px !important;
    resize: vertical !important;
  }

  /* ИСПРАВЛЕННЫЕ КНОПКИ НАВИГАЦИИ - точное выравнивание */
  .mobile-form-nav {
    display: flex !important;
    align-items: center !important; /* Выравниваем по центру */
    justify-content: space-between !important;
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #e5e7eb !important;
    gap: 16px !important;
  }

  /* Убираем лишние отступы у кнопок в навигации */
  .mobile-form-nav button {
    margin: 0 !important; /* Убираем все отступы */
  }

  .mobile-form-nav button {
    padding: 14px 24px !important; /* Одинаковый padding */
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    min-width: 110px !important;
    height: 48px !important; /* Одинаковая высота */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    max-width: 150px !important;
    margin: 0 !important; /* Убираем все отступы */
    vertical-align: middle !important; /* Дополнительное выравнивание */
  }

  .mobile-form-nav .btn-prev {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border: 2px solid #e5e7eb !important;
  }

  .mobile-form-nav .btn-prev:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  }

  .mobile-form-nav .btn-next {
    background: linear-gradient(
      135deg,
      var(--brand-green) 0%,
      var(--brand-green-light) 100%
    ) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 63, 102, 0.3) !important;
  }

  .mobile-form-nav .btn-next:hover:not(:disabled) {
    background: linear-gradient(
      135deg,
      var(--brand-green-light) 0%,
      var(--brand-green-lighter) 100%
    ) !important;
    box-shadow: 0 6px 16px rgba(37, 63, 102, 0.4) !important;
  }

  .mobile-form-nav .btn-next:disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  }

  /* Дополнительные стили для очень маленьких экранов */
  @media (max-width: 360px) {
    .mobile-form-nav {
      gap: 12px !important;
    }

    .mobile-form-nav button {
      min-width: 90px !important;
      max-width: 120px !important;
      font-size: 15px !important;
      padding: 12px 20px !important;
    }
  }

  /* Стили для прогресс бара */
  .mobile-form-progress {
    background: #f3f4f6 !important;
    height: 6px !important;
    border-radius: 3px !important;
    margin-bottom: 2rem !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  }

  .mobile-form-progress-bar {
    background: linear-gradient(
      90deg,
      var(--brand-green) 0%,
      var(--brand-green-light) 100%
    ) !important;
    height: 100% !important;
    transition: width 0.5s ease !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 3px rgba(37, 63, 102, 0.3) !important;
  }

  /* Стили для заголовков и текста */
  .mobile-form-section h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }

  .mobile-form-section p {
    font-size: 0.95rem !important;
    color: #6b7280 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
  }

  /* Стили для индикатора шага */
  .mobile-form-step {
    text-align: center !important;
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
  }

  /* Контейнер для чекбокса в мобильной версии */
  .mobile-form-section .flex.items-start {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    gap: 12px !important;
  }

  /* Стили для кнопки отправки формы - только если она НЕ в навигации */
  .mobile-form-section button[type="submit"]:not(.btn-next) {
    width: auto !important; /* Не на всю ширину */
    min-width: 160px !important; /* Минимальная ширина */
    padding: 14px 24px !important; /* Меньше вертикальный отступ */
    background: linear-gradient(
      135deg,
      var(--brand-green) 0%,
      var(--brand-green-light) 100%
    ) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important; /* Меньше размер шрифта */
    font-weight: 600 !important; /* Меньше жирность */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(37, 63, 102, 0.3) !important;
    margin-top: 1rem !important;
    /* Выравниваем по правому краю как обычную кнопку "Далее" */
    margin-left: auto !important;
  }

  .mobile-form-section
    button[type="submit"]:not(.btn-next):hover:not(:disabled) {
    background: linear-gradient(
      135deg,
      var(--brand-green-light) 0%,
      var(--brand-green-lighter) 100%
    ) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 63, 102, 0.4) !important;
  }

  .mobile-form-section button[type="submit"]:not(.btn-next):disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }

  /* Анимация для активных полей */
  .mobile-form-section input:focus,
  .mobile-form-section select:focus,
  .mobile-form-section textarea:focus {
    animation: fieldFocus 0.3s ease-out !important;
  }

  @keyframes fieldFocus {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.02);
    }
    100% {
      transform: scale(1);
    }
  }
}

@media (min-width: 769px) {
  #booking-form .mobile-form {
    display: none !important;
  }

  #booking-form .desktop-form {
    display: block !important;
  }
}

/* Стили для бесконечной ленты отзывов */
.testimonials-slider-container {
  position: relative;
  width: 100%;
  padding: 10px 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.testimonials-slider {
  display: flex;
  width: fit-content;
  animation: scroll-testimonials 60s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.testimonials-slider:hover {
  animation-play-state: paused;
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Стили для бесконечной ленты локаций в футере */
.locations-slider-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.locations-slider {
  display: flex;
  flex-direction: column;
  animation: scroll-locations-vertical 20s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.locations-slider:hover {
  animation-play-state: paused;
}

.location-item {
  padding: 8px 0;
  flex-shrink: 0;
  min-height: 32px;
  transform: translateZ(0);
}

@keyframes scroll-locations-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Стили для полей даты с маской */
.date-input {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  letter-spacing: normal;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding-right: 45px;
}

.date-input::placeholder {
  color: #9ca3af;
}

.date-input.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Стили флагов перенесены в tailwind-fixes.css */

/* Стили для компонента ввода даты с отдельными полями */
.date-input-component {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.date-input-component input {
  text-align: center !important;
  padding: 16px 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: white !important;
  transition: all 0.3s ease !important;
  height: 56px !important;
  box-sizing: border-box !important;
}

.date-input-component input:focus {
  border-color: var(--brand-green) !important;
  box-shadow: 0 0 0 3px rgba(37, 63, 102, 0.1) !important;
  outline: none !important;
}

.date-input-component .day-input,
.date-input-component .month-input {
  width: 60px !important;
  flex-shrink: 0 !important;
}

.date-input-component .year-input {
  width: 80px !important;
  flex-shrink: 0 !important;
}

.date-input-component .separator {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #6b7280 !important;
  user-select: none !important;
  display: flex !important;
  align-items: center !important;
  padding-top: 15px !important; /* Опускаем точки немного ниже */
}

.date-input-component input.error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.date-input-component input::placeholder {
  color: #9ca3af !important;
  font-weight: normal !important;
}

/* Адаптивные стили для компонента даты */
@media (max-width: 360px) {
  .date-input-component .day-input,
  .date-input-component .month-input {
    width: 50px !important;
  }

  .date-input-component .year-input {
    width: 70px !important;
  }

  .date-input-component input {
    font-size: 15px !important;
    padding: 14px 6px !important;
  }
}
/* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ЧЕКБОКСА В МОБИЛЬНОЙ ВЕРСИИ */
.mobile-form-section input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-top: 0 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  top: 2px !important;
  cursor: pointer !important;
  margin-right: 12px !important;
  /* Убираем стандартный вид */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  /* Добавляем кастомный стиль - убираем серую тень */
  border: 1px solid #e5e7eb !important;
  border-radius: 4px !important;
  background-color: white !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  /* Центрируем галочку */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Стили для состояния checked */
.mobile-form-section input[type="checkbox"]:checked {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}

/* Добавляем галочку через псевдоэлемент */
.mobile-form-section input[type="checkbox"]:checked::after {
  content: "✓" !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  display: block !important;
}

/* Стили при фокусе */
.mobile-form-section input[type="checkbox"]:focus {
  outline: none !important;
  border-color: var(--brand-green) !important;
  box-shadow: none !important;
}

/* Стили для лейбла чекбокса с правильным переносом текста */
.mobile-form-section label[for*="privacy"] {
  cursor: pointer !important;
  user-select: none !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  color: #374151 !important;
  padding: 8px !important;
  margin: -8px !important;
  border-radius: 8px !important;
  transition: background-color 0.2s ease !important;
  /* Исправляем перенос текста */
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  max-width: 100% !important;
}

/* Текст лейбла должен занимать оставшееся место и правильно переносится */
.mobile-form-section label[for*="privacy"] span {
  flex: 1 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
}

/* Подсветка при наведении на лейбл */
.mobile-form-section label[for*="privacy"]:hover {
  background-color: rgba(37, 63, 102, 0.05) !important;
}
/* Скрываем стандартный WordPress header на юридических страницах */
.page-template-page-legal #masthead,
.page-template-page-privacy-policy #masthead {
  display: none !important;
}

/* Убираем отступ сверху для body на юридических страницах */
.page-template-page-legal,
.page-template-page-privacy-policy {
  padding-top: 0 !important;
}

/* Стили для кнопки "На главную" */
.legal-back-button {
  transition: all 0.3s ease;
}

.legal-back-button:hover {
  transform: translateX(-2px);
}

/* Стили для контактов в футере - одинаковый цвет и без подсветки */
footer .footer-link,
footer a.footer-link {
  color: #6b7280 !important; /* text-gray-500 */
  font-weight: 500 !important; /* font-normal */
  transition: none !important;
  text-decoration: none !important;
}

footer .footer-link:hover,
footer a.footer-link:hover,
footer .footer-link:visited,
footer a.footer-link:visited,
footer .footer-link:active,
footer a.footer-link:active {
  color: #6b7280 !important; /* Остается тот же цвет во всех состояниях */
  text-decoration: none !important;
  background-color: transparent !important;
  outline: none !important;
}
/* Стили для ссылок на юридические документы - с подсветкой при наведении */
footer a:not(.footer-link) {
  transition: color 0.3s ease !important;
}

footer a:not(.footer-link):hover {
  color: #253f66 !important; /* brand-green цвет при наведении */
}
/* Тени для заголовка и описания на главной странице для лучшей читаемости */
.hero-section h1 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 0, 0, 0.5) !important;
}

.hero-section p {
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.4) !important;
}
/* Небольшое ограничение ширины виджета объектов на больших экранах */
@media (min-width: 1400px) {
  #hr-widget[data-instance-id="list"] {
    max-width: 90% !important;
    margin: 0 auto !important;
  }
}

@media (min-width: 1600px) {
  #hr-widget[data-instance-id="list"] {
    max-width: 85% !important;
  }
}

@media (min-width: 1920px) {
  #hr-widget[data-instance-id="list"] {
    max-width: 80% !important;
  }
}
