/* Страница курса (yoge-shell): уроки в виде карточек «блог» */
.course-yoge {
    color: #181a17;
    font-size: 1rem;
    line-height: 1.6;
}

.course-yoge__strip {
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(68, 140, 116, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.course-yoge__price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #448C74;
}

.course-yoge__price--note {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #2f5e4e;
}

.course-yoge__price--muted {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(24, 26, 23, 0.72);
}

.course-yoge__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.course-yoge__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.course-yoge__btn--primary {
    background: #448C74;
    color: #fff;
}

.course-yoge__btn--primary:hover {
    background: #3d836b;
    color: #fff;
    text-decoration: none;
}

.course-yoge__btn--outline {
    background: #fff;
    color: #448C74;
    border: 2px solid #448C74;
}

.course-yoge__btn--outline:hover {
    background: #f0f4f1;
    color: #448C74;
    text-decoration: none;
}

/* Блок уроков — как «Latest posts» */
.course-lessons-yoge {
    margin-bottom: 2.5rem;
}

.course-lessons-yoge__head {
    margin-bottom: 1.25rem;
}

.course-lessons-yoge__pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #181a17;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #181a17;
}

.course-lessons-yoge__rule {
    height: 1px;
    background: #181a17;
    opacity: 0.2;
    margin: 0.65rem 0 0.85rem;
    max-width: 100%;
}

.course-lessons-yoge__head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.course-lessons-yoge__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0;
    color: #181a17;
    letter-spacing: -0.02em;
}

.course-lessons-yoge__nav {
    display: flex;
    gap: 0.35rem;
}

.course-lessons-yoge__nav button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #181a17;
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: #181a17;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s;
}

.course-lessons-yoge__nav button:hover:not(:disabled) {
    background: #448C74;
    color: #fff;
    border-color: #448C74;
}

.course-lessons-yoge__nav button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.course-lessons-yoge__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.course-lessons-yoge__track::-webkit-scrollbar {
    height: 6px;
}

.course-lessons-yoge__track::-webkit-scrollbar-thumb {
    background: rgba(68, 140, 116, 0.25);
    border-radius: 999px;
}

.clesson-card {
    flex: 0 0 min(100%, 340px);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(68, 140, 116, 0.08);
    max-width: 340px;
}

@media (min-width: 768px) {
    .clesson-card {
        flex: 0 0 300px;
    }
}

@media (min-width: 1100px) {
    .clesson-card {
        flex: 0 0 calc((100% - 2.5rem) / 3);
        max-width: none;
    }

    .course-lessons-yoge__track {
        overflow-x: visible;
        flex-wrap: wrap;
    }

    .course-lessons-yoge__nav {
        display: none;
    }
}

.clesson-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.clesson-card__media {
    position: relative;
    aspect-ratio: 16 / 11;
    background: #e4ebe6;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.clesson-card__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.clesson-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.clesson-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #181a17;
    pointer-events: none;
}

.clesson-card__fab {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5c466;
    color: #181a17;
    display: grid;
    place-items: center;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background 0.2s;
}

.clesson-card__fab:hover {
    background: #d4b45a;
    color: #181a17;
    transform: scale(1.05);
    text-decoration: none;
}

.clesson-card__body {
    padding: 1rem 1.1rem 1.25rem;
}

.clesson-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #3d836b;
    margin-bottom: 0.5rem;
}

.clesson-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.clesson-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: #181a17;
}

.clesson-card__title a {
    color: inherit;
    text-decoration: none;
}

.clesson-card__title a:hover {
    color: #448C74;
    text-decoration: underline;
}

.course-yoge__card {
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(68, 140, 116, 0.06);
}

.course-yoge__card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.course-yoge-related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.course-yoge-related a {
    color: #448C74;
    font-weight: 600;
}

#lessonVideoModal .modal-body,
#previewModal .modal-body {
    padding: 0;
}

#lessonVideoModal .lesson-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

#lessonVideoModal .lesson-video-wrap iframe,
#lessonVideoModal .lesson-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
