/**                            
 * INDEX
 * 0. Блог статей
 * 1. Основные
 * 2. Содержание
 * 3. Таблицы
 * 3.1 Таблицы с заголовками
 * 4. Изображения
 * 5. Изображения + текст
 * 6. Колонки
 * 7. Цитирование
 * 8. До/после
 * 9. Пагинация
 * 10. Похожие статьи
 */

/**
 * 0. Блог статей
 */
.articles .banner {
   display: none;
}
.articles #breadcrumbs {
    display: block;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 18.2px;
    letter-spacing: 0%;
    color: #7C7C7C;
}
.articles #breadcrumbs a {
    font-weight: 400;
    font-size: 14px;
    line-height: 18.2px;
    letter-spacing: 0%;
    color: #FF8462;
    text-decoration: none;
}
.articles main {
    margin: 60px 0 0 0;
}
.articles img {
    vertical-align: top;
    max-width: 100%;
    height: auto;
}
.articles .banner__left {
    max-width: 100%;
}
.articles .banner__container {
    padding-bottom: 0;
}
.body_in.articles .banner__top {
    min-height: 0;
}
.articles .content {
    margin: 0px 0 40px;
}
.articles a:has(img.aligncenter) {
    text-align: center;
    display: block;
}
.article-item a { 
    color: #000;
    text-decoration: none;
}
.article-list {
    display: flex;
    justify-content: space-between;
    align-items: start;
    grid-template-columns: 1fr 1fr 1fr;
    align-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2%;
}
.article-item {
    display: block;
    max-width: 90%;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 32%;
}
.article-item a.photo {
    display: block;
    text-align: center;
    max-height: 200px;
    overflow: hidden;
    border-radius: 10px;
}
.article-item h3 {
    font-size: 16px;
    font-weight: 500;
}
.article-item a.photo img {
    vertical-align: top;
    width: 100%;
}
.articles .more-articles {
    color: #fff;
    display: inline-flex;
    max-width: 220px;
}
.articles .more-articles .loading, .articles .more-articles:hover {
    opacity: .7;
}
@media screen and (max-width: 1200px) {
.articles .banner {
    display: block;
}
.articles main {
    margin: 0;
}
.articles #breadcrumbs {
    max-width: 960px;
    padding: 20px;
}
main.articles .container {
    margin: 0 auto;
}

}
@media (min-width: 768px) and (max-width: 860px){
    .articles #breadcrumbs {
        max-width: 720px;
    }
}
@media (min-width: 576px) and (max-width: 768px) {
   .articles #breadcrumbs {
        max-width: 540px;
    }
}
@media screen and (max-width: 768px) {
.articles #breadcrumbs {
    max-width: 720px;
}
}
@media screen and (max-width: 782px) {
  .articles .banner {
    display: block;
/*    margin: -45px 0 0 0;*/
  }
  .article-list {
    display: block;
  }
  .article-item {
    max-width: 100%;
    margin: 20px 0;
    width: 100%;
  }
  .article-item a.photo {
    max-height: 300px;
  }
}

/**
 * 1. Основные
 */
.articles .content {
    background: #f9f9f9;
    font-family: Eastman, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
}
.articles .primary-block {
    padding: 20px;
    background: #FFF;
    border-radius: 20px;
}
.articles .content__container {
    padding: 10px 25px 50px 290px;
    line-height: 1.7em;
    color: #555555;
    position: relative;
}
.articles .content__container h1, .articles .content__container h2, .articles .content__container h3 {
    color: #2F2F2F;
    clear: both;
}
.articles .content__container h1 {
    margin: 20px 0 0 0;
}
.articles .content strong {
    color: #2F2F2F;
    font-weight: 500;
}
.articles .content h2 {
    font-size: 26px;
    margin-top: 25px;
}
.articles .content h3 {
     margin-top: 25px;
    font-size: 20px;
}

.articles .content__heading {
    margin: 0;
}
.articles .content .date {
    margin: 20px 0;
}
/**
 * 2. Содержание
 */
