.packages {
    display: flex;
    align-items: flex-start;
}

.texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    gap: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.texts p {
    margin: 0;
    color: #a8abac;
    font-weight: 300;
    font-size: 10px;
}

.courses-image-container {
    margin-top: 2px;
}

.main-section {
    margin: 16px 17px 58px;
    position: relative;
}

.main-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.2px;
}

.main-text {
    position: relative;
    margin-top: 13px;
    font-size: 15px;
    font-weight: 400;
    margin-left: 12px;
    margin-right: 12px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.categories-container {
    margin: 0 18px 0;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.31;
    letter-spacing: -0.2px;
}

.show-all {
    color: #44e6e1;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.1px;
}

.categories-scroll-wrapper {
    overflow-x: auto;
    /* Горизонтальный скролл */
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* Скрыть скроллбар в IE */
    scrollbar-width: none;
    /* Скрыть скроллбар в Firefox */
    margin-top: 10px;
}

.categories-scroll-wrapper::-webkit-scrollbar {
    display: none !important;
    /* Скрыть скроллбар в Chrome/Safari */
}

.categories-rows-container {
    display: inline-flex;
    /* Чтобы ширина подстраивалась под контент */
    flex-direction: column;
    /* Строки идут вертикально */
    gap: 8px;
    /* Отступ между строками */
}

.categories-row {
    display: flex;
    gap: 8px;
    padding-bottom: 10px;
}

.category {
    flex: 0 0 auto;
    /* Не сжимать и не растягивать */
    border: 1px solid #f7f9fa;
    border-radius: 22px;
    padding: 10px 25px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.3px;
}

.category-name a {
    color: white;
}

.category-amount {
    font-size: 14px;
    font-weight: 300;
}

.activate-container {
    margin-top: 36px;
    padding: 20px;
    position: relative;
    text-align: center;
    border: 1px solid #6a6f73;
    border-radius: 9px;
    background-image: url(../img/back.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.activate-title {
    font-size: 18px;
    font-weight: 600;
    /* margin-top: 20px; */
}

.activate-text {
    margin-top: 20px;
    font-size: 11px;
    font-weight: 300;
    color: white;
    opacity: 0.73;
}

.stars {
    position: absolute;
    top: 8px;
    left: 27px;
}

.stars-2 {
    position: absolute;
    top: 8px;
    right: 27px;
}

.offers-container {
    margin: 40px 17px 0;
}

.offers-header {
    display: flex;
    gap: 17px;
}

.tab-button {
    font-size: 22px;
    color: #d3d6d8;
    font-weight: 400;
    opacity: 0.75;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 0 6px;
}

.tab-button.active {
    color: #fff;
    font-weight: 600;
    opacity: 1;
    border-bottom: 1px solid #fff;
}

.tab-button:focus {
    outline: none;
}

.courses-container {
    margin-top: 20px;
    /* margin-left: 20px; */
}

.course-header {
    display: flex;
    gap: 18px;
}

.favorite-btn {
    cursor: pointer;
}

.course-img {
    width: 306px;
    border-radius: 10px;
}

.course .course-title {
    margin-top: 4px;
    font-size: 19px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    width: 306px;
}

.course .course-title a,
.course .channel-name a {
    color: white;
}

.course .course-subtitle {
    max-width: 300px;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 300;
    color: #d3d6d8;
    line-height: 1.2;
}

.course .students-amount {
    margin-top: 3px;
    font-size: 13px;
    color: #e9b363;
    font-weight: 300;
    line-height: 1.3;
}

.course .subs-special,
.course .subs-magic {
    width: fit-content;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 4px 15px;
    border-radius: 18px;
    /* margin-top: 6px; */
}

.subs-special {
    border: 1px solid #1dfff9;
}

.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: 20px;
    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: 20px;
    font-weight: 800;
}

.left {
    align-items: center;
    display: flex;
    gap: 1px;
}

.right {
    letter-spacing: -0.7px;
    font-size: 14px;
    font-weight: 500;
}

.course {
    margin-top: 23px;
}

.btn-animated {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 20px;
    width: 14rem;
    overflow: hidden;
    height: 3rem;
    background-size: 300% 300%;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
    transition: 0.5s;
    animation: gradient_301 5s ease infinite;
    border: double 4px transparent;
    background-image:
        linear-gradient(#212121, #212121),
        linear-gradient(137.48deg, #1efffa 10%, #e14fce 36%, #ff3360 75%, #f9270f 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

#container-stars {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
}

strong {
    z-index: 2;
    font-family: 'Poppins' sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 4px rgb(0, 0, 0);
}

#glow {
    position: absolute;
    display: flex;
    width: 12rem;
}

.circle {
    width: 100%;
    height: 30px;
    filter: blur(2rem);
    animation: pulse_3011 4s infinite;
    z-index: -1;
}

.circle:nth-of-type(1) {
    background: rgba(0, 0, 1860 0.936);
}

.circle:nth-of-type(2) {
    background: rgba(0, 0, 1860 0.936);
}

.btn-animated:hover #container-stars {
    z-index: 1;
    background-color: #212121;
}

.btn-animated:hover {
    transform: scale(1.05);
}

.btn-animated:active {
    border: double 4px #fe53bb;
    background-origin: border-box;
    background-clip: content-box, border-box;
    animation: none;
}

.btn-animated:active .circle {
    background: #fe53bb;
}

#stars {
    position: relative;
    background: transparent;
    width: 200rem;
    height: 200rem;
}

#stars::after {
    content: '';
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: animStarRotate 90s linear infinite;
}

