.main__sch{
    margin: 0px auto 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1400px;
    padding: 0 20px;
    gap: 30px;
}

.alert_main {
    display: none;
    position: fixed;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px;
    background-color: #EDEDED;
    border-radius: 20px;
    border: 1.5px solid black;
}
.alert_main p{
    font-family: TTFirsNeue-Medium;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 380px;
}
.alert_but a{
    padding-left: 14px;
}
.alert_main button{
    padding: 15px;
    border-radius: 10px;
    border: none;
}
.alert_but{
    display: block;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;

}

.m1, .m1_2{
    margin: 0px;
    display: flex;
    width: 49.25%;
    align-items: center;
    justify-content: center;
    padding-left: 0px;
}
.m1 img, .m1_2 img{
    width: 100%;
}
.m2 img, .m2_2 img{
    width: 100%;
}
.select_box img{
border-radius: 15px;
}
.m2, .m2_2{
    display: none;
}
.select_box{
    gap: 1.5%;
    display: flex;
    padding-bottom: 10px;
 }

.alert_1{
    font-family: TTFirsNeue-Regular;
    font-size: 16px;
    background-color: white;
    color: black;
    width: 100%;
}
.alert_2{
    font-family: TTFirsNeue-Regular;
    font-size: 24px;
    background-color: black;
    color: white;
    min-width: 70%;
    transition: 0.25s;
}
.alert_2:hover{
    background-color: #212121;
}

.alert_3{
    font-family: TTFirsNeue-Regular;
    font-size: 24px;
    background-color: black;
    color: white;
    display: none;
}
.table__sch{
    font-family: TTFirsNeue-Medium;
    font-size: 40px;
    text-align: center;
    margin: 17px auto 0px auto;
    background-color: rgb(255, 176, 92);
    padding: 0 1px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    line-height: 0.1;
    padding-bottom: 13px;
}

.socet_content{
    border-radius: 15px;
    background-color: #F8F8F8;
    height: 100%;
    display: flex;
    margin: 0px 0px 30px 0px;
    width: 100%;
    max-width: 1400px;
    /* transition: border 0.3s ease; */
    border: 1px solid transparent;
    padding: 2px;
}

/* .socet_content:hover {
    border: 1px solid rgb(232, 232, 232);
} */

.socet_content .img{
    border-radius: 30px;
    min-width: 321px;
    background-color: white;
    margin: 7px;
}

.block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.meduim {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.meduim p{
    display: inline-flex;
    font-size: 14px;
    font-family: TTFirsNeue-Medium;
    background-color: white;
    border-radius: 112px;
    text-align: center;
    padding: 5px 15px;
    margin: 0;
}

.main_text{
    font-family: TTFirsNeue-DemiBold;
    font-size: 22px;
    margin-bottom: 15px;
    padding-top: 15px;
}
.socet_img{
    display: flex;
    position: relative;
    align-items:center;
    justify-content: center;
    border-radius: 30px;
    align-items:center;
    justify-content: center;
    max-width: 300px;
    min-height: 400px;
    max-height: 400px;
    margin: 7px;
}
.socet_img img{
    width: 100%;
    border-radius: 30px;
}

.block__bottom{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    margin-bottom: 20px;
}
.block__bottom ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
.block__bottom .up{
    font-family: TTFirsNeue-Medium;
    font-size: 14px;
    color: #686868;
    margin-bottom: 5px;
}
.block__bottom .down{
    font-family: TTFirsNeue-Medium;
    font-size: 16px;
    color: #000000;
}
.downl{
    color: #000000;
}
.buy_button ul{
    display: flex;
    list-style: none;
    align-items: center;
    gap: 10px;
    padding: 0;
    position: relative;
    white-space: nowrap;
}
.cont11{
    display: flex;
    border-radius: 15px;
    padding: 25px 15px;
    margin-top: auto;
    align-self: flex-end;
    width: 250px;
}
.block_1{
    display: flex;
    padding: 7px;
    max-width: 1400px;
    min-width: 1400px;
    gap: 30px;
    background-color: #EDEDED;
    border: 1px solid #EDEDED;
    border-radius: 13px;
    transition: all 0.3s ease;
}

.block_1:hover {
    background-color: #f5f5f5;
    border: 1px solid #EDEDED;
}
.block_1_img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    flex-shrink: 0;
    transition: none;
}
.block_1_img:hover {
    transform: none;
}
.buy_button{
    width: 100%;
}
.buy_button a{
     text-decoration: none;
}
.buy_button .cost{
    font-size: 18px;
    font-family: TTFirsNeue-Light;
    position: relative;
    white-space: nowrap;
}

