/* Секция курсы */

.courses-section {
    position: relative;
    width: 1410px;
    height: 922px;
    left: 255px;
    top: 30px;
}

#courses.visible,
#reviews.visible,
#join-section.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

#courses.hidden,
#reviews.hidden,
#join-section.hidden {
    animation: fadeOutDown 0.8s ease-in forwards;
}

.background-elements {
    width: 1410px;
    height: 922px;
}

.background-mask {
    position: absolute;
    width: 1410px;
    height: 922px;
    z-index: -1;
}

#butselect{
/* Frame 116 */
    position: absolute;
    width: 184px;
    height: 59px;
    left: 614px;
    top: 420px;
}

#ogebut{
    position: absolute;
    left: 1px;
    top: 0px;
    cursor: pointer;
}


#egebut{
    position: absolute;
    left: 92px;
    top: 0px;
    cursor: pointer;
}

.background-rectangle {
    position: absolute;
    width: 1410px;
    height: 989px;
    background: #F1F3FB;
    border-radius: 50px;
    z-index: -2 ;
}

#courses-heading {
    position: absolute;
    left: 426px;
    top: 60px;
    width: 558px;
    height: 150px;
    /* Свои стили */
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-size: 40px;
    line-height: 50px;
    text-align: center;
    color: #1C1C1C;
    z-index: 1;
    margin: 0;
}

.courses-buttons-container {
/* Rectangle 24 */
    position: absolute;
    width: 1170px;
    height: 153px;
    left: 120px;
    top: 250px;
    background: #FFFFFF;
    border-radius: 50px;
    z-index: 1;
}

.courses-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 20px;
    position: absolute;
    width: 981px;
    height: 113px;
    left: 95px;
    top: 20px;
}

.main-categories {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    gap: 30px;
    width: 380px;
    height: 44px;
    flex: none;
    background: #F1F3FB;
    border-radius: 100px;
}

.category-button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    border-radius: 50px;
    border: 0px solid #6184D8;
    transition: background 0.3s, color 0.3s, border 0.3s;
}


/* Размеры для каждой кнопки */
.category-button.school-button {
    width: 95px;
    height: 44px;
    cursor: pointer;
}

.category-button.it-courses-button {
    width: 145px;
    height: 44px;
    cursor: pointer;
}

.category-button.services-button {
    width: 95px;
    height: 44px;
    cursor: pointer;
}

/* Стили для неактивного состояния (по умолчанию) */
.category-button:not(.active) {
    background: #ffffff;
    color: #000103;
}

/* Стили для активного состояния */
.category-button.active {
    background: #6184D8;
    color: #ffffff;
}

/* Эффекты при наведении */
.category-button:hover:not(.active) {
    background: #f0f0f0;
}

.category-button.active:hover {
    background: #4a6eb1;
}


.sub-categories {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Выравнивание по горизонтали по центру */
    align-items: center; /* Выравнивание по вертикали по центру */
    padding: 0px;
    width: 100%; /* Ширина контейнера на всю доступную ширину */
    height: 41px;
    gap: 10px; /* Отступ между кнопками */
}

/* Общие стили для всех кнопок предметов */
.course-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    border: 0;
    transition: background 0.3s, color 0.3s;
    padding: 10px 20px; /* Добавляем отступы внутри кнопок */
}

/* Размеры для конкретных кнопок */
.course-button {
    width: 267px;
    height: 41px;
    cursor: pointer;
}

.course-button.history-button {
    width: 267px;
    height: 41px;
}
.course-button.ang-button {
    width: 200px;
    height: 41px;
}
.course-button.computer-science-button {
    width: 238px;
    height: 41px;
}
.course-button.math-button {
    width: 283px;
    height: 41px;
}

/* Стили для неактивного состояния: прозрачный фон и чёрный текст */
.course-button:not(.active) {
    background: transparent;
}
.course-button:not(.active) h5 {
    color: #858484;
}

/* Стили для активного состояния: синий фон и белый текст */
.course-button.active {
    background: #6184D8;
}
.course-button.active h5 {
    color: #ffffff;
}


.course-details-container {
    /* Rectangle 23 */
    position: relative;
    width: 1170px;
    height: 449px;
    left: 120px;
    top: 495px;
    background: #FFFFFF;
    border-radius: 50px;
}

.course-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    position: absolute;
    width: 690px;
    height: 86px;
    margin: 4vh 0vh 0vh 13.6vh;
}

.course-features {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    position: absolute;
    width: 690px;
    height: 154px;
    margin: 16vh 0vh 0vh 12.6vh;
}

