/*.section-welcome{*/
    /*background: url("../images/section-logo/welcome.png") no-repeat center;*/
    /*background-size: cover;*/
    /*height: 100vh;*/
/*}*/
.headerwel{
    margin-top: -40px;
}
.headerwelcome{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
/* Кнопка — стекло с зеркальным бликом */
.authglass-button {
    position: relative;
    padding: 15px 48px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: Raleway-500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.37),
            inset 0 2px 6px rgba(255, 255, 255, 0.1),
            inset 0 -2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* Зеркальный блик (псевдоэлемент) */
.authglass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

/* Анимация блика при наведении */
.authglass-button:hover::before {
    left: 120%;
}

/* Лёгкое свечение при наведении */
.authglass-button:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.45),
            inset 0 2px 8px rgba(255, 255, 255, 0.15),
            inset 0 -2px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.authglass-button:active {
    transform: translateY(1px);
}

.groupsocial{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    row-gap: 7px;
    margin-top: 15vh;
}
.titlewelcome{
    font-family: ZonaPro-ExtraBold;
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    padding-top: 10px;
}
.zagwelcome{
    font-family: Raleway-400;
    font-size: 1.3em;
    color: #ffffff;
    text-align: center;
}

.gogo{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6vh;
}
.gogobtn{
    position: relative;
    border-radius: 40px;
    border: 1px solid #FFDD97;
    padding: 15px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #22204D;
    background: #FFDD97;
    font-family: ZonaPro-Bold;
    overflow: hidden;
}
/* Зеркальный блик (псевдоэлемент) */
.gogobtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(34, 32, 77, 0.1),
            transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
/* Анимация блика при наведении */
.gogobtn:hover::before {
    left: 120%;
}

/* Лёгкое свечение при наведении */
.gogobtn:hover {
    box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.45),
            inset 0 2px 8px rgba(255, 255, 255, 0.15),
            inset 0 -2px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Основная кнопка */
.round-button {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.37),
            inset 0 2px 6px rgba(255, 255, 255, 0.1),
            inset 0 -2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}


.round-button:active::before {
    background: #f0f0f0;
}

/* === ФОНОВОЕ ВИДЕО === */
.section-welcome {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.section-welcome .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* ТЁМНЫЙ СЛОЙ */
.section-welcome .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: block;
}

/* Поверх всего */
.section-welcome > *:not(.bg-video):not(.overlay) {
    position: relative;
    z-index: 2;
}

.textinst {
    color: #ffffff;
    font-family: ZonaPro-SemiBold;
    font-size: 1.1em;
    padding-top: 5px;
}
.txtggg{
    color: #ffffff;
    font-size: 0.7em;
    font-family: Raleway-300;
}

/* === ТВОИ СТИЛИ (оставил как есть) === */

.anicont-fullscreen { width:100%; overflow:hidden; position:relative; margin-top:10vh; }
.scroll-track {
    display:flex;
    gap:20px;
    white-space:nowrap;
    /* animation добавим динамически из JS */
    will-change: transform;
}
.anibox {
    min-width:250px;
    height:140px;
    padding:20px;
    background: rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display:flex;
    flex-direction:column;
    justify-content:center;
    flex-shrink:0;
    color:#fff;
    /*box-shadow:*/
            /*0 8px 32px rgba(0,0,0,0.37),*/
            /*inset 0 2px 6px rgba(255,255,255,0.1),*/
            /*inset 0 -2px 6px rgba(0,0,0,0.2);*/
}

/* keyframes использует CSS-переменную --firstWidth, которую выставляет JS */
@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--firstWidth))); }
}

/* опционально: пауза при наведении */
.anicont-fullscreen:hover .scroll-track { animation-play-state: paused; }



/* --- ДЕСКТОП: Sidebar --- */
.lesson-wrapper { margin-bottom: 20px; }

