/* MOBILE FIRST */
.study-program {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    background:
        radial-gradient(circle at 0% 0%,
        rgba(255,255,255,0.8),
        transparent 50%
        ),
        radial-gradient(circle at 100% 100%,
        rgba(255,255,255,0.5),
        transparent 60%
        ),
        radial-gradient(circle at center,
        rgba(0,0,0,0.04),
        transparent 70%
        ),
        linear-gradient(
            180deg,
            #ffd0e7 0%,
            #ffb8dc 100%
        );
    overflow: hidden;
}

.study-program::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='300' viewBox='0 0 400 300' xmlns='http://www.w3.org/2000/svg'%3E\
%3Ctext x='20' y='80' font-size='28' fill='%239b2281' fill-opacity='0.2'%3E한국어%3C/text%3E\
%3Ctext x='220' y='140' font-size='24' fill='%239b2281' fill-opacity='0.2'%3E학습%3C/text%3E\
%3Ctext x='100' y='240' font-size='26' fill='%239b2281' fill-opacity='0.2'%3E문법%3C/text%3E\
%3Ctext x='300' y='60' font-size='22' fill='%239b2281' fill-opacity='0.2'%3E단어%3C/text%3E\
%3Ctext x='260' y='260' font-size='20' fill='%239b2281' fill-opacity='0.2'%3E읽기%3C/text%3E\
%3C/svg%3E");
    background-size: 400px 300px;
    pointer-events: none;
}

/* Заголовок */
.program-title {
    text-align: center;
    color: #202020;
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.2
}

/* Верхние карточки */
.program-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    min-height: 180px;
}

.info-card > * {
    position: relative;
    z-index: 1;
}


.info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(
        rgba(255,255,255,0.4) 1px,
        transparent 1px
    );
    background-size: 20px 20px;
    opacity: 0.4;
}

.info-value {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-text {
    font-size: 18px;
    font-weight: 700;
}

.info-text-2 {
    font-size: 18px;
    color: #ffffff;
}

.info-text span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: .9;
}

/* Цвета */
.white {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    background: linear-gradient(135deg, #d68cd7, #8c468f);
}

.red {
    background: linear-gradient(135deg, #e37fb2, #9b2281);
}

/* SVG Дорога */
.course-road-svg {
    position: relative;
    margin-top: 50px;
}

.course-road-svg svg {
    width: 100%;
    height: 70px;
}

.road-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.road-item {
    position: absolute;
    text-align: center;
    font-weight: 600;
    transform: scale(0.8);
}

.info-value-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.road-item-img {
    width: 36px;
    display: block;
    margin: 6px auto 0;
}

.road-item-img-1 {
    width: 100px;
    height: auto;
}

.road-item-img-2 {
    width: 60px;
    height: auto;
}

.study-icon-img {
    width: 48px;
    display: block;
    margin: 6px auto 0;
}

.road-label {
    background: #fff;
    color: #3a2b6d;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: inline-block;
    position: relative;
    margin-bottom: 6px;
}

.road-label::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--arrow-color);
}

/* Позиции шагов */
.step-0 {
    left: 0;
    top: 0;
}

.step-1 {
    left: 10%;
    top: -10px;
}

.step-2 {
    left: 24%;
    top: -10px;
}

.step-3 {
    left: 42%;
    top: -16px;
}

.step-4 {
    left: 60%;
    top: -16px;
}

.step-5 {
    left: 80%;
    top: -10px;
}

.step-6 {
    left: 90%;
    top: -48px;
}

/* Этапы */
.stage-card {
    position: relative;
}

/* Бейдж */
.stage-badge {
    position: absolute;
    z-index: 3;
    top: -10px;
    left: -8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    color: #1c1c1c;
}