#stars::after {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
}

#stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: animStar 60s linear infinite;
}

#stars::before {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes animStar {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-135rem);
    }
}

@keyframes animStarRotate {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0);
    }
}

@keyframes gradient_301 {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse_3011 {
    0% {
        transform: scale(0.75);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.75);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.channels-container {
    margin-top: 18px;
}

.channel {
    border-radius: 13px;
    border: 1px solid #1dfff9;
    padding: 4px;
    margin-top: 21px;
    position: relative;
}

.channel-img img {
    width: 100%;
    border-radius: 10px;
    /* border: 1px solid green; */
}

.channel-header {
    margin: 5px 6px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.channel-name {
    font-size: 17px;
    font-weight: 600;
}

.channel-users {
    display: flex;
    gap: 5px;
    color: #1dfff9;
    font-size: 13px;
    font-weight: 300;
}

.channel-desc {
    margin: 3px 6px;
    font-size: 13px;
    font-weight: 300;
    color: #d3d6d8;
}

.subs-outer {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.channel .subs-outer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    width: 100%;
}

.subs-special-channel,
.subs-magic-channel {
    width: fit-content;
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: 13px;
    /* margin-top: 10px; */
}

.channel-icon {
    position: absolute;
    top: 9px;
    left: 8px;
    color: black;
    background-color: white;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    /* border: 1px solid #1dfff9; */
}

.magic {
    /* border: 1px solid #048df7; */
}

.magic p {
    color: #048df7;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.scribble {
    position: absolute;
    left: -12px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1000;
}

.bottom-modal {
    background-color: #000;
    border-radius: 30px 30px 0 0;
    width: 100%;
    height: fit-content;
    box-shadow: 0 5px 64px 1px rgba(255, 255, 255, 0.2);
    animation: slideUp 0.3s ease-out;
    padding: 21px;
    /* padding-bottom: 100px; */
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.package-header {
    font-size: 26px;
    font-weight: 600;
}

.package-subtitle {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #dad9d9;
}

.package-list {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #000;
    font-family: sans-serif;
}

.package {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #000000;
    border: 1px solid #8a8a8a;
    border-radius: 14px;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    color: #8a8a8a;
    /* justify-content: space-between; */
    cursor: pointer;
}

.package.active {
    background-color: white;
    color: black;
}

.package.active.check {
    background-image: url(../img/Check_round_fill-2.svg);
    background-position: 98% center;
    background-repeat: no-repeat;
}

.package-name {
    display: flex;
    flex-grow: 1;
    font-size: 15px;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    flex-grow: 1;
}

.package-info {
    margin-right: 40px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.package-divider {
    width: 2px;
    height: 23px;
    background-color: currentColor;
    opacity: 0.3;
}

.package.active .package-divider {
    background-color: black;
}

.package-check img {
    width: 20px;
    height: 20px;
}

.package-icons {
    position: absolute;
    left: 9px;
    top: -20%;
}

.all-plans-icon {
    background-color: #d9d9d9;
    border-radius: 7px;
    background-image: url(../img/all-packages.svg);
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    width: 70px;
    height: 18px;
}

.package.active .all-plans-icon {
    background-color: #1dfff9;
}

.package .package-points {
    position: absolute;
    right: 3px;
    bottom: -20%;

    border: solid 1px #8a8a8a;
    color: #8a8a8a;
    border-radius: 13px;
    padding: 1px 7px;
    font-size: 14px;
    font-weight: 600;
    background-color: black;
}

.package.active .package-points {
    border: solid 1px #1dfff9;
    color: white;
}

.rounded-check {
    position: absolute;
    right: 16px;
}

.special-icon {
    position: absolute;
    left: 62px;
    bottom: -20%;
    background-image: url(../img/Group-43029-2.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 70px;
    height: 18px;
}

.package.active .special-icon {
    background-image: url(../img/special-seleted-icon.svg);
}

.choose-btn {
    /* position: absolute; */
    margin-top: 65px;
    /*115*/
    width: 100%;
    background-color: #1dfff9;
    text-align: center;
    padding: 18px 0px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 17px;
    color: black;
}

.special-status {
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
    margin-top: 20px;
    padding: 8px 28px;
    gap: 3px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 20px;
    border: 1.5px solid #1dfff9;
}

.special-status {
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
    margin-top: 20px;
    padding: 8px 28px;
    gap: 3px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 20px;
    border: 1px solid #1dfff9;
}

.magic-status {
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
    margin-top: 20px;
    padding: 8px 28px;
    gap: 3px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 20px;
    border: 1px solid #048df7;
}

.special-color {
    color: #1dfff9;
}

.magic-color {
    color: #048df7;
}

.teach {
    font-size: 11px;
    font-weight: 700;
    word-spacing: 5px;
}

.points {
    background-color: white;
    border-radius: 13px;
    padding: 1px 7px;
    color: black;
    font-size: 14px;
    margin-right: -9px;
    display: inline-block;
}

.points span {
    font-weight: 900;
    display: inline-block;
    padding-right: 3px;
}

.points-price {
    margin-right: -100%;
    font-weight: 500;
}

.channel .points-price {
    padding-left: 10px;
    text-align: right;
    margin-right: 0;
}

@media only screen and (min-width: 430px) and (min-resolution: 2dppx) {
    .course-img {
        width: 350px !important;
        /* Фиксированный размер */
        max-width: none !important;
        /* Отменяем ограничение */
    }
}
