/* ============================================================
   БАННЕР (main.slider template.1) — кастомные стили
   Кнопка слайдера, цвета текста (data-text-color), переносы
   ============================================================ */

/* ---------- КНОПКА: светлая (белая) ---------- */
.c-slider.c-slider-template-1 .widget-content .widget-item-buttons[data-view] .widget-item-button,
.c-slider.c-slider-template-1 .widget-content .widget-item-buttons .widget-item-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px 40px !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600;
  line-height: normal !important;
  font-style: normal;
  text-decoration: none;
  text-align: center;
  color: #448DCB !important;
  background: #ffffff !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(68, 141, 203, 0.15);
  border: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.c-slider.c-slider-template-1 .widget-content .widget-item-buttons[data-view] .widget-item-button:hover,
.c-slider.c-slider-template-1 .widget-content .widget-item-buttons .widget-item-button:hover {
  color: #ffffff !important;
  background: #448DCB !important;
  box-shadow: 0 4px 16px rgba(68, 141, 203, 0.3);
}

.c-slider.c-slider-template-1 .widget-content .widget-item-buttons[data-view] .widget-item-button:active,
.c-slider.c-slider-template-1 .widget-content .widget-item-buttons .widget-item-button:active {
  box-shadow: 0 2px 6px rgba(68, 141, 203, 0.2);
}

/* ---------- ЦВЕТ ТЕКСТА: применяется из data-text-scheme (radio в админке) ---------- */
.c-slider.c-slider-template-1 .widget-item-header[data-text-scheme="light"],
.c-slider.c-slider-template-1 [data-text-scheme="light"] { color: #ffffff !important; }
.c-slider.c-slider-template-1 .widget-item-header[data-text-scheme="dark"],
.c-slider.c-slider-template-1 [data-text-scheme="dark"] { color: #2a2a2a !important; }
.c-slider.c-slider-template-1 .widget-item-header[data-text-scheme="blue"],
.c-slider.c-slider-template-1 [data-text-scheme="blue"] { color: #0072bc !important; }

.c-slider.c-slider-template-1 .widget-item-description[data-text-scheme="light"],
.c-slider.c-slider-template-1 .widget-item-description [data-text-scheme="light"] { color: rgba(255, 255, 255, 0.85) !important; }
.c-slider.c-slider-template-1 .widget-item-description[data-text-scheme="dark"],
.c-slider.c-slider-template-1 .widget-item-description [data-text-scheme="dark"] { color: rgba(42, 42, 42, 0.85) !important; }
.c-slider.c-slider-template-1 .widget-item-description[data-text-scheme="blue"],
.c-slider.c-slider-template-1 .widget-item-description [data-text-scheme="blue"] { color: #0072bc !important; }

/* Вложенные span со схемой (многоцветность) переопределяют цвет родителя */
.c-slider.c-slider-template-1 .widget-item-header span[data-text-scheme="light"],
.c-slider.c-slider-template-1 .widget-item-description span[data-text-scheme="light"] { color: #ffffff !important; }
.c-slider.c-slider-template-1 .widget-item-header span[data-text-scheme="dark"],
.c-slider.c-slider-template-1 .widget-item-description span[data-text-scheme="dark"] { color: #2a2a2a !important; }
.c-slider.c-slider-template-1 .widget-item-header span[data-text-scheme="blue"],
.c-slider.c-slider-template-1 .widget-item-description span[data-text-scheme="blue"] { color: #0072bc !important; }

/* ---------- ПЕРЕНОСЫ: сохраняем <br> ---------- */
.c-slider.c-slider-template-1 .widget-item-header {
  white-space: pre-line;
}
.c-slider.c-slider-template-1 .widget-item-description {
  white-space: pre-line;
}

/* ---------- ОТСТУПЫ МЕЖДУ ЭЛЕМЕНТАМИ КОНТЕЙНЕРА БАННЕРА ---------- */
.c-slider.c-slider-template-1 .widget-item-description[data-view] {
  margin-top: 28px !important;
}
.c-slider.c-slider-template-1 .widget-item-buttons[data-view] {
  margin-top: 24px !important;
}

/* ---------- ДОТЫ: неактивные белые ---------- */
.c-slider.c-slider-template-1 .widget-slider-dots button span {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: transparent !important;
}
.c-slider.c-slider-template-1 .widget-slider-dots button:hover span {
  background: #ffffff !important;
}
.c-slider.c-slider-template-1 .widget-slider-dots button.active span {
  background: #448dcb !important;
  width: 32px;
}

/* ---------- СТРЕЛКИ: скрыты (не вписываются в дизайн) ---------- */
.c-slider.c-slider-template-1 .widget-content {
  overflow: hidden;
}
.c-slider.c-slider-template-1 [data-nav-view="1"] .widget-slider-nav {
  display: none !important;
}
.c-slider.c-slider-template-1 [data-nav-view="1"] .widget-item-content,
.c-slider.c-slider-template-1 [data-nav-view="1"] .widget-special-button-container-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ---------- Адаптив кнопки ---------- */
@media (max-width: 768px) {
  .c-slider.c-slider-template-1 .widget-content .widget-item-buttons[data-view] .widget-item-button,
  .c-slider.c-slider-template-1 .widget-content .widget-item-buttons .widget-item-button {
    font-size: 14px !important;
    padding: 12px 28px !important;
  }
}

@media (max-width: 500px) {
  .c-slider.c-slider-template-1 .widget-content .widget-item-buttons[data-view] .widget-item-button,
  .c-slider.c-slider-template-1 .widget-content .widget-item-buttons .widget-item-button {
    font-size: 13px !important;
    padding: 10px 20px !important;
  }
}
/* ============================================================
   МОБИЛЬНЫЙ БАННЕР: тёмная подложка + отступы (высота от контента)
   ============================================================ */
/* Снимаем фикс. высоту на мобильных — высота растёт за счёт отступов */
@media (max-width: 1024px) {
  .c-slider.c-slider-template-1 .widget-item-content-body {
    height: 100% !important;
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
  /* Тёмная подложка позади текста (не вылезает за слайд) */
  .c-slider.c-slider-template-1 .widget-item-text {
    position: relative;
  }
  .c-slider.c-slider-template-1 .widget-item-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0) 100%);
    z-index: 0;
    pointer-events: none;
  }
  .c-slider.c-slider-template-1 .widget-item-text > div {
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 768px) {
  .c-slider.c-slider-template-1 .widget-item-content-body {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}
@media (max-width: 480px) {
  .c-slider.c-slider-template-1 .widget-item-content-body {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }
}


/* На мобильных текст белый всегда */
@media (max-width: 1024px) {
  .c-slider.c-slider-template-1 .widget-item-header,
  .c-slider.c-slider-template-1 .widget-item-header[data-text-scheme],
  .c-slider.c-slider-template-1 .widget-item-header[data-text-scheme="blue"],
  .c-slider.c-slider-template-1 .widget-item-header[data-text-scheme="dark"],
  .c-slider.c-slider-template-1 .widget-item-description,
  .c-slider.c-slider-template-1 .widget-item-description[data-text-scheme],
  .c-slider.c-slider-template-1 .widget-item-description[data-text-scheme="blue"],
  .c-slider.c-slider-template-1 .widget-item-description[data-text-scheme="dark"] {
    color: #ffffff !important;
  }
  .c-slider.c-slider-template-1 .widget-item-header span,
  .c-slider.c-slider-template-1 .widget-item-description span {
    color: #ffffff !important;
  }
}