/* Два блока */
.stage-panels {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

/* Панели */
.panel {
    background: #f6f4ff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

.panel-head {
    padding: 16px 22px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.panel-head.purple {
    background: linear-gradient(135deg, #9b7bff, #6a4cff);
    background: linear-gradient(135deg, #339188, #164d47);
}

.panel-head.orange {
    background: linear-gradient(135deg, #ffb347, #ff7a00);
}

.panel-body {
    padding: 24px;
}

.panel-body.center {
    text-align: center;
}

/* Что вы изучаете */
.study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.study-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.study-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b7bff, #6a4cff);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* Ваш результат */
.result-main {
    margin: 0 0 22px;
    font-weight: 700;
    color: #2d245c;
}

.result-circles {
    display: flex;
    gap: 16px;
}

.result-circle {
    background: #fff;
    border-radius: 20px;
    padding: 16px 10px;
    flex: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.result-circle strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.result-circle span {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.result-circle.purple strong {
    color: #6a4cff;
}

.result-circle.blue strong {
    color: #3f8cff;
}

.result-circle.green strong {
    color: #34c759;
}

.cta-btn {
    background-color: #ff97cc;
    border: 1px solid #fff;
    color: #151515;
    padding: 18px 42px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* Слайдер */
.stage-slider {
    position: relative;
}

.stage-slider input {
    display: none;
}

.stage-slider-viewport {
    overflow-x: hidden;
}

.stage-slider-track {
    display: flex;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.stage-slide {
    min-width: 100%;
    padding: 10px 8px;
}

/* DOTS */
.stage-dots-kor {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.15),
        inset 0 0 0 1px rgba(255,255,255,0.15);
    width: fit-content;
    margin: 0;
}

.dot-kor {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
}

/* активный */
.dot-kor.active {
    width: 20px;
    height: 8px;
    border-radius: 10px;

    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);

    box-shadow:
        0 4px 12px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.4);

    transform: scale(1.05);
}

/* === VIDEO BLOCK === */
.stage-video-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
    align-items: center;
}

/* Главная сетка */
.stage-main {
    margin-bottom: 10px;
}

/* Видео */
.video-proof {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* Бейдж */
.video-badge {
    background: #733678;
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
}

/* === ДОСКА === */
.study-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
    background: linear-gradient(135deg, #5b2a7a, #a53cad);
    border-radius: 20px;
    padding: 16px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: auto;
}



/* левая часть */
.board-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    order: 1;
}

/* секции */
.board-section {
    margin-bottom: 18px;
}

/* заголовки */
.board-title {
    font-size: 16px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    line-height: 1.2;
}

/* список */
.board-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}


.board-list li {
    position: relative;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 4px 8px 16px;
    font-size: 14px;
    border: 1px solid #af7fcb;
    line-height: 1.4;
}


.board-list li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 2px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('/assets/images/icons/sakura.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
}

/* результат */
.board-stats {
    display: flex;
    gap: 12px;
}

.board-stat {
    position: relative;
    flex: 1;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 8px 4px 4px 16px;
    border: 1px solid #af7fcb;
    font-size: 14px;
    line-height: 1.4;
}


.board-stat::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 2px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('/assets/images/icons/sakura.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
}

/* === ВИДЕО === */
.board-video {
    display: flex;
    flex-direction: column;
    order: 2;
}

.video-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.video-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* можно менять */
    display: block;
}

.video-preview iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2;
}

.video-preview.active img,
.video-preview.active .play-study-btn {
    display: none;
}

.video-preview.active iframe {
    display: block;
}

/* кнопка */
.play-study-btn {
    position: absolute;
    inset: 0;
}

.play-study-btn::before {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #171717;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 20px;
    z-index: 3;
}


/* разные стили карточек */
.info-card--dark {
    background: linear-gradient(135deg, #432557, #bc2cd1);
    color: #fff;
}

.info-card--red {
    background: linear-gradient(135deg, #a53cad, #c14dca);
    color: #fff;
}

/* главный блок */
.info-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.info-big {
    font-size: 26px;
    font-weight: 700;
}

.info-label {
    font-size: 14px;
    opacity: 0.8;
}

/* подстрока */
.info-sub {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.4;
    text-align: left;
}

.info-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}

.info-metrics-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}

.info-metrics-icon {
    width: 20px;
    height: 20px;
}

.info-metrics div {
    background: rgba(255,255,255,0.08);
    padding: 6px 10px;
    border-radius: 8px;
}

.info-metrics strong {
    margin-right: 4px;
}

.info-card--dark::after,
.info-card--red::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );
    transform: skewX(-20deg);
}

.info-card--dark:hover::after,
.info-card--red:hover::after{
    animation: shine 0.8s;
}

@keyframes shine {
    to {
        left: 130%;
    }
}

.info-head {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 16px;
    font-weight: 600;
}

/* иконка */
.info-head-icon {
    width: 32px;
    height: 32px;
}

.program-header {
    position: relative;
    text-align: center;
    margin-bottom: 10px;
}

/* сама табличка */
.hanging-title {
    display: inline-block;
    position: relative;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    font-weight: 700;
    color: #4b2a5e;
}

.lotus {
    position: absolute;
    top: -60px;
    width: 80px;
    opacity: 0.9;
    animation: float 4s ease-in-out infinite;
    z-index: 3;
}

.lotus-left {
    left: -14px;
}

.lotus-right {
    right: -14px;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}


@keyframes floatRight {
    0% { transform: scaleX(-1) translateY(0); }
    50% { transform: scaleX(-1) translateY(-8px); }
    100% { transform: scaleX(-1) translateY(0); }
}


/*============= Variant 2 SVG */
/* начальное состояние */
.lotus-svg .petals {
    transform-origin: center;
    opacity: 0;
}

/* внешние лепестки */
.lotus-svg .outer {
    animation: openOuter 0.8s ease forwards;
}

/* внутренние с задержкой */
.lotus-svg .inner {
    animation: openInner 0.8s ease 0.3s forwards;
}

/* центр */
.lotus-svg .center {
    opacity: 0;
    animation: centerGlow 0.6s ease 0.6s forwards;
}

/* ключевые кадры */
@keyframes openOuter {
    0% {
        transform: scale(0.3) rotate(-20deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes openInner {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes centerGlow {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* ====================== Mob first ============================= */


.stage-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 2px;
}

.stage-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.15),
        inset 0 0 0 1px rgba(255,255,255,0.4);
    transition: 0.2s;
}



.stage-buttons {
    top: auto;
    bottom: -10px;
}


/* ================ mob first ============= */
.video-content {
    display: none;
}

/* кнопка */
.video-toggle {
    width: 100%;
    padding: 16px 12px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    color: #fff;
    position: relative;
    z-index: 10;
    display: block;
}

/* открыто */
.board-video.open .video-content {
    display: block;
    margin-top: 12px;
}

.course-road-svg {
    transform: rotate(-8deg) translateY(10px);
}

.road-item {
    transform: rotate(8deg) scale(0.7);
}

.board-cta {
    margin-top: 16px;
    margin-bottom: 4px;
    font-size: 14px;
    order: 3;
}

.board-cta .cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
}



/*===========================================*/

.stage-slider-viewport {
    touch-action: pan-y;
}
