/* =========================================================
   COUPON CAROUSEL SECTION
   ========================================================= */

.coupon-carousel-anchor {
    position: relative;
    top: -120px;
    height: 0;
    visibility: hidden;
}

.coupon-carousel-section {
    padding: 4.8rem 0 4.4rem;
}

.coupon-carousel-section__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.2rem;
    text-align: center;
}

.coupon-carousel-section__badge {
    width: min(100%, 520px);
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
}

.coupon-carousel-section__intro {
    max-width: 920px;
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.15rem, 1.5vw, 1.75rem);
    line-height: 1.28;
}

.coupon-carousel {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 1rem;
}

.coupon-carousel__viewport {
    overflow: hidden;
}

.coupon-carousel__track {
    display: flex;
    gap: 1.4rem;
    will-change: transform;
}

.coupon-carousel__nav {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.coupon-carousel__nav:hover {
    transform: scale(1.08);
    opacity: 0.85;
}

.coupon-carousel__nav i {
    font-size: 1.6rem;
    line-height: 1;
}

.coupon-card {
    flex: 0 0 min(100%, 320px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    padding: 1.5rem 1.2rem 1rem;
    text-align: center;
}

.coupon-card__logo-wrap {
    min-height: 90px;
    margin: 0 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coupon-card__logo {
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.coupon-card__discount {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0.95rem;
    min-height: 88px;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.coupon-card__discount span {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.coupon-card__discount small {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.05;
}

.coupon-card__text,
.coupon-card__meta,
.coupon-card__link,
.coupon-card__legal {
    margin: 0 0 0.85rem;
}

.coupon-card__text,
.coupon-card__meta,
.coupon-card__link {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.28;
}

.coupon-card__link a,
.coupon-card__meta a {
    color: var(--color-primary);
    font-weight: 600;
}

.coupon-card__legal {
    margin-bottom: 0;
    color: #6e6e6e;
    font-size: 0.78rem;
    line-height: 1.25;
}

.coupon-carousel-section__actions {
    display: flex;
    justify-content: center;
    margin-top: 1.8rem;
}

/* -------------------------
   TABLET
   ------------------------- */

@media (max-width: 1100px) {
    .coupon-carousel-section {
        padding: 4rem 0 3.6rem;
    }

    .coupon-carousel {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 0.7rem;
    }

    .coupon-card {
        flex-basis: min(100%, 290px);
    }

    .coupon-carousel-section__intro {
        font-size: 1.2rem;
        line-height: 1.35;
    }
}

/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 700px) {
    .coupon-carousel-anchor {
        top: -90px;
    }

    .coupon-carousel-section {
        padding: 3.6rem 0 3rem;
    }

    .coupon-carousel-section__head {
        margin-bottom: 1.6rem;
    }

    .coupon-carousel-section__badge {
        width: 100%;
    }

    .coupon-carousel-section__intro {
        font-size: 1rem;
        line-height: 1.4;
    }

    .coupon-carousel {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 0.45rem;
    }

    .coupon-carousel__nav {
        width: 40px;
        height: 40px;
    }

    .coupon-carousel__nav i {
        font-size: 1.15rem;
    }

    .coupon-card {
        flex-basis: 240px;
        padding: 1rem 0.85rem 0.9rem;
    }

    .coupon-card__logo {
        max-width: 170px;
        max-height: 72px;
    }

    .coupon-card__discount {
        min-height: 78px;
        padding: 0.85rem 1rem;
    }

    .coupon-card__discount span {
        font-size: 1.3rem;
    }

    .coupon-card__discount small {
        font-size: 0.9rem;
    }
}


.coupon-carousel__viewport {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

@media (max-width: 1100px) {
  .coupon-carousel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .coupon-carousel__nav {
    display: none;
  }
}