/* Страница скидок - стили в стиле темы candyshop */

.discounts-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Заголовок страницы */
.discounts-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    background: var(--wrap-bg-color);
    border-radius: 25px;
    box-shadow: 0 5px 17px rgba(0,0,0,0.05);
}

.discounts-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--bs-color);
    line-height: 1.2;
}

.discounts-subtitle {
    font-size: 18px;
    color: var(--body-text-color);
    margin: 0;
    opacity: 0.8;
    line-height: 1.5;
}

/* Сетка карточек */
.discounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .discounts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .discounts-title {
        font-size: 32px;
    }
    
    .discounts-page {
        padding: 20px 15px;
    }
}

/* Карточки скидок */
.discount-card {
    background: var(--wrap-bg-color);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 5px 17px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.discount-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.discount-card--primary {
    border-color: var(--bs-color);
}

.discount-card--secondary {
    border-color: var(--ac-color);
}

.discount-card--accent {
    border-color: var(--ac-bg-color);
}

.discount-card--info {
    border-color: var(--bs-color);
    opacity: 0.9;
}

/* Иконка карточки */
.discount-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
    color: #FFF;
}

.discount-card--primary .discount-card__icon {
    background: var(--bs-color);
}

.discount-card--secondary .discount-card__icon {
    background: var(--ac-color);
}

.discount-card--accent .discount-card__icon {
    background: var(--ac-bg-color);
    color: var(--ac-bg-color-font);
}

.discount-card--info .discount-card__icon {
    background: var(--bs-color);
}

/* Заголовок карточки */
.discount-card__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--bs-color);
    line-height: 1.3;
}

/* Описание карточки */
.discount-card__description {
    font-size: 16px;
    color: var(--body-text-color);
    margin: 0 0 25px;
    line-height: 1.5;
    opacity: 0.8;
}

/* Таблица скидок */
.discount-table {
    background: rgba(0,0,0,0.02);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}

.discount-table__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bs-color);
    color: #FFF;
    font-weight: 600;
    padding: 15px 20px;
}

.discount-table__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.2s ease;
}

.discount-table__row:hover {
    background: rgba(0,0,0,0.02);
}

.discount-table__row--highlighted {
    background: var(--ac-bg-color);
    color: var(--ac-bg-color-font);
    font-weight: 600;
}

.discount-table__cell {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--body-text-color);
}

.discount-table__cell:last-child {
    justify-content: flex-end;
}

/* Бейджи скидок */
.discount-badge {
    background: var(--ac-color);
    color: #FFF;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.discount-badge--max {
    background: var(--bs-color);
    font-size: 14px;
    padding: 6px 15px;
}

/* Информационные блоки */
.discount-card__info {
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--body-text-color);
    line-height: 1.4;
}

.discount-card__info i {
    color: var(--bs-color);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Особенности скидок */
.discount-features {
    margin-bottom: 25px;
}

.discount-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--body-text-color);
}

.discount-feature i {
    color: var(--ac-color);
    font-size: 16px;
    flex-shrink: 0;
}

/* Информация о промокодах */
.promo-info {
    margin-bottom: 25px;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--body-text-color);
}

.promo-item i {
    color: var(--ac-bg-color);
    font-size: 16px;
    flex-shrink: 0;
}

/* Важное уведомление */
.discounts-notice {
    background: var(--ac-bg-color);
    color: var(--ac-bg-color-font);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 50px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 5px 17px rgba(0,0,0,0.05);
    border: 2px solid rgba(0,0,0,0.1);
    position: relative;
}

