/* Блок "С нами Выгодно" */
.advantages-section {
    background-color: #f8f9fa;
    padding: 80px 40px;
    font-family: 'Rubik', sans-serif;
}

.advantages-container {
    max-width: 100%;
    margin: 0 auto;
}

.advantages-title {
    text-align: center;
    font-size: 68px;
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    color: #333;
    margin-bottom: 60px;
}

.advantages-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.advantages-track {
    display: flex;
    align-items: stretch;
    justify-content: center;
    transition: transform 0.4s ease;
    gap: 30px;
    cursor: grab;
    user-select: none;
}

.advantages-track:active {
    cursor: grabbing;
}

.advantages-track.dragging {
    transition: none;
}

.advantage-slide {
    flex: 0 0 auto;
    width: 280px;
    height: 280px;
    cursor: pointer;
    background: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}


.advantage-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.advantage-slide:hover .advantage-title {
    color: #F97316;
}

.advantage-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 80%;
}

.advantage-tag {
    font-size: 12px;
    font-weight: 600;
    font-style: italic;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.advantage-tag.orange {
    color: #F97316;
    background: rgba(249, 115, 22, 0.1);
}

.advantage-tag.yellow {
    color: #EAB308;
    background: rgba(234, 179, 8, 0.1);
}

.advantage-tag.green {
    color: #22C55E;
    background: rgba(34, 197, 94, 0.1);
}

.advantage-icon {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advantage-icon svg {
    width: 64px;
    height: 64px;
    color: #333;
    stroke: #333;
}

.advantage-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.advantage-title span {
    color: #F97316;
}

.advantage-description {
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

/* Кнопка "Подробнее" */
.advantage-button {
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    color: #666;
    line-height: 1.5;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    margin-top: 15px;
    display: inline-block;
    width: fit-content;
    align-self: center;
}

.advantage-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #F97316;
    bottom: -4px;
    left: 0;
    transform: skewX(-15deg);
    transition: all 0.2s ease-in-out;
    opacity: 0;
}

.advantage-slide:hover .advantage-button::after {
    opacity: 1;
    background: #EA580C;
    height: 3px;
    bottom: -5px;
}


/* Кнопки навигации слайдера */
.advantages-slider-buttons {
    position: absolute;
    top: 50%;
    left: -10px;
    right: -10px;
    transform: translateY(-50%);
    display: none;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Показываем кнопки только когда есть что скроллить */
.advantages-slider-buttons.visible {
    display: flex;
}

.advantages-slider:hover .advantages-slider-buttons.visible {
    opacity: 1;
}

.advantages-slider-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s ease;
    z-index: 10;
}

.advantages-slider-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.advantages-slider-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.advantages-slider-button svg {
    width: 32px;
    height: 32px;
    fill: #333;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .advantage-slide {
        width: 240px;
        height: 240px;
    }

    .advantage-slide:not(:last-child)::after {
        right: -18px;
        font-size: 40px;
    }
}

@media (max-width: 1024px) {
    .advantage-slide {
        width: 220px;
        height: 220px;
    }

    .advantages-track {
        gap: 25px;
    }

    .advantage-slide:not(:last-child)::after {
        right: -16px;
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .advantages-section {
        padding: 40px 20px;
    }

    .advantages-title {
        font-size: 36px;
        margin-top: 0;
        margin-bottom: 40px;
    }

    .advantage-slide {
        width: 220px;
        height: auto;
        min-height: 240px;
        padding: 15px;
        padding-top: 12px;
        justify-content: flex-start;
    }

    /* Теги не абсолютные на планшетах/мобильных */
    .advantage-tags {
        position: static;
        margin-bottom: 10px;
        max-width: 100%;
        justify-content: center;
    }

    .advantage-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .advantage-icon svg {
        width: 48px;
        height: 48px;
    }

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

    .advantage-slide:not(:last-child)::after {
        display: none;
    }

    .advantages-track {
        justify-content: flex-start;
    }

    .advantages-slider-buttons {
        display: none;
    }

    .advantage-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .advantages-title {
        font-size: 28px;
    }

    .advantage-slide {
        width: 200px;
        height: auto;
        min-height: 220px;
        padding: 15px;
        padding-top: 12px;
        justify-content: flex-start;
    }

    /* Теги не абсолютные на мобильных */
    .advantage-tags {
        position: static;
        margin-bottom: 10px;
        max-width: 100%;
        justify-content: center;
    }

    .advantage-tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    .advantage-icon {
        margin-bottom: 8px;
    }

    .advantage-icon svg {
        width: 40px;
        height: 40px;
    }

    .advantage-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .advantage-button {
        font-size: 14px;
        margin-top: 10px;
    }

    .advantages-track {
        gap: 12px;
    }
}
