/* === SUPER OFFER SECTION STYLES === */
/* === With Yellow Accents === */

.super-offer-section {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5D6 50%, #FFF0C2 100%);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.super-offer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
            var(--color-accent),
            var(--color-accent-light),
            var(--color-accent-dark),
            var(--color-accent));
}

.super-offer-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-accent-dark),
            var(--color-accent),
            var(--color-accent-light));
}

.super-offer-container {
    position: relative;
    z-index: 2;
}

.super-offer-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-base);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;

    /* Анимация для вашего скрипта */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.super-offer-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.super-offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent-dark));
}

.super-offer-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 3px var(--color-accent);
}

/* Внутренняя структура */
.super-offer-content {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    align-items: center;
    min-height: 400px;
}

/* Левая часть - изображение */
.super-offer-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.super-offer-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--color-gray-light);
}

.super-offer-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dark));
}

.super-offer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all var(--transition-slow);
}

.super-offer-card:hover .super-offer-photo {
    transform: scale(1.05);
}

.super-offer-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.super-offer-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="superGrid" width="15" height="15" patternUnits="userSpaceOnUse"><path d="M 15 0 L 0 0 0 15" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23superGrid)"/></svg>');
}

.placeholder-icon {
    font-size: var(--text-5xl);
    color: var(--color-white);
    z-index: 2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

/* Правая часть - текст */
.super-offer-text {
    padding: var(--space-8);
    position: relative;
}

.super-offer-name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
    padding-left: var(--space-5);
    position: relative;
}

.super-offer-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

/* Новый заголовок "Супер предложение" в стиле .word-comfort */
.super-offer-title {
    display: inline-block;
    padding: 18px 32px; /* Увеличил паддинги */
    color: var(--color-white);
    font-weight: var(--font-bold);
    font-size: var(--text-base); /* Увеличил размер шрифта */
    text-transform: uppercase;
    letter-spacing: 1.2px; /* Увеличил межбуквенный интервал */
    border-radius: var(--radius-lg); /* Увеличил радиус */
    box-shadow: var(--shadow-xl); /* Увеличил тень */
    white-space: nowrap;
    transition: all var(--transition-base);
    border: 2px solid transparent; /* Увеличил бордер */
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FFB800 0%, #E6A600 100%);
    margin-bottom: var(--space-6);
    font-family: var(--font-heading);
    line-height: 1.2;
    /* Убрал transform: rotate */
}

.super-offer-title:hover {
    transform: translateY(-8px); /* Изменил ховер-эффект */
    box-shadow: 
        0 20px 40px -8px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.super-offer-subheader {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-accent-dark);
    margin-bottom: var(--space-6);
    line-height: 1.4;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBEF 100%);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-accent);
    border-right: 4px solid var(--color-accent-light);
}

.super-offer-description {
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

.super-offer-description p {
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
    position: relative;
    padding-left: var(--space-5);
}

.super-offer-description p:last-child {
    margin-bottom: 0;
}

/* Убираем старый бейдж */
.super-offer-badge {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }

    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }

    100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
}

.super-offer-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 80px solid var(--color-accent-light);
    border-left: 80px solid transparent;
    opacity: 0.3;
    z-index: 1;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .super-offer-content {
        grid-template-columns: 40% 60%;
        min-height: 350px;
    }

    .super-offer-image {
        min-height: 350px;
    }

    .super-offer-name {
        font-size: var(--text-xl);
    }

    .super-offer-title {
        font-size: var(--text-sm); /* Увеличил для планшетов */
        padding: 16px 28px; /* Увеличил для планшетов */
    }

    .super-offer-subheader {
        font-size: var(--text-base);
    }
}

@media (max-width: 768px) {
    .super-offer-section {
        padding: var(--space-16) 0;
    }

    .super-offer-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .super-offer-image {
        min-height: 250px;
        order: 1;
    }

    .super-offer-text {
        order: 2;
        padding: var(--space-6);
    }

    .super-offer-image-container::after {
        width: 100%;
        height: 4px;
        top: auto;
        bottom: 0;
        background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    }

    .super-offer-name {
        font-size: var(--text-lg);
        padding-left: var(--space-4);
    }

    .super-offer-title {
        font-size: var(--text-sm);
        padding: 14px 24px;
    }

    .super-offer-name::before {
        height: 25px;
    }

    .super-offer-subheader {
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-4);
    }

    .super-offer-description p {
        padding-left: var(--space-4);
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .super-offer-card {
        border-radius: var(--radius-xl);
    }

    .super-offer-text {
        padding: var(--space-5);
    }

    .super-offer-name {
        font-size: var(--text-base);
    }

    .super-offer-title {
        font-size: var(--text-xs);
        padding: 12px 20px;
    }

    .super-offer-subheader {
        font-size: var(--text-xs);
    }

    .super-offer-description p {
        font-size: var(--text-xs);
    }

    .placeholder-icon {
        font-size: var(--text-4xl);
    }
}