/* ============================================================
   PROMOTION.CSS - БЛОК "АКЦИЯ"
   Широкая карточка с таймером, промокодом и счётчиком
   ============================================================ */

.promotion-section {
    padding: 30px 0;
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

/* Контейнер — расширенный (1600px) */
.promotion-section .container {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   КАРТОЧКА АКЦИИ
   ============================================================ */

.promotion-card {
    position: relative;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    padding: 32px 30px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.promotion-card:hover {
    border-color: #4a4a4a;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.promotion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2e6cb5 0%, #4a90d9 50%, #d13939 100%);
}

/* ============================================================
   БЕЙДЖ "АКЦИЯ" - ПО ЦЕНТРУ
   ============================================================ */

.promotion-badge-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.promotion-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    background: rgba(209, 57, 57, 0.15);
    border: 1px solid rgba(209, 57, 57, 0.35);
    border-radius: 20px;
    color: #e85050;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.promotion-badge i {
    font-size: 15px;
}

/* ============================================================
   ЦЕНТРАЛЬНАЯ ЧАСТЬ: ЗАГОЛОВОК + ОПИСАНИЕ
   ============================================================ */

.promotion-content {
    text-align: center;
    margin-bottom: 28px;
}

.promotion-title {
    font-size: 28px;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.promotion-description {
    font-size: 16px;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
}

/* ============================================================
   НИЖНЯЯ СТРОКА
   Все элементы одной высоты, выровнены по центру
   ============================================================ */

.promotion-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

/* Общая высота элементов — 56px */
.promotion-code,
.promotion-button,
.promotion-counter {
    height: 56px;
    box-sizing: border-box;
}

/* ===== Промокод ===== */
.promotion-code {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 26px;
    background: rgba(74, 144, 217, 0.08);
    border: 2px dashed rgba(74, 144, 217, 0.45);
    border-radius: 12px;
    color: #4a90d9;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    flex-shrink: 0;
}

.promotion-code:hover {
    background: rgba(74, 144, 217, 0.15);
    border-color: rgba(74, 144, 217, 0.7);
    color: #5a9ee9;
    transform: translateY(-1px);
}

.promotion-code.copied {
    background: rgba(90, 186, 122, 0.1);
    border-color: rgba(90, 186, 122, 0.5);
    color: #5aba7a;
}

.promotion-code i {
    font-size: 16px;
}

/* ===== Таймер ===== */
.promotion-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 68px;
    padding: 8px 10px;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.timer-segment__value {
    font-size: 22px;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.timer-segment__label {
    font-size: 10px;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 600;
}

.timer-separator {
    font-size: 20px;
    color: #4a4a4a;
    font-weight: 700;
    line-height: 1;
    animation: timerBlink 2s ease-in-out infinite;
}

@keyframes timerBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.promotion-timer.urgent .timer-segment__value {
    color: #e85050;
}

.promotion-timer.urgent .timer-segment {
    border-color: rgba(232, 80, 80, 0.35);
}

.promotion-timer.expired .timer-segment__value {
    color: #6a6a6a;
}

/* ============================================================
   КНОПКА "ПОЗВОНИТЬ" — ПОЛУПРОЗРАЧНАЯ
   ============================================================ */

.promotion-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 34px;
    background: rgba(74, 144, 217, 0.18);
    color: #8ac0f0;
    border: 1.5px solid rgba(74, 144, 217, 0.5);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.promotion-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(74, 144, 217, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.promotion-button:hover {
    transform: translateY(-2px);
    background: rgba(74, 144, 217, 0.28);
    border-color: rgba(74, 144, 217, 0.8);
    color: #a8d0f8;
    box-shadow: 0 8px 28px rgba(74, 144, 217, 0.35);
}

.promotion-button:hover::before {
    width: 300px;
    height: 300px;
}

.promotion-button:active {
    transform: translateY(0);
}

.promotion-button i {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.promotion-button span {
    position: relative;
    z-index: 1;
}

@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.promotion-button i.fa-phone-alt {
    animation: phonePulse 2s ease-in-out infinite;
}

/* ============================================================
   СЧЁТЧИК "УЖЕ ВОСПОЛЬЗОВАЛИСЬ" — СИНИЙ
   ============================================================ */

.promotion-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    background: rgba(74, 144, 217, 0.1);
    border: 1px solid rgba(74, 144, 217, 0.35);
    border-radius: 30px;
    color: #6aa9e9;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.promotion-counter i {
    font-size: 15px;
    color: #4a90d9;
}

.promotion-counter strong {
    color: #8ac0f0;
    font-weight: 700;
    font-size: 16px;
}

/* ============================================================
   СОСТОЯНИЕ "АКЦИЯ ЗАВЕРШЕНА"
   ============================================================ */

.promotion-card.expired .promotion-badge {
    background: rgba(106, 106, 106, 0.15);
    border-color: rgba(106, 106, 106, 0.3);
    color: #8a8a8a;
}

.promotion-card.expired .promotion-title {
    color: #8a8a8a;
}

.promotion-card.expired .promotion-button {
    background: rgba(106, 106, 106, 0.15);
    border-color: rgba(106, 106, 106, 0.3);
    color: #8a8a8a;
    box-shadow: none;
}

.promotion-card.expired .promotion-button:hover {
    transform: none;
    background: rgba(106, 106, 106, 0.15);
    border-color: rgba(106, 106, 106, 0.3);
    box-shadow: none;
}

.promotion-card.expired .promotion-button i.fa-phone-alt {
    animation: none;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

/* ===== Планшеты (769-1024) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .promotion-card {
        padding: 28px 24px;
    }
    
    .promotion-title {
        font-size: 24px;
    }
    
    .promotion-footer {
        gap: 14px;
    }
    
    .promotion-code {
        font-size: 15px;
        padding: 0 20px;
        height: 50px;
        letter-spacing: 1.5px;
    }
    
    .promotion-code i {
        font-size: 14px;
    }
    
    .timer-segment {
        min-width: 58px;
        height: 58px;
    }
    
    .timer-segment__value {
        font-size: 19px;
    }
    
    .timer-segment__label {
        font-size: 9px;
    }
    
    .timer-separator {
        font-size: 17px;
    }
    
    .promotion-button {
        height: 50px;
        padding: 0 26px;
        font-size: 15px;
        gap: 10px;
    }
    
    .promotion-button i {
        font-size: 14px;
    }
    
    .promotion-counter {
        height: 50px;
        padding: 0 18px;
        font-size: 14px;
        gap: 8px;
    }
    
    .promotion-counter i {
        font-size: 14px;
    }
    
    .promotion-counter strong {
        font-size: 15px;
    }
}

/* ===== Мобильные (≤768) ===== */
@media (max-width: 768px) {
    .promotion-section {
        padding: 25px 0;
    }
    
    .promotion-section .container {
        padding: 0 16px;
    }
    
    .promotion-card {
        padding: 24px 20px;
        border-radius: 14px;
    }
    
    .promotion-badge-wrap {
        margin-bottom: 16px;
    }
    
    .promotion-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .promotion-badge i {
        font-size: 13px;
    }
    
    .promotion-content {
        margin-bottom: 22px;
    }
    
    .promotion-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .promotion-description {
        font-size: 14px;
        line-height: 1.55;
    }
    
    /* Футер — в две строки */
    .promotion-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    /* Промокод */
    .promotion-code {
        height: 50px;
        font-size: 16px;
        padding: 0 20px;
        letter-spacing: 1.5px;
        justify-content: center;
        gap: 10px;
    }
    
    .promotion-code i {
        font-size: 14px;
    }
    
    /* Таймер */
    .promotion-timer {
        justify-content: center;
        gap: 6px;
    }
    
    .timer-segment {
        min-width: 58px;
        height: 58px;
        border-radius: 10px;
    }
    
    .timer-segment__value {
        font-size: 18px;
    }
    
    .timer-segment__label {
        font-size: 9px;
    }
    
    .timer-separator {
        font-size: 16px;
    }
    
    /* Кнопка на всю ширину */
    .promotion-button {
        height: 54px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    /* Счётчик на всю ширину */
    .promotion-counter {
        height: 48px;
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 0 18px;
    }
    
    .promotion-counter i {
        font-size: 14px;
    }
    
    .promotion-counter strong {
        font-size: 15px;
    }
}

/* ===== Маленькие телефоны (≤480) ===== */
@media (max-width: 480px) {
    .promotion-section {
        padding: 20px 0;
    }
    
    .promotion-section .container {
        padding: 0 12px;
    }
    
    .promotion-card {
        padding: 22px 16px;
        border-radius: 12px;
    }
    
    .promotion-badge {
        font-size: 11px;
        padding: 5px 14px;
        letter-spacing: 1px;
    }
    
    .promotion-badge i {
        font-size: 12px;
    }
    
    .promotion-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .promotion-description {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* Промокод */
    .promotion-code {
        font-size: 14px;
        padding: 0 16px;
        letter-spacing: 1.2px;
        gap: 8px;
        height: 46px;
    }
    
    .promotion-code i {
        font-size: 13px;
    }
    
    /* Таймер */
    .promotion-timer {
        gap: 5px;
    }
    
    .timer-segment {
        min-width: 52px;
        height: 52px;
        border-radius: 8px;
        padding: 6px 8px;
    }
    
    .timer-segment__value {
        font-size: 16px;
    }
    
    .timer-segment__label {
        font-size: 8px;
        margin-top: 3px;
    }
    
    .timer-separator {
        font-size: 14px;
    }
    
    /* Кнопка */
    .promotion-button {
        height: 50px;
        font-size: 15px;
        gap: 10px;
    }
    
    .promotion-button i {
        font-size: 15px;
    }
    
    /* Счётчик */
    .promotion-counter {
        height: 44px;
        font-size: 13px;
        gap: 8px;
        padding: 0 16px;
    }
    
    .promotion-counter i {
        font-size: 13px;
    }
    
    .promotion-counter strong {
        font-size: 14px;
    }
}