@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Bebas+Neue&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Beth+Ellen&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

@font-face {
    font-family: "Redtowns";
    src: url("../fonts/Redtowns.ttf");
}

@font-face {
    font-family: "Bebas-Neue";
    src: url("../fonts/bebas-neue-bold.otf");
}

@font-face {
    font-family: "Bebas-Light";
    src: url();
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background-color: black;
    color: white;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    background-color: black;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.8);
    /* z-index: 1000; */
    margin-bottom: 0 !important;
}

.u-header {
    padding: 14px 20px;
    margin-bottom: 0px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    background-color: black;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.8);
    z-index: 1000;
    /* border-bottom: 1px solid #5B5B5B; */
}

.u-header a {
    flex-grow: 1;
}

.header-btn {
    text-align: right;
}

.plan-modal-container {
    display: flex;
    justify-content: end;
    padding: 0 26px;
    padding-bottom: 14px;
}

/* FAQ section */
.faq-header {
    display: flex;
    align-items: baseline;
    max-width: 600px;
}

.faq-line {
    width: calc(100% + 40px);
    margin-left: -20px;
    height: 1px;
    background-color: #212223;
}

.question-marks {
    font-family: "Raleway", sans-serif;
    font-size: 24px;
    color: #9ea4a4;
    font-weight: 600;
}

.faq-section {
    background-color: #131314;
    margin-top: 70px;
    margin-bottom: 76px;
    padding-bottom: 25px;
}

.faq-container {
    margin: 0 24px;
    color: white;
}

.faq-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 14px 0;
}

.faq-item {
    margin-top: 24px;
    text-align: left;
}

.faq-question {
    /* margin-right: 30px; */
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: white;
    word-wrap: break-word;
}

.faq-question-text {
    flex-grow: 1;
}

.toggle-button {
    width: 47px;
    height: 47px;
    min-width: 47px;
    min-height: 47px;
    border-radius: 50%;
    background: none;
    border: 1px solid #555556;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.line {
    position: absolute;
    background-color: #555556;
    transition: transform 0.3s;
}

.horizontal {
    width: 21px;
    height: 1px;
}

.vertical {
    width: 1px;
    height: 21px;
}

.toggle-button.active {
    transform: rotate(180deg);
}

.toggle-button.active .vertical {
    transform: scaleY(0);
}

