

/* Start:/local/templates/goodness-pantry-v2/components/bitrix/news/news-page/bitrix/news.detail/news-detail/style.css?17895579708437*/
/* =========================================================
   Детальная страница новости
   ========================================================= */

.news-detail {
    padding-bottom: 32px;
}

.news-detail__title {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 8px;
}

.news-detail__date {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #8d8d8d;
    margin-bottom: 24px;
}

/* =========================================================
   Hero: лид-текст слева + фото справа
   ========================================================= */

.news-detail__hero {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.news-detail__hero-img-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    z-index: 0;
}

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

.news-detail__lead {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    z-index: 1;
    background: linear-gradient(90deg, #E5EEF6 0%, #E5EEF6 70%, rgba(229, 238, 246, 0.90) 85%, rgba(229, 238, 246, 0.00) 100%);
    padding: 36px 60px 36px 0;
    font-size: 30px;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
    display: flex;
    align-items: center;
}

/* =========================================================
   WYSIWYG-контент: стили для тегов без классов
   ========================================================= */

.news-detail__content {
    margin-bottom: 40px;
}

.news-detail__content p {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 32px;
    margin-bottom: 24px;
}

.news-detail__content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.25;
    margin-top: 40px;
    margin-bottom: 16px;
}

.news-detail__content h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 12px;
}

.news-detail__content h4,
.news-detail__content h5,
.news-detail__content h6 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.3;
    margin-top: 24px;
    margin-bottom: 8px;
}

.news-detail__content blockquote {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary-dark);
    border-left: 4px solid var(--color-primary);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
    line-height: 1.3;
}

.news-detail__content ul,
.news-detail__content ol {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 32px;
    padding-left: 28px;
    margin-bottom: 24px;
}

.news-detail__content ul li,
.news-detail__content ol li {
    margin-bottom: 8px;
}

.news-detail__content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.news-detail__content a:hover {
    color: var(--color-primary-dark);
}

.news-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 24px 0;
}

.news-detail__content strong,
.news-detail__content b {
    font-weight: 800;
}

.news-detail__content em,
.news-detail__content i {
    font-style: italic;
}

.news-detail__content hr {
    border: none;
    border-top: 1px solid #d0dcea;
    margin: 32px 0;
}

.news-detail__content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
    margin-bottom: 24px;
}

.news-detail__content th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
}

.news-detail__content td {
    padding: 10px 14px;
    border-bottom: 1px solid #d0dcea;
}

/* =========================================================
   Фотогалерея (2 колонки)
   ========================================================= */

.news-detail__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.news-detail__gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

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

/* =========================================================
   Кнопка «Вернуться»
   ========================================================= */

.news-detail__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px 12px 20px;
    background: #e20000;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 1px 0 #830000, 0 2px 4px #a90000;
    transition: background-color var(--transition);
    margin-bottom: 0;
}

.news-detail__back-btn:hover {
    background-color: #c90000;
}

/* =========================================================
   Адаптив
   ========================================================= */

@media (max-width: 1240px) {
    .news-detail__title {
        font-size: 40px;
    }
    .news-detail__hero {
        height: 380px;
    }
    .news-detail__lead {
        font-size: 24px;
    }
}

@media (max-width: 925px) {
    .news-detail__title {
        font-size: 32px;
    }
    .news-detail__hero {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .news-detail__hero-img-wrap {
        position: static;
        width: 100%;
        height: 280px;
    }
    .news-detail__lead {
        position: static;
        width: 100%;
        background: #e5eef6;
        padding: 24px;
        font-size: 20px;
    }
    .news-detail__content p,
    .news-detail__content ul,
    .news-detail__content ol {
        font-size: 18px;
        line-height: 28px;
    }
    .news-detail__content h2 {
        font-size: 22px;
    }
    .news-detail__content blockquote {
        font-size: 22px;
    }
}

@media (max-width: 620px) {
    .news-detail__title {
        font-size: 26px;
    }
    /* Дата по макету Figma — 14px Bold (не 16px). */
    .news-detail__date {
        font-size: 14px;
        margin-bottom: 16px;
    }
    /* На странице новости показываем фото целиком, без обрезки по высоте. */
    .news-detail__hero-img-wrap {
        width: 100%;
        height: auto;
    }
    .news-detail__hero-img {
        height: auto;
    }
    .news-detail__lead {
        font-size: 18px;
        padding: 20px;
    }
    /* Фото внутри WYSIWYG-контента (DETAIL_TEXT) — редактор вставляет их с
       inline-стилем grid (3 в ряд). По макету mobile они полноширинные, друг
       под другом (360×318). Перекрываем inline-стиль через !important — это
       шаблон для всех новостей, правило едино и предсказуемо. Без !important
       инлайн grid-template-columns побеждает по специфичности. */
    .news-detail__content div[style*="grid"] {
        display: block !important;
        grid-template-columns: none !important;
    }
    .news-detail__content div[style*="grid"] img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    .news-detail__gallery {
        grid-template-columns: 1fr;
    }
    .news-detail__gallery-item {
        height: 240px;
    }
    .news-detail__content p,
    .news-detail__content ul,
    .news-detail__content ol {
        font-size: 16px;
        line-height: 24px;
    }
    .news-detail__content h2,
    .news-detail__content blockquote {
        font-size: 20px;
    }
    /* Кнопка «Вернуться ко всем новостям» — на всю ширину контейнера (360×44
       по макету); была inline-flex 284px. */
    .news-detail__back-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        font-size: 16px;
        padding: 10px 20px 10px 16px;
    }
}

