body {
    font-size: 16px;
}

main {
    overflow: hidden;
}

/*** COMPONENTS ***/

.btn-link {
    border: 3px solid var(--blue);
    padding: 15px 21px;
    border-radius: 64px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.btn-link .white {
    display: none;
}

.btn-link.dark {
    color: #FCFCFC;
}

.btn-link.dark:hover {
    color: var(--blue);
}

.btn-link.dark .white {
    display: block;
}

.btn-link.dark .black {
    display: none;
}

.pcb_category {
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    background-color: #fff;
    width: fit-content;
}

.pcb_category.green {
    color: #00C389;
}

.to_top {
    z-index: 1;
}

section.partner_posts.darken {
    margin-top: 60px;
    padding: 48px 0;
    background-color: #212121;
}

section.partner_posts.darken .block-title {
    color: #fff;
}

/*** COMPONENTS END***/

/*** MAIN BANNER ***/
.main-banner {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 24px;
}

.big_banner,
.dop_banners_col {
    margin: 0;
}

.big_banner {
    border-radius: 10px;
    overflow: hidden;
    height: auto;
    min-height: 304px;
}

.big_banner a {
    padding: 40px;
    display: flex;
    align-items: end;
}

.big_banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}

.big_banner .banner_txt_hidder {
    position: static;
    height: auto;
}

.big_banner .banner_txt_hidder .banner_txt {
    position: relative;
}

.big_banner .banner_category {
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    padding: 8px 16px;
}

.big_banner .banner-description {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.dop_banners_col {
    width: 100%;
}

.dop_banners_col h2 {
    font-size: 20px;
}

.dop_banners_col > hr {
    height: 4px;
    border-radius: 4px;
    background-color: var(--blue);
    margin-top: 16px;
    margin-bottom: 20px;
    border: none;
}

.small-banner-block {
    display: flex;
    flex-direction: column;
}

.small-banner-block .small_banner {
    height: auto;
    margin-bottom: 0;
    display: block;
}

.small_banner a {
    display: flex;
    gap: 16px;
    border-radius: 6px;
}

.small_banner a:hover {
    box-shadow: 0 5px 5px #ccc;
}

.small_banner a,
.small_banner img {
    position: static;
}

.small_banner a h3 {
    display: -webkit-box;
    font-size: 16px;
    height: calc(2em * 1.1);
    -webkit-line-clamp: 2; /* Количество строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.small_banner a img {
    width: 20%;
    border-radius: 6px;
}

.small_banner a p {
    color: #838390;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-top: 6px;
    padding-right: 4px;
}

.small_banner a div {
    flex-grow: 1;
}

.small_banner hr {
    height: 4px;
    border-radius: 4px;
    background-color: #DBE4ED;
    margin: 10px 0 18px;
    border: none;
}

.small_banner:last-child hr {
    display: none;
}

/*** MAIN BANNER END ***/

/*** DIGITAL BUSINESS ***/

.digital-business {
    padding: 48px;
    background-color: #212623;
}

.block-title {
    display: flex;
    gap: 40px;
    align-items: start;
    color: #212121;
}

.block-title.dark {
    display: flex;
    gap: 40px;
    align-items: start;
    color: #fff;
}

.block-title .inner {
    max-width: 580px;
}

.block-title .inner h2 {
    font-size: 56px;
}

.block-title .inner p {
    font-weight: 400;
    margin-top: 16px;
}

.digital-business-posts {
    padding-top: 56px;
}

.digital-business-posts .owl-nav,
.blogs .posts .owl-nav {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    gap: 8px;
}

.blogs .posts .owl-nav button,
.digital-business .digital-business-posts .owl-nav button {
    width: 32px;
    background: #fff;
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--blue);
}

.digital-business-posts .post-card {
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow: hidden;
}

.digital-business-posts .post-card .hero {
    position: relative;
    padding: 32px 24px;
    height: 248px;
    display: flex;
    align-items: end;
}

.digital-business-posts .post-card .hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.digital-business-posts .post-card .hero .badge {
    position: relative;
    font-weight: 700;
    color: var(--blue);
    padding: 8px 16px;
    background-color: #fff;
    width: fit-content;
    border-radius: 8px;
}

.digital-business-posts .post-card > p:first-of-type {
    color: #838390;
    margin: 16px 0 24px;
    display: flex;
    justify-content: space-between;
}

.digital-business-posts .post-card h4 {
    font-size: 24px;
    flex-grow: 1;
    height: calc(4em * 1.1);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.digital-business-posts .post-card > p:last-of-type {
    color: #838390;
    margin-top: 8px;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    /*height: 1em;*/
    white-space: nowrap;
}

/*** DIGITAL BUSINESS END***/

/*** NEW POSTS ***/
section.main_last_posts {
    background-color: #fff;
}

.main_last_posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 56px 0;
    column-gap: 32px;
    row-gap: 56px;
}

.main_last_posts .posts-grid div:not(:last-child):nth-child(n+3) {
    margin-right: 16px;
}

.main_last_posts .posts-grid > div:first-child {
    grid-column: span 2;
    border-radius: 10px;
    overflow: hidden;
}

.main_last_posts .posts-grid > div:first-child > a {
    position: relative;
    padding: 56px 32px;
    display: flex;
    align-items: end;
    height: 620px;
}

.main_last_posts .posts-grid > div:first-child a::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #121212, #12121229);
    z-index: 1;
}

