/* 🚀 OFFERS PAGE CSS - СТИЛИ СТРАНИЦЫ АКЦИЙ! */

/* ===== OFFERS CONTENT ===== */
.offers-content {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--accent-color));
    position: relative;
}

.offers-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.offers-content .container {
    position: relative;
    z-index: 2;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-description {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    white-space: nowrap;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== OFFER CARDS ===== */
.offer-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(37, 99, 235, 0.1);
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.offer-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    position: relative;
}

.offer-card.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

/* ===== OFFER CONTENT ===== */
.offer-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gray-900);
    line-height: 1.3;
    margin-top: 4px;
}

.offer-card.featured .offer-title {
    color: var(--white);
}

.offer-description {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
    flex: 1;
}

.offer-card.featured .offer-description {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== OFFER PRICE ===== */
.offer-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 4px;
}

.old-price {
    font-size: var(--text-sm);
    color: var(--gray-700);
    text-decoration: line-through;
    font-weight: 500;
}

.new-price {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-color);
}

.offer-card.featured .new-price {
    color: var(--white);
}

/* ===== OFFER DISCOUNT ===== */
.offer-discount {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: var(--text-lg);
    font-weight: 800;
    text-align: center;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.offer-card.featured .offer-discount {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .offers-content {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 6px;
    }
    
    .section-description {
        font-size: 1.125rem;
        white-space: normal;
        max-width: 100%;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        padding: 0 20px;
    }
    
    .offer-card {
        padding: 16px;
        border-radius: 12px;
        min-height: 200px;
    }
    
    .offer-title {
        font-size: var(--text-lg);
        margin-bottom: 4px;
    }
    
    .offer-description {
        font-size: var(--text-sm);
        margin-bottom: 8px;
    }
    
    .offer-discount {
        margin: 6px 0;
        padding: 4px 10px;
    }
    
    .new-price {
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    .offers-content {
        padding: 20px 0;
    }
    
    .section-header {
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 4px;
    }
    
    .section-description {
        font-size: 0.875rem;
        white-space: normal;
        max-width: 100%;
    }
    
    .offers-grid {
        gap: 16px;
        padding: 0 16px;
    }
    
    .offer-card {
        padding: 14px;
        border-radius: 10px;
        min-height: 180px;
    }
    
    .offer-title {
        font-size: var(--text-base);
    }
    
    .offer-description {
        font-size: var(--text-xs);
    }
    
    .offer-discount {
        margin: 4px 0;
        padding: 3px 8px;
        font-size: var(--text-base);
    }
    
    .new-price {
        font-size: var(--text-lg);
    }
}

/* ===== CREATIVE CONTAINERS ===== */
.creative-containers {
    padding: 60px 0;
    background: var(--white);
}

.creative-containers .container {
    display: flex;
    justify-content: center;
}

.containers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    justify-items: center;
    width: fit-content;
}

.creative-container {
    width: 640px;
    margin: 0 auto;
    background: var(--white);
}

.container-image {
    width: 640px;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: relative;
    margin-bottom: 1px;
}

.container-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.container-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.container-image:hover img {
    transform: scale(1.05);
}

.container-content {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.container-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 1;
}

.container-content p {
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== EMPTY CONTAINER ===== */
.empty-container .container-image {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-container .container-image::before {
    content: 'Место для будущей акции';
    color: #64748b;
    font-size: var(--text-lg);
    font-weight: 500;
    text-align: center;
    opacity: 0.7;
}

.empty-container .container-content {
    display: none;
}

/* ===== RESPONSIVE CONTAINERS ===== */
@media (max-width: 1200px) {
    .containers-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 700px;
    }
    
    .creative-container {
        width: 100%;
        max-width: 640px;
    }
    
    .container-image {
        width: 100%;
        height: 420px; /* Сохраняем пропорцию 640x420 */
    }
}

@media (max-width: 768px) {
    .creative-containers {
        padding: 40px 0;
    }
    
    .containers-grid {
        padding: 0 20px;
    }
    
    .creative-container {
        width: 100%;
        max-width: 100%;
    }
    
    .container-image {
        width: 100%;
        height: auto;
        aspect-ratio: 640 / 420; /* Сохраняем пропорцию 640x420 */
        max-height: 420px;
    }
    
    .container-content {
        padding: 20px;
    }
    
    .container-content p {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .creative-container {
        width: 100%;
    }
    
    .container-image {
        width: 100%;
        height: auto;
        aspect-ratio: 640 / 420; /* Сохраняем пропорцию 640x420 */
    }
    
    .container-content {
        padding: 16px;
    }
    
    .container-content p {
        font-size: var(--text-sm);
    }
}

/* ===== CLEAN DESIGN ===== */

/* ===== ACCESSIBILITY ===== */
.offer-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.cta-btn:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .offers-content {
        background: none;
        padding: 0;
    }
    
    .offer-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
}