.discounts-notice__icon {
    font-size: 32px;
    color: var(--ac-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.discounts-notice__content h4 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 600;
    color: var(--ac-bg-color-font);
}

.discounts-notice__content p {
    margin: 0 0 10px;
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.discounts-notice__content p:last-child {
    margin-bottom: 0;
}

.discounts-notice__content strong {
    color: var(--ac-color);
}

/* Улучшенный фон для информационной коробки */
.discounts-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    border-radius: 25px;
}

/* Специальные стили для чисел в информационной коробке */
.discounts-notice__content .discount-number {
    display: inline-block;
    background: rgba(255,255,255,0.95);
    color: var(--ac-bg-color-font);
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.2em;
    margin: 0 3px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    border: 2px solid rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.discounts-notice__content .discount-number--highlight {
    background: var(--ac-color);
    color: #000;
    font-weight: 900;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border: 2px solid rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

/* Анимация пульсации для выделенных чисел */
@keyframes pulse {
    0% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Призыв к действию */
.discounts-cta {
    background: linear-gradient(135deg, var(--bs-color) 0%, var(--ac-color) 100%);
    color: #FFF;
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.discounts-cta__content h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.2;
}

.discounts-cta__content p {
    font-size: 18px;
    margin: 0 0 30px;
    opacity: 0.9;
    line-height: 1.5;
}

.discounts-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFF;
    color: var(--bs-color);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.discounts-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--bs-color);
}

.discounts-cta__button i {
    font-size: 18px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .discounts-notice {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .discounts-cta {
        padding: 40px 25px;
    }
    
    .discounts-cta__content h3 {
        font-size: 26px;
    }
    
    .discounts-cta__content p {
        font-size: 16px;
    }
    
    .discount-card {
        padding: 25px;
    }
    
    .discount-card__icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .discount-card__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .discounts-page {
        padding: 15px 10px;
    }
    
    .discounts-header {
        padding: 30px 20px;
    }
    
    .discounts-title {
        font-size: 28px;
    }
    
    .discounts-subtitle {
        font-size: 16px;
    }
    
    .discounts-cta {
        padding: 30px 20px;
    }
    
    .discounts-cta__content h3 {
        font-size: 24px;
    }
    
    .discounts-cta__button {
        padding: 15px 25px;
        font-size: 14px;
    }
}

/* Темная тема - только при наличии класса .dark-theme */
.dark-theme .discount-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.dark-theme .discount-card__title {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.dark-theme .discount-card__description {
    color: #e0e0e0;
    opacity: 0.95;
}

.dark-theme .discount-feature span,
.dark-theme .promo-item span {
    color: #e0e0e0;
    font-weight: 500;
}

.dark-theme .discount-card__info {
    background: rgba(255,255,255,0.08);
    color: #d0d0d0;
}

.dark-theme .discount-card__info span {
    color: #d0d0d0;
}

.dark-theme .discount-table {
    background: rgba(255,255,255,0.08);
}

.dark-theme .discount-table__row {
    border-bottom-color: rgba(255,255,255,0.15);
}

.dark-theme .discount-table__row:hover {
    background: rgba(255,255,255,0.1);
}

.dark-theme .discount-table__cell {
    color: #e0e0e0;
}

.dark-theme .discounts-notice {
    background: var(--ac-bg-color);
    color: var(--ac-bg-color-font);
    border-color: rgba(255,255,255,0.2);
}

.dark-theme .discounts-notice__content h4 {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.dark-theme .discounts-notice__content p {
    color: #e0e0e0;
    font-weight: 500;
}

.dark-theme .discounts-notice__content strong {
    color: #ffffff;
}

/* Специальные стили для чисел в темной теме */
.dark-theme .discounts-notice__content .discount-number {
    background: rgba(255,255,255,0.95);
    color: #000;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.dark-theme .discounts-notice__content .discount-number--highlight {
    background: var(--ac-color);
    color: #000;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Улучшенные стили для заголовка в темной теме */
.dark-theme .discounts-header {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.dark-theme .discounts-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dark-theme .discounts-subtitle {
    color: #d0d0d0;
    opacity: 0.9;
}

/* Улучшенные стили для иконок в темной теме */
.dark-theme .discount-card__icon {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Улучшенные стили для таблицы в темной теме */
.dark-theme .discount-table__header {
    background: var(--bs-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dark-theme .discount-badge {
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.dark-theme .discount-badge--max {
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.discount-card {
    animation: fadeInUp 0.6s ease forwards;
}

.discount-card:nth-child(1) { animation-delay: 0.1s; }
.discount-card:nth-child(2) { animation-delay: 0.2s; }
.discount-card:nth-child(3) { animation-delay: 0.3s; }
.discount-card:nth-child(4) { animation-delay: 0.4s; }

.discounts-notice {
    animation: fadeInUp 0.6s ease 0.5s forwards;
    opacity: 0;
}

.discounts-cta {
    animation: fadeInUp 0.6s ease 0.6s forwards;
    opacity: 0;
}
