/* =========================================================
   DETOX-БАННЕР: переливающийся градиент, декоративные круги,
   пульсирующие плашки. Раскладка плашек — утилитами Bootstrap.
   ========================================================= */

   .detox-banner {
       /* Адаптированный градиент: используем цвета из новой палитры,
          сохраняя 4 точки для бесшовной и плавной работы анимации gradientFlow */
       background: linear-gradient(135deg, #FF9F44, #ee5a24, #c0392b, #ee5a24);
       background-size: 300% 300%;
       animation: gradientFlow 12s ease infinite;

       /* ФИКС SPACING: вертикальные отступы баннера живут здесь, а не в
          Bootstrap-утилитах py-4 py-md-5 (24px/48px) и не в мобильном
          медиа-запросе ниже (там было своё padding-block: 2rem — третье
          значение). Теперь ритм тот же, что у .camp-section:
          3rem на десктопе, 2rem на мобильном. */
       padding-block: var(--camp-section-y);
   }

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Декоративные круги. Элементы абсолютно симметричны, поэтому прежняя
   анимация slowSpin (rotate + scale) визуально давала лишь дыхание масштаба
   и впустую грузила композитор — заменена на лёгкий дрейф. */
.detox-banner::before,
.detox-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.detox-banner::before {
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, .08);
    animation: detoxDrift 18s ease-in-out infinite;
}

.detox-banner::after {
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, .05);
    animation: detoxDrift 22s ease-in-out infinite reverse;
}

@keyframes detoxDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

/* Контент выше декоративных кругов */
.detox-content-wrapper {
    position: relative;
    z-index: 2;
}

.detox-title {
    font-size: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}

.detox-title span {
    font-size: 1.2rem;
    text-transform: none;   /* в Bootstrap нет утилиты text-none */
    opacity: .9;
}

.detox-description {
    max-width: 44rem;
    font-size: 1.05rem;
    opacity: .95;
}

/* ---- Плашки-фичи ---- */
.detox-feature-item {
    background: rgba(255, 255, 255, .95);
    color: #333;
    font-size: .9rem;
    padding: .6rem 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
    animation: pillGlow 3s ease-in-out infinite;
}

/* Пульсация вразнобой */
.detox-feature-item:nth-child(2) { animation-delay: .75s; }
.detox-feature-item:nth-child(3) { animation-delay: 1.5s; }
.detox-feature-item:nth-child(4) { animation-delay: 2.25s; }

@keyframes pillGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, .10), 0 0 0 0 rgba(255, 255, 255, .40); }
    50%      { box-shadow: 0 8px 20px rgba(0, 0, 0, .15), 0 0 15px 2px rgba(255, 255, 255, .20); }
}

.detox-feature-item:hover {
    background: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .20);
    animation-play-state: paused;
}

/* Мерцание иконок */
.detox-feature-item i {
    font-size: 1.1rem;
    animation: iconShimmer 2.5s ease-in-out infinite;
}

@keyframes iconShimmer {
    0%, 100% { filter: drop-shadow(0 0 2px currentColor); opacity: .85; }
    50%      { filter: drop-shadow(0 0 8px currentColor); opacity: 1; }
}

/* Цвета иконок — из общей палитры токенов */
/* Цвета иконок — адаптированы под новую палитру */
.detox-feature-item .fa-mobile-slash { color: var(--camp-danger); }
.detox-feature-item .fa-users        { color: var(--camp-blue); }
.detox-feature-item .fa-clock        { color: #ee5a24; } /* Был var(--camp-orange-dark) */
.detox-feature-item .fa-wifi-slash   { color: var(--camp-muted); }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 767.98px) {
    .detox-banner {
        /* ФИКС SPACING: единый мобильный ритм вместе с .camp-section
           (было 2rem здесь против 1.5rem/3rem от py-4 py-md-5 в разметке). */
        padding-block: var(--camp-section-y-sm);
    }

    .detox-title {
        font-size: 1.6rem;
    }

    .detox-title span {
        font-size: 1rem;
    }

    .detox-description {
        font-size: .95rem;
    }

    .detox-feature-item {
        font-size: .85rem;
        padding: .5rem 1rem;
    }
}
