/* Выделение цветом */

.color-holest {
    color: #F01E1E;
}

.color-cist {
    color: #CB007B;
}

.color-pp {
    color: #00C4B3;
}


/* ---- */


/* Кнопка из статей */

.articles__button {
    margin: 15px auto;
    background: white;
    color: #05347F;
    width: 200px;
    height: 50px;
    font-size: 16px;
}

.articles__button:hover {
    background: #05347F;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 500px) {
    .articles__button {
        margin: 15px auto;
        width: 150px;
        height: 38px;
        font-size: 12px;
    }
}


/*  */


/* Бошльшой блок статей */

.articles {
    max-width: 1160px;
    margin: 20px auto 100px;
}

@media (max-width: 500px) {
    .articles {
        margin: 20px auto 80px;
    }
}

.articles__sections {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.articles__sections a {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 175px;
    height: 68px;
    width: 32%;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.09);
    box-shadow: 0px 0px 17px #E5E6F2;
    border-radius: 63px;
}

.articles__sections>[data-active="panciapiatta"] {
    box-shadow: 0px 0px 17px #00C4B380;
}

.articles__sections>[data-active="cist"] {
    box-shadow: 0px 0px 17px #E01E8180;
}

.articles__sections>[data-active="colesterolo"] {
    box-shadow: 0px 0px 17px #E3251E80;
}

.articles__sections>[data-active="gastro"] {
    box-shadow: 0px 0px 17px #0091C0;
}

.articles__sections>[data-active="talk-about"] {
    box-shadow: 0px 0px 17px #5AB7D6;
}


.articles__sections a img {
    width: 80%;
}

.articles__item {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1085px;
    margin: 0 auto;
}

.articles__item-box {
    width: 23%;
    /* height: 380px; */
    margin: 10px;
    max-width: 250px;
    opacity: 0;
    animation: ani 1s forwards;
    position: relative;
}

@keyframes ani {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.articles__item-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.articles__item-box span {
    display: block;
    margin: 5px 0;
    text-align: center;
	font-family: "DIN Round Pro", sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .articles__item {
        max-width: 810px;
    }
    .articles__item-box {
        width: 32%;
        margin: 10px;
        max-width: 250px;
    }
    .articles__item>.articles__item-box:nth-child(4) {
        display: none;
    }
    .display_off:last-child {
        display: none;
    }
}

@media (max-width: 900px) {
    .articles__item {
        max-width: 512px;
    }
    .articles__item-box {
        max-width: 150px;
    }
    .articles__item-box img {
        height: 145px;
    }
    .articles__item-box span {
        font-size: 12px;
    }
    .articles__sections {
        max-width: 460px;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    .articles__sections a {
        height: 56px;
    }
    .articles__author {
        top: -5px;
        left: 10px;
        width: 32px !important;
        height: 50px !important;
    }
}

@media (max-width: 600px) {
    .articles__item {
        max-width: 330px;
    }
    .articles__item-box {
        width: 50%;
        margin: 7px;
    }
    .articles__item-box span {
        font-size: 11px;
    }
    .articles__sections {
        max-width: 350px;
    }
    .articles__sections a {
        height: 45px;
    }
    .display_off {
        display: none;
    }
    .articles__item>.articles__item-box:nth-child(4) {
        display: block;
    }
}

@media (max-width: 375px) {
    .articles__item {
        max-width: 285px;
    }
    .articles__item-box {
        width: 50%;
        margin: 6px;
        max-width: 130px;
    }
    .articles__item-box img {
        height: 130px;
    }
}



/* Хлястик для автора */
.articles__author {
    position: absolute;
    top: -6px;
    left: 15px;
    width: 42px !important;
    height: 66px !important;
}

@media (max-width: 900px) {
    .articles__author {
        top: -5px;
        left: 10px;
        width: 32px !important;
        height: 50px !important;
    }
}

/* --- */