.faq-answer {
    margin-top: 4px;
    margin-right: 85px;
    color: #9ea4a4;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Review Form */
.review-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 90vh;
    max-height: 97vh;
    border-top-left-radius: 21px;
    border-top-right-radius: 21px;

    /* Тёмный фон + размытие */
    background: rgb(0 0 0 / 71%);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    transition: bottom 0.3s ease;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .review-sheet {
        height: 85vh;
        max-height: 85vh;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .review-sheet {
        height: 80vh;
        max-height: 80vh;
        /* Убираем скругления на очень маленьких экранах */
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .review-header {
        margin-top: 15px;
    }

    .review-body {
        margin-left: 15px;
        margin-right: 15px;
    }
}

.review-sheet.active {
    bottom: 0;
}

.review-content {
    height: 100%;
    overflow-y: auto;
    /* padding: 20px; */
    /* Улучшенная прокрутка на мобильных */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Предотвращаем выход за границы */
    box-sizing: border-box;
}

.review-header {
    margin-top: 22px;
    position: relative;
    text-align: center;
}

.review-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 17px;
    font-weight: 600;
}

.review-close-btn {
    position: absolute;
    right: 22px;
    top: 0;
    cursor: pointer;
}

.review-line {
    margin-top: 17px;
    border: 1px solid rgb(140 139 139 / 26%);
}

.review-body {
    margin-top: 23px;
    margin-left: 20px;
    margin-right: 20px;
}

.review-course-container {
    display: flex;
    flex-direction: column;
}

.review-course-container p {
    color: #919395;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
}

.review-user {
    margin-top: 26px;
}

.review-user input {
    all: unset;
    margin-top: 7px;
    width: 100%;
    box-sizing: border-box;
    background-color: black;
    border: none;
    padding: 22px;
    border-radius: 21px;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.rating-container {
    margin-top: 17px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.stars i {
    font-size: 32px;
    color: #ffffff;
    /* border: 1px solid white; */
    border-radius: 5px;
    padding: 2px;
    /* margin: 0 5px; */
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.stars i.ph-star {
    color: #ffffff;
}

/* Стиль для активной звезды */
.stars i.ph-fill {
    color: #1dfff9;
}

.stars i.filled {
    color: #1dfff9;
    border-color: #1dfff9;
}

.rate-btn {
    width: 100%;
    margin-top: 117px;
    padding: 14px;
    font-size: 17px;
    font-weight: bold;
    color: white;
    background-color: #515253;
    border: none;
    border-radius: 12px;
    cursor: not-allowed;
    transition: background-color 0.2s;
}

.rate-btn.active {
    background-color: #1dfff9;
    color: black;
    cursor: pointer;
}


.chanel-name a {
    color: white;
}

.per_month {
    display: inline-block;
    padding-left: 6px;
    font-size: 14px;
    color: white;
    font-weight: 300;
    line-height: 1;
}

/* Кнопка активации фиксированная */
.activate-magic-btn {
    padding: 8px 15px;
    background-color: black;
    padding-bottom: 38px;
}

.activate-special-btn {
    padding: 8px 15px;
    background-color: black;
    padding-bottom: 38px;
}

.activate-sticky {
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}


/* Добавляем отступ для контента при использовании sticky */
.course-container {
    padding-bottom: 20px;
}

/* Мобильная поддержка */
@media (max-width: 768px) {

    .activate-sticky,
    .activate-fixed-fallback {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4) !important;
    }

    .course-container {
        padding-bottom: 46px;
    }
}

.activate-status {
    display: flex;
    align-items: center;
    gap: 1px;
}

.activate-main {
    margin-top: -7px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.activate-price {
    font-size: 14px;
    font-weight: 400;
}

.additional-courses {
    font-size: 10px;
    text-decoration: underline;
    line-height: 1.2;
    font-weight: 500;
    margin-top: 3px;
}

.activate-course-btn {
    padding: 15px 18px;
    background-color: black;
    padding-bottom: 38px;
}

.activate-course-btn {
    padding: 15px 18px;
    background-color: black;
    padding-bottom: 38px;
}

.activate-btn {
    padding: 14px 37px;
    text-align: center;
    border-radius: 15px;
    background: linear-gradient(90deg, #0072ca 0%, #b002e3 48%, #ff3360 100%);
    display: block;
    color: white;
}

.start-learn-btn-special {
    font-weight: 600;
    font-size: 16px;
    padding: 14px 37px;
    text-align: center;
    border-radius: 15px;
    background: #23cc73;
    display: block;
    color: white;
}

.start-learn-btn-magic {
    font-weight: 600;
    font-size: 16px;
    padding: 14px 37px;
    text-align: center;
    border-radius: 15px;
    background: #487ef7;
    display: block;
}

.activate-btn-head {
    font-size: 17px;
    font-weight: 600;
}


.activate-btn-subtitle {
    font-size: 11px;
}

.activate-btn-special {
    padding: 14px 37px;
    text-align: center;
    border-radius: 15px;
    background: linear-gradient(90deg, #1dfff9, #2bff8e);
    display: block;
}

.additional-module {
    display: none;
}

.plan-right {
    cursor: pointer;
}

.chanel-name a {
    color: white !important;
}


/* Кастомные элементы управления видео */
.course-video {
    position: relative;
    width: 100%;
}

/* Стили для постера видео */
.course-video video[poster] {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

.course-video .ap-video-player {
    border-radius: 0 !important;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.course-video img {
    width: 100% !important;
    margin-top: 30px;
}

.custom-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    /* transition: opacity 0.3s ease, visibility 0.3s ease; */
}

.custom-video-overlay.hide {
    opacity: 0;
    visibility: hidden;
    position: relative;
}

.custom-pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 11;
    pointer-events: none;
}

.custom-video-buttons {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 100px;
    border: 1px solid #1DFFF9;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: all;
}

.custom-play-button {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    background-image: url('../img/play-icon.svg');
    background-position: center;
    background-repeat: no-repeat;
}

.custom-play-button:hover {
    opacity: 1;
}

.custom-pause-button {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.custom-pause-button:hover {
    opacity: 1;
}

.custom-video-label {
    display: block;
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: all;
}

.course-info-container {
    margin: 20px 16px;
}

.created-info {
    margin-top: 21px;
    font-size: 15px;
    font-weight: 500;
    color: #c2c3c4;
}

.additional-info {
    margin-top: 9px;
    font-size: 14px;
    color: #c2c3c4;
    display: flex;
    gap: 7px;
}

.subs-magic {
    border: 1px solid #048df7;
}

.gradient-special {
    font-family: "Raleway", serif;
    background: linear-gradient(113.34deg, #2bff8f 12.85%, #00e5df 88.58%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 16px;
    font-weight: 800;
}

.gradient-magic {
    font-family: "Raleway", serif;
    background: linear-gradient(135deg, #048df7 10%, #cf5ef8 75%, #f24269 97%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 16px;
    font-weight: 800;
}

.left {
    align-items: center;
    display: flex;
    gap: 2px;
}

.right {
    letter-spacing: -0.7px;
    font-size: 14px;
    font-weight: 500;
}

.status {
    margin-left: 8px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-magic {
    margin-left: 8px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.subs-container {
    position: relative;
    margin-top: 41px;
    margin-left: 17px;
    margin-right: 17px;
}

.subs-btn {
    margin-top: 2px;
}

.link-btn {
    background-color: white;
    color: black;
    font-size: 16px;
    font-weight: 600;
    display: block;
    text-align: center;
    border-radius: 11px;
    padding: 14px;

}

.gradient-border {
    background: linear-gradient(90deg, #a0f0e0, #2bff8f);
    padding: 1px;
    border-radius: 11px;
    display: block;
}

.gradient-border>.content {
    text-align: center;
    background: black;
    padding: 10px 16px;
    border-radius: 11px;
}

.gradient-border-magic {
    background: #1c9cff;
    padding: 1px;
    border-radius: 11px;
    display: block;
}

.gradient-border-magic>.content {
    text-align: center;
    background: black;
    padding: 10px 16px;
    border-radius: 11px;
}

.pv-container {
    z-index: 99;
    right: 8px;
    top: 10px;
    position: absolute;
    width: fit-content;
    background-color: white;
    font-size: 17px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 17px;
    color: black;
}

.btn-text {
    color: #2afe99;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.btn-text-magic {
    color: #ff4fa8;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.add-info {
    font-weight: 500;
    font-size: 9px;
    color: white;
}

/* Skills*/

.skills-container {
    margin: 51px 14px 0px 14px;
}

.stroke-gray {
    background: linear-gradient(-180deg, #8e8e97, #2e2e31);
    border-radius: 11px;
    padding: 1px;
}

.skill-content {
    border-radius: 10px;
    background-color: black;
    padding: 18px 12px;
    padding-bottom: 27px;
}

.skill-title {
    font-size: 19px;
    font-weight: 600;
    color: white;
}

.skill {
    margin-left: 8px;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 400;
    color: #ced0d1;
}

.skill:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.description-container {
    margin: 33px 14px 0px 14px;
}

.description-title {
    font-size: 19px;
    font-weight: 600;
    color: white;
}

.description {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1.2;
    margin-top: 11px;
}

.description img {
    width: 15px;
}

.requirements-container {
    margin: 50px 14px 0px 14px;
}

.requirements-title {
    font-size: 19px;
    font-weight: 600;
}

.requirements-line {
    border: 0.5px solid #ffc107;
    margin-top: 10px;
}

.requirement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 17px;
    font-weight: 400;
    color: #c2c3c4;
    line-height: 1.2;
    margin-top: 12px;
}

.mark {
    color: #ffc107;
    font-weight: 500;
    font-size: 16px;
    margin-left: 4px;
    background-color: black;
    /* margin-top: 12px; */
}

/* Plan container */
.plan-container {
    margin: 50px 14px 0px 14px;
}

.plan-title {
    font-size: 19px;
    font-weight: 600;
    color: white;
}

.plan-subtitle {
    font-size: 15px;
    line-height: 1.2;
    margin-top: 6px;
    font-weight: 500;
    color: #c2c3c4;
}

.plan-line {
    border: 0.25px solid #2e2e31;
    margin-top: 9px;
}

.module {
    color: #c2c3c4;
    font-size: 14px;
    font-weight: 500;
}

.plan-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.plan-lesson {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.lesson-number {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    margin-left: 8px;
}

.lesson-name {
    font-size: 12px;
    font-weight: 400;
    color: white;
}

.lesson-subtitle {
    font-size: 11px;
    color: #c2c3c4;
    line-height: 1.2;
}

.lesson-bottom {
    color: #00c8c2;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
}

.additional-desc-container {
    margin: 60px 14px 0px 14px;
    padding: 15px 12px;
    background-color: #121214;
    border-radius: 11px;
    padding-bottom: 22px;
}

.additional-desc-title {
    font-size: 19px;
    font-weight: 600;
    color: white;
}

.additional-desc-subtitle {
    margin-top: 3px;
    font-size: 14px;
    color: white;
    font-weight: 400;
}

.logo-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-container img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.logo-container span {
    font-size: 14px;
    font-weight: 400;
}

.additional-desc {
    color: #c2c3c4;
    font-size: 17px;
    font-weight: 400;
    margin-top: 16px;
    line-height: 1.2;
    overflow: hidden;
    white-space: pre-line;
    transition: max-height 0.3s ease;
}

.show-more {
    color: #00c8c2;
    line-height: 1.36;
    font-size: 14px;
    font-weight: 700;
    margin-top: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 17px;
}


.price {
    font-size: 16px;
    font-weight: 600;
}

.start-btn {
    margin-top: 15px;
    display: block;
    padding: 14px;
    text-align: center;
    font-size: 16px;
    color: white;
    font-weight: 600;
    background-color: #487ef7;
    border-radius: 11px;
}

.start-btn.special {
    background-color: #23cc73 !important;
}

.start-btn.magic {
    background-color: #487ef7;
}

.end-btn {
    margin-top: 15px;
    display: block;
    padding: 14px;
    text-align: center;
    font-size: 16px;
    color: white;
    font-weight: 600;
    border: 1px solid white;
    background-color: black;
    border-radius: 11px;
}

.repeat-btn {
    margin-top: 15px;
    display: block;
    padding: 14px;
    text-align: center;
    font-size: 16px;
    color: white;
    font-weight: 600;
    background-color: #23cc73;
    border-radius: 11px;
}

.ended-course {
    margin-top: 15px;
    display: block;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: white;
    font-weight: 400;
    border: 1px solid #8f8f97;
    background-color: black;
    border-radius: 11px;
    color: #cacaca;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.skills-title {
    font-size: 19px;
}