.buy_button .old-price {
    position: absolute;
    top: -20px;
    left: 70px;
    font-size: 12px;
    color: #686868;
    text-decoration: line-through;
}

.buy_button .cost_text{
    font-size: 18px;
    font-family: TTFirsNeue-Bold;
    white-space: nowrap;
}
.buy_button button{
    width: 100%;
    background-color: black;
    padding: 12px;
    color: white;
    border-radius: 5px;
    font-family: TTFirsNeue-Regular;
    font-size: 18px;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    min-width: 150px;
}
.buy_button button:hover{
    background-color: white;
    color: black;
    outline: 1px solid black;
    outline-offset: -1px;
}

.select_box a{
display: flex;
  width: 100%;
}
@media (max-width: 1427px) {
    .main__sch {
        max-width: calc(100% - 40px);
    }
    
    .socet_content {
        max-width: 100%;
    }
    
    .block_1_img {
        width: calc(280px * 0.9);
        height: calc(280px * 0.9);
    }
    
    .main_text {
        font-size: calc(22px * 0.9);
    }
    
    .meduim p {
        font-size: calc(14px * 0.9);
        padding: calc(5px * 0.9) calc(15px * 0.9);
    }
    
    .cont11 {
        width: calc(250px * 0.9);
    }
}
@media (max-width: 1024px) {
    .block_1_img {
        width: calc(280px * 0.8);
        height: calc(280px * 0.8);
    }
    
    .main_text {
        font-size: calc(22px * 0.8);
    }
    
    .meduim p {
        font-size: calc(14px * 0.8);
        padding: calc(5px * 0.8) calc(15px * 0.8);
    }
    
    .cont11 {
        width: calc(250px * 0.8);
    }
    .alert_main p {
        font-size: 24px;
    }
}
@media (max-width: 880px) {
    .block_1 {
        flex-direction: column;
        align-items: center;
        gap: 0px;
        min-width: 0px;
    }
    .main_text {
        font-size: calc(16px* 0.8);
    }
    .meduim p {
        font-size: calc(10px* 0.8);
    }
    .socet_content {
        width: 300px;
    }
    
    .block_1_img {
        width: 100%;
        max-width: 280px;
        height: 280px;
    }
    
    .block {
        width: 100%;
        text-align: center;
        min-height: 0px;
    }
    
    .meduim {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .block__bottom {
        gap: 5px;
        margin-top: 0px;
        padding-top: 0px;
        margin-bottom: 15px;
    }
    
    .cont11 {
        width: 80%;
        max-width: 300px;
        margin: 20px auto 0px auto;
        padding: 25px 15px 10px 15px;
    }
    .socet_content{
        margin: 0px 0px 15px 0px;
    }

    .buy_button .cost_text,
    .buy_button .cost{
        font-size: 14px;
    }
    .block__bottom .up,
    .block__bottom .down {
        font-size: 8px;
    }
    .block__bottom .up {
        margin-bottom: 2px;
    }
    .alert_main {
        width: 80%;
    }
    .alert_main p {
        font-size: 20px;
    }
    
    .image-view-btn {
        padding: 8px 15px;
        font-size: 11px;
        min-width: 90px;
        border-radius: 18px;
    }
    
    .image-view-btn span {
        font-size: 12px;
    }
    
    .view-text {
        font-size: 10px !important;
    }
}

@media (max-width: 800px) {
    .main_text {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .buy_button button {
        font-size: 14px;
    }
}

@media (max-width: 726px) {
    .main__sch {
        margin: 0px auto 50px;
    }

    .table__sch {
        font-size: 28px;
        margin: 8px auto 0px auto;
        padding-bottom: 9px;
    }
    
    .alert_main p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .year-button {
        font-size: 14px;
        padding: 10px 16px;
        min-width: 100px;
    }
    
    .year-buttons {
        gap: 0px;
        margin: 20px auto 10px;
    }

    .filter-toggle {
        font-size: 14px;
        padding: 10px 16px;
    }

    .filter-dropdown {
        min-width: 180px;
        max-height: 250px;
    }

    .filter-label {
        font-size: 13px;
    }

    .image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-image {
        max-width: 90vw;
        max-height: 90vh;
        width: auto;
        height: auto;
    }

    .image-view-btn {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 576px) {
    .alert_main p {
        font-size: 16px;
    }
    .table__sch {
        font-size: 26px;
        padding-bottom: 9px;
    }

    .filter-section {
        margin: 15px auto;
    }

    .filter-toggle {
        font-size: 13px;
        padding: 8px 12px;
        gap: 8px;
    }

    .filter-dropdown {
        min-width: 160px;
        max-height: 200px;
        padding: 12px;
    }

    .filter-option {
        padding: 4px 0;
    }

    .filter-radio {
        width: 14px;
        height: 14px;
    }

    .filter-label {
        font-size: 12px;
    }

    .year-button {
        font-size: 12px;
        padding: 8px 12px;
        min-width: 80px;
    }
    
    .year-buttons {
        padding: 3px;
        margin: 15px auto;
    }
}

@media (max-width: 440px) {
    .alert_main p {
        font-size: 14px;
    }
    .table__sch {
        font-size: 24px;
        padding-bottom: 8px;
    }
    .year-buttons {
        padding: 3px;
        margin: 15px auto;
    }
    .year-button {
        font-size: 11px;
        padding: 6px 10px;
        min-width: 70px;
    }

    .filter-toggle {
        font-size: 12px;
        padding: 6px 10px;
    }

    .filter-dropdown {
        min-width: 140px;
        max-height: 180px;
        padding: 10px;
    }

    .filter-label {
        font-size: 11px;
    }
}

/* Стили для кнопок с активной границей */
.year-buttons {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
    margin: 30px auto;
    z-index: 1;
}

.year-button {
    position: relative;
    z-index: 1;
    border: none;
    background: #fff;
    border-radius: 999px;
    color: #686868;
    font-family: TTFirsNeue-Regular;
    font-size: 16px;
    cursor: pointer;
    padding: 14px 24px;
    margin: 0;
    outline: none;
    box-shadow: none;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.year-button.active {
    background: #fff;
    color: #000;
    z-index: 1;
}

.year-button:not(.active) {
    background: #fff;
    color: #686868;
    z-index: 0;
}

.year-active-border {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    border: 1px solid #000;
    box-sizing: border-box;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    background: transparent;
    z-index: 2;
}

/* Скрытие/показ контента по годам */
.year-content {
    display: none;
}

.year-content.active {
    display: block;
}

@media (max-width: 768px) {
    .year-button {
        font-size: 14px;
        padding: 10px 16px;
        min-width: 100px;
    }
    
    .year-buttons {
        gap: 0px;
        margin: 20px auto 10px;
    }
}

@media (max-width: 576px) {
    .year-button {
        font-size: 12px;
        padding: 8px 12px;
        min-width: 80px;
    }
    
    .year-buttons {
        padding: 3px;
        margin: 15px auto;
    }
}

@media (max-width: 440px) {
    .year-button {
        font-size: 11px;
        padding: 6px 10px;
        min-width: 70px;
    }
    
    .year-buttons {
        padding: 3px;
        margin: 15px auto;
    }
}

/* Стили для раздела фильтрации */
.filter-section {
    display: flex;
    justify-content: flex-start;
    margin: 20px auto;
    position: relative;
    z-index: 10;
    max-width: 1400px;
    padding: 0 20px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #EDEDED;
    border: 1px solid #EDEDED;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: TTFirsNeue-Regular;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-toggle:hover {
    background: #f5f5f5;
}

.filter-text {
    color: #686868;
}

.filter-arrow {
    color: #686868;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    transform: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-top: 5px;
    margin-left: 20px;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.filter-dropdown.active {
    opacity: 1;
    visibility: visible;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 5px;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.filter-option:hover {
    background-color: #f5f5f5;
}

.filter-option.active {
    background-color: #e0e0e0;
    font-weight: bold;
}

.filter-label {
    font-family: TTFirsNeue-Regular;
    font-size: 12px;
    color: #000;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 768px) {
    .year-button {
        font-size: 14px;
        padding: 10px 16px;
        min-width: 100px;
    }
    
    .year-buttons {
        gap: 0px;
        margin: 20px auto 10px;
    }

    .filter-toggle {
        font-size: 14px;
        padding: 10px 16px;
    }

    .filter-dropdown {
        min-width: 180px;
        max-height: 250px;
    }

    .filter-label {
        font-size: 13px;
    }
    
    .course-btn.add-to-cart-btn,
    .course-btn.remove-from-cart-btn {
        font-size: 14px;
        padding: 10px 24px;
    }
}

/* Стили для скрытия/показа курсов при фильтрации */
.course-item {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.course-item[style*="display: none"] {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.course-item:not([style*="display: none"]) {
    opacity: 1;
    visibility: visible;
}

/* Стили для модального окна просмотра изображений */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

/* Блокировка прокрутки при открытом модальном окне */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    padding: 10vh 10vw;
    box-sizing: border-box;
}

.modal-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    will-change: transform, opacity;
    transition: opacity 0.1s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 22px;
    font-family: TTFirsNeue-Medium;
    font-weight: 500;
    cursor: pointer;
    z-index: 10000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.6));
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    user-select: none;
    text-shadow: none;
}

.image-modal-close:hover {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.7));
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    color: #fff;
}

.image-modal-close:active {
    transform: scale(0.98);
}

/* Дополнительная кнопка закрытия внизу */
.image-modal-close-btn {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 8px 20px;
    font-family: TTFirsNeue-Regular;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    outline: none;
}

.image-modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) scale(1.05);
}

