/* ============================================
   SECTION OFFERS - Актуальные предложения
   ============================================ */

/* ============================================
   DESKTOP
   ============================================ */
.offers-section {
    padding: 70px 0 80px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.offer-card {
    display: block;
}

.offer-image {
    position: relative;
    aspect-ratio: 32 / 35;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.offer-image::before,
.offer-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.offer-image::before {
    top: 30%;
    background: linear-gradient(178deg, rgba(28, 36, 114, 0) 31%, rgba(28, 36, 114, 1) 97%);
    opacity: 1;
}

.offer-image::after {
    top: 30%;
    background: linear-gradient(178deg, rgba(49, 62, 195, 0) 31%, rgba(49, 62, 195, 1) 97%);
    opacity: 0;
}

.offer-card:hover .offer-image::before,
.offer-card:focus-visible .offer-image::before {
    opacity: 0;
}

.offer-card:hover .offer-image::after,
.offer-card:focus-visible .offer-image::after {
    opacity: 1;
}

.offer-badge {
    position: absolute;
    bottom: 75px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.3;
    padding: 5px 15px;
    z-index: 2;
}

.offer-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-white);
    font-size: 10px;
    width: 10px;
    height: 10px;
    z-index: 2;
}

.offer-title {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin: 0;
    z-index: 2;
}

/* ============================================
   RESPONSIVE - 1440px
   ============================================ */
@media (max-width: 1440px) {
    .offers-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

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

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

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .offers-section {
        padding: 70px 0 82px;
    }

    .offers-section .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Заголовок секции - выравнивание по левому краю */
    .offers-section .section-header {
        text-align: left;
        margin-bottom: 20px;
    }

    .offers-section .section-title {
        font-size: 28px;
        line-height: 1.1;
        letter-spacing: -0.02em;
        margin-bottom: 15px;
    }

    .offers-section .section-subtitle {
        font-size: 14px;
        line-height: 1.3;
        letter-spacing: -0.02em;
        color: rgba(32, 32, 32, 0.9);
        margin-bottom: 20px;
    }

    /* Карточки - вертикальный список */
    .offers-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .offer-card {
        width: 100%;
    }

    .offer-image {
        aspect-ratio: auto;
        height: 160px;
        border-radius: 0;
    }

    /* Градиент снизу */
    .offer-image::before {
        top: 30%;
        background: linear-gradient(178deg, rgba(28, 36, 114, 0) 31%, rgba(28, 36, 114, 1) 97%);
    }

    .offer-image::after {
        top: 0;
        background: linear-gradient(178deg, rgba(28, 36, 114, 0) 31%, rgba(28, 36, 114, 1) 97%);
    }

    /* Стрелка в правом верхнем углу */
    .offer-arrow {
        top: 15px;
        right: 15px;
        font-size: 10px;
        width: 10px;
        height: 10px;
    }

    /* Badge с ценой/скидкой */
    .offer-badge {
        position: absolute;
        top: auto;
        bottom: 54px;
        left: 15px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(20px);
        color: var(--color-white);
        font-family: 'Open Sans', sans-serif;
        font-size: 12px;
        line-height: 1.3;
        padding: 5px 12px;
        border-radius: 0;
    }

    /* Название предложения */
    .offer-title {
        font-family: var(--font-heading);
        font-size: 16px;
        line-height: 1.1;
        letter-spacing: -0.02em;
        bottom: 15px;
        left: 15px;
        right: auto;
        max-width: 200px;
    }

    /* Кнопка "Смотреть все акции" */
    .offers-section .section-action {
        text-align: left !important;
        margin-top: 22px !important;
    }

    .offers-section .section-action .btn {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 8px 20px;
        font-family: 'Open Sans', sans-serif;
        font-size: 12px;
        line-height: 1.3;
        border: 1px solid #202020;
        border-radius: 0;
        background: transparent;
        color: #202020;
        width: auto;
    }

    .offers-section .section-action .btn .btn-arrow {
        font-family: 'Inter', sans-serif;
        font-weight: 300;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    /* Mobile cards hover states */
    .offer-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

@media (max-width: 576px) {
    .offer-image {
        height: 160px;
    }

    .offer-title {
        font-size: 16px;
    }
}
