.subtitle {
    margin-top: var(--indent-main, 20px);
    font-size: 1.5em;
}

.article-content-wp {
    display: flex;
}

.article-content {
    width: 70%;
    margin-right: var(--indent-main, 20px);
}

.article-content .news-info a {
    border: none;
}
sup {
    vertical-align: super;
    font-size: smaller;
}
.news-right-sidebar {
    width: 400px;
    padding-left: var(--indent-main, 20px);
    position: relative;
    border-left: 1px solid var(--color-secondary, #f1f1f1);
}



.news-right-sidebar .news-item__image img {
    width: 100%;
}

.news-info-news {
    display: flex;
    position: relative;
  /*  color: #a7a7a7;*/
}

.news-wrapper {
    width: 1366px;
    background: white;
    margin: 0 auto;
    margin-top: 20px;
    border-bottom: 2px solid #f1f1f1;
    padding: 20px 20px 40px 40px;
}

.news-info.news {
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.news-author {
    padding: 0px 0px 0px 5px;
}

/* Количество просмотров у коммерческой новости (при article.edit_count) */
.news-info-news {
    align-items: center;
}
.news-view-count {
    display: inline;
    margin-left: 10px;
    color: inherit;
    font-size: 13px;
    font-weight: inherit;
    line-height: inherit;
    white-space: nowrap;
}
.news-view-count__icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 3px;
    vertical-align: -0.2em;
}

p.news-info-page {
    margin-block-end: 0em;
    text-align: right;
}
.news-full-text  img {
    width: 100%;
    height: auto;
}

img.detail-picture {
    margin: 20px 0px 0px 0px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.photo-source {
    text-align: left;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.45;
    margin-top: 0;
    color: #6f6f6f;
}

.photo-source p {
    margin: 0;
}

.article-content .photo-source p {
    margin-bottom: 0;
}

.photo-source-ai-label {
    display: inline-block;
    margin-right: 10px;
    color: #7f7f7f;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* AI-изображение: в начале подписи добавляется AI */
.photo-source--ai {
    border-left: 3px solid #cfcfcf;
    padding: 2px 0 2px 12px;
}

/* Обычные новости: подпись с иконкой в плашке */
.photo-source--default {
    background: #ececec;
    border: 1px solid #d3d3d3;
    border-top: 0;
    border-radius: 0;
    padding: 8px 12px 5px;
}

.photo-source--default p {
    position: relative;
    padding-left: 30px;
}

.photo-source--default p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3' stroke='%23959595' stroke-width='1.5'/%3E%3Ccircle cx='9' cy='9' r='1.8' fill='%23959595'/%3E%3Cpath d='M6.5 16.5l3.6-3.7 2.5 2.5 2.4-2.4 2.5 3.6' stroke='%23959595' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.photo-source + .news-text {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .photo-source {
        font-size: 13px;
    }

    .photo-source--default {
        padding: 8px 10px 5px;
    }
}

.article-content ol, .article-content ul {
    list-style: auto;
    margin-left: 2em;
    margin-top: 20px;
}

.article-content ul {
    list-style: disc;
}

.article-content ul.list-ok li {
    list-style-type: '✓ ';
}

.article-content ol > li::marker, .article-content ul > li::marker {
    font-weight: bold;
    color: var(--color-border, #c1272d);
}
.article-content li {
    margin-bottom: 10px;
    line-height: 1.4;
}
h2.article {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
}
h3.article {
    font-size: 26px;
    line-height: 34px;
    font-weight: 700;
}
h4.article {
    font-size: 22px;
    line-height: 40px;
    font-weight: 700;
}
.news-text {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    margin-top: 20px;
}
.markup {
    font-size: 18px;
    color: grey;
    line-height: 28px;
    margin-top: 30px;
}
.markup a {
    word-break: break-word!important;
}
blockquote {
    box-shadow: 2px 2px 20px rgb(0 0 0 / 5%), 0px 8px 40px rgb(27 26 26 / 10%);
    padding: 30px 20px 10px 20px;
    position: relative;
    margin: 45px 0px 40px 0px;
}

blockquote:before {
    content: "";
    display: inline-block;
    margin: -2px 7px -2px 3px;
    width: 60px;
    position: absolute;
    height: 45px;
    background-image: url(/assets/core/theme/img/blockquote.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    top: -20px;
}

blockquote p {
    padding: 0px 10px 10px 10px;
}

.article-content a {
    border-bottom: 2px solid var(--color-border, #c1272d);
    word-break: break-word;
}
a.line_break {
    word-break: break-word !important;
}
.article-content img {
    max-width: 100% !important;
    height: auto !important;
}

.article-content iframe {
    width: 100% !important;
}

.article-content p, .news-text div {
    line-height: 28px;
    margin-bottom: var(--indent-main, 20px);
}

.news-text a:hover {
    color: #c1272d;
}

.news-text h1 {
    font-size: 42px;
    line-height: 50px;
    font-weight: 700;
    margin: 20px 0 0;
}

.news-text h2 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    margin: 20px 0 0;
}

.news-text h3 {
    font-size: 26px;
    line-height: 34px;
    font-weight: 700;
    margin: 20px 0 0;
}

.news-text h4 {
    font-size: 22px;
    line-height: 40px;
    font-weight: 700;
    margin-top: 20px;
}

.news-text h5 {
    font-size: 24px;
    line-height: 130%;
    margin-top: 20px;
}

.news-tags {
    margin-top: var(--indent-main, 20px);
    margin-bottom: var(--indent-main, 20px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.news-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-secondary, #f1f1f1);
    border-radius: 20px;
    font-size: 14px;
    color: var(--color-text, #333);
    border: none !important;
    text-decoration: none;
}

.news-tags ul {
    list-style: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
}

.news-tags ul li:first-child {
    padding-left: 0;
}

.news-tags a {
    border: none;
}

/* Стили для блока автора и аватарки */
.news-tags-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Стиль для блока тегов без аватарки */
.news-tags-wrapper.no-avatar {
    border-top: 1px solid #f1f1f1;
    padding: 0px 0px 0px 0px;
    border-bottom: 1px solid #f1f1f1;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.author-block {
    display: flex;
    align-items: center;
    margin-left: auto;
    align-self: center;
}

.author-text-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 10px;
}

.author-name-link,
.author-name {
    font-weight: bold;
    color: #333;
    text-decoration: none !important; /* Отключаем подчёркивание от наследования */
    border-bottom: none !important; /* Отключаем border-bottom от .article-content a */
    white-space: nowrap;
}

.author-name-link:hover {
    color: var(--color-primary, #2881c4);
}

.author-label {
    font-size: 14px;
    color: #000;
    white-space: nowrap;
}

.author-avatar-container {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
}

.author-avatar-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: none !important;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.author-avatar-link:hover .author-avatar {
    border-color: var(--color-primary, #2881c4);
}

@media (max-width: 768px) {
    h2.article {
        font-size: 26px;
        line-height: 32px;
    }

    h3.article {
        font-size: 22px;
        line-height: 28px;
    }

    h4.article {
        font-size: 20px;
        line-height: 26px;
    }

    .news-text h1 {
        font-size: 32px;
        line-height: 38px;
    }

    .news-text h2 {
        font-size: 26px;
        line-height: 32px;
    }

    .news-text h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .news-text h4 {
        font-size: 20px;
        line-height: 26px;
    }
}

/* Мобильная версия - блок автора снизу */
@media (max-width: 768px) {
    .news-info.news {
        padding-left: 0 !important;
    }
    
    /* Рубрика и дата в одну строку только если включена аватарка */
    .news-info.news.avatar-enabled {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center !important; /* Выравнивание по центру по вертикали */
        gap: 10px;
    }
    
    .news-info.news.avatar-enabled .sections-name {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important; /* Убираем padding-bottom */
        width: auto !important; /* Переопределяем width: 100% */
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .news-info.news.avatar-enabled .news-info-news {
        margin-left: 10px;
        flex-shrink: 0;
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .news-tags-wrapper {
        margin-top: 0 !important;
        border-top: 1px solid #f1f1f1 !important;
        padding: 5px 0px 5px 0px !important;
        border-bottom: 1px solid #f1f1f1 !important;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-tags {
        width: 100%;
        justify-content: flex-start;
        margin-top: 5px !important; /* Переопределяем var(--indent-main, 20px) */
        margin-bottom: 5px !important; /* Переопределяем var(--indent-main, 20px) */
        padding-bottom: 10px;
        border-bottom: 1px solid #f1f1f1; /* Линия после тегов */
    }
    
    .author-block {
        margin-left: 0;
        margin-top: 0;
        padding-top: 0;
        align-self: flex-start; /* Выравнивание по левому краю */
        flex-direction: row-reverse; /* Аватарка слева, текст справа */
    }
    
    .author-text-info {
        align-items: flex-start; /* Текст выравнен по левому краю */
        margin-right: 0;
        margin-left: 10px; /* Отступ слева от аватарки */
    }

    .author-avatar-container {
        margin-top: 0;
        padding-top: 20px;
    }
}

/* rating */

.rating {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.rating.disabled {
    pointer-events: none;
}

.rating-item {
    width: 58px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.rating-item__smile .smile {
    display: block;
    width: 100%;
    height: 48px;
    background-repeat: no-repeat;
    background-size: 48px;
    background-position: center;
}

.rating-item__result {
    text-align: center;
    padding-top: 10px;
    font-weight: bold;
}

.rating-item:hover, .rating-item.active {
    background: var(--color-border, #c1272d);
    color: white;
}

.smile.smile-evil {
    background-image: url("/assets/core/theme/img/smiles/evil.ico");
}

.smile.smile-sad {
    background-image: url("/assets/core/theme/img/smiles/sad.ico");
}

.smile.smile-smile {
    background-image: url("/assets/core/theme/img/smiles/smile.ico");
}

.smile.smile-wink {
    background-image: url("/assets/core/theme/img/smiles/wink.ico");
}

.smile.smile-cheerful {
    background-image: url("/assets/core/theme/img/smiles/cheerful.ico");
}

/* */

/*.news-tags ul li {*/
/*    display: inline-block;*/
/*    */
/*}*/

.read-social {
    margin-top: var(--indent-main, 20px);
}

.read-social > a {
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: var(--indent-main, 20px);
    display: block;
    border: none;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    color: #fff;
    background: var(--color-border);
    word-break: break-all;
}

.read-social > a span {
    font-weight: bold;
}

.read-social > a.read-social__telegram {
    background: #229ED9;
}

/* SLIDER */
.pg-slider {
    position: relative;
    display: none;
}

.pg-slider .pg-slider__items {
    display: flex;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.pg-slider .pg-slider__item {
    width: 100%;
    height: 100%;
    display: inline-block;
    background-position: center;
    background-size:cover;
    transition: 0.2s;
    position: absolute;
    right: -100%;
}

.pg-slider .pg-slider__item.active {
    position: relative;
    right: 0;
}

.pg-slider .pg-slider__control .pg-slider__control-next,
.pg-slider .pg-slider__control .pg-slider__control-prev {
    display: block;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 180px;
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
}

.pg-slider .pg-slider__control .pg-slider__control-next::before,
.pg-slider .pg-slider__control .pg-slider__control-next::after,
.pg-slider .pg-slider__control .pg-slider__control-prev::before,
.pg-slider .pg-slider__control .pg-slider__control-prev::after {
    display: inline-block;
    content: '';
    width: 20px;
    height: 3px;
    background: #fff;
    position: relative;
    border-radius: 20px;
}

.pg-slider .pg-slider__control .pg-slider__control-next::before,
.pg-slider .pg-slider__control .pg-slider__control-prev::before {
    transform: rotate(50deg);
    top: 3px;
    left: 8px;
}

.pg-slider .pg-slider__control .pg-slider__control-next::after,
.pg-slider .pg-slider__control .pg-slider__control-prev::after {
    transform: rotate(-50deg);
    top: -10px;
    right: 12px;
}

.pg-slider .pg-slider__control .pg-slider__control-next {
    right: 20px;
    transform: scale(-1, 1)
}

.pg-slider .pg-slider__control .pg-slider__control-prev {
    left: 20px;
}

/* END SLIDER */


@media (max-width: 800px) {

    .article-content {
        width: 100%;
        margin-right: 0;
    }

    .news-right-sidebar {
        display: none;
    }

}

@media (max-width: 480px) {
    .news-info.news {
        flex-wrap: wrap;
    }

    .article-content .news-info .sections-name {
        width: 100%;
        padding-bottom: var(--indent-main, 20px);
    }

    .rating-item__smile .smile {
        height: 36px;
        background-size: 36px;
    }

    .news-tags {
        gap: 8px;
    }

    .news-tag {
        font-size: 13px;
        padding: 5px 12px;
    }
}