.image-modal-close-btn:active {
    transform: translateX(-50%) scale(0.95);
}

/* Контейнер для изображения с кнопкой просмотра */
.image-container {
    position: relative;
    display: inline-block;
}

.image-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    cursor: pointer;
    font-family: TTFirsNeue-Medium;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    min-width: 100px;
    justify-content: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.image-view-btn:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7));
    transform: translate(-50%, -50%) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    color: white;
}

.image-view-btn:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.image-view-btn span {
    font-size: 14px;
    line-height: 1;
}

.view-text {
    font-size: 11px !important;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Показываем кнопку при наведении на block_1 */
/* .block_1:hover .image-view-btn {
    opacity: 1;
    visibility: visible;
} */

/* На мобильных устройствах кнопка всегда видна */
@media (max-width: 768px) {
    .image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-image {
        max-width: 90vw;
        max-height: 90vh;
        width: auto;
        height: auto;
    }
}

@media (max-width: 480px) {
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 25px;
        width: 35px;
        height: 35px;
    }
    
    .modal-image {
        max-width: 90vw;
        max-height: 90vh;
        width: auto;
        height: auto;
    }
    
    .image-modal-content {
        padding: 0;
    }
    
    .image-modal-close-btn {
        top: 60px;
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .image-view-btn {
        padding: 6px 12px;
        font-size: 10px;
        min-width: 80px;
        border-radius: 15px;
        border-width: 1px;
    }
    
    .image-view-btn span {
        font-size: 11px;
    }
    
    .view-text {
        font-size: 9px !important;
        letter-spacing: 0.3px;
    }
}

/* Красивая модалка для баланса */
#balanceModal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    min-width: 320px;
    max-width: 90vw;
    background: #fffbe6;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 8px #ffb05c;
    border: 2px solid #ffb05c;
    padding: 32px 32px 24px 32px;
    text-align: center;
    animation: modalFadeIn 0.3s cubic-bezier(.4,2,.6,1) forwards;
}
#balanceModal.show {
    display: block;
    animation: modalFadeIn 0.3s cubic-bezier(.4,2,.6,1) forwards;
}
#balanceModal .balance-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    display: inline-block;
}
#balanceModalText {
    font-family: TTFirsNeue-DemiBold;
    font-size: 22px;
    color: #d48806;
    margin-bottom: 18px;
    margin-top: 0;
}
#balanceModal .alert_but {
    margin-top: 18px;
}
#balanceModal .alert_1 {
    background: #ffb05c;
    color: #fff;
    font-size: 18px;
    border-radius: 12px;
    padding: 12px 36px;
    font-family: TTFirsNeue-Medium;
    border: none;
    box-shadow: 0 2px 8px rgba(255,176,92,0.12);
    transition: background 0.2s, color 0.2s;
}
#balanceModal .alert_1:hover {
    background: #fff;
    color: #ffb05c;
    outline: 2px solid #ffb05c;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.add-to-cart-btn {
    background: #ffb05c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-family: TTFirsNeue-DemiBold;
    padding: 13px 38px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(255,176,92,0.12);
}
.add-to-cart-btn:hover {
    background: #d4d4d4;
}
.remove-from-cart-btn {
    background: transparent;
    color: #999;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-family: TTFirsNeue-DemiBold;
    padding: 13px 38px;
    cursor: pointer;
    margin-top: 10px;
    transition: color 0.2s ease;
    box-sizing: border-box;
}
.remove-from-cart-btn:hover {
    color: #666;
}

