@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* html and body styles removed to avoid conflict with main dashboard background */

.content-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.discipline-panel {
    width: 686px;
    height: 611px;
    background: #C54D4E;
    border-radius: 30px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.discipline-header {
    text-align: center;
    margin-bottom: 20px;
}

.discipline-header h1 {
    font-weight: 900;
    font-size: 45px;
    color: #FFFFFF;
    margin: 0;
}

.discipline-header p {
    font-weight: 400;
    font-size: 22px;
    color: #FFFFFF;
    margin: 5px 0 0 0;
}

.discipline-main {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    flex: 1;
}

.cards-scroll-area {
    width: 500px;
    height: 253px;
    overflow-y: auto;
    overflow-x: visible;
    padding: 10px 20px;
}

.cards-scroll-area::-webkit-scrollbar {
    width: 0;
}

.level-card {
    width: 460px;
    background-color: transparent;
    border-radius: 20px;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Возвращаем для правильной формы аккордеона и скруглений */
    border: 3px solid transparent;
}

.level-card.active {
    border-color: white;
    transform: scale(1.02);
    z-index: 10;
}

/* Base background colors for each level */
.level-card[data-level="1"] .card-main-content {
    background-color: #FF7E80;
}

.level-card[data-level="2"] .card-main-content {
    background-color: #F86466;
}

.level-card[data-level="3"] .card-main-content {
    background-color: #E14B4D;
}

.level-card[data-level="4"] .card-main-content {
    background-color: #C13234;
}

.card-main-content {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 110px;
    border-radius: 17px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.level-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* Удалены специфичные стили иконки */

.level-text-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.level-title {
    font-weight: 900;
    font-size: 25px;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 1.1;
}

.level-specs {
    font-weight: 500;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.2;
}

.level-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.level-quote {
    font-weight: 400;
    font-style: italic;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.more-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.triangle {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Accordion Handling */
.level-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset -5px 10px 20px rgba(0, 0, 0, 0.25);
    margin-top: -10px;
    /* Заезжаем под карточку */
    padding-top: 10px;
    /* Компенсируем отступ, чтобы контент не прижимался */
}

.level-card.expanded .level-details {
    max-height: 250px;
}

.level-card.expanded .triangle {
    transform: rotate(180deg);
}

.details-content {
    padding: 25px 25px 30px 25px;
}

.details-title {
    font-weight: 900;
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.details-list {
    list-style: none;
    padding: 0;
}

.details-list li {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bullet {
    width: 13px;
    height: 13px;
    background-color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.custom-radio {
    width: 34px;
    height: 34px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.radio-dot {
    width: 24px;
    height: 24px;
    background-color: #FFFFFF;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.level-card.active .radio-dot {
    opacity: 1;
    transform: scale(1);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.level-card.disabled {
    opacity: 0.6;
    cursor: url('assets/block_this_site_hover_icon.svg') 11 11, not-allowed;
    pointer-events: auto;
}

/* Показываем карточку как заблокированную, но оставляем активный уровень ярким */
.level-card.locked {
    opacity: 0.5 !important;
    filter: grayscale(0.6);
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.level-card.locked.active {
    opacity: 1 !important;
    filter: none;
}

.coming-soon-badge {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.9;
}

.scrollbar-track {
    width: 35px;
    height: 253px;
    background-color: rgba(61, 16, 16, 0.4);
    border-radius: 20px;
    position: relative;
}

.scrollbar-thumb {
    width: 100%;
    background-color: #FF7E80;
    border-radius: 20px;
    position: absolute;
    top: 0;
    cursor: pointer;
}

.discipline-footer {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.btn {
    width: 257px;
    height: 61px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease,
        opacity 0.3s ease,
        background-color 0.3s ease;
}

.btn:hover:not([disabled]) {
    transform: translateY(-5px);
}

.btn:active:not([disabled]) {
    transform: translateY(-1px);
}

.btn-set {
    background-color: #FFFFFF;
    color: #555555;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

.btn-set:hover:not(:disabled) {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

.btn-set:active:not(:disabled) {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.btn-remove {
    background-color: #F86466;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
}

.btn-remove:hover:not(:disabled) {
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.3);
}

.btn-remove:active:not(:disabled) {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}