.race_block {
    padding: 0 16px;
}

.race_part {
    display: flex;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto 8px auto;
    position: relative;
}

.race_part .dropdown {
    width: 100%;
    position: static;
}

.races_nav {
    width: 100%;
    gap: 0;
}

.races_nav > .nav_link {
    flex: 1;
    width: 100%;
    padding: 12px 0;
    border-radius: 0;
    justify-content: center;
    border: none;
}

.race_toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    border: 1px solid #3C3C3C;
    background: #212121;
    padding: 7px 16px;
}

.race_toggle .race_icon {
    width: 32px;
    height: 32px;
}

.race_toggle .race_icon img {
    max-width: 100%;
    max-height: 100%;
}

.race_part .dropdown-menu {
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #3C3C3C;
    background: #212121;
    padding: 24px;
    display: flex;
    flex-direction: row;
}

.race_class_list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

.race_class_list > .race_child_classes {
    gap: 40px;
}

.race_base_class {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    line-height: 130%;
    padding: 6px 0;
}

.race_base_class_warrior {
    border-top: 1px solid rgba(60, 60, 60, 0.00);
    border-bottom: 1px solid rgba(60, 60, 60, 0.00);
    background: linear-gradient(90deg, rgba(51, 255, 167, 0.00) 0%, rgba(51, 255, 167, 0.06) 50%, rgba(51, 255, 167, 0.00) 100%);
}

.race_base_class_mage {
    border-top: 1px solid rgba(76, 42, 80, 0.00);
    border-bottom: 1px solid rgba(76, 42, 80, 0.00);
    background: linear-gradient(90deg, rgba(47, 35, 49, 0.00) 0%, #2F2331 50%, rgba(47, 35, 49, 0.00) 100%);
}

.race_child_classes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.race_child_class {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.race_class {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 11px;
    border: 1px solid #3C3C3C;
    background: #212121;
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.race_class::after {
    position: absolute;
    top: -7px;
    right: -22px;
    width: 64px;
    height: 64px;
    opacity: .08;
    display: block;
    content: "";
    background: var(--bg-image) no-repeat center;
    background-size: 64px auto;
}

.race_class:hover {
    background: #292929;
}

.class_hero {
    width: 100%;
    max-width: 1030px;
    margin: 0 auto 32px;
    text-align: center;
    line-height: 130%;
}

.class_hero h1 {
    color: var(--wiki-primary);
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 24px;
    text-transform: none;
}

.class_hero p {
    margin-bottom: 16px;
}

.class_hero .main_after_title {
    font-size: 18px;
    line-height: 1.2;
}

.class_hero p:last-child {
    margin-bottom: 0;
}

.class_part {
    position: relative;
    overflow: hidden;
    flex-direction: row;
    min-height: 305px;
}

.class_description {
    max-width: 340px;
}

.class_name {
    color: var(--wiki-primary);
    font-size: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.class_name img {
    height: 44px;
}

.class_text {
    margin-bottom: 24px;
}

.class_roles {
    font-weight: 400;
    line-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.class_role {
    display: flex;
    gap: 16px;
}

.class_role_name {
    color: var(--wiki-primary);
}

.class_role span {
    min-width: 75px;
}

.class_image {
    position: absolute;
    right: 0;
    width: 100%;
    max-width: 310px;
}

.class_image::after {
    display: block;
    content: "";
    background: radial-gradient(50% 50% at 50% 50%, rgba(51, 255, 167, 0.10) 0%, rgba(51, 255, 167, 0.00) 100%);
    width: 704px;
    height: 527px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -186px;
}

#class_stat_container {
    display: none;
}

#class_stat {
	max-width: 500px;
}

.class_stat_block {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.class_stat_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.class_stat_progress {
    width: 100%;
    border-radius: 100px;
    background: #3C3C3C;
}

.class_stat_progress_value {
    height: 4px;
    border-radius: 100px;
    background: #33FFA7;
}

#class_level_pickers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #3C3C3C;
    padding-bottom: 24px;
}

.class_level_picker {
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(174, 174, 174, 0.04);
    padding: 7px 12px;
    color: #DADADA;
    line-height: 1;
    transition: .2s linear;
}

.class_level_picker.active,
.class_level_picker:hover {
    background-color: rgba(174, 174, 174, 0.2);
}

.all_skill_tabs .nav_link {
    border-radius: 100px;
    padding: 9px 24px;
    line-height: 1;
}

.all_skill_tabs .nav_link.active {
    border: 1px solid rgba(97, 229, 179, 0.32);
    background: rgba(97, 229, 179, 0.12);
    color: #fff;
}

.accordion {
	border-radius: 12px;
    background: #2A2A2A;
    padding: 14px 16px;
    width: 100%;
    margin-bottom: 16px;
}

.accordion:last-child {
    margin-bottom: 0;
}

.accordion-header {
    padding: 0;
    border-bottom: none;
}

button.accordion-button::after {
    margin-left: auto;
}

button.accordion-button.open::after {
    transform: rotate(180deg);
}

.accordion-body {
    border-top: 1px solid #3C3C3C;
    padding-top: 16px;
    margin-top: 16px;
}

.all_skill_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 1660px) {
    .class_hero {
        padding: 112px 0 0 0;
        margin-bottom: 64px;
        font-size: 18px;
    }

    .class_hero h1 {
        font-size: 64px;
    }

    .races_nav {
        gap: 16px;
    }

    .races_nav > .nav_link {
        padding: 16px;
        font-size: 16px;
        border: 1px solid #3C3C3C;
        border-radius: 100px;
        background: #212121;
    }

    .races_nav > .nav_link.active {
        border-color: #33FFA7;
        background: #1C3D2F;
    }
}

@media (min-width: 1140px) {
    .race_block {
        padding: 0;
    }

    .race_child_classes {
        flex-direction: row;
        justify-content: center;
    }

    .race_class {
        width: 170px;
        font-size: 13px;
        padding: 0 32px 0 16px;
    }

    .class_image {
        left: 50%;
        transform: translateX(-50%);
    }

    #class_stat_container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 20px 24px;
        border-radius: 12px;
        border: 1px solid rgba(60, 60, 60, 0.50);
        width: 100%;
        max-width: 275px;
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .class_image img {
        display: none;
    }
}