/* Стили для кнопок курсов с корзиной */
.course-btn.add-to-cart-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-family: TTFirsNeue-Regular;
    padding: 13px 38px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.5s ease;
    white-space: nowrap;
}
.course-btn.add-to-cart-btn:hover {
    background: #333;
    opacity: 0.8;
}

.course-btn.remove-from-cart-btn {
    background: transparent;
    color: #999;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    font-family: TTFirsNeue-Regular;
    padding: 13px 38px;
    cursor: pointer;
    margin-top: 10px;
    transition: color 0.2s ease, border-color 0.5s ease;
    box-sizing: border-box;
}
.course-btn.remove-from-cart-btn:hover {
    color: #666;
    border-color: #999;
}

/* Стили для модального окна уведомления о добавлении в корзину */
.cart-notification-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

/* Блокировка прокрутки при открытом модальном окне уведомления */
body.cart-notification-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.cart-notification-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.cart-notification-header {
    margin-bottom: 20px;
}

.cart-notification-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cart-notification-title {
    font-family: TTFirsNeue-DemiBold;
    font-size: 22px;
    color: #333;
    margin: 0 0 10px 0;
}

.cart-notification-text {
    font-family: TTFirsNeue-Regular;
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.cart-notification-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cart-notification-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-family: TTFirsNeue-Medium;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 140px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.continue-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.continue-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.go-to-cart-btn {
    background: linear-gradient(135deg, #ffb05c, #ff9f3a);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 176, 92, 0.3);
}

.go-to-cart-btn:hover {
    background: linear-gradient(135deg, #ff9f3a, #ff8f2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 92, 0.4);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cart-notification-content {
        padding: 25px 20px;
        max-width: 350px;
    }
    
    .cart-notification-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .cart-notification-title {
        font-size: 20px;
    }
    
    .cart-notification-text {
        font-size: 14px;
    }
    
    .cart-notification-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-notification-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .cart-notification-modal {
        top: 0;
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .cart-notification-content {
        padding: 20px 15px;
        max-width: 300px;
    }
    
    .cart-notification-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .cart-notification-title {
        font-size: 18px;
    }
    
    .cart-notification-text {
        font-size: 13px;
    }
    
    .cart-notification-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .cart-notification-modal {
        top: 0;
        height: 100vh;
    }
}

/* Стили для модального окна регистрации */
.registration-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

/* Блокировка прокрутки при открытом модальном окне регистрации */
body.registration-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.registration-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.registration-header {
    margin-bottom: 20px;
}

.registration-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffb05c, #ff9f3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(255, 176, 92, 0.3);
}

.registration-title {
    font-family: TTFirsNeue-DemiBold;
    font-size: 22px;
    color: #333;
    margin: 0 0 10px 0;
}

.registration-text {
    font-family: TTFirsNeue-Regular;
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.registration-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.registration-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-family: TTFirsNeue-Medium;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 200px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.login-btn {
    background: linear-gradient(135deg, #ffb05c, #ff9f3a);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 176, 92, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #ff9f3a, #ff8f2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 92, 0.4);
}

.register-btn {
    background: #333;
    color: white;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.3);
}

.register-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.4);
}

.cancel-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cancel-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .registration-content {
        padding: 25px 20px;
        max-width: 400px;
    }
    
    .registration-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .registration-title {
        font-size: 20px;
    }
    
    .registration-text {
        font-size: 14px;
    }
    
    .registration-buttons {
        gap: 10px;
    }
    
    .registration-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .registration-content {
        padding: 20px 15px;
        max-width: 350px;
    }
    
    .registration-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .registration-title {
        font-size: 18px;
    }
    
    .registration-text {
        font-size: 13px;
    }
    
    .registration-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Стили для сообщения о том, что курсов нет */
.no-courses-message {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: #f8f8f8;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid #e0e0e0;
}

.no-courses-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-courses-title {
    font-family: TTFirsNeue-DemiBold;
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.no-courses-text {
    font-family: TTFirsNeue-Regular;
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.no-courses-suggestion {
    font-family: TTFirsNeue-Medium;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.switch-year-btn {
    background: linear-gradient(135deg, #ffb05c, #ff9f3a);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: TTFirsNeue-Medium;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 176, 92, 0.3);
    text-decoration: none;
    display: inline-block;
}

.switch-year-btn:hover {
    background: linear-gradient(135deg, #ff9f3a, #ff8f2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 92, 0.4);
    color: white;
    text-decoration: none;
}

/* Адаптивность для сообщения о пустых курсах */
@media (max-width: 768px) {
    .no-courses-message {
        padding: 40px 15px;
        margin: 15px auto;
    }
    
    .no-courses-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .no-courses-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .no-courses-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .no-courses-suggestion {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .switch-year-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .no-courses-message {
        padding: 30px 10px;
        margin: 10px auto;
    }
    
    .no-courses-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .no-courses-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .no-courses-text {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .no-courses-suggestion {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .switch-year-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .course-btn.add-to-cart-btn,
    .course-btn.remove-from-cart-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}
