/* === Wrapper === */
.practices-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.practices-wrapper h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
}

/* === Filters === */
.practice-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.practice-filter-btn {
    border-radius: 999px;
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    background: #f0f2f5;
    font-weight: 500;
    transition: 0.25s;
}

.practice-filter-btn.active {
    background: #c97100;
    color: #fff;
}

/* === Grid === */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

@media (min-width: 992px) {
    .practices-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* === Card === */
.practice-card {
    position: relative;
 /*   border-radius: 18px;*/
    overflow: hidden;
    color: #fff;
    min-height: 220px;
    background: #000;
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1),
                box-shadow 0.35s cubic-bezier(.22,.61,.36,1);
}

.practice-card a,
.practice-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Background image */
.practice-card-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
}

/* Gradient overlay */
.practice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.15),
        transparent 55%
    );
    z-index: 0;
}

/* Card content */
.practice-card-content {
    position: relative;
    z-index: 1;
    padding: 18px 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.practice-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color:#fff;
}

.practice-desc {
    font-size: 14px;
    opacity: .95;
    margin-bottom: 10px;
    max-height: 3em;
    overflow: hidden;
}

/* Hover scaling */
.practice-card:hover {
    transform: scale(1.06);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
    z-index: 3;
}

/* ===== Locked Premium ===== */

.practice-card--locked .practice-card-thumb {
    filter: blur(3px) brightness(.5);
}

.practice-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 4;
    text-align: center;
    padding: 15px;
}

.practice-premium-label {
    background: rgba(0,0,0,0.65);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
}

.btn-practice-access {
    border-radius: 999px;
    padding: 10px 26px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #ffb300;
}

/* === Modal (premium access prompt) === */

#practice-access-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

#practice-access-modal.is-open {
    display: block;
}

#practice-access-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

#practice-access-modal .modal-inner {
    position: relative;
    max-width: 480px;
    margin: 80px auto 0;
    background: #fff;
    border-radius: 18px;
    padding: 25px 25px 20px;
}

#practice-access-modal .modal-close {
    position: absolute;
    right: 14px;
    top: 10px;
    cursor: pointer;
}

.practice-section {
    margin-bottom: 40px;
}

.practice-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.practice-section-title {
    font-size: 22px;
    font-weight: 700;
}

.practice-section-more {
    font-size: 14px;
    text-decoration: none;
    color: #4f46e5;
}

.practices-subtitle {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 30px;
}


.practice-pagination {
    margin-top: 24px;
    text-align: center;
}

.practice-pagination ul {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-pagination li a,
.practice-pagination li span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    background: #f3f4f6;
    color: #111827;
}

.practice-pagination li .current {
    background: #c97100;
    color: #fff;
}


.practice-hero {
    margin-bottom: 30px;
}

.practice-hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 260px;
    color: #fff;
}

.practice-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.75);
}

.practice-hero-content {
    position: relative;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.practice-hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* плеєр */
.practice-player-section {
    margin-bottom: 40px;
}

.practice-player-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.practice-player-body {
    padding: 18px 24px 10px;
}

.practice-video-wrapper iframe,
.practice-video-wrapper video {
    border-radius: 16px;
    max-width: 100%;
}
