.all_news {
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 2%;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-offset: 0%;
  text-decoration-thickness: 0%;
  color: #6136CA;
}

.container_news_title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}

.container_news_title h2 {
  text-align: left;
}

.container_home_news {
  display: flex;
}

.news-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  gap: 16px;

  width: 366.67px;

  background: #ffffff;
  border-radius: 24px;

  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
    margin-right: 8px;
  filter: drop-shadow(0px -2px 50px rgba(0, 0, 0, 0.1));
}


.date_news{
    display: flex;
    flex-direction: column;
}

.news-item-description {
    margin-top: 0;

font-style: normal;
font-weight: 500;
font-size: 13px;
line-height: 150%;
/* or 20px */
letter-spacing: 0.02em;

color: #6E6E6F;


}

.footer_news_block {
    display: block;
    width: 100%;
    margin-top: 60px;
}

.read_more_a {
    margin-right: 0;
    margin-left: auto;
    display: block;
    width: 100%;
    position: relative;
    text-align: right;
}


.date_news_title {
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    /* identical to box height, or 20px */
    letter-spacing: 0.02em;
    
    color: #F9630E;
    
    
    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
    
}


.date_mes {
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 150%;
/* identical to box height, or 20px */
letter-spacing: 0.02em;

color: #F9630E;


/* Inside auto layout */
flex: none;
order: 1;
flex-grow: 0;

}

/* news */
.news-intro-section {
    position: relative;
    padding-top: 32px;
    height: 200px;
    background: linear-gradient(78.18deg, #6136CA -62.48%, #5F3BB9 37.14%, #6744BD 82.53%, #5435A0 174.43%);
}

@media screen and (min-width: 1560px) {
    .news-intro-section {
        margin-top: 33px;
    }
}

.news-intro-section__breadcrumbs {
    margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
    .news-intro-section__breadcrumbs {
        margin-bottom: 16px;
    }
}

.news-intro-section__title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

@media screen and (min-width: 768px) {
    .news-intro-section__title {
        font-size: 48px;
    }
}

.news-intro-section::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 138px;
    background: url("../img/news-page-decor.png") no-repeat center/contain;
    z-index: 1;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
}

@media screen and (min-width: 768px) {
    .news-intro-section::after {
        transform: translateX(0);
        left: auto;
        right: 36px;
        top: 5px;
        bottom: auto;
        width: 295px;
        height: 180px;
    }
}

@media screen and (min-width: 1116px) {
    .news-intro-section::after {
        right: calc(50% - 510px);
    }
}

.news-list-section {
    margin-top: 16px;
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.news-list-section__list {
    padding: 0;
    margin: 0 0 16px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media screen and (min-width: 768px) {
    .news-list-section__list {
        display: grid;
        gap: 0 8px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 768px) {
    .news-list-section {
        margin-top: -30px;
        padding-bottom: 64px;
    }
}

/* sectopn */
.news-section {
    padding-top: 40px;
}

.news-section__header {
    margin-bottom: 24px;
}

@media screen and (min-width: 768px) {
    .news-section__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.news-section__title {
    font-size: 32px;
    color: #6136CA;
    margin: 0 0 2px 0;
}

@media screen and (min-width: 768px) {
    .news-section__title {
        font-size: 40px;
    }
}

@media screen and (min-width: 1560px) {
    .news-section__title {
        max-width: 350px;
    }
}

.news-section__link {
    color: #6136CA;
    font-weight: 600;
    font-size: 16px;
    text-underline-offset: 3px;
}

.news-section__card-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

@media screen and (min-width: 1560px) {
    .news-section__card-list {
        flex-direction: row;
    }

    .news-section__card-list > * {
        flex: 1;
    }
}

.news-card {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 324px;
    padding: 24px;
    background: #F6F6F6;
    border-radius: 24px;
    box-shadow: 0px -2px 50px 0px #0000001A;
}

.news-card__date-number {
    color: #F9630E;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.news-card__date-month {
    color: #F9630E;
    font-weight: 700;
    font-size: 13px;
    line-height: 20px;
    margin-bottom: 8px;
}

.news-card__title {
    -webkit-line-clamp: 3;
    /* Число отображаемых строк */
    display: -webkit-box;
    /* Включаем флексбоксы */
    -webkit-box-orient: vertical;
    /* Вертикальная ориентация */
    overflow: hidden;
    /* Обрезаем всё за пределами блока */
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px 0;
    min-height: 66px;
}

.news-card__text {
    -webkit-line-clamp: 4;
    /* Число отображаемых строк */
    display: -webkit-box;
    /* Включаем флексбоксы */
    -webkit-box-orient: vertical;
    /* Вертикальная ориентация */
    overflow: hidden;
    /* Обрезаем всё за пределами блока */
    font-size: 13px;
    font-weight: 500;
    color: #6E6E6F;
    margin: 0;
}

.news-card__link {
    position: relative;
    display: block;
    width: 66px;
    height: 54px;
    border-radius: 20px;
    background: #ffffff;
    color: inherit;
    margin-top: auto;
    margin-left: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news-card__link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

@media screen and (min-width: 768px) and (hover: hover) {
    .news-card__link:not(:disabled):not(.news-card__link--disabled):hover, .news-card__link:not(:disabled):not(.news-card__link--disabled):focus-visible {
        background: #F9630E;
        color: #ffffff;
    }
}

@media screen and (min-width: 768px) and (hover: hover) {
    .news-card:not(:disabled):not(.news-card--disabled):hover, .news-card:not(:disabled):not(.news-card--disabled):focus-visible {
        background: #ffffff;
    }
}
