/*
Theme Name: GDZ-22
*/

:root {
    --color-main: rgb(114, 54, 207);
    --color-background: rgb(34, 32, 33);
}

html {
    box-sizing: border-box;
}


*,
*::after,
*::before {
    box-sizing: inherit;
    scroll-behavior: smooth;
}

body {
    font-family: "Styrene A Web", sans-serif;
    font-weight: 500;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    color: #fff;
    overflow-y: hidden;
    background-color: var(--color-background);
}

body.light-theme {
    --color-background: rgb(208, 208, 208);
    color: #000;
}
#user-balance{
	    display: flex;
    background: rgba(24, 23, 27, 1);
    color: rgba(255, 100, 102, 1);
    font-weight: 500;
    width: auto;
    padding: 0px 2.6vw;
    justify-content: center;
    align-items: center;
    gap: 1.5vw;
    border-radius: 50px;
    height: 40px;
    min-width: 28vw;
}
#user-balance img{
	width:6vw;
}
.privacy-policy_offer ul {
    padding-left: 20px;
}

.privacy-policy_offer ul ul {
    padding-left: 20px;
}

.privacy-policy_offer li {
    margin: 16px 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    height: 100%;
}

h1,
h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    z-index: 2;
    visibility: hidden;
    transition: all .2s;
}

.overlay_show {
    opacity: .5;
    visibility: visible;
}

.mobile-hidden {
    display: none
}

/* Шапка */
header {
    position: fixed;
    width: 100vw;
    height: 50px;
    /* background: var(--color-background);*/
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}


.logo {
    font-size: 24px;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    display: none;
}

