.coupons-section {
    margin-bottom: 35px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.25;
    color: #1a2e35;
}

.section-heading p {
    margin: 0;
    color: #71808a;
    font-size: 14px;
}


/* Сетка */

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}


/* Карточка */

.coupon-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #e3e9e6;
    border-radius: 12px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.coupon-card:hover {
    border-color: #bde8ca;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
    transform: translateY(-1px);
}


/* Верх карточки */

.coupon-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.coupon-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 5px;

    background: #e9f9ee;
    color: #159447;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.coupon-status {
    color: #159447;
    font-size: 12px;
    white-space: nowrap;
}


/* Заголовок */

.coupon-card h3 {
    margin: 0 0 7px;

    color: #1a2e35;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}


/* Условие */

.coupon-condition {
    margin: 0 0 15px;

    color: #687780;

    font-size: 14px;
    line-height: 1.4;
}


/* Код */

.coupon-code-row {
    display: flex;
    align-items: stretch;
    gap: 8px;

    margin-top: auto;
}

.coupon-code-row code {
    flex: 1;
    min-width: 0;

    display: flex;
    align-items: center;

    padding: 9px 11px;

    box-sizing: border-box;

    border: 1px dashed #aebdb4;
    border-radius: 6px;

    background: #f8faf9;

    color: #1a2e35;

    font-family: monospace;
    font-size: 14px;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coupon-copy {
    flex-shrink: 0;

    padding: 9px 12px;

    border: 0;
    border-radius: 6px;

    background: #39d86f;
    color: #10251a;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: background .2s ease;
}

.coupon-copy:hover {
    background: #2fc761;
}


/* Нижняя часть */

.coupon-footer {
    margin-top: 12px;

    color: #8a969c;

    font-size: 12px;
}


/* Показать ещё */

.coupons-more {
    display: block;

    margin: 20px auto 0;
    padding: 10px 22px;

    border: 1px solid #cfdad4;
    border-radius: 7px;

    background: #fff;
    color: #2f4148;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.coupons-more:hover {
    border-color: #39d86f;
    color: #159447;
    background: #f5fcf7;
}
.coupon-copy.copied {
    background: #198754;
    color: #fff;
}

/* Мобильная версия */

@media (max-width: 768px) {

    .coupons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .coupon-card {
        padding: 15px;
    }

    .coupon-card h3 {
        font-size: 17px;
    }

    .coupon-top {
        align-items: flex-start;
    }

    .coupon-status {
        white-space: normal;
        text-align: right;
    }
}





.offer-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:25px;
    margin:0 0 15px;
}

.offer-title{
    flex:1;

    font-size:20px;
    font-weight:700;
    line-height:1.35;
    color:#111;
}

.offer-update{
    display:flex;
    align-items:center;
    gap:10px;

    margin-top:6px;

    font-size:13px;
    color:#666;
}

.offer-update-tipe{
    width:8px;
    height:8px;

    flex-shrink:0;

    border-radius:50%;
    background:#22c55e;

    animation:pulse 2s infinite;
}


/* ==========================================================
   SORT
========================================================== */

.sort-buttons{
    display:flex;
    align-items:center;
    gap:8px;

    flex-wrap:wrap;
    justify-content:flex-end;
}

.sort-btn{

    padding:8px 14px;

    border:1px solid #e5e7eb;
    border-radius:8px;

    background:#fff;

    font-size:13px;
    font-weight:500;

    color:#333;

    cursor:pointer;

    transition:.2s;
}

.sort-btn:hover{

    background:#f7f7f7;
}

.sort-btn.active{

    background:#22c55e;
    color:#fff;
    border-color:#22c55e;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px){


.offer-list { margin: 10px auto; background: #f8fafc; 
flex-direction: column; gap: 15px; padding: 0px;  }

	
.offer-head{ flex-direction:column; align-items:stretch;  gap:10px; }
.offer-title{ font-size:18px; }
.offer-update{ margin-top:5px;  font-size:12px;}
.sort-buttons{  justify-content:flex-start;}
.sort-btn{ flex:1 1 calc(50% - 4px);  min-width:145px; text-align:center;}

}




/* CARD */ 
.offer-card {  
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px; margin: 0 auto 20px ;
  padding: 15px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: 0.2s ease;
}

/* hover эффект (важно для UX и CTR) */
.card:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* LEFT */
.offer-card_left { 
  display: flex;
  align-items: center;
  gap: 15px;   
  min-width: 280px;  
}

.offer-card_logo {
  width: 180px;
  object-fit: contain;
  display: block; 
  border-radius: 8px;
}
    .offer-card_logo img {border-radius: 4px;
    }


/* META */
.offer-card_meta{  
  display: flex;
  flex-direction: column;
  gap: 4px; min-width: 200px;
}

.offer-card_title{
  font-weight: 600;
  font-size: 16px;
  color: #111;
  text-decoration: none;
}

.offer-card_rating{
  font-size: 13px;
  color: #666;
}




/* CENTER */.offer-card-center{
    min-width:200px;
    flex:1;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.offer-card-items{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:28px;

    margin-bottom:8px;
}

.offer-card-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.offer-card-label{
    font-size:12px;
    color:#888;
    line-height:1.3;
}

.offer-card-value{
    margin-top:3px;
    font-size:15px;
    font-weight:600;
    color:#111;
    line-height:1.3;
}

 



/* RIGHT */
.card__right{  
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 200px;
}

/* BUTTONS */
.btn{
  padding: 8px 25px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s ease;
}


.offer-links{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    margin-top:0px;
    gap:5px;   font-weight: 600;  font-size: 13px;
}

.offer-links a:first-child{
    text-align:left;    color: #22c55e; 
}

.offer-links a:last-child{
    text-align:right;   color: #111;
}

.offer-dot{
    display:none;
}

.btn--primary{
  background: #22c55e;
  color: #fff;
}

 

.offer-dot{
    display:none;
}
.rating-value small {
    font-weight: 400;
    color: #777;
} 


@media (max-width: 768px) {

.offer-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 15px;   }
.offer-card_left { display: contents; }
.offer-card_meta { display: contents; }

/* Логотип */
.offer-card_logo { grid-column: 1 / -1; display: flex; width: 100%; justify-content: center; margin: 0 auto 8px; }
.offer-card_logo img { max-width: 80%; border-radius: 5px; object-fit: contain;   }

/* Название */
.offer-card_title { grid-column: 1 / -1; text-align: center; margin-bottom: 12px; color:#22c55e; }

    /* Общая структура трёх показателей */
    .offer-card_rating,
    .offer-card-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-width: 0;
    }

    /* Рейтинг */
    .offer-card_rating {
        grid-column: 1;
    }

    .rating-value,
    .offer-card-value {
        font-size: 17px;
        line-height: 1.3;
        font-weight: 700;
        color: #111;
    }

    .rating-reviews,
    .offer-card-label {
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.3;
        color: #777;
    }

    /* Кешбек */
    .offer-card-item:nth-child(1) {
        grid-column: 2;
    }

    /* Зарахування */
    .offer-card-item:nth-child(2) {
        grid-column: 3;
    }

    /* Кнопки */
    .card__right {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 5px;
    }

    .card__right > .btn--primary {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
    }

    .offer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 5px;
    }

    .offer-links a {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

}

