

/* Start:/local/templates/main_new/components/bitrix/news/v_news/style.css?1774023179701*/
.back-to-list.container {
    margin-top: 40px;
    margin-bottom: 80px;
}

@media (max-width: 960px) {
    .back-to-list.container {
        margin-bottom: 60px;
    }
}

@media (max-width: 640px) {
    .back-to-list.container {
        margin-bottom: 40px;
    }
}

.page-custom.page-news-detail .btn.btn--gray {
    gap: 10px;
}

.page-custom.page-news-detail .btn.btn--gray svg {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor !important;
    transition: color 0.3s ease;
    margin-right: 0;
}

.page-custom.page-news-detail .btn.btn--gray svg g {
    color: var(--accent);
}

.page-custom.page-news-detail .btn.btn--gray:hover svg g {
    color: var(--gray-500);
}
/* End */


/* Start:/local/templates/main_new/components/bitrix/news/v_news/bitrix/news.detail/.default/style.css?17740966635835*/
/* Базовый текст старого шаблона */
.old_template_news_content p {
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* Правильное центрирование любых картинок (из редактора или из поля) */
.old_template_news_content .news_img,
.old_template_news_content img {
    display: block;
    margin: 40px auto;
    /* Оптимальный отступ для десктопа */
    max-width: 100%;
    height: auto;
}

/* Убираем лишние отступы у вложенных картинок, если есть обертка */
.old_template_news_content .news_img img {
    margin: 0 auto;
}

.old_template_news_content h1.news_title {
    margin-bottom: 10px;
}

.old_template_news_content .news_date {
    margin-bottom: 60px;
}

/* Сброс стандартных битриксовых псевдоэлементов, если они мешают */
.old_template_news_content h1::before,
.old_template_news_content h2::before,
.old_template_news_content h3::before {
    content: none !important;
}

.old_template_news_content h1,
.old_template_news_content h2,
.old_template_news_content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.old_template_news_content .news_content::after {
    content: "";
    display: table;
    clear: both;
}

/* Адаптив для старого шаблона */
@media (max-width: 960px) {

    .old_template_news_content .news_img,
    .old_template_news_content img {
        margin: 30px auto;
    }

    .old_template_news_content .news_date {
        margin-bottom: 40px;
    }
}

@media (max-width: 640px) {

    .old_template_news_content .news_img,
    .old_template_news_content img {
        margin: 20px auto;
    }

    .old_template_news_content .news_date {
        margin-bottom: 20px;
    }
}

/* Хлебные крошки для старого шаблона */
.old_template_news-hero__breadcrumbs a,
.old_template_news-hero__breadcrumbs span,
.page-custom.page-news-detail .bx-breadcrumb-item a,
.page-custom.page-news-detail .bx-breadcrumb-item a span {
    color: var(--accent) !important;
}

.page-custom.page-news-detail .bx-breadcrumb-item .separator {
    background-color: var(--gray-400);
    opacity: 0.5;
}

.page-custom.page-news-detail .bx-breadcrumb-item>span[itemprop="name"] {
    color: var(--gray-300) !important;
    cursor: default;
}

.new_template_news_content {
    margin-top: 80px;
    margin-bottom: 40px;
}

.constructor_rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.constructor-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.new_template_news_content .c-text {
    font-size: 18px;
    line-height: 1.5;
}

.constructor-row img {
    display: block;
    max-width: 100%;
    height: auto;
}

.row-50-50 .c-col,
.row-50-50-rev .c-col {
    width: calc(50% - 15px);
}

.row-50-50-rev {
    flex-direction: row-reverse;
}

.row-side-31 .c-col-img,
.row-side-31-rev .c-col-img {
    width: 31%;
}

.row-side-31 .c-col-text,
.row-side-31-rev .c-col-text {
    width: calc(69% - 30px);
}

.row-side-31-rev {
    flex-direction: row-reverse;
}

.row-full-img,
.row-full-text {
    width: 100%;
}

.row-full-img {
    display: flex;
    justify-content: center;
}

@media (max-width: 960px) {
    .new_template_news_content {
        margin-top: 60px;
        margin-bottom: 30px;
    }

    .new_template_news_content .c-text {
        font-size: 16px;
    }

    .constructor-row {
        flex-direction: column !important;
        gap: 20px;
        align-items: flex-start;
    }

    .constructor-row .c-col,
    .row-side-31 .c-col-img,
    .row-side-31-rev .c-col-img,
    .row-side-31 .c-col-text,
    .row-side-31-rev .c-col-text {
        width: 100% !important;
    }

    .c-col-img img {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .new_template_news_content {
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .constructor_rows {
        gap: 30px;
    }
}

.new_template_news-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.new_template_news-hero.no-bg {
    height: 320px;
    border-bottom: 1px solid var(--border-color);
}

.new_template_news-hero.has-bg {
    min-height: 400px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.new_template_news-hero.has-bg .news_title,
.new_template_news-hero.has-bg .news_date {
    color: var(--white) !important;
    max-width: 830px;
}

.new_template_news-hero.has-bg .news_title::before {
    background-color: var(--white);
}

@media (max-width: 960px) {
    .new_template_news-hero.has-bg {
        min-height: 350px;
    }

    .new_template_news-hero.no-bg {
        height: 280px;
    }
}

@media (max-width: 640px) {
    .new_template_news-hero.has-bg {
        min-height: 300px;
    }

    .new_template_news-hero.no-bg {
        height: auto;
        padding: 40px 0;
    }
}

.new_template_news-hero.has-bg .new_template_news-hero__breadcrumbs a,
.new_template_news-hero.has-bg .new_template_news-hero__breadcrumbs span,
.page-custom.page-news-detail .new_template_news-hero.has-bg .bx-breadcrumb-item a,
.page-custom.page-news-detail .new_template_news-hero.has-bg .bx-breadcrumb-item a span {
    color: var(--white) !important;
}

.page-custom.page-news-detail .new_template_news-hero.has-bg .bx-breadcrumb-item .separator {
    background-color: var(--white);
    opacity: 1;
}
/* End */


/* Start:/local/templates/main_new/components/bitrix/breadcrumb/v_custom/style.css?17740264451269*/
.bx-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 0;
    font-family: sans-serif;
}

.bx-breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
}

.bx-breadcrumb-item a,
.bx-breadcrumb-item a span {
    color: var(--accent) !important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.page-custom .bx-breadcrumb-item a,
.page-custom .bx-breadcrumb-item a span {
    color: var(--white) !important;
}

.bx-breadcrumb-item a:hover {
    opacity: 0.7;
}

.bx-breadcrumb-item>span[itemprop="name"] {
    color: var(--gray-300);
    cursor: default;
}

.bx-breadcrumb-item .separator {
    display: block;
    width: 4px;
    height: 4px;
    background-color: var(--gray-400);
    border-radius: 50%;
    margin: 0 20px;
    opacity: 0.5;
}

.page-custom .bx-breadcrumb-item .separator,
.block-custom .bx-breadcrumb-item .separator {
    background-color: var(--white);
    opacity: 1;
}


@media (max-width: 640px) {
    .bx-breadcrumb {
        align-items: flex-start;
        padding: 20px 0;
        flex-direction: column;
    }

    .bx-breadcrumb-item {
        margin: 0 0 7px 0;
    }

    .bx-breadcrumb-item .separator {
        display: none;
    }
}
/* End */


/* Start:/local/templates/main_new/components/bitrix/news.list/v_latest_news/style.css?17737535832556*/
.index-news {
    padding: 87px 0 100px;
    border-top: 1px solid var(--border-color);
}

.index-news__title {
    margin-bottom: 60px;
    margin-top: 0;
}

.index-news__bottom {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.btn-more {
    font-weight: var(--weight-regular);
    background: var(--gray-bg);
    color: var(--gray-500);
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-more:hover {
    background: var(--gray-200);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.news-card__link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card__img-wrap {
    width: 100%;
    aspect-ratio: 433 / 260;
    overflow: hidden;
    background-color: var(--gray-bg);
    position: relative;
}

.news-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card__img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 3;
}

.news-card:hover .news-card__img-wrap::after {
    transform: scaleX(1);
}

.news-card:hover img {
    transform: scale(1.02);
}

.news-card__content {
    padding-top: 20px;
}

.news-card__date {
    display: block;
    font-size: 14px;
    color: var(--gray-decor);
    margin-bottom: 10px;
    font-weight: var(--weight-light);
}

.news-card__name {
    font-size: 18px;
    line-height: var(--lh-120);
    color: var(--black);
    font-weight: var(--weight-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__link:hover .news-card__name {
    color: var(--accent);
}

@media (max-width: 960px) {
    .index-news {
        padding: 78px 0 60px;
    }

    .index-news__title {
        margin-bottom: 40px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .news-card:nth-child(3) {
        display: none;
    }

    .index-news__bottom {
        margin-top: 50px;
    }
}

@media (max-width: 640px) {
    .index-news {
        padding: 68px 0 50px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px 15px;
    }

    .index-news__title {
        margin-bottom: 30px;
    }

    .news-card__name {
        font-size: 16px;
    }
}
/* End */
/* /local/templates/main_new/components/bitrix/news/v_news/style.css?1774023179701 */
/* /local/templates/main_new/components/bitrix/news/v_news/bitrix/news.detail/.default/style.css?17740966635835 */
/* /local/templates/main_new/components/bitrix/breadcrumb/v_custom/style.css?17740264451269 */
/* /local/templates/main_new/components/bitrix/news.list/v_latest_news/style.css?17737535832556 */
