.articles_list_heading {
    color: var(--wiki-primary);
    font-size: 32px;
    line-height: 25px;
}

.categories_wrapper {
    margin-bottom: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 8px;
}

.article_category {
    border-radius: 12px;
    border: 1px solid #3C3C3C;
    background: #212121;
    padding: 8px;
    max-height: 48px;
    font-size: 14px;
    font-weight: 500;
    line-height: 110%;
    transition: .2s linear;
}

.article_category.active {
    border-color: #33FFA7;
    background-color: #1F3D32;
}

.article_category:hover {
    background-color: #1F3D32;
}

.new_articles {
    padding: 56px 65px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.articles_head {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
}

.articles_title {
    color: var(--wiki-primary);
    font-family: 'Montserrat Bold';
    font-size: 32px;
    line-height: 25px;
}

.articles_title span {
    color: #FFF;
}

.articles_button {
    display: flex;
    padding: 8px 24px;
    align-items: center;
    gap: 14px;
    border-radius: 100px;
    border: 1px solid var(--wiki-primary);
    background: #1F3D32;
    backdrop-filter: blur(4px);
    color: var(--wiki-primary);
    line-height: normal;
    cursor: pointer;
    transition: .2s linear;
}

.articles_button:hover {
    background-color: #2A5545;
}

.new_articles_wrapper {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.article {
    display: flex;
    width: 100%;
    max-width: 376px;
    height: 248px;
    padding: 18px 20px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    border-radius: 10px;
    border: 1px solid #3C3C3C;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.article::before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: var(--card-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all 0.6s ease;
}

.article:hover::before {
    transform: scale(1.1);
}

.article::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(180deg, #21212100 36.06%, #212121e6 100%), linear-gradient(180deg, #21212100 36.06%, #212121e6 100%);
    pointer-events: none;
    z-index: 0;
}

.article_content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.article_main_category {
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(60, 60, 60, 0.80);
    background: rgba(33, 33, 33, 0.86);
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 14px;
}

.article_title {
    color: #FFF;
    font-family: 'Montserrat Bold';
    font-size: 20px;
    line-height: 130%;
}

.article_meta {
    display: flex;
}

.article_date,
.article_views {
    color: #D3D3D3;
    font-size: 14px;
    line-height: 120%;
}

.article_views {
    margin-left: auto;
    display: inline-flex;
    gap: 8px;
}

.popular_articles {
    padding: 60px 65px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.popular_articles_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

.articles_button .text-short {
    display: none;
}

.random_button {
    display: flex;
    padding: 8px 24px 8px 16px;
    align-items: center;
    gap: 12px;
    border-radius: 100px;
    border: 1px solid var(--wiki-primary);
    background: #1F3D32;
    backdrop-filter: blur(4px);
    color: var(--wiki-primary);
    line-height: normal;
    transition: .2s linear;
}

.random_button:hover {
    background-color: #2A5545;
}

.articles_buttons {
    display: flex;
    gap: 16px;
}

@media (max-width: 1330px) {

    .article {
        background-size: cover;
    }

    .article:hover {
        background-size: cover;
    }
}

@media (max-width: 1030px) {
    .new_articles {
        padding: 60px 16px;
    }

    .popular_articles {
        padding: 60px 16px;
    }
}

@media (max-width: 820px) {
    .random_button {
        display: none;
    }

    .new_articles_wrapper {
        flex-direction: column;
        align-items: center;
    }

    .article {
        max-width: 500px;
    }

    .popular_articles_wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .popular_articles_wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .articles_title {
        font-size: 24px;
        line-height: 25px;
    }

    .new_articles {
        padding: 32px 16px;
    }

    .articles_button {
        padding: 6px 10px;
        font-size: 14px;
        gap: 8px;
        min-width: 70px;
    }

    .new_articles_wrapper {
        gap: 16px;
    }

    .popular_articles {
        padding: 0 16px;
    }

    .articles_button .text-full {
        display: none;
    }

    .articles_button .text-short {
        display: inline;
    }
}

.article_part p {
    margin-bottom: 12px;
}

.article_part h1,
.article_part h2,
.article_part h3,
.article_part h4,
.article_part h5 {
    margin-top: 0;
    margin-bottom: 16px;
    scroll-margin-top: 96px;
    line-height: 100%;
}

.article-section {
    border-bottom: #3C3C3C solid 1px;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.article-section h1 {
    color: var(--wiki-primary);
    font-size: 24px;
    margin-bottom: 0;
}

.article-section .article-section__subheading {
    color: #ffffff40;
    margin: 16px 0 0 0;
    line-height: 100%;
}

.article_part h2 {
	font-size: 24px;
    color: var(--wiki-primary);
    border-bottom: #3C3C3C solid 1px;
    padding: 0 0 10px 0;
}

.article_part h3 {
	font-size: 18px;
	margin-top: 16px;
}

.article_part .nav-link {
    padding: 8px 16px;
} 

.article_part {
    max-width: 1200px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #3C3C3C;
    background: #212121;
    margin: 0 auto 32px auto;
    line-height: 140%;
}

.article_part p:last-child {
    margin-bottom: 0;
}

#article a {
    color: #FFF;
    text-decoration: underline;
}

#article .table tr:last-child td {
    border-bottom: #3C3C3C solid 1px;
}

details {
	border-radius: 12px;
    background: #2A2A2A;
    padding: 14px 16px;
}

summary {
    color: #fff;
    position: relative;
    anchor-name: --summary;
    
    &::marker {
        content: "";
    }
    
    &::after {
        content: '';
        filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(21%) hue-rotate(146deg) brightness(105%) contrast(105%);
        position: absolute;
        top: 10px;
        right: 16px;
        width: 10px;
        height: 10px;
        background: url(../assets/drop_arrow.svg) center / contain no-repeat;
        display: block;
        transition: all 0.3s ease;
        position-anchor: --summary;
        position-area: top end;
    }
}

details[open] summary {
    border-bottom: #3C3C3C solid 1px;
    padding-bottom: 16px;

    &::after {
        transform: rotate(90deg);
        transform-origin: 50%;
    }
}

details[open] summary {
    border-bottom: 1px solid #333333;
    margin-bottom: .5em;
}

#article-menu {
    position: fixed;
    z-index: 1000;
    top: 169px;
    right: 16px;
}