/* End */


/* Start:/local/templates/goodness-pantry-v2/components/bitrix/news.list/main-news/style.css?17908481374050*/
/* =========================================================
   Последние новости
   ========================================================= */

.news {
    padding-block: 40px;
    background-color: #fff;
    background-image: url("/local/templates/goodness-pantry-v2/components/bitrix/news.list/main-news/../../../../images/violet-zigzag-tile.svg");
    background-repeat: repeat;
    background-size: auto;
}

.news__title {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.news__slides {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-card {
    background: linear-gradient(167deg, #fff 40.7%, #f0f8ff 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
}

.news .glide__slide {
    display: flex;
    height: auto;
}

.news .glide__slides {
    align-items: stretch;
    padding-bottom: 12px;
}

.news-card__img-link {
    display: block;
    height: 200px;
    flex-shrink: 0;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.news-card__body {
    padding: 12px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.news-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.news-card__title {
    color: var(--color-primary);
    font-size: 17px;
    font-weight: 800;
    text-decoration: underline;
    line-height: 1.2;
    flex: 1;
}

.news-card__title:hover {
    color: var(--color-primary-dark);
}

.news-card__tag {
    color: #707070;
    font-size: 12px;
    font-weight: 300;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

.news-card__excerpt {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    line-height: 1.35;
}

.news-card__date {
    font-size: 14px;
    font-weight: 400;
    color: #707070;
    display: block;
    margin-top: auto;
    padding-top: 4px;
}

.news__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}

.news__all-btn {
    border: 2px solid var(--color-muted-btn);
    border-radius: 6px;
    padding: 6px 22px;
    color: var(--color-muted-btn);
    font-size: 18px;
    font-weight: 700;
    transition: border-color var(--transition), color var(--transition);
}

.news__all-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.news__nav {
    display: flex;
    gap: 16px;
}

.news__nav-btn {
    width: 42px;
    height: 42px;
    border: 2px solid var(--color-muted-btn);
    border-radius: 6px;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted-btn);
    transition: border-color var(--transition), color var(--transition);
}

.news__nav-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

@media (max-width: 925px) {
    .news {
        padding-block: 40px;
        padding-bottom: 38px;
    }
    .news__title {
        font-size: 40px;
        line-height: 37px;
        margin-bottom: 35px;
    }
    /* Высота карточки — контентная: excerpt (TruncateText 130) даёт 2-4 строки,
       дата прижимается к низу через margin-top:auto. Раньше жёсткие 338px
       обрезали дату на карточках с длинным текстом (overflow до +28). */
    .news__footer {
        margin-top: 26px;
    }
}

@media (max-width: 620px) {
    .news {
        padding-top: 50px;
        padding-bottom: 38px;
    }
    .news__title {
        font-size: 26px;
        line-height: 17px;
        margin-bottom: 20px;
    }
    .news__footer {
        margin-top: 20px;
    }
}

@media (max-width: 360px) {
    .news__title {
        line-height: 27px;
    }
}

/* End */


/* Start:/local/templates/goodness-pantry-v2/css/glide.core.min.css?1776556678843*/
.glide{position:relative;width:100%;box-sizing:border-box}.glide *{box-sizing:inherit}.glide__track{overflow:hidden}.glide__slides{position:relative;width:100%;list-style:none;backface-visibility:hidden;transform-style:preserve-3d;touch-action:pan-Y;overflow:hidden;margin:0;padding:0;white-space:nowrap;display:flex;flex-wrap:nowrap;will-change:transform}.glide__slides--dragging{user-select:none}.glide__slide{width:100%;height:100%;flex-shrink:0;white-space:normal;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.glide__slide a{user-select:none;-webkit-user-drag:none;-moz-user-select:none;-ms-user-select:none}.glide__arrows{-webkit-touch-callout:none;user-select:none}.glide__bullets{-webkit-touch-callout:none;user-select:none}.glide--rtl{direction:rtl}/*# sourceMappingURL=glide.core.min.css.map */

/* End */
/* /local/templates/goodness-pantry-v2/components/bitrix/news/news-page/bitrix/news.detail/news-detail/style.css?17895579708437 */
/* /local/templates/goodness-pantry-v2/components/bitrix/news.list/main-news/style.css?17908481374050 */
/* /local/templates/goodness-pantry-v2/css/glide.core.min.css?1776556678843 */