.main_last_posts .posts-grid > div:first-child img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.main_last_posts .posts-grid > div:first-child .inner {
    position: relative;
    max-width: 528px;
    z-index: 3;
}

.main_last_posts .posts-grid > div:first-child .inner h3 {
    margin: 32px 0 16px;
    font-size: 40px;
    color: #fff;
}

.main_last_posts .posts-grid > div:first-child .inner p {
    color: #838390;
    font-size: 16px;
}

.main_last_posts .posts-grid > div:first-child a:hover h3 {
    color: var(--blue);
    transition: 0.3s color ease;
}


.main_last_posts .posts-grid > div:nth-child(2) {
    grid-column: span 2;
    overflow: hidden;
    border-bottom: 1px solid #DBE4ED;
}

.main_last_posts .posts-grid > div:nth-child(2) > a {
    display: block;
    height: 100%;
    padding-bottom: 16px;
}

.main_last_posts .posts-grid > div:nth-child(2) > a .inner {
    position: relative;
    padding: 56px 32px;
    display: flex;
    align-items: end;
    height: calc(2 / 3 * 100%);
    border-radius: 10px;
    overflow: hidden;
}

.main_last_posts .posts-grid > div:nth-child(2) > a .inner img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.main_last_posts .posts-grid > div:nth-child(2) > a .inner .pcb_category {
    position: relative;
}

.main_last_posts .posts-grid > div:nth-child(2) > a h3 {
    font-size: 32px;
    margin: 24px 0 16px;
}

.main_last_posts .posts-grid > div:nth-child(2) > a p {
    font-size: 16px;
    color: #838390;
}

.main_last_posts .posts-grid > div:nth-child(2) > a p .author-link {
    color: #838390;
    text-decoration: underline;
}

.main_last_posts .posts-grid > div:nth-child(2) > a p .author-link:hover {
    text-decoration: none;
}

.main_last_posts .posts-grid .short:hover {
    cursor: pointer;
}

.main_last_posts .posts-grid .short .category {
    font-weight: 700;
    padding-bottom: 6px;
    border-bottom: 1px solid #DBE4ED;
    color: var(--blue);
}

.main_last_posts .posts-grid .short .category.green {
    color: #00C389;
}

.main_last_posts .posts-grid .short h3 {
    padding: 20px 0 12px;
    font-size: 16px;
    font-weight: 400;
}

.main_last_posts .posts-grid .short .info {
    color: #838390;
    font-size: 12px;
}

/*** NEW POSTS END***/

/*** GADGETS ***/
section.partner_posts h2 {
    margin-bottom: 56px;
}

a.any_partner_post {
    position: relative;
    height: 256px;
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
    padding: 40px 24px;
    align-items: end;
    width: 100%;
}

a.any_partner_post:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #212121, transparent);
}

a.any_partner_post .partner_post_img {
    margin-bottom: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a.any_partner_post .partner_post_title {
    margin-bottom: 0;
    position: relative;
    color: #fff;
    z-index: 1;
    font-size: 20px;
    margin-left: 0;
    font-weight: 700;
}

a.any_partner_post:hover .partner_post_title {
    color: var(--blue);
    transition: color 0.3s ease;
}

/*** GADGETS END***/

/*** POPULAR POSTS ***/
.pop-posts-wr .row .item {
    padding: 0 24px;
}

.main_fix_post {
    height: 256px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 0;
    display: flex;
    justify-content: end;
}

.main_fix_post:hover .pop-title p {
    color: var(--blue);
    transition: color 0.3s ease;
}

.main_fix_post .main_small_post_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.main_fix_post .main_small_post_img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to top, #212121, transparent);
    z-index: 1;
    width: 100%;
    height: 100%;
}