.articles .content .wp-block-group {
    position: absolute;
    left: 0;
    width: 270px;
    top: 10px;
    background: #ffffff;
    border-radius: 20px;
    padding: 0 15px;
}
.articles .content .wp-block-group h2.wp-block-heading {
    color: #000;
    font-weight: 400;
    font-size: 20px;
    line-height: 36px;
    padding: 7px 0 0;
    text-align: center;
}
.articles .content ul.wp-block-list {
    margin: 0 10px;
}
.articles .content ul.wp-block-list li:before {
    width: 4px;
    height: 4px;
    background: #555555;
}
.articles .content .wp-block-group ul.wp-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
    list-style-type: none; 
    counter-reset: num;
}
.articles .content .wp-block-group .wp-block-list li {
    margin: 0;
    position: relative;
    padding: 10px 0 10px 15px;
    border-top: 1px solid #cfcfcf;
}
.articles .content .wp-block-group .wp-block-list li:before {
    content: counter(num) '.';
    counter-increment: num;
    display: inline-block;
    position: absolute;
    top: 11px;
    left: -10px;
    width: 20px;
    text-align: right;
    background: none;
}
.articles .content .wp-block-group .wp-block-list li:before {
/*    display: none;*/
}
.articles .content .wp-block-group .wp-block-list li a {
    color: #000;
    font-family: Eastman, sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    opacity: .65;
}
.articles .content .wp-block-group .wp-block-list li:hover a {
    font-weight: 500;
    cursor: pointer;
}
.articles .content .wp-block-group .wp-block-list li>ul {
    list-style: disc;
}
.articles .content .wp-block-group .wp-block-list li a:hover {
    text-decoration: none;
}
.articles .content table {
    overflow: hidden;
    border-radius: 10px;
    font-size: 14px;
    margin: 0 0 10px 0;
    border-spacing: 0;
    border: 1px solid #FFF;
}
.articles .content .wp-block-group.social {
/*    top: auto;
   margin: -50px 0 0 0;*/
}
.articles .content .wp-block-group.social img {
    margin: 0 10px 0 0;
}
.articles .content ul li:before {
    top: 12px;
}

@media screen and (max-width: 782px) {
  .articles .content__container {
    padding: 0 0px 50px 0px;
  }
  .articles .content .wp-block-group {
    margin: 20px 0;
    position: relative;
    top: unset;
    width: 100%;
    right: unset;
  }
  .articles .content .wp-block-group {
    top: unset !important;
  }
  .articles .content .wp-block-group h2.wp-block-heading {
    line-height: 30px;
    padding: 10px 0 0;
  }
  .articles .content__container h1 {
    margin: 0;
  }
}

/**
 * 3. Таблицы
 */
.articles .content table strong {
    font-size: 16px;
    font-weight: 500;
}
.articles .content table td {
    padding: 20px;
}
.articles .content table td:nth-child(1), .articles .content table th:nth-child(1) {
    width: 40%;
}
.articles .content table tbody tr:nth-child(odd) {
    background-color: #FF85621A;
}
.articles .content table tbody tr:nth-child(even) {
    background-color: #FFF;
}
.articles .wp-block-table table {
    margin: 20px 0
}
.articles .wp-block-table {
    margin: 0;
}
@media screen and (max-width: 782px) {
  .articles .content table tr>td:nth-child(2) {
    padding: 10px;
  }
}

/**
 * 3.1 Таблицы с заголовками
 */
.articles .content table:has(thead) {
}
.articles .content table:has(thead) td, .articles .content table:has(thead) th {
    padding: 10px;
    text-align: left;
}
.articles .content table:has(thead) td:nth-child(1), .articles .content table:has(thead) th:nth-child(1) {
    width: inherit;
}
.articles .content table:has(thead) th {
    font-weight: 500;
}
/*.articles .content table:has(thead) tr {
   background: #FFF !important;
   border-bottom: 1px solid #555555;
}*/
.articles .content table:has(thead) thead tr {
    background: #FFF !important;
    color: #2F2F2F;
    font-size: 16px;
    font-weight: 400;
}
/*.articles .content table:has(thead) tbody td {
    vertical-align: top;
    border-bottom: 2px solid #b3b0b040;
}*/

@media screen and (max-width: 782px) {
  .articles .content table td {
    padding: 10px 10px 0 10px;
    display: block;
  }
  .articles .content table:has(thead) {
    min-width: 500px;
  }
  .articles .content table:has(thead) td {
    padding: 10px;
    display: table-cell;
  }
  .wp-block-table {
    width: 100%;
    overflow-x: scroll;
  }
  .articles .content table:not(:has(thead)) td {
    width: 100% !important;
  }
}

/**
 * 4. Изображения
 */
