/* Блок «Что еще есть» / список статей. Структура карточки взята из темы
   kinder-lux.ru (Intense, .box-info-modern), НО цвета и шрифты приведены к
   основному бренду «Детские батуты»: заголовки Nunito 900, текст Roboto,
   акцент — оранжевый #f05a2d. Карусель — своя лёгкая (web/js/articles-carousel.js),
   тяжёлый owl-бандл не подключаем. */

/* Блоки темы-источника внутри .intense-scope используют owl-carousel, который
   тема прячет (display:none) до инициализации owl-JS. JS темы мы не тянем,
   поэтому раскрываем owl как обычный адаптивный ряд карточек (видимо + в
   оригинальном оформлении темы). Кол-во в ряд — из data-lg-items (по умолч. 3). */
/* Бренд-оверрайд заголовков в блоках темы-источника: шрифт сайта Nunito
   (вместо Lato темы). Цвет/акценты уже приведены к оранжевому при генерации
   intense-scoped.css (#c14679→#f05a2d). Грузится ПОСЛЕ intense-scoped. */
.intense-scope h1, .intense-scope h2, .intense-scope h3,
.intense-scope h4, .intense-scope h5, .intense-scope h6,
.intense-scope [class^="heading-"], .intense-scope [class*=" heading-"] {
  font-family: 'Nunito', sans-serif;
}

/* Активный таб блока «Как заказать»: СИНИМ (#1061cc, ссылочный акцент сайта)
   красим ТОЛЬКО подпись (слово). Крупный номер (::before) НЕ трогаем — остаётся
   в цвете темы. */
.intense-scope .nav-tabs .nav-link.active,
.intense-scope .nav-tabs .nav-link:hover { color: #1061cc !important; }

/* Блок «Акция» (.parallax-container): фон-фото (inline в aktsiya.twig) + оранжевый
   градиент-оверлей, ПЛОТНЫЙ слева (под текстом — читаемо) и ПРОЗРАЧНЫЙ справа
   (фото видно). Праздничный, в тон сайту, но не «мрачно» и не «washed-out». */
.intense-scope .parallax-container {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.intense-scope .parallax-container::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg,
    rgba(240, 90, 45, 0.96) 0%,
    rgba(240, 90, 45, 0.90) 30%,
    rgba(240, 90, 45, 0.45) 62%,
    rgba(240, 90, 45, 0.15) 100%);
}
.intense-scope .parallax-container > .parallax-content { position: relative; z-index: 1; }
.intense-scope .parallax-container .parallax-content h2,
.intense-scope .parallax-container .parallax-content .heading-4,
.intense-scope .parallax-container .parallax-content .text-width-medium,
.intense-scope .parallax-container .parallax-content .title-style-6,
.intense-scope .parallax-container .parallax-content p { color: #fff !important; }
/* Сплошная белая кнопка с оранжевым текстом (нейтрализуем fill-псевдоэлементы темы) */
.intense-scope .parallax-container .button {
  background: #fff !important; background-image: none !important;
  border: none !important; color: #f05a2d !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
}
.intense-scope .parallax-container .button::before,
.intense-scope .parallax-container .button::after {
  background: #fff !important; background-image: none !important; opacity: 0 !important;
}
.intense-scope .parallax-container .button:hover { background: #fff2ec !important; color: #d64a1f !important; }

/* Блок «Новости» (matritsaStatey): своя сетка на CSS grid. Крупная featured
   слева (на 2 ряда), остальные справа — края выровнены автоматически. Карточка
   целиком кликабельна, подпись наложена на фото. Брендовые шрифты/цвета. */
.intense-scope .news-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.intense-scope .news-grid .news-card--featured { grid-row: 1 / 3; }
.intense-scope .news-card {
  position: relative; display: block; overflow: hidden;
  border-radius: 14px; min-height: 236px; text-decoration: none;
  background: #eceff1;
}
.intense-scope .news-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.intense-scope .news-card:hover .news-card__img { transform: scale(1.06); }
.intense-scope .news-card__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.85) 0%, rgba(20, 16, 12, 0.35) 55%, rgba(20, 16, 12, 0) 100%);
}
.intense-scope .news-card__date { color: rgba(255, 255, 255, 0.85); font-size: 14px; line-height: 1.2; }
.intense-scope .news-card__title {
  color: #fff; font-family: 'Nunito', sans-serif; font-weight: 800; line-height: 1.2; font-size: 20px;
}
.intense-scope .news-card--featured .news-card__title { font-size: 28px; }
.intense-scope .news-card:hover .news-card__title { color: #ffd23f; }
@media (max-width: 767.98px) {
  .intense-scope .news-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 18px; }
  .intense-scope .news-grid .news-card--featured { grid-row: auto; }
  .intense-scope .news-card { min-height: 200px; }
}