.main_fix_post .pop-title {
    height: calc(3em * 1.35 + 48px);
    padding: 24px;
    overflow: hidden;
    width: 100%;
}

.main_fix_post .pop-title p {
    font-size: 18px;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pop-btn-next,
.pop-btn-prev {
    display: none;
}

/*** POPULAR POSTS END***/

/*** BLOGS  ***/
.blogs {
    background-color: #212121;
    padding: 48px 0;
}

.blogs .block-title {
    position: relative;
}

.blogs .block-title .inner {
    max-width: 310px;
}

.blogs .block-title .blogs-hide {
    display: none;
    position: absolute;
    bottom: 0;
    right: 5%;
    border: none;
    outline: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(/assets/img/icons/chevron-right.svg);
    transform: rotate(90deg);
    transition: transform 0.5s ease;
}

.blogs .block-title .blogs-hide.show {
    transform: rotate(90deg) scaleX(-1);
}

.blogs .posts {
    padding-top: 56px;
}

.blogs .posts .post {
    color: #fff;
}

.blogs .posts .post .post-author {
    font-size: 18px;
}

.blogs .posts .post .muted {
    margin-top: 4px;
    font-size: 12px;
    color: #838390;
    display: flex;
    justify-content: space-between;
}

.blogs .posts .post img {
    margin-bottom: 16px;
    width: 100%;
    height: 248px;
    object-fit: cover;
    border-radius: 10px;
}

.blogs .posts .post .post-section {
    position: relative;
    padding-bottom: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    overflow: hidden;
}

.blogs .posts .post .post-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 150px;
    background-color: #E7E6E666;
}

