/* Articles */
.articles-first_mobile {
    display: none;
}

.articles-main__wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
}

.articles-main__blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.articles-first {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 566px;
    grid-column: 1 / -1;
    padding: 30px;
}

.articles-first::after {
    z-index: -1;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    background: -webkit-gradient(linear, left top, left bottom, color-stop(3.73%, rgba(202, 202, 202, 0.0677083)), color-stop(84.8%, #2b2b2b));
    background: linear-gradient(180deg, rgba(202, 202, 202, 0.0677083) 3.73%, #2b2b2b 84.8%);
}

.articles-first__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
}

.articles-first__title {
    font-weight: 600;
    font-size: 30px;
    color: var(--white);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.articles-first__title:hover {
    opacity: 0.7;
}

.articles-first__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.articles-first__info {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 600;
    font-size: 16px;
    color: var(--white);
}

.articles-first__views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.articles-main__more {
    font-weight: 600;
    font-size: 16px;
    border: 1px solid var(--grey7);
    justify-self: center;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 15px 30px;
    margin: 50px auto 0 auto;
}

.articles-main__more:hover {
    color: var(--white);
    background-color: var(--dark-grey);
}

.articles-first__date {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 1200px) {
    .articles-main__blocks {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .articles-main__wrapper {
        grid-template-columns: 1fr;
    }

    .articles-main__sidebar {
        order: -1;
    }

    .articles-main__sidebar .sidebar-socials,
    .articles-main__sidebar .sidebar-catalog {
        display: none;
    }
}

@media (max-width: 600px) {
    .articles-first_desktop {
        display: none;
    }

    .articles-first_mobile {
        display: flex;
    }

    .articles-main__blocks {
        grid-template-columns: 1fr;
    }

    .articles-first {
        min-height: 326px;
    }

    .articles-first__title {
        font-size: 20px;
    }
}

@media (max-width: 470px) {
    .articles-main__blocks {
        grid-template-columns: 1fr;
    }

    .articles-first__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .articles-first__info {
        font-size: 14px;
        gap: 10px;
    }
}

@media (max-width: 338px) {
    .articles-first {
        padding: 15px;
    }

    .articles-first__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .articles-first__title {
        font-size: 16px;
    }
}