@media (min-width: 992px) {
    .lesson-sidebar {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    .lesson-sidebar h5 { margin-bottom: 10px; font-size: 16px; font-weight: bold; }
    .lesson-sidebar .lesson-link {
        display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none;
        margin-bottom: 5px; background: #EFF1F6;
    }
    .lesson-sidebar .lesson-link:hover { border: 2px solid #F1A200; }
    .lesson-sidebar .lesson-link.active { background: linear-gradient(90deg, #b57b04 0%, #F1A200 100%);
        color: #fff; font-weight: bold; }
    .lesson-sidebar .lesson-link.locked { cursor: not-allowed;}
}

/* --- МОБИЛЬНЫЙ: Активный урок + Bottom Sheet --- */
@media (max-width: 991px) {
    .mobile-lesson-trigger {
        display: flex; align-items: center; justify-content: space-between;
        background: #E6E5EE; padding: 12px 15px; border-radius: 8px;
        cursor: pointer; margin-bottom: 15px; font-weight: 500;
    }
    .mobile-lesson-trigger .icon { font-size: 18px; }

    /* Bottom Sheet */
    .bottom-sheet {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: #E6E5EE;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        transform: translateY(100%); transition: transform 0.3s ease;
        z-index: 1050; max-height: 80vh; overflow: hidden;
    }
    .bottom-sheet.active { transform: translateY(0); }
    .bottom-sheet-header {
        padding: 20px 15px 5px 15px; text-align: center; border-bottom: 1px solid #eee;
        position: relative;
    }
    .bottom-sheet-header::before {
        content: ''; position: absolute; top: 8px; left: 50%;
        width: 40px; height: 4px; background: #ddd; border-radius: 2px;
        transform: translateX(-50%);
    }
    .bottom-sheet-body {
        padding: 15px; max-height: 60vh; overflow-y: auto;
    }
    .bottom-sheet .lesson-link {
        display: flex; align-items: center; gap: 10px;
        padding: 12px; border-radius: 8px; text-decoration: none;
        margin-bottom: 8px; transition: 0.3s; background: #EFF1F6;
    }
    .bottom-sheet .lesson-link.active {
        background: linear-gradient(90deg, #22204D 0%, #4F4AB3 100%); color: #fff; font-weight: bold;
    }
    .bottom-sheet .lesson-link.locked {
        color: #999; opacity: 0.7;
    }
    .bottom-sheet .lesson-link img { width: 20px; height: 20px; }
}
/* Крестик X слева */
.bottom-sheet-close {
    position: absolute; right: 15px; top: 61%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #666; cursor: pointer; z-index: 10;
}
.bottom-sheet-close:hover { background: #e0e0e0; }
.notpros { font-size: 12px; color: #deb333; margin-top: 4px; }
.yespros { font-size: 12px; color: #0ade36; margin-top: 4px; }

.lesson-submission{
    background: #17162E;
    padding: 20px;
    border-radius: 20px;
}
.heighttextarea{
    height: 100px;
}
.submission-header{
    margin-bottom: 10px;
}
.submission-header span{
    color: #ffffff;
    font-family: ZonaPro-SemiBold;
    font-size: 1.1em;
    padding-bottom: 10px;
}
.tapjiberildi span{
    color: #ffffff;
    font-family: ZonaPro-SemiBold;
    font-size: 1.1em;
}
.btntapjiberu{
    background: #ffffff;
    border-radius: 12px;
    height: 50px;
    color: #22204D;
    font-family: Raleway-600;
}
.btnkaitajiberu{
    background: #ffffff;
    border-radius: 12px;
    height: 50px;
    color: #22204D;
    font-family: Raleway-600;
    margin-top: 10px;
}
.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #e0e0e0;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-file-upload:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(108, 92, 231, 0.6);
    transform: translateY(-1px);
}

.custom-file-upload i {
    font-size: 20px;
    color: #6c5ce7;
}

#file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-weight: 500;
}