/* Герой секция */
.news-hero {
    background: #FFF4F4;
    padding: 40px 0 20px;
}

.news-banner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;

}

.news-banner__img {
    width: 100%;
    height: auto;
    display: block;
}

.news-banner__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 25px;
    background: linear-gradient(to top, rgba(128,0,28,0.7) 0%, rgba(128,0,28,0.3) 40%, rgba(128,0,28,0.05) 70%, transparent 100%);
}

.news-banner__title {
    color: #fff;
    font-size: 24px;
    font-family: 'MontserratBold', sans-serif;
    margin-bottom: 6px;
}

.news-banner__date {
    color: #fff;
    font-size: 13px;
    font-family: 'MontserratMedium', sans-serif;
}

/* Белый блок контента */
.news-white-block {
    padding: 30px 0 10px;
}

.news-white-inner {
    z-index: 5;
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 45px;
}

/* Подзаголовки */
.news-subtitle {
    font-size: 32px;
    font-weight: 600;
    color: #80001C;
    font-family: 'MontserratSemiBold', sans-serif;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #F3474E;
    display: inline-block;
}

/* Текст */
.news-text {
    font-size: 17px;
    line-height: 1.8;
    color: #4a4a4a;
    font-family: 'MontserratRegular', sans-serif;
    margin-bottom: 30px;
    overflow-wrap: break-word;
}

.news-text p {
    margin-bottom: 20px;
}

/* Изображения */
.news-image {
        width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Галерея слайдер - как в статьях */
.news-gallery-slider {
    margin: 40px 0;
    position: relative;
    width: 100%;
}

.news-gallery-swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.news-gallery-swiper .swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.news-gallery-swiper .swiper-slide {
    flex-shrink: 0;
    width: calc(33.333% - 14px);
    margin-right: 20px;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
}

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

.news-gallery-swiper .swiper-button-prev,
.news-gallery-swiper .swiper-button-next {
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    color: white !important;
}

.news-gallery-swiper .swiper-button-prev:after,
.news-gallery-swiper .swiper-button-next:after {
    font-size: 18px !important;
}

.news-gallery-swiper .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 20px;
    text-align: center;
}

.news-gallery-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.news-gallery-swiper .swiper-pagination-bullet-active {
    background: #F3474E;
}