#list-curse{
    margin: 0vh 1vh;
}

#curseit{
    /* IT-курсы */
    width: 85px;
    height: 24px;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.features-list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    width: 690px;
    height: 110px;
}

.feature-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 329px;
    height: 102px;
}

.feature-item:empty {
    display: none; /* Скрываем пустые элементы */
}

.feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px 0px 0px 12px;
    gap: 10px;
    isolation: isolate;
    width: 329px;
    height: 18px;
    margin: 2px;
    margin-bottom: 10px;
}

.feature-icon {
    display: inline-block;
    margin-right: 10px;
    flex-shrink: 0;
}

.feature-item:not(:empty) {
    display: flex; /* Показываем элемент, если он не пустой */
}

.feature-column2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 329px;
    height: 110px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.feature-item2 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px 0px 0px 12px;
    gap: 10px;
    isolation: isolate;
    width: 329px;
    height: 36px;
}

#phototeacher{
    border-radius: 20px;
    width: 210px;
    height: 280px;
}

.teacher-profile {
    position: absolute;
    width: 210px;
    height: 280px;
    left: 840px;
    top: 40px;
}

#teacher-name {
    position: absolute;
    margin-top: 0vh;
}

#teacher-experience {
    width: 10vh;
    margin: 1.7vh 13vh;
}

#teacher-motto {
    position: absolute;
    width: 210px;
    height: 34px;
    margin: 0vh;
}

.pricing-container {
    position: absolute;
    width: 779px;
    height: 79px;
    left: 31px;
    top: 340px;
    box-sizing: border-box;
    background: #F1F3FB;
    border: 2px dashed #6184D8;
    border-radius: 40px;
}

.exam-price {
    font-size: 16px;
    margin: 10px 0;
    color: #007bff; /* Цвет для активной цены */
    font-weight: bold;
    transition: all 0.3s ease;
}

.active-price {
    color: #007bff; /* Цвет для активной цены (например, синий) */
    font-weight: bold;
    opacity: 1;
}

.inactive-price {
    color: #6c757d; /* Цвет для неактивной цены (например, серый) */
    font-weight: normal;
    opacity: 0.6;
}

.original-price, .price-info, #price-line {
    display: none;
}

.price-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 8px;
    position: absolute;
    width: 108px;
    height: 55px;
    left: 101px;
    top: 12px;
}

.price-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 10px;
    width: 107px;
    height: 19px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.original-price {
    width: 59px;
    height: 17px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

#price-line {
    position: absolute;
    width: 58px;
    height: 0px;
    margin: 0.7vh -0.2vh;
    border: 1px solid #939393;
    z-index: 2;
}

.buy-button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    text-decoration: none;
    gap: 10px;
    position: absolute;
    width: 157px;
    height: 59px;
    background: #FFFFFF;
    border: 2px solid #009B72;
    border-radius: 50px;
    cursor: pointer;
    left: 349px;
    top: 10px;
}

#buy-button-text {
    width: 97px;
    height: 19px;
    color: #009B72;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.trial-button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-decoration: none;
    align-items: center;
    padding: 20px 30px;
    gap: 10px;
    position: absolute;
    width: 253px;
    height: 59px;
    left: 516px;
    top: 10px;
    background: #009B72;
    border-radius: 50px;
    cursor: pointer;
}

.buy-button-mobile{
    display: none;
}

#trial-button-text {
    color: #FFFFFF;
    flex: none;
    order: 0;
    flex-grow: 1;
}

#teacher-info{
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0px;
gap: 10px;
}

#seil-seil{
    /* -16% */
    width: 38px;
    height: 19px;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #E72222;
    flex: none;
    order: 1;
    flex-grow: 0;
}

#seil{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 10px;
    width: 107px;
    height: 19px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.buy-button a, .trial-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none; /* Убираем подчеркивание у ссылок */
    color: inherit; /* Наследуем цвет текста */
}

#ege-price {
    width: 108px;
    height: 28px;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    color: #1C1C1C;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;
}

#back-price-container{
    width: 59px;
    height: 17px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

#cherka{
    position: absolute;
    width: 50px;
    height: 0px;
    left: 1px;
    top: 9px;
    border: 0.2px solid #939393;
    margin: 0;
}

#back-price{
    position: absolute;
    width: 58px;
    height: 17px;
    left: 1px;
    top: 1px;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #939393;
    margin: 0;
}

#oge-price {
    width: 108px;
    height: 28px;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    color: #1C1C1C;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;
}

#trial-button-mobile-text{
    display: none;
}