.rp-case-studies {
    padding: 150px 0;
    background: #27272c;
}

.rp-case-studies__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
    align-items: center;
}

.rp-case-studies__label {
    color: #fff;
    font-family: var(--font-aeonik);
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #e0572a;
}

.rp-case-studies__title {
    color: #fff;
    font-family: var(--font-aeonik);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.rp-case-studies__slider {
    height: 540px;
    overflow: hidden;
    background: transparent;
}

.rp-case-studies__slider .swiper-slide {
    height: 100%;
    width: auto;
    background: transparent;
}

.rp-case-studies__card {
    display: block;
    height: 100%;
    aspect-ratio: 1/1.3;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: #3a3a41;
}

.rp-case-studies__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.rp-case-studies__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
}

.rp-case-studies__card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(38, 40, 42, 0) 0%, rgba(14, 17, 20, 0.9) 100%);
}

.rp-case-studies__card-title {
    color: #fff;
    font-family: var(--font-aeonik);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    text-wrap: pretty;
}

.rp-case-studies__card-title-line {
    display: inline;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: left bottom;
    background-repeat: no-repeat;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.rp-case-studies__card-description {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-inter);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 8px 0 0 0;
    text-wrap: pretty;
}

.rp-case-studies__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

.rp-case-studies__progress {
    display: flex;
    width: 200px;
    height: 1px;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.2);
}

.rp-case-studies__progress-bar {
    width: 80px;
    flex-shrink: 0;
    align-self: stretch;
    background: #e0572a;
    transition: transform 0.3s ease;
}

.rp-case-studies__nav {
    display: flex;
    gap: 10px;
}

.rp-case-studies__nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rp-case-studies__nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.rp-case-studies__nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .rp-case-studies {
        padding: 60px 0;
    }

    .rp-case-studies__title {
        font-size: 28px;
    }

    .rp-case-studies__slider {
        height: 400px;
    }

    .rp-case-studies__card-content {
        padding: 16px;
    }

    .rp-case-studies__card-title {
        font-size: 1.25rem;
    }

    .rp-case-studies__card-description {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}
