/* ===== СТИЛИ ДЛЯ СЕКЦИИ АБОНЕМЕНТОВ (УПРОЩЕННЫЕ) ===== */

/* Контейнер для горизонтального скролла */
.subscriptions-scroll-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.subscriptions-scroll {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 2rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-aqua-primary) rgba(255, 255, 255, 0.1);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.subscriptions-scroll::-webkit-scrollbar {
    height: 8px;
}

.subscriptions-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.subscriptions-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, var(--color-red-accent), var(--color-aqua-accent));
    border-radius: 4px;
}

/* Карточка абонемента - УПРОЩЕННАЯ */
.subscription-card {
    width: 320px; /* Уже для лучшего отображения */
    height: 420px; /* Ниже, так как убрали кнопку */
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 20px;
    z-index: -1;
}

.subscription-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 2px var(--color-aqua-primary),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Верхняя часть с названием */
.subscription-header {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.subscription-name {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.name-line-1 {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.name-line-2 {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    color: white;
    font-weight: 800;
    margin: 0.3rem 0;
    position: relative;
    display: inline-block;
    padding: 0 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.name-line-2::before,
.name-line-2::after {
    content: '';
    color: var(--color-aqua-primary);
    font-size: 1.6rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    opacity: 0.7;
}

.name-line-2::before {
    left: -0.6rem;
}

.name-line-2::after {
    right: -0.6rem;
}

.name-line-3 {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.3rem;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Список услуг/условий - УЛУЧШЕННЫЙ */
.subscription-features {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    text-align: left;
    overflow-y: auto;
    max-height: 180px; /* Уменьшили высоту */
    padding-right: 5px;
}

.subscription-features::-webkit-scrollbar {
    width: 4px;
}

.subscription-features::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.subscription-features::-webkit-scrollbar-thumb {
    background: var(--color-aqua-primary);
    border-radius: 2px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feature-icon {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.feature-text {
    flex-grow: 1;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.feature-text strong {
    display: block;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-details {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Список видов занятий */
.workout-types-list {
    margin-top: 4px;
    padding-left: 0;
    list-style: none;
}

.workout-types-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 3px;
    padding-left: 16px;
    position: relative;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.workout-types-list li::before {
    content: '•';
    color: var(--color-aqua-primary);
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 0;
    text-shadow: 0 1px 2px rgba(28, 150, 166, 0.3);
}

/* Разделитель */
.subscription-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0.5rem 0 1.5rem;
    flex-shrink: 0;
}

/* Нижняя часть с ценой и сроком - УЛУЧШЕННАЯ */
.subscription-footer {
    flex-shrink: 0;
    text-align: center;
}

.subscription-price-block {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.subscription-price {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.2rem;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.price-label {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.subscription-duration-block {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0; /* Убрали нижний отступ */
}

.subscription-duration {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    color: var(--color-aqua-primary);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.duration-label {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Убрали кнопку выбора */

/* Активная/рекомендуемая карточка - УПРОЩЕННАЯ */
.subscription-card.recommended {
    transform: translateY(-5px);
    border-color: var(--color-aqua-primary);
    box-shadow:
        0 0 0 2px var(--color-aqua-primary),
        0 12px 24px rgba(28, 150, 166, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.subscription-card.recommended::before {
    opacity: 0.2;
}

/* УБРАЛИ красную надпись "рекомендуем" */
.subscription-card.recommended::after {
    display: none; /* Убираем красную ленту */
}

/* Декоративный элемент в углу */
.subscription-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-aqua-primary), transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.subscription-card:hover::after {
    opacity: 0.15;
}

/* Кнопки навигации для абонементов */
.subscriptions-scroll-container .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-aqua-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.subscriptions-scroll-container:hover .scroll-btn {
    opacity: 0.9;
}

.subscriptions-scroll-container .scroll-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--color-red-accent);
}

.subscriptions-scroll-container .scroll-btn.scroll-left {
    left: 0;
}

.subscriptions-scroll-container .scroll-btn.scroll-right {
    right: 0;
}

/* Индикатор прокрутки для абонементов */
.subscriptions-scroll-hint {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ АБОНЕМЕНТОВ ===== */

@media (max-width: 1200px) {
    .subscriptions-scroll-container {
        padding: 0 40px;
    }

    .subscription-card {
        width: 300px;
        height: 400px;
        padding: 1.8rem;
    }

    .name-line-2 {
        font-size: 1.4rem;
    }

    .subscription-price {
        font-size: 2rem;
    }

    .subscription-duration {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .subscriptions-scroll-container {
        padding: 0 30px;
    }

    .subscription-card {
        width: 280px;
        height: 380px;
        padding: 1.6rem;
    }

    .name-line-2 {
        font-size: 1.3rem;
    }

    .subscription-price {
        font-size: 1.9rem;
    }

    .subscription-duration {
        font-size: 1.4rem;
    }

    .feature-text strong {
        font-size: 0.9rem;
    }

    .feature-details {
        font-size: 0.82rem;
    }

    .workout-types-list li {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .subscriptions-scroll-container {
        padding: 0 20px;
    }

    .subscription-card {
        width: 260px;
        height: 360px;
        padding: 1.4rem;
    }

    .subscription-name {
        min-height: 60px;
    }

    .name-line-1 {
        font-size: 0.9rem;
    }

    .name-line-2 {
        font-size: 1.2rem;
    }

    .name-line-2::before,
    .name-line-2::after {
        font-size: 1.4rem;
    }

    .name-line-3 {
        font-size: 0.85rem;
    }

    .subscription-price {
        font-size: 1.8rem;
    }

    .subscription-duration {
        font-size: 1.3rem;
    }

    .subscription-features {
        max-height: 150px;
    }

    .feature-item {
        gap: 10px;
        margin-bottom: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .feature-icon {
        font-size: 1.1rem;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 576px) {
    .subscriptions-scroll-container {
        padding: 0 15px;
    }

    .subscriptions-scroll {
        gap: 20px;
        padding: 1.5rem 0.5rem;
    }

    .subscription-card {
        width: 240px;
        height: 340px;
        padding: 1.2rem;
    }

    .subscription-name {
        min-height: 55px;
    }

    .name-line-1 {
        font-size: 0.85rem;
    }

    .name-line-2 {
        font-size: 1.1rem;
    }

    .name-line-2::before,
    .name-line-2::after {
        font-size: 1.2rem;
    }

    .name-line-3 {
        font-size: 0.8rem;
    }

    .subscription-price {
        font-size: 1.7rem;
    }

    .subscription-duration {
        font-size: 1.2rem;
    }

    .subscription-features {
        max-height: 140px;
    }

    .feature-item {
        gap: 8px;
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .feature-icon {
        font-size: 1rem;
        width: 26px;
        height: 26px;
    }

    .feature-text strong {
        font-size: 0.85rem;
    }

    .feature-details {
        font-size: 0.78rem;
    }

    .workout-types-list li {
        font-size: 0.76rem;
    }

    .price-label,
    .duration-label {
        font-size: 0.85rem;
    }
}

/* Улучшенный hover эффект для всей секции */
.subscriptions-scroll:active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}