body {
    min-width: 320px;
    overflow-x: hidden;
}

.topbar-content .left {
    min-width: 160px;
}

.topbar-content .right {
    min-width: 280px;
}

@media (min-width: 1800px) {

    .w8 {
        width: 90%;
        margin-left: 5%;
    }

    .little {
        width: 90%;
        margin-left: 5%;
    }

    .article .container:has(.section, .section-last) {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: min(1640px, calc(90vw - 40px));
    }

    .section,
    .section-last {
        column-count: 4;
        column-gap: 45px;
    }

}

@media (min-width: 1340px) {
    .section,
    .section-last {
        column-gap: 30px;
    }

    .card.first {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "image title"
            "image text";
    }

    .card.first .a-image {
        grid-area: image;
    }

    .card.first .a-title {
        grid-area: title;
    }

    .card.first .a-text {
        grid-area: text;
    }

}

@media (max-width: 1200px) {

    .card.first .a-image {
        flex-shrink: 0;
    }

    .card.first .a-title {
        flex: 1;
        min-width: 0;
    }

    .card.first .a-text a {
        display: block;
        width: 100%;
    }
}

@media (max-width: 1060px) {
    .w8 {
        width: 92%;
        margin-left: 4%;
    }

    .hide-mid {
        visibility: hidden;
    }

    .heade {
        white-space: normal;
        margin-right: 20px;
    }

    .top-sections {
        flex-direction: column;
    }

    .category-header-page {
        margin-right: 20px;
    }

    .main-article, .right-articles {
        width: 98%;
        margin-left: 1%;
    }

    .right-articles {
        margin-top: 23px;
    }

    .main-article {
        flex-direction: column;
    }

    .main-article a:has(img),
    .main-article-text {
        width: 100%;
    }

    .main-article a:has(img) {
        display: flex;
        justify-content: center;
    }

    .main-article img {
        max-width: 100%;
        width: auto;
    }

    .content {
        padding: 0 0 45px;
    }
}

@media (max-width: 925px) {

    .w8 {
        width: 98%;
        margin-left: 1%;
    }

    .section,
    .section-last {
        column-count: 1;
    }

    .r20 {
        padding-right: 0;
    }

    .split-column {
        margin-right: 28px;
        border-right: 0;
    }

    .split-layout {
        flex-direction: column;
    }

    .topbar-content {
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-end;
        gap: 20px;
    }

    .topbar-content .center {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .topbar-content .left {
        order: 2;
        min-width: unset;
        margin-left: 40px;
    }

    .topbar-content .right {
        order: 3;
        min-width: unset;
    }

    .topbar-content .right input {
        width: 188px
    }

    .main-article {
        flex-direction: column;
    }

    .main-article a:has(img),
    .main-article-text {
        width: 100%;
    }

    .main-article a:has(img) {
        display: flex;
        justify-content: center;
    }

    .main-article img {
        max-width: 100%;
        width: auto;
    }
}

@media (max-width: 630px) {
    .topbar .center div.logo {
        width: 300px;
        height: 78px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .split-column {
        margin-right: 0;
        border-right: none;
    }

    .right a.button, button {
        margin-right: 10px;
    }

    .card.first {
        flex-direction: column;
    }

    .card.first .a-image {
        width: 100%;
    }

    .card.first .a-image img {
        width: 100%;
        height: auto;
    }

    .card.first .a-title {
        width: 100%;
        flex: unset;
    }

    .card.first .a-text {
        width: 100%;
    }

}

@media (max-width: 476px) {

    .search, .most {
        display: none;
    }

    .topbar .center div.logo {
        width: 260px;
        height: 68px;
        margin: 0 auto;
    }

    .topbar-content .left {
        margin-left: 0;
    }

    .right-articles {
        flex-direction: column;
    }

    .first-article,
    .second-article {
        width: 100%;
        box-sizing: border-box;
    }

    .first-article.border-right {
        border-right: none;
        border-bottom: 3px solid #E0E0E0;
        padding-bottom: 16px;
    }

    .second-article .bottom {
        position: static;
        margin-top: 12px;
    }
}