@media (max-width: 768px) {
    .news-gallery-swiper .swiper-slide {
        width: calc(50% - 10px);
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .news-gallery-swiper .swiper-slide {
        width: 100%;
        margin-right: 0;
    }
}

/* Документы */
.news-doc {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f8f9fa;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 20px 0;
    font-family: 'MontserratMedium', sans-serif;
    font-size: 14px;
    color: #80001C;
    border: 1px solid rgba(224,104,120,0.2);
}

.news-doc:hover {
    background: #FFF4F4;
    border-color: #F3474E;
    transform: translateX(5px);
}

/* Цитаты */
.news-quote {
    margin: 40px 0;
    padding: 24px 32px;
    background: #FFF4F4;
    border-left: 4px solid #F3474E;
    border-radius: 16px;
    font-family: 'MontserratMedium', sans-serif;
    font-size: 18px;
    font-style: italic;
    color: #80001C;
}

/* Адаптация */
@media (max-width: 992px) {
    .news-gallery-swiper .swiper-slide {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 30px 0 15px;
    }
    
    .news-banner {
        max-width: 100%;
        margin: 30px 0 15px;
    }
    
    .news-banner__content {
        padding: 40px 20px 20px;
    }
    
    .news-banner__title {
        font-size: 20px;
    }
    
    .news-banner__date {
        font-size: 12px;
    }
    
    .news-white-block {
        padding: 20px 0 60px;
    }
    
    .news-white-inner {
        padding: 30px 20px;
        margin: 0 px;
    }
    
    .news-subtitle {
        font-size: 24px;
    }
    
    .news-text {
        font-size: 15px;
    }
    
    .news-gallery-swiper .swiper-slide {
        width: calc(50% - 10px);
        margin-right: 15px;
    }
    
    .news-quote {
        font-size: 16px;
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .news-gallery-swiper .swiper-slide {
        width: 100%;
        margin-right: 0;
    }
    
    .news-banner__title {
        font-size: 18px;
    }
}

/* ========== СТИЛИ ДЛЯ ГАЛЕРЕИ ========== */

.news-gallery-slider {
    margin: 40px 0;
    position: relative;
}

.news-gallery-swiper {
    overflow: hidden;
    padding: 10px 0 50px;
}

.news-gallery-swiper .swiper-slide {
    text-align: center;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-gallery-swiper .swiper-slide:hover {
    transform: scale(1.02);
}

.news-gallery-swiper .swiper-slide img {
    width: 100%;

    object-fit: cover;
    display: block;
}

/* Пагинация */
.news-gallery-swiper .swiper-pagination {
    bottom: 0;
}

.news-gallery-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.news-gallery-swiper .swiper-pagination-bullet-active {
    background: #80001C;
}

/* Кнопки навигации */
.news-gallery-swiper .swiper-button-prev,
.news-gallery-swiper .swiper-button-next {
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.news-gallery-swiper .swiper-button-prev:hover,
.news-gallery-swiper .swiper-button-next:hover {
    background: rgba(0,0,0,0.8);
}

.news-gallery-swiper .swiper-button-prev:after,
.news-gallery-swiper .swiper-button-next:after {
    font-size: 18px;
    color: white;
}

/* Адаптив */
@media (max-width: 768px) {
    .news-gallery-swiper .swiper-slide img {

    }
    
    .news-gallery-swiper .swiper-button-prev,
    .news-gallery-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .news-gallery-swiper .swiper-slide img {

    }
}

/* Галерея слайдер - как в статьях */
.news-gallery-slider {
    margin: 30px 0 10px;
    position: relative;
    width: 100%;
}

/* Ссылка на ребёнка */
.news-related-child {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(224,104,120,0.2);
    text-align: center;
}

.news-related-child-link {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    background: #FFF4F4;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'MontserratMedium', sans-serif;
    font-size: 16px;
    color: #80001C;
    transition: all 0.3s ease;
}

.news-related-child-link strong {
    color: #F3474E;
    font-family: 'MontserratSemiBold', sans-serif;
}

.news-related-child-link:hover {
    background: #F3474E;
    color: #fff;
    transform: translateX(5px);
}

.news-related-child-link:hover strong {
    color: #fff;
}

@media (max-width: 768px) {
    .news-related-child-link {
        font-size: 14px;
        padding: 10px 20px;
        gap: 8px;
    }
}

/* Другие новости */
.news-related-section {
    padding: 50px 0;
        background: linear-gradient(135deg, #FFF4F4 0%, #fff 60%);
    margin-top: 0;
}

.news-related-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.news-related-title {
    font-size: 28px;
    font-weight: 700;
    color: #80001C;
    font-family: 'MontserratBold', sans-serif;
    margin: 0;
}

.news-related-all {
    font-size: 14px;
    color: #F3474E;
    font-family: 'MontserratMedium', sans-serif;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-related-all:hover {
    transform: translateX(5px);
    color: #ff0008;
}

.news-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.news-related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.news-related-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-related-card:hover .news-related-card-image img {
    transform: scale(1.05);
}

.news-related-card-content {
    padding: 18px;
}

.news-related-card-date {
    font-size: 11px;
    color: #E06878;
    font-family: 'MontserratMedium', sans-serif;
    margin-bottom: 8px;
}

.news-related-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #80001C;
    font-family: 'MontserratSemiBold', sans-serif;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-related-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    font-family: 'MontserratRegular', sans-serif;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Адаптация */
@media (max-width: 1024px) {
    .news-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .news-related-section {
        padding: 10px 0;
    }
    
    .news-related-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .news-related-title {
        font-size: 24px;
    }
    
    .news-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-related-card-image {
        height: 200px;
    }
}

.news-related-section {
    padding: 50px 0;
    background: linear-gradient(145deg, #fff0f0 0%, #ffd7d7 100%);
    border-top: 1px solid rgb(254, 221, 226);
    border-bottom: 1px solid rgb(255, 207, 213);
}

/* Адаптив для планшетов */
@media (max-width: 1024px) {
    .news-related-grid {
        gap: 20px;
    }
    
    .news-related-card-image {
        height: 160px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .news-related-section {
        padding: 40px 15px;
    }
    
    .news-related-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .news-related-title {
        font-size: 24px;
    }
    
    .news-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-related-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 12px;
    }
    
    .news-related-card-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        border-radius: 12px;
    }
    
    .news-related-card-content {
        padding: 0;
        flex: 1;
    }
    
    .news-related-card-title {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .news-related-card-excerpt {
        font-size: 12px;
        display: none;
    }
}

/* Адаптив для маленьких телефонов */
@media (max-width: 480px) {
    .news-related-card {
        flex-direction: column;
        text-align: center;
        padding: 0 0 15px 0;
    }
    
    .news-related-card-image {
        width: 100%;
        height: 180px;
        border-radius: 16px 16px 0 0;
    }
    
    .news-related-card-content {
        padding: 15px;
    }
    
    .news-related-card-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.flowers-bg{
    position: absolute;
    pointer-events: none;
    height: auto;
}


.flowers-bg-left{
    top: 0;
    left: -10%;
    
}

.flowers-bg-right{
    top: 0;
    right: -10%;
}

/* Переопределяем скрытие цветов на мобилке - оставляем видимыми на странице новости */
@media (max-width: 1200px) {
    .news-hero .flowers-bg-left,
    .news-hero .flowers-bg-right,
    .news-white-block .flowers-bg-left,
    .news-white-block .flowers-bg-right {
        display: block !important;
    }
}
@media (max-width: 768px) {
    .container {
        max-width: 960px;
        width: 100%;
        margin: 0 auto;
    }

    .flowers-bg-left{
        top: 0;
        left: -20%;
        display: none;
        
    }

    .flowers-bg-right{
        display: none;
        
    }
    
}
.news-hero,
.news-white-block,
.news-related-section {
    position: relative;

    z-index: 1;
}

.news-hero .container,
.news-white-block .container,
.news-related-section .container {
    position: relative;
    z-index: 2;
}

