/* ==========================================================================
   ЭКРАН 8: ВЫПОЛНЕННЫЕ ПРОЕКТЫ (Стиль Сергея Лыпки — КЕЙСЫ)
   ========================================================================== */

.screen-cases {
    padding: 80px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .screen-cases {
        padding: 48px 0;
    }
}

/* 1. Заголовок секции по стандарту user_rules */
.cases__header {
    max-width: 860px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.cases__title {
    font-size: 36px;
    font-weight: 850;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cases__title-highlight {
    color: #2CC54E;
}

.cases__subtitle {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 500;
}

/* 2. Сетка карточек объектов (2 колонки) */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1140px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .cases__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 3. Карточка кейса */
.case-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* 4. Фото-слайдер внутри карточки */
.case-card__slider {
    position: relative;
    width: 100%;
    height: 270px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #1f2937;
}

@media (max-width: 576px) {
    .case-card__slider {
        height: 220px;
    }
}

.case-card__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.case-card__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.case-card__slide.active {
    opacity: 1;
    visibility: visible;
}

.case-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стрелки навигации слайдера (как у Лыпки) */
.case-card__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(44, 197, 78, 0.9);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.case-card__arrow:hover {
    background: #25a842;
    transform: translateY(-50%) scale(1.08);
}

.case-card__arrow--prev {
    left: 12px;
}

.case-card__arrow--next {
    right: 12px;
}

/* Точки пагинации снизу */
.case-card__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.case-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}

.case-card__dot.active {
    background: #2CC54E;
    width: 22px;
    border-radius: 10px;
}

/* 5. Текстовый блок карточки */
.case-card__body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-card__title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.case-card__title-green {
    color: #2CC54E;
}

.case-card__desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Плашка результата */
.case-card__result {
    background: #f0fdf4;
    border-left: 4px solid #2CC54E;
    padding: 12px 16px;
    border-radius: 0 12px 12px 0;
    font-size: 13.5px;
    color: #166534;
    line-height: 1.5;
    margin-bottom: 20px;
}

.case-card__result strong {
    color: #14532d;
    font-weight: 700;
}

/* 6. Подвал карточки: Цены и CTA-кнопка */
.case-card__footer {
    margin-top: auto;
}

/* Блок сравнения цен (как на скрине Лыпки) */
.case-card__prices-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.case-card__price-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.case-card__price-our {
    font-size: 16px;
    font-weight: 800;
    color: #2CC54E;
}

.case-card__price-competitor {
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
}

/* Кнопка-пилюля */
.btn--case-pill {
    width: 100%;
    background-color: #2CC54E;
    color: #ffffff;
    border-radius: 50px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(44, 197, 78, 0.35);
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn--case-pill:hover {
    background-color: #25a842;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 197, 78, 0.45);
}

.btn--case-pill:active {
    transform: translateY(0);
}