#article-menu-toggler {
    transition: .3s ease;
    position: absolute;
    right: 0;
    top: -59px;
    border-radius: 10px;
    border: 1px solid #3C3C3C;
    background: #212121 url(../assets/article_menu_hide.svg) no-repeat center;
    width: 43px;
    height: 43px;
    cursor: pointer;
}

#article-menu.closed #article-menu-toggler {
    background-image: url(../assets/article_menu_show.svg);
}

#article-menu-content {
    display: flex;
    flex-direction: column;
    border: #3C3C3C solid 1px;
    border-radius: 12px;
    padding: 24px;
    background-color: #212121;
    transition: .3s ease;
    max-height: calc(100vh - 170px);
    overflow-y: scroll;
    gap: 16px;
    font-size: 14px;
    line-height: 1.2;
    width: 100%;
    max-width: 236px;
}

#article-menu.closed #article-menu-content {
    display: none;
}

.article-menu-heading {
    transition: .2s linear;
}

.article-menu-heading:hover,
.article-menu-heading.active {
    color: #33FFA7;
}

.article-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #3C3C3C;
    background: #212121;
}

.article-step {
    padding-left: 48px;
    position: relative;
}

.article-step .completed {
    opacity: .16;
}

.article-step::before {
    display: block;
    content: "";
    width: 16px;
    height: 16px;
    border: 4px solid #3C3C3C;
    border-radius: 4px;
    background-color: #3C3C3C;
    position: absolute;
    left: 0;
}

.article-step:has(.completed)::before {
    background-color: var(--wiki-primary);
}

.article_part .alarm {
    border: #608273 solid 1px;
    background: #26342E;
    padding: 24px;
    border-radius: 4px;
}

.article_part .slick-slide img {
    display: inline-block;
}

.article_part figure {
    margin: 0 0 1rem;
}

.multisell-window {
	display: flex;
	flex: 1 50%;
}

.multisell-column {
	width: 50%;
	position: relative;
}

.multisell-rewardGroup {
	padding-right: 16px;
	max-height: 480px;
	position: relative;
	overflow-x: hidden;
	overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.multisell-item {
    border: #2A2A2A solid 1px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}

details .multisell-item {
    border-color: #333;
}

.multisell-item:hover,
.multisell-item.active {
	background-color: #2A2A2A;
}

details .multisell-item:hover,
details .multisell-item.active {
    background-color: #333;
}

.multisell-price {
	min-height: 100px;
}

@media (max-width: 640px) {
	.multisell-window {
		font-size: 14px;
	}
}

.multisell-itemlist {
    background-color: #2A2A2A;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

details .multisell-itemlist {
    background-color: #333;
}

.article_categories_name {
    width: 200px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
}

.article_categories_posts {
    width: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 9px 16px;
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
}

.article_categories_post span {
    display: flex;
    gap: 12px;
}

.article_categories_post img {
    width: 16px;
    height: 16px;
}

@media (max-width: 1660px) {
    #article-menu-toggler {
        background-image: url(../assets/article_menu_show.svg);
    }

    #article-menu.closed #article-menu-toggler {
        background-image: url(../assets/article_menu_hide.svg);
    }

    #article-menu-content {
        display: none !important;
    }

    #article-menu.closed #article-menu-content {
        display: flex !important;
    }
}

@media (max-width: 1030px) {
    .article_categories_posts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    #article-menu {
        padding: 16px;
        top: 96px;
    }

    #article-menu.open #article-menu-toggler {
        margin-bottom: 16px;
    }

    #article-menu-content {
        gap: 16px;
    }

    .article_categories_name {
        width: 100%;
        margin-bottom: 16px;
    }

    .article_categories_posts {
        width: 100%;
        grid-template-columns: 1fr;
    }
}