.articles figure.wp-block-image {
    text-align: center;
}
.articles figure.wp-block-image img {
    border-radius: 20px;
}
.articles figure figcaption, .articles figure figcaption em{
    text-align: center;
    font-style: normal;    
    font-weight: 400;
    font-size: 14px;
    color: #2F2F2F;
}
@media screen and (max-width: 782px) {
  .articles figure.wp-block-image img {
    width: 100% !important;
    height: auto !important;
  }
  .articles figure.wp-block-image {
    padding: 0;
    margin: 0 0 20px 0;
  }
}

/**
 * 5. Изображения + текст
 */
.articles .wp-block-media-text {
    box-shadow: 0px 16px 73px 0px #CFD6DF8C;
    height: 160px;
    margin: 30px 0;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
.articles .wp-block-media-text .wp-block-media-text__media {
    width: 170px;
    border-radius: 50%;
    overflow: hidden;
    height: 170px;
    margin: 0 25px 0;
}
.articles .wp-block-media-text .wp-block-media-text__media img {
    width: 170px
}
.articles .wp-block-media-text .wp-block-media-text__content {
    max-width: 620px;
}
.articles .wp-block-media-text .wp-block-media-text__content h3.wp-block-heading, 
	.articles .wp-block-media-text .wp-block-media-text__content h3.wp-block-heading a {
    font-weight: 500;
    font-size: 18px;
}
.articles .wp-block-media-text .wp-block-media-text__content h3.wp-block-heading a {
    color: #2F2F2F;
}
.articles .wp-block-media-text .wp-block-media-text__content p {
    font-weight: 400;
    font-size: 14px;
}
@media screen and (max-width: 782px) {
  .articles .wp-block-media-text {
    height: auto;
    display: block;
    position: relative;
    margin: 100px 0 20px 0;
  }
  .articles .wp-block-media-text .wp-block-media-text__media {
    position: absolute;
    top: -85px;
  }
  .articles .wp-block-media-text .wp-block-media-text__content {
    max-width: 100%;
    padding: 100px 20px 20px;
  }
  .articles .wp-block-media-text .wp-block-media-text__content p {
    margin: 0;
  }
}
/**
 * 6. Колонки
 */
.articles .content .wp-block-columns {
    box-shadow: 0px 16px 73px 0px #CFD6DF8C;
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
    position: relative;
}
.articles .content .wp-block-columns:not(:has(figure)) {
    padding: 30px 100px 10px 30px;
}
.articles .content .wp-block-columns:after {
    position: absolute;
    content: '\201D';
    right: 10px;
    bottom: 0;
    font-size: 150px;
    line-height: 150px;
    color: #ff8462;
}
.articles .content .wp-block-columns:before {
    position: absolute;
    content: '\201C';
    left: 160px;
    top: -20px;
    font-size: 150px;
    line-height: 150px;
    color: #ff8462;
}
.articles .content .wp-block-columns .wp-block-column {
}
.articles .content .wp-block-columns .wp-block-column:nth-child(1) .wp-block-image, .wp-block-image.author-top {
    text-align: left;
}
.wp-block-image.author-top {
    margin: 0;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(1) .wp-block-image figcaption, .wp-block-image.author-top figcaption {
    text-align: left;
    color: #000;
    font-weight: 400;
    font-size: 16px;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(1) .wp-block-image figcaption strong,
	.wp-block-image.author-top figcaption strong {
    font-weight: 400;
    font-size: 16px;
    color: #000;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(1) .wp-block-image img, 
	.wp-block-image.author-top img {
    float: unset;
    width: 156px !important;
    float: left;
    margin: 0 15px 0 0 ;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(2) {
    clear: both;
    margin: 20px 0 0;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(2) p {
    margin: 0;
}

.articles figure.wp-block-image.author-top img {
    width: 48px !important;
    border-radius: 50%;
}
.wp-block-image.author-top figcaption {
    line-height: 20px;
}
.wp-block-image.author-top figcaption strong {
    font-weight: 500;
    font-size: 16px;
}
.articles .content .wp-block-columns:has(:not(.author-top)) {
    box-shadow: none;
    display: flex;
    padding: 30px 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    align-items: flex-start;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(1) .wp-block-image:not(.author-top) {
    margin: 0;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(1) .wp-block-image:not(.author-top) img {
    float: unset;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(1) .wp-block-image:not(.author-top) figcaption strong {
    font-weight: 500;
    margin: 5px 0 0 0;
    display: block;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(1):has(:not(.author-top)) {
    width: 230px;
}
.articles .content .wp-block-columns .wp-block-column:nth-child(2):has(:not(.author-top)) {
    width: 100%;
    background: #fff3ef;
    padding: 15px 20px;
    margin: 0;
    border-radius: 10px;
}

@media screen and (max-width: 782px) {
  .articles .content .wp-block-columns .wp-block-column:nth-child(1):has(:not(.author-top)) .wp-block-image img {
    width: 82px !important;
   }
  .articles .content .wp-block-columns {
    padding: 20px;
  }
  .articles .content .wp-block-columns:has(:not(.author-top)) {
    flex-direction: column;
  }
  .articles .content .wp-block-columns .wp-block-column:nth-child(1) .wp-block-image:not(.author-top) img {
    float: left;
  }
  .articles .content .wp-block-columns .wp-block-column:nth-child(1):has(:not(.author-top)) {
    width: 100%;
    margin: 0 0 20px 0;
  }
  .articles .content .wp-block-columns:after {
    line-height: 100px;
  }
  .articles .content .wp-block-columns:before {
    left: 0;
    top: 90px;
  }
  .articles .content .wp-block-columns:after {
    bottom: -20px;
  }
}

/**
 * 7. Цитирование
 */
figure.wp-block-pullquote {
    padding: 0;
    margin: 0;
    border-left: 2px solid #ff8462;
}
figure.wp-block-pullquote blockquote {
    padding: 0;
    margin: 0 0 0 20px;
}

/**
 * 8. До/после
 */
@media screen and (min-width: 960px) {
.slider-do-posle {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 20px 0;
    overflow: hidden;
}

.slider-do-posle figure {
    position: relative;
    width: 100%;
    margin: 0;
}

.slider-do-posle figure img {
    width: 100%;
    display: block;
    max-height: 600px;
}

.slider-do-posle figure:nth-child(1) img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slider-do-posle figure:nth-child(2) img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    clip: rect(0, 400px, 600px, 0); /* Adjust the width of the visible area */
    z-index: 2;
}

.slider-do-posle .slider-handle {
    content: "";
    position: absolute;
    top: 0;
    left: 400px; /* Starting position of the handle */
    width: 10px;
    height: 100%;
    background-color: #f00;
    cursor: ew-resize; /* Change cursor style when hovering over the handle */
    z-index: 2;
}
}

/*
 * 9. Пагинация
 */

/* Стили для контейнера пагинации */
ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* Стили для элементов пагинации */
ul.page-numbers li {
    margin: 0 5px;
}

/* Общие стили для ссылок и текущей страницы */
ul.page-numbers a.page-numbers,
ul.page-numbers span.page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Стили для текущей страницы */
ul.page-numbers span.current {
    background-color: #ff8562;
    color: #fff;
    border-color: #fffefe;
    font-weight: bold;
}

/* Стили для ссылок при наведении */
ul.page-numbers a.page-numbers:hover {
    background-color: #f1f1f1;
    border-color: #bbb;
    color: #ff8562;
}

/* Стили для кнопок "Назад" и "Далее" */
ul.page-numbers a.prev,
ul.page-numbers a.next {
    padding: 0 15px;
    font-weight: 600;
}

/* Стили для кнопок "Назад" и "Далее" при наведении */
ul.page-numbers a.prev:hover,
ul.page-numbers a.next:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #005177;
}

/* Стили для точек (многоточия) */
ul.page-numbers span.dots {
    border: none;
    background: none;
    color: #999;
    padding: 0 10px;
    min-width: auto;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    ul.page-numbers {
        font-size: 14px;
    }

    ul.page-numbers a.page-numbers,
    ul.page-numbers span.page-numbers {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
    }

    ul.page-numbers a.prev,
    ul.page-numbers a.next {
        padding: 0 10px;
    }
}

/*
 * 10. Похожие статьи
 */
.articles .related_posts {
    margin-bottom: 40px;
}
.articles .related_posts .article-list {
    display: block;
    /*grid-template-columns: 1fr 1fr 1fr 1fr;*/
}
.articles .related_posts h3 {
    margin-top: 25px;
    font-size: 16px;
    font-weight: 400;
}
.articles .related_posts .article-item {
    max-width: unset;
    margin: 0 7px;
    padding: 15px;
}