@import url('https://fonts.googleapis.com/css2?family=Smooch+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    padding: 40px 20px;
}

.bonus-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.bonus-container {
    width: 100%;
    max-width: calc(5 * 210px + 4 * 16px);
    overflow: hidden;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .bonus-container {
        max-width: calc(3 * 210px + 2 * 16px);
    }
}

@media (max-width: 820px) {
    .bonus-container {
        max-width: calc(2 * 210px + 1 * 16px);
    }
}

@media (max-width: 767px) {
    .bonus-container {
        max-width: 220px;
        overflow: hidden;
    }
    
    .bonus-slider {
        gap: 16px;
    }
}

.bonus-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    transition: transform 0.6s cubic-bezier(0.33, 0.66, 0.66, 1);
}

.bonus-slider.dragging {
    cursor: grabbing;
}

.bonus-card {
    position: relative;
    width: 210px;
    height: 90px;
    flex-shrink: 0;
    user-select: none;
}

.bonus-card__body {
    position: absolute;
    top: 7px;
    left: 32px;
    width: 178px;
    height: 76px;
    background: linear-gradient(135deg, #424242 0%, #3a3a3a 50%, #2f2f2f 100%);
    border-radius: 34px;
    z-index: 1;
    border: 2px solid #FFC857;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
    overflow: hidden;
}

.bonus-card__body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bonus-card__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

.bonus-card__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
    position: relative;
}

.bonus-card__type {
    font-size: 17px;
    font-weight: 700;
    font-family: 'Smooch Sans', sans-serif;
    color: #FFC857;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
    width: 108px;
    text-align: center;
    margin: 0 14px 0 56px;
}

.bonus-card__text {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Smooch Sans', sans-serif;
    color: #ffffff;
    line-height: 1.25;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    width: 104px;
    margin: 0 16px 0 58px;
}

.bonus-card__logo {
    position: absolute;
    top: 12.5px;
    left: 12.5px;
    width: 65px;
    height: 65px;
    z-index: 2;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.bonus-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    draggable: false;
}

.bonus-card__frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 90px;
    height: 90px;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(255, 200, 87, 0.3));
}

.bonus-card__frame svg {
    width: 100%;
    height: 100%;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -10px;
    
    width: 44px;
    height: 44px;
    border: none;
    background-color: #FFC857;
    border-radius: 50%;
    cursor: pointer;
    
    display: none;
    align-items: center;
    justify-content: center;
    color: #424242;
    
    transition: all 0.3s cubic-bezier(0.33, 0.66, 0.66, 1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background-color: #FFD580;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

.slider-nav--prev {
    left: -70px;
}

.slider-nav--next {
    right: -70px;
}

/* Показываем стрелки только на десктопе (> 1400px) */
@media (min-width: 1401px) {
    .slider-nav {
        display: flex;
    }
}

.bonus-pagination-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.bonus-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 200, 87, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.bonus-pagination-dot:hover {
    background-color: rgba(255, 200, 87, 0.6);
}

.bonus-pagination-dot.active {
    background-color: #FFC857;
    width: 10px;
    height: 10px;
}