.intense-scope .owl-carousel { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 30px; }
.intense-scope .owl-carousel > * { flex: 0 0 calc(33.333% - 20px); max-width: calc(33.333% - 20px); margin: 0 !important; }
.intense-scope .owl-carousel[data-lg-items="4"] > * { flex-basis: calc(25% - 23px); max-width: calc(25% - 23px); }
.intense-scope .owl-carousel[data-lg-items="5"] > * { flex-basis: calc(20% - 24px); max-width: calc(20% - 24px); }
@media (max-width: 991.98px) { .intense-scope .owl-carousel > *,
  .intense-scope .owl-carousel[data-lg-items="4"] > *,
  .intense-scope .owl-carousel[data-lg-items="5"] > * { flex-basis: calc(50% - 15px); max-width: calc(50% - 15px); } }
@media (max-width: 575.98px) { .intense-scope .owl-carousel > *,
  .intense-scope .owl-carousel[data-lg-items="4"] > *,
  .intense-scope .owl-carousel[data-lg-items="5"] > * { flex-basis: 100%; max-width: 100%; } }

.articles-modern-section { padding: 50px 0 70px; }
.articles-modern-title {
  text-align: center;
  margin: 0 0 40px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: #212529;
}

/* ── Карусель ── */
.dbk-carousel { position: relative; }
.dbk-carousel-viewport { overflow: hidden; padding: 15px 15px 70px; margin: -15px -15px -55px; }
.dbk-carousel-track { display: flex; gap: 30px; transition: transform .4s ease; will-change: transform; }
.dbk-carousel-track > .box-info-modern { flex: 0 0 auto; }

.dbk-carousel-arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 52px; height: 52px; border: none; border-radius: 50%;
  background: #f05a2d; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(240, 90, 45, .35); transition: background .2s ease, opacity .2s ease;
}
.dbk-carousel-arrow:hover { background: #d64a1f; }
.dbk-carousel-arrow[disabled] { opacity: .35; cursor: default; box-shadow: none; }
.dbk-carousel-prev { left: -18px; }
.dbk-carousel-next { right: -18px; }

.dbk-carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.dbk-dot { width: 12px; height: 12px; padding: 0; border: none; border-radius: 50%; background: #d9d9d9; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.dbk-dot.is-active { background: #f05a2d; transform: scale(1.15); }

@media (max-width: 991.98px) { .dbk-carousel-prev { left: 4px; } .dbk-carousel-next { right: 4px; } }

/* ── Карточка (структура .box-info-modern из kinder-lux, цвета — бренд) ── */
.box-info-modern { position: relative; text-align: center; color: #212529; }
.box-info-modern::before {
  position: absolute; content: ''; top: 0; right: 0; bottom: -15px; left: 0;
  opacity: 0; visibility: hidden; border-radius: 10px;
  box-shadow: 0 8px 22px 0 rgba(0, 0, 0, 0.14);
  transition: all .25s ease; pointer-events: none;
}
.box-info-modern-figure { display: block; padding: 15px; border: 1px solid #e1e1e1; border-radius: 10px; overflow: hidden; }
.box-info-modern-figure img { width: 100%; border-radius: 6px; transform: none; will-change: transform; transition: all .25s ease; }
.box-info-modern-title { font-family: 'Nunito', sans-serif; font-weight: 800; color: #212529; }
.box-info-modern-title a { color: inherit; text-decoration: none; }
.box-info-modern-text { max-width: 330px; margin-left: auto; margin-right: auto; color: #6b7075; }
.box-info-modern-link {
  position: relative; display: inline-block; padding: 12px 22px;
  font-family: 'Nunito', sans-serif; font-size: 14px; line-height: 1.2;
  font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; transition: transform .25s ease, color .25s ease-in-out;
}
.box-info-modern-link, .box-info-modern-link:focus, .box-info-modern-link:active { color: #f05a2d; }
.box-info-modern-link:hover { color: #d64a1f; }
.box-info-modern-link::before {
  position: absolute; content: ''; top: 50%; left: 50%;
  width: calc(100% - 44px); height: 80%;
  border: 2px solid transparent; border-bottom-color: inherit;
  transform: translate3d(-50%, -50%, 0);
  transition: width .25s ease, height .25s ease;
}
* + .box-info-modern-title { margin-top: 22px; }
* + .box-info-modern-text { margin-top: 10px; }
* + .box-info-modern-link { margin-top: 8px; }

/* Hover-эффекты (в оригинале под .desktop; включаем для всех устройств) */
.box-info-modern:hover::before { top: -15px; right: -15px; bottom: -55px; left: -15px; visibility: visible; opacity: 1; }
.box-info-modern:hover .box-info-modern-figure { border-color: transparent; }
.box-info-modern:hover .box-info-modern-figure img { transform: scale(1.08); }
.box-info-modern:hover .box-info-modern-link { transform: translate3d(0, 10px, 0); color: #f05a2d; }
.box-info-modern:hover .box-info-modern-link:hover { color: #d64a1f; }
.box-info-modern:hover .box-info-modern-link::before {
  width: 100%; height: 100%; border-color: inherit;
  transition: border-color .3s ease-in-out, width .25s ease, height .25s ease;
}