.logo__square {
    border: 2px solid var(--color-main);
    border-radius: 7px;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.logo__square span {
    width: 4px;
    height: 17px;
    border-radius: 7px;
    display: block;
    /* ТЕМА */
    background-color: currentColor;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-buttons div {
    cursor: pointer;
    height: 30px;
    width: 25px;
}

.header-buttons .crystal {
    width: fit-content;
    background-color: var(--color-main);
    border-radius: 11px;
    margin: 0 6px;
    padding: 5px 8px;
    gap: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crystal span {
    font-size: 14px;
    color: #fff;
}

.header-buttons .crystal__img {
    height: 25px;
    width: 25px;
}



.main {
    background-color: rgb(59, 48, 65);
    padding: 50px 16px;
    height: 100vh;
    /*background:url('assets/img/main-bg.jpg') center/cover no-repeat;*/
    background-color: transparent
}

body {
    background: url('assets/img/main-bg.jpg') center/cover no-repeat;
    padding-top: 6vw;


}

.online-chat-root-Verbox .widget-header {
    padding-top: 2.5em !important;
}

.popup__header {
    top: 29px;
}

body.light-theme .main {
    background-color: #fff;
}


/* Блок authors */
.authors {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    text-align: center;
    padding-top: 13px;
}

.authors__desc {
    display: none;
}

.authors__mobile {
    display: flex;
    font-weight: 400;
}

.authors .img {
    height: 14vw;
    width: 14vw;
    border-radius: 5vw;
    position: relative;
    margin-bottom: 3px;
    box-shadow: 0 0 163px 20px var(--color-main);
}

.authors .img::before {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--color-main), rgb(30, 111, 176));
    border-radius: 5vw;
}

.authors__mobile .img::before {

    background: linear-gradient(90deg, #CCBBF1 0%, #8B63FA 100%);
    display: none;

}

.authors img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    position: relative;
}

.authors__mobile .img {
    height: 18vw;
    width: 18vw;
    border-radius: 3.85vw;
    background: linear-gradient(90deg, #CCBBF1 0%, #8B63FA 100%);
    padding: 0.5vw;
    margin-bottom: 4px;
    box-shadow: none;
}

.authors__mobile img {
    border-radius: 3.35vw;


}

.authors__mobile a {
    background: #1B1B27;
    border-radius: 3.85vw;
    padding-bottom: 5px;
    color: #fff;
    font-size: 12px;
}

/* Блок GDZ */
.GDZ {
    margin-top: 18px;
}

.GDZ__desc {
    display: none;
}

.GDZ__mobile {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.GDZ__title {
    font-size: 5vw;
    margin-bottom: 8px;
    font-weight: 600;
}

.GDZ__text {
    font-size: 3.6vw;
    font-weight: 400;
}

.GDZ__content {
    position: relative;
    margin-top: 6vw;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 45vw;
}

.GDZ__message {
    position: absolute;
    top: 20%;
    right: 3%;
    font-size: clamp(10px, 1.4svh, 16px);
}

.GDZ__help {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-main);
    color: #fff;
    border-radius: 4vw;
    padding: clamp(4px, 0.9svh, 10px);
    position: relative;
    left: -6vw;
}

.GDZ__izi {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(218, 209, 254);
    color: #000;
    margin-top: clamp(10px, 2.8svh, 24px);
    padding: clamp(4px, 0.7svh, 8px);
    border-radius: 4vw;
}

.GDZ__izi::before {
    content: 'Учитель';
    position: absolute;
    left: 6px;
    color: rgba(0, 0, 0, 0.58);
    font-weight: 600;
    transform: translateY(-110%);
    top: 0;
}

.GDZ__izi:after {
    content: '';
    background-image: url('assets/img/man.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 50%;
    transform: translate(-100%, -50%);
    width: 6.5vw;
    height: 6.5vw;
    left: -1vw;
}

.GDZ__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: clamp(4px, 0.9svh, 10px);
    margin-top: 4vw;

}

.GDZ__grid__item {
    border-radius: 12px;
    padding: 4vw;
    background: #18171B;
    border: 1px solid rgba(45, 31, 64, 1);
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    transition: all .3s ease;
}

.GDZ__grid__item:hover {
    background: #23202F;
    transition: all .3s ease;
}

.GDZ__grid__item img {
    display: block;
    width: 10vw;
    margin-bottom: 4vw;
    border-radius: 0 !important;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.blend-container {
    position: relative;
    /* Контейнер для позиционирования оверлея */
    display: inline-block;
    /* Или width/height, если нужны фиксированные */
}

.blend-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: #6B19DC;
    /* Твой целевой цвет */

    /* Самое главное — режим наложения! */
    mix-blend-mode: hue;
    /* Попробуй также: multiply, screen, color, luminosity */

    /* Если цвет слишком яркий, можно уменьшить прозрачность оверлея */
    /* opacity: 0.8; */
}

.GDZ__grid__item_big .GDZ__grid__text {
    min-height: 68px;
}

.GDZ__grid__name {
    font-weight: 500;
    font-size: 3.8vw;
    color: #fff;
    margin-bottom: 2vw;
}

.GDZ__grid__text {
    font-weight: 400;
    font-size: 3.4vw;
    color: rgba(255, 255, 255, .5);
}

.GDZ__grid__mini {
    display: flex;
    align-items: center;
    border-radius: 16px;
    padding: 4vw;
    background: #18171B;
    border: 1px solid rgba(45, 31, 64, 1);
    gap: 3vw;
    min-width: 0;
    box-sizing: border-box;
    transition: all .3s ease;
}

.GDZ__grid__mini:hover {
    background: #23202F;
    transition: all .3s ease;
}

.GDZ__grid__mini .GDZ__grid__name {
    margin-bottom: 0;
}

.GDZ__grid__mini img {
    width: 6vw;
    display: block;
}

.GDZ__footer {
    position: absolute;
    width: 93%;
    border-radius: 18px;
    background: rgba(45, 73, 221, 0.48);
    display: grid;
    grid-template-columns: 17vw auto;
    gap: 0 11px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    cursor: pointer;
    bottom: 3vw;
    height: auto;
    padding: 1.5vw 3vw;
    overflow: hidden;
}

.GDZ__footer:before {
    content: '';
    width: 100%;
    height: 200%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    filter: blur;
    background: linear-gradient(to left, transparent 0%, #fff 40%, #fff 60%, transparent 100%);
    transform: translate(-100%, -25%) rotate(10deg);
    animation: blick 5s infinite;
}

@keyframes blick {
    0% {
        transform: translate(-100%, -25%) rotate(10deg);
    }

    20% {
        transform: translate(100%, -25%) rotate(10deg);
    }

    100% {
        transform: translate(100%, -25%) rotate(10deg);
    }
}

.GDZ__img-books {
    position: relative;
    z-index: 1;
    align-self: center;
    height: 13.5vw;
}

.GDZ__img-books img {
    z-index: 1;
    position: relative;
}

.GDZ__img-books::before {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -2px;
    right: -2px;
    background: linear-gradient(135deg, rgb(15, 235, 103), rgb(38, 110, 184));
    border-radius: 5.2vw;
}

.GDZ__footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.GDZ__arrow {
    width: 12vw;
}

.GDZ__footer-bot {
    display: flex;
    justify-content: start;
    gap: 1vw;
}

.GDZ__footer-bot>div {
    padding: 1vw;
    border-radius: 3vw;
    background: rgb(57, 57, 57);
    display: flex;
    font-size: 2.5vw;
    align-items: center;
    justify-content: center;
    height: 6vw;
    align-self: end;
    gap: 0.3vw;
}

.GDZ__footer-top span {
    font-size: 4vw;
}

.GDZ__img-smile {
    width: 4.2vw;
    height: 4.2vw;
}

.GDZ__mobile img {
    display: block;
    border-radius: 16px;

}

.GDZ__mobile .GDZ__message {
    position: absolute;
    top: 6vw;
    right: initial;
    left: 4vw;
    font-size: clamp(10px, 1.4svh, 16px);
    width: calc(100% - 6.4vw);
    z-index: 2;
}

.GDZ__mobile .GDZ__help {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #6B19DC;
    color: #fff;
    border-radius: 5vw;
    padding: clamp(6px, 1.2svh, 12px) 3.5vw;
    position: relative;
    left: auto;
    right: 0;
    width: max-content;
    border-bottom-right-radius: 0;
    margin-right: 0;
    margin-left: auto;
    font-weight: 400;
}

.GDZ__mobile .GDZ__izi {
    border-radius: 5vw;
    padding: clamp(6px, 1.2svh, 12px) 3.5vw;
    position: relative;
    margin-top: clamp(10px, 1.5svh, 20px);
    background-color: #fff;
    width: max-content;
    max-width: 46vw;
    left: 2.56vw;
    border-bottom-left-radius: 0;
    font-weight: 400;
}

.GDZ__mobile .GDZ__izi::before {
    display: none;
}

.GDZ__mobile .GDZ__izi:after {
    content: '';
    background-image: url('assets/img/pol1.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: auto;
    bottom: -0.07vw;
    width: 4.74vw;
    height: 2.63vw;
    left: -1.81vw;
    transform: none;
}

.GDZ__mobile .GDZ__help:after {
    content: '';
    background-image: url(assets/img/pol2.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: auto;
    bottom: -0.07vw;
    width: 10vw;
    height: 4vw;
    right: -3.48vw;
    transform: none;
}

.GDZ__mobile .btn-chat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vw;
    gap: 2.56vw;
    width: calc(100% - 5.12vw);
    position: absolute;
    bottom: 2vw;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3vw;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(13, 13, 19, 0.3);
    color: rgba(255, 255, 255, .5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-height: clamp(40px, 7svh, 50px);
    box-sizing: border-box;
}

.GDZ__mobile .btn-chat span {
    padding: clamp(4px, 0.9svh, 10px) 0 clamp(4px, 0.9svh, 10px) 2.8vw;
    max-width: 64vw;
}

.GDZ__mobile .GDZ__arrow {
    display: flex;
    width: 15vw;
    justify-content: space-between;
    align-items: center;
}

.GDZ__mobile .GDZ__arrow img {
    display: block;
    width: 6vw;
}

/* Блок courses */
.courses {
    margin-top: 26px;
    margin-top: 44px;
}

.courses__desc {
    display: none;
}

.courses__mobile {
    display: block
}

.courses__wrap {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    /*  padding-top: 20px;*/
    /*width: calc(100% + 16px);*/
    width: calc(100% + 32px);
    transform: translateX(-16px);
}

.courses__item {
    display: flex !important;
    align-items: center;
    padding: 6px;
    border-radius: 27px;
    background-image: linear-gradient(90.00deg, rgb(190, 146, 254), rgb(119, 50, 225) 100%);
    gap: 7px;
}

.courses__mobile .courses__item {
    display: flex !important;
    /*align-items: center;
    padding: 6px;
    border-radius: 27px;
    background-image: linear-gradient(90.00deg, rgb(190, 146, 254),rgb(119, 50, 225) 100%);
    gap: 7px;*/
    padding: 15px !important;
    width: 243px !important;
    border-radius: calc(var(--vh, 1vh) * 3) !important;
    flex-direction: column;
    gap: calc(var(--vh, 1vh) * 2) !important;
    margin-right: calc(var(--vh, 1vh) * 1.4) !important;
    align-items: flex-start;
    background-image: none;
    box-sizing: border-box;
    flex-shrink: 0;
    background-color: transparent !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /*border-left: 1px solid #fff;*/
}


.courses__mobile .courses__item {
    width: 243px !important;
    flex-shrink: 0;
}

.swiper-wrapper {
    align-items: stretch;
}

.courses__mobile .courses__item-img {
    /*width: 75px;
    height: 108px;*/
    /*width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;*/
    width: calc(var(--vh, 1vh) * 5) !important;
    height: calc(var(--vh, 1vh) * 5) !important;
    border-radius: calc(var(--vh, 1vh) * 1.5) !important;
    background-color: rgba(33, 23, 54, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.courses__mobile .courses__item-img img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    display: block;
}

.courses__mobile h3 {
    color: #211736 !important;
    font-size: 14px !important;
    color: #fff !important;
}

.courses__item-content {
    flex-grow: 1;
}

.courses h3 {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: #fff !important;
    margin: 0;
}

.courses__mobile .courses h3 {
    /* font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: #fff;*/
    color: rgba(33, 23, 54, 1);
    font-size:
        /*14px*/
        calc(var(--vh, 1vh) * 1.7) !important;
    line-height: 100%;
    font-weight: 700 !important;
    margin: 0;
}

.courses__hashtag {
    font-size: 11px;
    color: #000;
    font-weight: 600;
    margin: 4px 0;
}

.courses__mobile .courses__hashtag {
    /* font-size: 11px;
    color: #000;
    font-weight: 600;
    margin: 4px 0;*/
    display: flex;
    gap: 4px;
    font-size: 10px !important;
    margin-top: calc(var(--vh, 1vh) * 2);
}

.next {
    display: flex;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: rgba(139, 99, 250, 1);
    gap: 6px;
    align-items: center;
}

.next img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.courses__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 16px;
}

.courses__mobile .courses__hashtag span {
    display: block;
    background-color: rgba(33, 23, 54, 1);
    border-radius: 9px;
    padding: 6px;
    font-weight: 400;
    color: #fff !important;
}

.courses__btn {
    border: 1px solid rgb(0, 0, 0);
    border-radius: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    font-size: 10px;
    color: #fff;
}

.corses__file {
    width: 30px;
    height: 30px;
}

.courses__arrow {
    width: 17px;
    margin-right: 14px;
}

.question {
    display: none;
}

.question__rectangle span {
    cursor: pointer;
}


/* Основное модальное окно */
.popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgb(53, 49, 48);
    visibility: hidden;
    z-index: 5;
    overflow-y: auto;
    padding-top: 82px
        /*64px*/
    ;
}

.popup.popup_show {
    visibility: visible;
}

body.light-theme .popup {
    background-color: #fff;
}

.popup__header {
    height: 94px
        /*64px*/
    ;
    background-color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    padding-top: 30px;
    /* Тема */
    box-shadow: 0px 5px 25px 10px rgba(0, 0, 0, 0.25);
}

.popup__title {
    font-size: 20px;
    font-weight: 600;
}

.popup__arrow {
    position: absolute;
    left: 15px;
    width: 7.5px;
    height: 13.5px;
    top: 50%;
    top: calc(50% + 15px);
    transform: translateY(-50%);
    cursor: pointer;
}

svg {
    width: 100%;
    height: 100%;
}

body.light-theme svg use {
    stroke: #000;
}

.popup p {
    padding: 0 10px;
}


/* Настройки */
.setting {
    padding: 10px 20px;
}

.setting>span {
    margin: 17px 0 4px 14px;
    display: block;
}

.setting li,
.theme li {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 43px;
    font-size: 13px;
    padding: 0 13px;
    margin-top: 2px;
    cursor: pointer;
    /* Тема */
    background-color: var(--color-background);
}

.setting li:first-child,
.theme li:first-child {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.setting li:last-child,
.theme li:last-child {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.setting__icons {
    width: 13px;
    height: 13px;
}

.setting li a {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* Личный кабинет */
.account {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 85px;
    margin-bottom: 20px;
}

.account__img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.account form {
    width: 74%;
}

.account form input,
.share form input {
    width: 100%;
    height: 44px;
    background-color: var(--color-background);
    border-radius: 21px;
    font-size: 20px;
    padding-left: 17px;
    border: none;
    outline: none;
    color: inherit;
    margin-top: 20px;
}

.account button,
.share button,
.stars button {
    margin: 35px auto 10px;
    display: block;
    font-size: 20px;
    width: 241px;
    border-radius: 21px;
    background: var(--color-main);
    border: none;
    color: #fff;
    height: 44px;
    padding: 0;
    cursor: pointer;
}

.account__restore {
    font-size: 13px;
}


/* Поделиться с друзьями */
.share {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.share form {
    width: 93%;
}

button.share__btn {
    width: 172px;
}


/* Звёздный рейтинг */
.stars {
    margin-top: 30vh;
}

.stars__wrap {
    display: flex;
    gap: 22px;
    justify-content: center;
}

.stars__items {
    height: 35px;
    width: 35px;
}

button.stars__btn {
    width: 172px;
}


/* Выбор темы */
.theme {
    padding: 27px 20px;
}

li.theme__li {
    font-size: 20px;
    justify-content: space-between;
}

.theme__wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme__img {
    width: 20px;
    height: 20px;
}

/* svg {
    width: 100%;
    height: 100%;
} */

.theme__outer-circle {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 3px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme__li_active .theme__inner-circle {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--color-main);
}


/* Политика конфиденциальности */
.popup__title-policy {
    font-size: 18px;
    padding-left: 10px;
}


/* Модальное окно с кристаллом */
.popup-crystal {
    width: 100%;
    position: fixed;
    bottom: 0;
    background-color: #fff;
    color: #000;
    font-size: 12px;
    text-align: center;
    z-index: 3;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
    border-top-left-radius: 1.8vw;
    border-top-right-radius: 1.8vw;
}

.popup-crystal_show {
    visibility: visible;
    transform: translateY(0);
}

.popup-crystal::before {
    content: '';
    border-radius: 22px;
    background: rgba(216, 233, 249, 0.55);
    width: 48px;
    height: 6px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);

}

.popup-crystal__img {
    height: 43.5vw;
    width: 100%;
}

.popup-crystal h2 {
    font-size: 16px;
    margin-top: 6px;
}

.popup-crystal span {
    margin: 9px 0 11px;
    display: block;
}

.popup-crystal__wrap {
    margin: 12px 0 17px;
    display: flex;
    justify-content: space-around;
}

.popup-crystal__wrap div {
    border-radius: 9px;
    background: rgb(114, 54, 207);
    width: 110px;
    height: 45px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: 13px;
    cursor: pointer;
}

.popup-crystal.horizontal-orientation {
    height: auto;
    font-size: 2.5vh;
    width: 80vh;
    transform: translate(-50%, 100%);
    left: 50%;
}

.popup-crystal.horizontal-orientation.popup-crystal_show {
    transform: translate(-50%, 0);
}

.horizontal-orientation .popup-crystal__img {
    height: auto;
}

.horizontal-orientation.popup-crystal h2 {
    font-size: 3vh;
}

.horizontal-orientation.popup-crystal span,
.horizonlat-orientation.popup-crystal p {
    margin: 1vh;
}

.horizontal-orientation .popup-crystal__wrap div {
    font-size: 2.5vh;
    width: 21vh;
    padding: 1vh;
    border-radius: 3vh;
}


/* Popup-form */
.popup-form {
    position: fixed;
    top: 10px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background-color: var(--color-background);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 0 10px black;
    padding: 20px;
    padding-top: 50px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.popup-form_active {
    visibility: visible;
    opacity: 1;
}

.popup-form__close {
    position: absolute;
    top: 5px;
    right: 20px;
    color: var(--color-main);
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
}

.popup-form__title {
    font-weight: 600;
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
    color: var(--color-main);
}

.popup-form__subtitle {
    color: var(--color-main);
}

.popup-form__wrapper {
    overflow-y: auto;
    height: calc(100vh - 230px);
}

.popup-form__wrapper span {
    color: var(--color-main);
}

body.light-theme .popup-form {
    background-color: #fff;
}

section.privacy-policy {
    padding: 0 15px;
    overflow-y: auto;
    height: 100vh;
}

section.privacy-policy h1 {
    font-size: 24px;
    margin: 10px 0;
}

section.privacy-policy h2 {
    font-size: 18px;
}

.subtitle {
    font-size: 4vw;
    margin-top: 8px;
}

.xl-hidden {
    font-size: 6vw;
}

@media (min-width: 1000px) {
    section.privacy-policy h1 {
        font-size: 38px;
    }
}

@media(min-width: 576px) {
    .subtitle {
        display: none;
    }

    body {
        overflow-y: auto;
    }

    .main {
        padding: 65px 20px 50px;
        height: auto;
    }

    header {

        padding: 0 20px;
    }

    .logo {
        font-size: 28px;
        gap: 6px;
    }

    .logo__square {
        height: 35px;
        width: 35px;
        gap: 4px;
    }

    .logo__square span {
        width: 4px;
        height: 20px;
    }

    .header-buttons {
        gap: 12px;
    }

    .header-buttons div {
        width: 27px;
    }

    .header-buttons .crystal {
        height: fit-content;
        padding: 6px 10px;
        gap: 8px;
    }

    .crystal span {
        font-size: 18px;
    }

    .authors {
        font-size: 1em;
    }

    .authors .img {
        height: 12vw;
        width: 12vw;
        border-radius: 4vw;
    }

    .authors .img::before {
        border-radius: 4vw;
    }

    h1,
    h2 {
        font-size: 4vw;
    }

    .courses__wrap {
        gap: 3vw;
    }

    .courses__item {
        padding: 1.5vw;
        border-radius: 7vw;
        gap: 2vw;
    }

    .courses__item-img {
        width: 19vw;
        height: 24vw;
    }

    .courses h3 {
        font-size: 3.5vw;
    }

    .courses__hashtag {
        font-size: 3vw;
    }

    .courses__btn {
        padding: 1.5vw;
        font-size: 3vw;
    }

    .courses__arrow {
        width: 5vw;
    }

    .popup__title {
        font-size: 24px;
    }

    .setting>span {
        font-size: 20px;
    }

    .setting li,
    .theme li {
        height: auto;
        padding: 15px;
        font-size: 17px;
    }

    .setting__icons {
        width: 17px;
        height: 17px;
    }

    .account form input,
    .share form input {
        height: 50px;
    }

    .popup-crystal {
        font-size: 2.5vw;
    }

    .popup-crystal h2 {
        font-size: 3vw;
    }

    .popup-crystal__wrap div {
        width: 21vw;
        font-size: 2.5vw;
        height: auto;
        padding: 10px;
        border-radius: 2vw;
    }

    .popup-crystal::before {
        width: 100px;
    }

    .xl-hidden {
        font-size: 20px;
    }

    .subtitle {
        font-size: 16px;
        display: block;
    }

    .GDZ__title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .GDZ__text {
        font-size: 14px;
    }

    .GDZ__mobile .btn-chat {

        font-size: 13px;
        height: 56px;
        padding: 16px;
    }

    .GDZ__mobile .GDZ__arrow {
        width: 56px;

    }

    .GDZ__mobile .GDZ__arrow img {
        width: 24px;
    }

    .GDZ__content {
        height: 180px;
        margin-top: 30px;
    }

    .GDZ__mobile .GDZ__message {
        top: 24px;
        left: 18px;
    }

    .GDZ__grid__item img {
        height: 40px;
        margin-bottom: 16px;
        border-radius: 0;
    }

    .GDZ__grid__name {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .GDZ__grid__item {
        padding: 16px;
    }

    .GDZ__grid {
        gap: 8px;
        margin-top: 30px;
    }

    .GDZ__grid__text {
        font-size: 14px;
    }

    .GDZ__grid__mini {
        gap: 12px;
        padding: 16px;
    }

    .GDZ__grid__mini img {
        width: 24px;
        border-radius: 0;
    }
}

@media(min-width: 1000px) {
    .xl-hidden {
        display: none !important;
    }

    body {
        overflow: hidden;
    }

    header {
        background: none;
        position: absolute;
        box-shadow: none;
        height: 120px;
        padding: 0 45px;
    }

    .logo {
        font-size: 40px;
        gap: 28px;
        text-shadow: -2px 2px 0 var(--color-main),
            2px -2px 0 var(--color-main),
            -2px 2px 0 var(--color-main),
            2px 2px 0 var(--color-main),
            -2px 0 0 var(--color-main),
            2px 0 0 var(--color-main),
            0 2px 0 var(--color-main),
            0 -2px 0 var(--color-main);
    }

    .logo__square {
        height: 52px;
        width: 52px;
        gap: 6px;
    }

    .logo__square span {
        width: 7px;
        height: 28px;
        border-radius: 0;
    }

    .header-buttons {
        gap: 20px;
    }

    .header-buttons div {
        height: 36px;
        width: 36px;
    }

    .header-buttons .crystal {
        padding: 6px 13px;
        margin: 0 15px;
    }

    .crystal span {
        font-size: 20px;
    }

    .main {
        background-image: url('assets/img/bg-desktop.jpeg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: 100vh;
        display: grid;
        justify-content: space-between;
        padding: 120px 45px 0;
        grid-template-columns: 98px 600px 344px;
    }

    .authors {
        flex-direction: column;
        padding-bottom: 100px;
        gap: 25px;
    }

    .authors a {
        width: 98px;
        height: 98px;
    }

    .authors .img {
        height: 100%;
        width: 100%;
        border-radius: 32px;
    }

    .authors .img::before {
        border-radius: 35px;
    }

    .GDZ__title {
        display: block;
        text-transform: uppercase;
        margin-bottom: 8px;
        position: relative;
    }

    .GDZ__title::after {
        content: 'Качественно';
        position: absolute;
        color: #000;
        font-weight: 700;
        border-radius: 26px;
        background-color: var(--color-main);
        transform: rotate(-13.74deg);
        bottom: 20px;
        right: -35px;
        font-size: 14px;
        padding: 10px 15px;
    }

    .GDZ__title span {
        position: relative;
        display: block;
        text-shadow: 0 0 5px var(--color-main),
            0 0 10px var(--color-main),
            0 0 15px var(--color-main);
        z-index: 1;
        font-size: 31px;
    }

    .GDZ__title-top {
        text-align: right;
        font-weight: 800;
    }

    .GDZ__title-bot {
        text-align: left;
        font-style: italic;
        font-weight: 600;
    }

    .GDZ__content {
        width: 481px;
        height: 370px;
        margin: 0 auto;
    }

    .GDZ__message {
        font-size: 15px;
        top: 40%;
        right: 1%;
    }

    .GDZ__help {
        padding: 10px;
        border-radius: 18px;
        position: relative;
        left: -25px;
    }

    .GDZ__izi {
        padding: 8px 18px;
        border-radius: 18px;
        margin-top: 42px;
    }

    .GDZ__izi::before {
        left: 13px;
    }

    .GDZ__izi:after {
        width: 36px;
        height: 36px;
        left: -4px;
    }

    .GDZ__footer {
        padding: 7px;
        padding-right: 14px;
        grid-template-columns: 91px auto;
        width: 445px;
        background: rgb(114, 44, 220);
        left: 62%;
        bottom: -11%;
    }

    .GDZ__img-books {
        height: 71px;
    }

    .GDZ__img-books::before {
        border-radius: 27px;
    }

    .GDZ__footer-top span {
        font-size: 24px;
    }

    .GDZ__arrow {
        width: 62px;
    }

    .GDZ__footer-bot>div {
        font-size: 14px;
        padding: 6px 8px;
        height: fit-content;
        gap: 3px;
    }

    .GDZ__img-smile {
        width: 25px;
        height: 22px;
    }

    .courses {
        margin: 0;
    }

    .courses__wrap {
        margin: 0;
        /*gap: 29px;*/
        gap: 15px;
        height: 451px;
    }

    .courses__item {
        gap: 5px;
        padding: 6px;
        border-radius: 27px;
    }

    .courses__item-img {
        width: 82px;
        height: 119px;
    }

    .courses h3 {
        font-size: 14px;
    }

    .courses__hashtag {
        font-size: 11px;
    }

    .courses__btn {
        font-size: 12px;
        padding: 7px;
    }

    .courses__arrow {
        width: 17px;
        margin-right: 4px;
    }

    .question {
        display: block;
        position: relative;
        margin-top: 25px;
    }

    .question__rectangle {
        position: relative;
    }

    .question__rectangle span {
        position: absolute;
        left: 50%;
        bottom: 57%;
        transform: translate(-50%);
        white-space: nowrap;
        font-weight: 700;
        font-size: 20px;
    }

    .question__img {
        position: absolute;
        width: 274px;
        bottom: 0;
        transform: translate(-50%, 90%);
        left: 50%;
    }

    .question__img::before {
        content: '';
        width: 196.91px;
        height: 303.23px;
        transform: rotate(56.16deg);
        background: linear-gradient(209.74deg, rgb(101, 57, 168) 5.653%, rgba(76, 42, 81, 0.28) 87.946%, rgba(0, 0, 0, 0.22) 95.102%);
        position: absolute;
        border-radius: 90%;
        z-index: -1;
        left: 15%;
        top: 10%;

    }

    .popup {
        width: 740px;
        height: 740px;
        border-radius: 32px;
        background: rgba(53, 49, 48, 0.91);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding-top: 0;
    }

    .popup__header {
        height: 80px;
        position: sticky;
    }

    .popup__title {
        font-size: 32px;
    }

    .popup__arrow {
        left: 45px;
        width: 15px;
        height: 25px;
    }

    .setting {
        padding: 35px 47px 64px;
    }

    .setting li,
    .theme li {
        padding: 19px 22px;
    }

    .setting>span {
        font-size: 16px;
    }

    .setting__icons {
        width: 29px;
        height: 29px;
    }

    .account {
        margin-top: 44px;
    }

    .account__img {
        width: 122px;
        height: 122px;
        margin-bottom: 10px;
    }

    .account form {
        width: 364px;
    }

    .account form input,
    .share form input {
        height: 60px;
        font-size: 24px;
        padding-left: 23px;
    }

    .account button,
    .share button,
    .stars button {
        width: 330px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 38px;
    }

    .account__restore {
        font-size: 20px;
    }

    .share form {
        width: 590px;
        margin-top: 26px;
    }

    button.share__btn {
        width: 300px;
        border-radius: 25px;
    }

    .stars {
        margin-top: 167px;
    }

    .stars__items {
        width: 54px;
        height: 54px;
    }

    button.stars__btn {
        width: 260px;
    }

    .popup p {
        padding: 0 30px;
        font-size: 20px;
    }

    .popup-crystal {
        width: 689px;
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, 50%);
        font-size: 20px;
        border-radius: 32px;
        opacity: 0;
        overflow: hidden;
    }

    .popup-crystal_show {
        opacity: 1;
    }

    .popup-crystal::before {
        display: none;
    }

    .popup-crystal__img {
        height: 320px;
    }

    .popup-crystal h2 {
        font-size: 24px;
        margin-top: 27px;
    }

    .popup-crystal__wrap {
        margin: 23px 0 32px;
    }

    .popup-crystal__wrap div {
        font-size: 20px;
        width: 170px;
        height: 60px;
        border-radius: 9px;
    }

    .popup-form {
        width: 740px;
        /*height: 740px;*/
        border-radius: 32px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        bottom: auto;
        padding: 50px;
    }
}

@media(min-width: 992px) {
    .mobile-hidden {
        display: block;
    }

    .header-buttons {
        display: none
    }

    /*.courses__item-img{
		width:44px;
		height:44px;
	}*/
    .logo {
        display: flex;
    }

    .courses__hashtag {
        margin-top: 5px;
    }

    .courses__nav {
        display: none;
    }

    .courses__desc {
        display: block;
    }

    .courses__mobile {
        display: none
    }

    .authors__mobile {
        display: none;
    }

    .authors__desc {
        display: flex;
    }

    .GDZ__desc {
        display: block;
    }

    .GDZ__mobile {

        display: none;
    }

    .main {
        background: rgb(59, 48, 65);
    }
}

@media(min-width: 1440px) {
    .main {
        grid-template-columns: 140px 725px 344px;
    }

    .GDZ__title span {
        font-size: 38px;

    }

    .GDZ__title::after {
        font-size: 17px;
        padding: 15px 25px;

    }
}

@media(max-width:576px) {
    header {
        height: 24px;
    }

    .main {
        padding: 24px 16px 50px;
    }
}


/* @media(max-height:820px) {
    body {
        padding-top: 0;
    }

    .xl-hidden {
        font-size: 3.5svh;
    }

    .subtitle {
        font-size: 2.5svh;
        margin-top: 1svh;
    }

    .GDZ__title {
        font-size: 3svh;
        margin-bottom: 1.5svh;
        font-weight: 600;
    }

    .GDZ__text {
        font-size: 2.5svh;
        font-weight: 400;
    }

    .GDZ__content {
        position: relative;
        margin-top: 3svh;
        flex: 1 1 auto;
        min-height: 0;
        max-height: 29svh;
    }

    .GDZ__mobile .GDZ__message {
        top: 2.5svh;
        left: 3vw;
    }

    .GDZ__mobile .btn-chat {
        border-radius: 12px;
    }

    .GDZ__grid {
        margin-top: 2svh;
    }

    .GDZ__grid__item, .GDZ__grid__mini {
        padding: 1.5svh;
        border-radius: 12px;
    }

    .GDZ__grid__item img, .GDZ__grid__mini img {
        width: 5vw;
        margin-bottom: 1.5svh;
    }
    .GDZ__grid__mini img{
        margin-bottom: 0;
    }
    .GDZ__grid__name {
        font-size: 2.4svh;
        margin-bottom: .2svh;
    }

    .GDZ__grid__text {
        font-size: 2.2svh;
    }

    .main {
        padding: 0 10px 10px;
    }

    .GDZ__grid__item_big .GDZ__grid__text {
        min-height: 3svh;
    }
} */
@media(max-height:770px) {
    body {
        padding-top: 7svh;
}

    .xl-hidden {
        font-size: 3.5svh;
    }

    .subtitle {
        font-size: 2.5svh;
        margin-top: 0svh;
    }

    .GDZ__title {
        font-size: 3svh;
        margin-bottom: 1.5svh;
        font-weight: 600;
    }

    .GDZ__text {
        font-size: 2.5svh;
        font-weight: 400;
    }

    .GDZ__content {
        position: relative;
        margin-top: 1.6svh;
        flex: 1 1 auto;
        min-height: 0;
        max-height: 26svh;
    }

    .GDZ__mobile .GDZ__message {
        top: 2.5svh;
        left: 3vw;
    }

    .GDZ__mobile .btn-chat {
        border-radius: 12px;
    }

    .GDZ__grid {
        margin-top: 2svh;
    }

    .GDZ__grid__item, .GDZ__grid__mini {
        padding: 1.5svh;
        border-radius: 12px;
    }
	.GDZ{
		margin-top:0;
	}
    .GDZ__grid__item img, .GDZ__grid__mini img {
        width: 7vw;
        margin-bottom: 1.5svh;
    }
    .GDZ__grid__mini img{
        margin-bottom: 0;
    }
    .GDZ__grid__name {
        font-size: 2svh;
        margin-bottom: .2svh;
    }

    .GDZ__grid__text {
        font-size: 1.8svh;
    }

    .main {
        padding-top: 3svh;
    }
.main {
        padding-top: 5svh;
    }
    .GDZ__grid__item_big .GDZ__grid__text {
        min-height: 3svh;
    }
    .GDZ__grid__mini{
        gap: 2vw;
    }
    header{
        top: 3svh;
    }
	header{
        top: 6svh;
    }
	#user-balance {
    display: flex;
    background: rgba(24, 23, 27, 1);
    color: rgba(255, 100, 102, 1);
    font-weight: 500;
    width: auto;
    padding: 0px 2.6vw;
    justify-content: center;
    align-items: center;
    gap: 1svh;
    border-radius: 50px;
    height: 4.5svh;
    min-width: 13svh;
    font-size: 2.5svh;
}
	#user-balance img {
    width: 3svh;
}
}
@media(max-height:560px) {
    .GDZ__content{
                max-height: 29svh;
    }
}
@media(min-height:780px) {
	
	     body {
        padding-top: 9svh;
}
	.main{
		padding-top: 6svh;
	}
	header{
		top: 11svh;
	}
}
