/* =============================================
   PROMO SYSTEM — универсальные стили акций
   ============================================= */

/* === ПРОМО-ПОЛОСКА (под хедером) === */
.promo-bar {
    position: sticky;
    top: 0px;
    z-index: 999;
    width: 100%;
    background: linear-gradient(90deg, var(--promo-color-from, #f97316), var(--promo-color-to, #ef4444));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    font-family: 'Nunito', -apple-system, sans-serif;
    box-sizing: border-box;
}

.promo-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 44px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    position: relative;
}

@media (max-width: 768px) {
    .promo-bar__inner {
        padding: 8px 10px 8px 24px;
        gap: 8px;
    }
}

.promo-bar__emoji {
    animation: promo-pulse 2s infinite;
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes promo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.promo-bar__text {
    white-space: nowrap;
}

.promo-bar__timer {
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.22);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-bar__cta {
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 5px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-bar__cta:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
    text-decoration: none;
}

.promo-bar__close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
    font-size: 18px;
    line-height: 1;
    background: none;
    border: none;
    color: #fff;
    padding: 4px;
}

.promo-bar__close:hover { opacity: 1; }

/* === ЯКОРНАЯ ЦЕНА — АКЦИОННЫЙ СТИЛЬ === */
.anchor-price.promo-anchor {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 2px solid var(--promo-color-from, #f97316);
    position: relative;
    overflow: hidden;
}

.anchor-price.promo-anchor::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--promo-color-from, #f97316), var(--promo-color-to, #ef4444));
}

.promo-anchor-title {
    font-weight: 800;
    font-size: 16px;
    color: #9a3412;
    margin-bottom: 6px;
}

.anchor-price.promo-anchor .anchor-item {
    color: #78350f;
    font-weight: 600;
}

.anchor-price.promo-anchor .anchor-sub {
    color: #92400e;
}

/* === КАРТОЧКИ — АКЦИОННЫЕ ЭЛЕМЕНТЫ === */

/* Плашка скидки -23% (обычные карточки) */
.promo-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 0 14px 0 12px;
    z-index: 2;
}

/* Комбинированная плашка Популярный + скидка (для Стандарт) */
.card-top-badges {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    z-index: 2;
}

.card-top-badges .popular-tag {
    background: #0d9668;
    color: #fff;
    padding: 5px 12px 5px 14px;
}

.card-top-badges .popular-tag-discount {
    background: var(--promo-color-to, #ef4444);
    color: #fff;
    padding: 5px 14px 5px 12px;
}

/* Зачёркнутая старая цена */
.pc-old-price {
    font-size: 20px;
    color: #333333;
    text-decoration: line-through;
    font-weight: 700;
    margin-bottom: -2px;
}

/* Акционная цена — красная (включая ₽) */
.price-card-v2.promo-card .pc-price {
    color: #ef4444;
}

.price-card-v2.promo-card .pc-price .pc-currency {
    color: #ef4444;
}

/* Кнопка — оранжевая */
.price-card-v2.promo-card .pc-btn {
    background: var(--promo-color-from, #f97316);
    color: #fff;
    border-color: var(--promo-color-from, #f97316);
}

.price-card-v2.promo-card .pc-btn:hover {
    background: #078d66;
    border-color: #078d66;
}

/* Карточка Стандарт — акция */
.price-card-v2.promo-card.popular .pc-btn {
    background: var(--promo-color-from, #f97316);
    border-color: var(--promo-color-from, #f97316);
}

.price-card-v2.promo-card.popular .pc-btn:hover {
    background: #078d66;
    border-color: #078d66;
}

/* Скрыть обычный бейдж "Популярный" когда акция */
.price-card-v2.promo-card.popular > .pc-popular-badge {
    display: none;
}

/* Скрыть обычный бейдж скидки когда акция */
.price-card-v2.promo-card .pc-discount {
    display: none;
}

/* === МИНИ-ПОЛОСКА на /restoration/ и /animation/ === */
.promo-mini-bar {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #9a3412;
    flex-wrap: wrap;
}

.promo-mini-bar__cta {
    background: #fff;
    border: 1.5px solid var(--promo-color-from, #f97316);
    color: var(--promo-color-from, #f97316);
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.promo-mini-bar__cta:hover {
    background: var(--promo-color-from, #f97316);
    color: #fff;
}

/* === МОБИЛКА === */
@media (max-width: 768px) {
    .promo-bar {
        top: 0px;
        font-size: 12px;
    }

    .promo-bar__emoji {
        font-size: 16px;
    }

    .promo-bar__text-desktop { display: none; }
    .promo-bar__text-mobile { display: inline; }

    .promo-bar__timer {
        font-size: 11px;
        padding: 2px 6px;
    }

    .promo-bar__cta {
        padding: 6px 14px;
        font-size: 13px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .promo-bar__close {
        right: auto;
        left: 4px;
        top: 2px;
        transform: none;
        font-size: 14px;
        opacity: 0.6;
        padding: 2px 6px;
    }

    /* Якорь */
    .promo-anchor-title {
        font-size: 14px;
    }

    /* Плашка скидки */
    .promo-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    /* Комбинированная плашка */
    .card-top-badges {
        font-size: 11px;
    }

    .card-top-badges .popular-tag,
    .card-top-badges .popular-tag-discount {
        padding: 4px 10px;
    }

    /* Старая цена */
    .pc-old-price {
        font-size: 18px;
    }

    /* Мини-полоска */
    .promo-mini-bar {
        font-size: 13px;
        padding: 8px 12px;
        gap: 8px;
    }
}

/* Десктоп — скрыть мобильный текст */
@media (min-width: 769px) {
    .promo-bar__text-mobile { display: none; }
    .promo-bar__text-desktop { display: inline; }
}