.blogs .posts .post .post-title {
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.blog-controls {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.blog-controls .blogs-btn-next,
.blog-controls .blogs-btn-prev {
    border: none;
    outline: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-top: 32px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.blog-controls .blogs-btn-prev {
    background-image: url(/assets/img/icons/chevron-right.svg);
    transform: rotate(-90deg);
}

.blog-controls .blogs-btn-next {
    background-image: url(/assets/img/icons/chevron-right.svg);
    transform: rotate(90deg);
}

.blog-controls .blogs-btn-next.disabled,
.blog-controls .blogs-btn-prev.disabled {
    opacity: 0.5;
}

/*** BLOGS END ***/


@media screen and (max-width: 768px) {
    .block-title {
        gap: 18px;
        flex-direction: column;
    }

    .block-title a {
        padding: 8px 16px;
        font-size: 12px;
    }

    .block-title .inner h2 {
        font-size: 24px;
    }

    .block-title .inner p {
        font-size: 12px;
    }

    .pcb_category {
        padding: 6px 8px;
        font-size: 10px;
    }

    section.partner_posts.darken {
        margin-bottom: 24px;
    }

    .main-banner {
        grid-template-columns: 1fr;
    }

    .main-banner .big_banner {
        min-height: 220px;
    }

    .main-banner .big_banner a {
        padding: 24px;
    }

    .main-banner .big_banner .banner_txt_hidder {
        padding: 0;
        max-width: 220px;
    }

    .main-banner .big_banner .banner_txt_hidder .banner_category {
        padding: 6px 8px;
        font-size: 10px;
    }

    .main-banner .big_banner .banner_txt_hidder .banner_title {
        font-size: 18px;
    }

    .main-banner .big_banner .banner_txt_hidder .banner-description {
        font-size: 10px;
    }

    .main-banner .dop_banners_col h2 {
        font-size: 16px;
    }

    .main-banner .dop_banners_col hr {
        height: 2px;
        margin-top: 8px;
        margin-bottom: 12px;
    }

    .main-banner .small-banner-block hr {
        height: 1px;
        margin-top: 10px;
    }

    .main-banner .small_banner a img {
        width: 68px;
    }

    .main-banner .small_banner a h3 {
        font-size: 16px;
    }

    .main-banner .small_banner a p {
        font-size: 8px;
    }

    .digital-business {
        padding: 32px 0;
    }

    .digital-business .digital-business-posts {
        padding-top: 16px;
        margin-top: 40px;
    }

    .digital-business .digital-business-posts .post-card .hero {
        padding: 24px;
    }

    .digital-business .digital-business-posts .post-card .hero .badge {
        padding: 6px 8px;
        font-size: 10px;
    }

    .digital-business .digital-business-posts .post-card > p:first-of-type {
        font-size: 10px;
        margin: 12px 0 16px;
    }

    .digital-business .digital-business-posts .post-card > h4 {
        font-size: 18px;
        height: calc(2em * 1.1);
        -webkit-line-clamp: 2;
    }

    .digital-business .digital-business-posts .post-card > p:last-of-type {
        font-size: 14px;
    }

    .digital-business .owl-nav {
        margin-top: 0;
        transform: translateY(-100%);
    }

    .digital-business .btn-link {
        padding: 9px 16px;
        font-size: 8px;
    }

    .digital-business .btn-link img {
        height: 18px;
    }

    .main_last_posts .posts-grid {
        grid-template-columns: 1fr;
        padding: 0;
        row-gap: 32px;
    }

    .main_last_posts .posts-grid > div:nth-child(1),
    .main_last_posts .posts-grid > div:nth-child(2) {
        grid-column: 1;
    }

    .main_last_posts .posts-grid > div:first-child > a {
        padding: 32px 24px;
        height: 360px;
    }

    .main_last_posts .posts-grid > div:first-child .inner h3 {
        margin: 16px 0 8px;
        font-size: 18px;
        color: #fff;
    }

    .main_last_posts .posts-grid > div:first-child .inner p {
        font-size: 10px;
    }

    .main_last_posts .posts-grid > div:nth-child(2) > a .inner {
        padding: 32px 24px;
        height: 240px;
    }

    .main_last_posts .posts-grid > div:nth-child(2) > a h3 {
        font-size: 18px;
        margin: 16px 0 8px;
    }

    .main_last_posts .posts-grid .short .category {
        font-size: 12px;
        padding-bottom: 8px;
        width: 120px;
    }

    .main_last_posts .posts-grid .short h3 {
        padding: 16px 0 10px;
    }

    .main_last_posts .posts-grid .short .info {
        font-size: 10px;
    }

    .main_last_posts .block-title,
    section.partner_posts .block-title {
        flex-direction: row;
        align-items: center;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }

    .main_last_posts .block-title a,
    section.partner_posts .block-title a {
        flex: 1 0 auto;
        max-width: fit-content;
    }

    section.partner_posts h2 {
        margin-bottom: 0;
    }

    section.partner_posts .row {
        gap: 24px;
    }

    a.any_partner_post {
        padding: 32px 24px;
        height: 204px;
    }

    a.any_partner_post .partner_post_title {
        font-size: 16px;
    }

    .main_fix_post {
        height: 184px;
        font-size: 14px;
    }

    .main_fix_post .pop-title {
        height: calc(3em * 1.35 + 36px);
        width: 100%;
        padding: 16px 24px 20px;

        p {
            font-size: 14px;
        }
    }

    .pop-posts-wr {
        position: relative;
    }

    .pop-posts-wr .pop-posts {
        margin: 0 auto;
    }

    .pop-posts-wr .pop-posts .item__col .item {
        padding: 0;
        width: 90%;
    }

    .pop-posts-wr .pop-posts .item__col .item:last-child {
        margin-left: auto;
        margin-top: 24px;
    }

    .pop-posts-wr .pop-posts .item__col .item .main_fix_post {
        margin: 0;
    }

    .pop-posts-wr .pop-btn-next,
    .pop-posts-wr .pop-btn-prev {
        display: block;
        position: absolute;
        z-index: 1;
        cursor: pointer;
        border: none;
        outline: none;
        width: 12px;
        height: 22px;
        background-color: transparent;
        transition: scale 0.3s ease;
    }

    .pop-posts-wr .pop-btn-next.disabled,
    .pop-posts-wr .pop-btn-prev.disabled {
        opacity: 0.5;
        cursor: default;
    }

    .pop-posts-wr .pop-btn-next:not(.disabled):hover,
    .pop-posts-wr .pop-btn-prev:not(.disabled):hover {
        scale: 1.2;
        transition: scale 0.3s ease;
    }

    .pop-posts-wr .pop-btn-next {
        top: calc(25% - 6px);
        right: 5%;
        background-image: url('/assets/img/icons/chevron-right.svg');
        transform: translate(50%, -50%);
    }

    .pop-posts-wr .pop-btn-prev {
        bottom: calc(25% - 6px);
        left: 5%;
        background-image: url('/assets/img/icons/chevron-right.svg');
        transform: scaleX(-1) translate(50%, 50%);
    }

    .blogs .posts {
        padding-top: 16px;
    }

    .blogs .posts-wr {
        padding-top: 40px;
    }

    .blogs .posts .owl-nav {
        margin-top: 0;
        transform: translateY(-100%);
    }
}
