/*********************************/
/* Новости на отдельной странице */
/*********************************/

.news-list_section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
}

.news-card_section {
   position: relative;
    background: transparent;
    border-radius: 5px;
    overflow: visible;
    box-sizing: border-box;
}

.news-card_section::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(87, 70, 42, 0.18);
    border-radius: 5px;
    pointer-events: none;
    box-sizing: border-box;
}

.news-card__link_section {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 5px;
    overflow: hidden;
}

.news-card__image_section {
    width: 100%;
    position: relative;
    flex: 0 0 auto;
}

.news-card__image_section img {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.news-card__body_section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
}

.news-card__date_section {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 8px 14px;
    background: rgba(184, 84, 88, 0.8);
    color: #f3ead9;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    
}

.news-card__title_section {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    text-transform: uppercase;
    color: #4a3a20;
    transform: scaleY(1.16);
}

.news-card__text_section {
    font-size: 13px;
    line-height: 1.5;
    color: #4a3a20;
    transform: scaleY(1.12);
    margin-top: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-clamp: 3;
}

.news-card__more_section {
    margin-top: auto;
    font-size: 15px;
    text-transform: uppercase;
}

.news-card__link_section:hover .news-card__title_section,
.news-card__link_section:hover .news-card__more_section {
    text-decoration: underline;
}

#pdopage {
    position: relative;
    z-index: 1;
    margin-bottom: -30px;
    padding-bottom: 25px;
}

#pdopage .btn {
    display: block;
    width: fit-content;
    white-space: nowrap;
    margin-top: 32px;
    margin-bottom: 20px;
    padding: 10px 35px;
    border: none;
    border-radius: 3px;
    background: #B85458;
    color: #f3ead9;
    font-size: 15px;
    line-height: 1;
    transform: scaleY(1.16);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

@media (max-width: 1200px) {
    .news-list_section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .news-list_section {
        grid-template-columns: 1fr;
    }
}

/*********************************/
/*   Страница с одной новостью   */
/*********************************/

.news-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0 15px;
}

.news-layout__main {
    flex: 1;
    min-width: 0;
    background: #efd7be;
    color: #452d09;
    padding: 10px 30px 15px 1px;
    box-sizing: border-box;
    border-right: 2px solid rgba(184, 84, 88, 0.5);
}

.news-layout__sidebar {
    flex: 0 0 415px;
    box-sizing: border-box;
    
    padding: 1px 0 1px 20px;
}

.news-layout__meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: #7b6148;
}

.news-layout__text {
    font-size: 18px;
    color: #452d09;
    
}

.news-sidebar {
    background: transparent;
    padding: 1px 1px 1px 20px;
    box-sizing: border-box;
}

.news-sidebar__heading {
    margin-bottom: 20px;
    font-size: 20px;
    text-transform: uppercase;
    color: #3c250f;
    transform: scaleY(1.16);
    text-align: center;
}

.news-sidebar-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
}

.news-sidebar-item__image {
    flex: 0 0 100px;
}

.news-sidebar-item__image img {
    width: 160px;
    height: 105px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.news-sidebar-item__body {
    flex: 1;
}

.news-sidebar-item__date {
    font-size: 12px;
    color: #7b6148;
    margin-bottom: 4px;
}

.news-sidebar-item__title {
    font-size: 14px;
    color: #3c250f;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    transform: scaleY(1.14);
}
.news-layout__text p {
    padding: 10px 5px;
    text-indent: 1.5em;
    transform: scaleY(1.12);
}

.news-layout__text img, iframe, {
    transform: scaleY(0.88);
    padding:5px 10px 5px 10px;
    border-radius: 15px;
    
}

.news-layout__text p:first-child {
    margin-top: 0;
}

/*********************************/
/*      кнопки след и пред       */
/*********************************/

.news-layout__separator {
    width: 100%;
    height: 2px;
    background: rgba(184, 84, 88, 0.35);
    margin: 32px 0 24px;
}

.news-neighbors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 1000px;
    margin: 20px auto 0;
    justify-content: space-between;
    align-items: start;
}

.news-neighbor {
    display: flex;
    align-items: stretch;
    min-width: 0;
    min-height: 50px;
    overflow: hidden;
    color: #3c250f;
    text-decoration: none;
    background: transparent;
    width:360px;
    max-width: 100%;
}

.news-neighbor:hover  {
   text-decoration: underline;
}

.news-neighbor__image {
    flex: 0 0 150px;
    width: 150px;
    height: 100px;
    background: #dfc3a4;
}

.news-neighbor__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 60px;
    object-fit: cover;
}

.news-neighbor__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 16px;
}

.news-neighbor__label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #95663c;
}

.news-neighbor__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-neighbor--next {
    justify-self:end;
}

.news-neighbor--prev {
    
    justify-content:start;
}


.news-neighbor--next .news-neighbor__body {
    order: 1;
}

.news-neighbor--next .news-neighbor__image {
    order: 2;
}

@media (max-width: 700px) {
    .news-neighbors {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-neighbor {
        min-height: 110px;
    }

    .news-neighbor__image {
        flex-basis: 110px;
        width: 110px;
        min-height: 110px;
    }

    .news-neighbor__image img {
        min-height: 110px;
    }

    .news-neighbor__body {
        padding: 12px;
    }

    .news-neighbor--next {
        text-align: left;
    }

    .news-neighbor--next .news-neighbor__body {
        order: 2;
    }

    .news-neighbor--next .news-neighbor__image {
        order: 1;
    }
}