.container.divider {
    margin-top: 164px;
}

.double-gallery__wrapper__swiper {
    margin-top: 120px;
}

.more-btn:not(:hover) {
    background: transparent;
}

.news-title {
    font-size: 64px;
    font-family: 'Playfair Display';
    font-weight: 700;
    color: var(--main-text-color);
    margin: 0px;
    padding: 0px;
    line-height: 60px;
}

.news-categories__wrapper {
    overflow-x: scroll;
}

.news-categories__wrapper::-webkit-scrollbar {
    display: none;
}

.news-categories {
    padding: 4px 2px 8px 4px; /* top right bottom left */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 64px;
    width: 1332px;
    overflow: hidden;
}

.news-category {
    padding: 5px 16px;
    border-radius: 10px;
    transition: .2s;
    font-size: 18px;
    line-height: 38px;
    color: var(--main-text-color);
    text-decoration: none;
}

.news-category:hover {
    background: #F4EBE0;
    color: #14151C;
    cursor: pointer;
}

.news-category.active {
    background: #F4EBE0;
    color: #14151C;
}

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

.news-item {
    width: 421px;
    text-decoration: none;
}

.news-item img {
    height: 271px;
    width: 421px;
}

.news-item__date {
    color: #F2DFC8B0;
}

.news-item__title {
    font-weight: 400;
    font-size: 24px;
    color: white;
}
.news-item.archive-item {
    max-width: 378px;
}
.news-item.archive-item img {
    width: 378px;
    height: 243px; 
}
.news-item.archive-item .news-item__title,
.news-item.archive-item .news-item__date {
    max-width: 378px;
}

.news-single {
    margin-top: 64px;
}

.news-single__head {
    display: flex;
    gap: 90px;
    margin-bottom: 64px;
}

.news-single__head-left {
    max-width: 785px;
}

.news-single__head-right {
    flex: 1;
    flex-shrink: 0;
}

.news-single__head-swiper-image {
    height: 505px;
    width: 100%;
    object-fit: cover;
}

.news-single__head-swiper-caption {
    color: #6B6969;
    font-size: 16px;
    font-weight: 400;
    margin-top: 16px;
}


.news-single__head-title {
    margin: 0;
    margin-bottom: 32px;
    font-weight: 400;
    font-family: 'Libre Franklin';
    color: #F4EBE0;
    line-height: 38px;
}

.news-single__head-desc {
    font-size: 18px;
    font-family: 'Libre Franklin';
    font-weight: 400;
    color: #F4EBE0;
    line-height: 38px;
}

.news-single__head-info {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 72px;
    row-gap: 8px;
}

.news-single__head-info-item {
    color: #F4EBE0;
    font-family: Playfair Display;
    font-weight: 700;
    font-size: 18px;
    line-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-single__content {
    color: #F4EBE0;
    display: flex;
    font-family: 'Libre Franklin';
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    gap: 134px;
    margin-bottom: 120px;
}

.news-single__content p:not(:last-child) {
    margin: 0;
    margin-bottom: 32px;
}

.news-single__content-left, .news-single__content-right {
    flex: 1;
    flex-shrink: 0;
}
.news-single__content-left .wysiwyg-content, 
.news-single__content-right .wysiwyg-content {
    margin: 0px;
}

.news-single__content-left ul li {
    line-height: 30px;
}

.news-single__content-left .wysiwyg-content ul li::after {
    top: -5px;
}

.news-single__gallery {
    margin-bottom: 120px;    
}

.news-single__gallery img {
    width: 100%;
    height: 100%;
}

.news-single__content .right-btn {
    display: none;
}

.news-single .global-main__prev-slide,
.news-single .global-main__next-slide {
    display: none!important;
}

.news__wrapper {
    display: flex;
    gap: 64px;
    margin-top: 64px;
}
.news__wrapper:nth-child(1) {
    min-width: 103px;
    color: var(--second-text-color);
}
.container.divider[data-category="active"] .news-filter__wrapper {
    display: none
}
.news-filter__wrapper {
    max-width: 103px;
    min-width: 103px;
    width: 103px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.news-filter__section {
    color: var(--second-text-color);
}
.news-filter__section-title {
    font-size: 18px;
    line-height: 30px;
    margin: 0px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: .2s;
}
.news-filter__section-title::after {
    content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE0IDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjI4OCA3LjE1Ny42MzEgMS41IDIuMDQ1LjA4Nmw0Ljk1IDQuOTUgNC45NS00Ljk1TDEzLjM2IDEuNSA3LjcwMiA3LjE1N2ExIDEgMCAwIDEtMS40MTQgMCIgZmlsbD0iI2ZmZiIvPgo8L3N2Zz4K");
    display: flex;
    align-items: flex-end;
    height: 25px;
}
.news-filter__section-body {
     display: none;
}
.news-filter__section.active .news-filter__section-body {
    list-style: none;
    padding: 0px;
    margin: 0px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
    pointer-events: all;
    position: static;
    transition: .2s;
      display: flex;
}
.news-filter__section-body li {
    line-height: 30px;
    font-size: 16px;
    transition: .2s;
}
.news-filter__section-body li.inactive {
    color: #ffffff3b;
    pointer-events: none;
}
.news-filter__section-body li:hover,
.news-filter__section-body li.active {
    color: #5A0D14;
    cursor: pointer;
}

.news-filter__section.active .news-filter__section-title {
    font-size: 24px;
    color: #6E050F;
}
.news-filter__section.active .news-filter__section-title::after {
    content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE0IDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjcxMi44NDMgMTMuMzY5IDYuNWwtMS40MTQgMS40MTQtNC45NS00Ljk1LTQuOTUgNC45NUwuNjQgNi41IDYuMjk4Ljg0M2ExIDEgMCAwIDEgMS40MTQgMCIgZmlsbD0iIzZFMDUwRiIvPgo8L3N2Zz4K");
    height: 20px;
    display: flex;
    align-items: flex-end;
}

.double-gallery__wrapper__swiper .global-main__next-slide,
.double-gallery__wrapper__swiper .global-main__prev-slide  {
    position: static!important;
    background: none!important;
    transform: none!important;
    padding: 0px!important;
    width: fit-content!important;
    height: fit-content!important;
    display: flex!important;
}
.double-gallery__wrapper__swiper .global-main__prev-slide {
    transform: rotate(180deg) !important;
}



.alt-filter__buttons {
    display: flex;
    align-items: center;
    gap: 8px; 
} 



#desktop_filter_reset.alt-filter__button.border {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 162px;
    height: 48px;

    background: linear-gradient(0deg, #541319 0%, #36060A 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;

    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 38px;  
    color: #fff;

    white-space: nowrap;      
    overflow: hidden;          
}

#desktop_filter_reset.alt-filter__button.border span {
    display: inline-block;
    width: 130px;
    height: 38px;
    line-height: 38px;     
    overflow: hidden;
}


#desktop_filter_reset .reset-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
}
#month_filter_placeholder {
    margin-left: auto;  
}


/* Accessibility */
body.accessibility-mode #desktop_filter_reset.alt-filter__button.border {
    background: #34ADAD !important;
    color: #fff !important;
    
}

body.accessibility-mode .news-filter__wrapper {
  display: flex;
  flex-wrap: wrap;       /* ✅ дозволяємо перенос */
  gap: 16px;
  align-items: flex-start;
}

#desktop_filter_reset.alt-filter__button.border {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 162px;
  height: auto; /* замість фіксованої висоти */
  background: linear-gradient(0deg, #541319 0%, #36060A 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;  /* звичайний режим = без переносу */
  overflow: hidden;
  padding: 8px 16px;    /* щоб текст мав простір */
}

body.accessibility-mode #desktop_filter_reset.alt-filter__button.border {
  flex: 0 1 auto;
  min-width: 162px;
  max-width: 100%;
  white-space: normal;  /* 👉 дозволяє перенос рядків */
  text-align: center;
  height: auto !important; /* кнопка росте по тексту */
  line-height: 1.3;
}
body.accessibility-mode .alt-filter__body-checkbox:focus-visible {
  outline: none !important;         
  background-color: #000 !important;  /* чорний фон */
  border: 2px solid #000 !important;  /* чорна рамка */
  border-radius: 50%;                 /* залишаємо круглим */
}






/* Tablet*/
@media (max-width: 1200px) and (min-width: 769px) {

    .news-single {
        margin-top: 50px; 
    }

    /* HEAD */
    .news-single__head {
        display: flex;
        flex-direction: row; 
        gap: 50px; 
        margin-bottom: 40px;
        flex-wrap: wrap; 
    }

    .news-single__head-left {
        max-width: clamp(400px, 43vw, 540px);
        flex: 1 1 60%; 
    }

    .news-single__head-right {
        flex: 1 1 35%;
    }

    .news-single__head-swiper-image {
        height: 350px; 
        width: 100%;
        object-fit: cover;
        border-radius: 4px;
    }

    .news-single__head-swiper-caption {
        font-size: 15px;
        color: #6B6969;
        margin-top: 12px;
    }

    .news-single__head-title {
        font-size: 22px; 
        margin-bottom: 24px;
        font-family: 'Playfair Display';
        font-weight: 700;
        line-height: 32px;
    }

    .news-single__head-desc {
        font-size: 17px;
        line-height: 32px;
        font-family: 'Libre Franklin';
    }

    .news-single__head-info {
        margin-top: 24px;
        display: flex;
        flex-wrap: wrap;
        gap: 50px;
        row-gap: 8px;
    }

    .news-single__head-info-item {
        font-size: 16px;
        line-height: 36px;
    }
    .news-item.archive-item {
        max-width: 100%;    
        flex: 1 1 48%;
    }

    .news-item.archive-item img {
        width: 100%;       
        height: auto;    
        aspect-ratio: 378 / 243; 
        object-fit: cover; 
        border-radius: 8px;
    }

    .news-item.archive-item .news-item__title,
    .news-item.archive-item .news-item__date {
        max-width: 100%;    
    }
    /* CONTENT */
    .news-single__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .news-single__content-left,
    .news-single__content-right {
        flex: 1 1 45%;
    }

    .news-single__content-left .wysiwyg-content,
    .news-single__content-right .wysiwyg-content,
    .news-single__content-left .wysiwyg-content ul li,
    .news-single__content-right .wysiwyg-content ul li {
        font-size: 16px;
        line-height: 30px;
    }

    .news-single__content p:not(:last-child) {
        margin-bottom: 24px;
    }

    .news-single__content .right-btn {
        display: flex;
        margin-top: 20px;
        padding-top: 20px;
    }

    /* GALLERY */
    .news-single__gallery {
        margin-bottom: 80px;
    }

    .news-single__gallery img {
        width: 100%;
        height: auto;
    }

    .double-gallery__wrapper__swiper.mobile {
        padding: 0 10px;
        margin-top: 0 !important;
    }
    .double-gallery__wrapper__swiper {
        margin-top: 90px;
    }

    /* Стрелки галереи */
    .double-gallery__wrapper__swiper .global-main__next-slide,
    .double-gallery__wrapper__swiper .global-main__prev-slide {
        display: flex !important;
        width: 30px;
        height: 30px;
        padding: 0;
        background: none !important;
        transform: none !important;
    }

    .double-gallery__wrapper__swiper .global-main__prev-slide {
        transform: rotate(180deg) !important;
    }

    /* Фильтр */
    .alt-filter__body-input__wrapper {
        flex-direction: row!important;
    }
        .container.divider {
        margin-top: 138px; 
    }

    /* Заголовок новости */
    .news-title {
        font-size: 50px; 
        line-height: 48px;
    }

    /* Новости wrapper */
    .news__wrapper {
        display: flex;
        flex-direction: row; 
        gap: 32px;
        margin-top: 50px;
        flex-wrap: wrap;
    }

    /* Сетка новостей */
    .news {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 24px 16px;
    }

    .news-item {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .news-item img {
        width: 100%;
        height: auto;
        max-height: 250px;
    }

    .news-item__date {
        font-size: 15px;
        margin-top: 12px;
    }

    .news-item__title {
        font-size: 17px;
        margin-top: 8px;
    }

    /* Категории */
    .news-categories {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
        margin-top: 50px;
        overflow: hidden;
    }

    .news-category {
        font-size: 16px;
        padding: 6px 16px;
        border-radius: 10px;
    }

    /* Фильтры */
    .news-filter__wrapper {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 118px;
    }

    .news-filter__section-title {
        font-size: 20px;
        line-height: 28px;
    }

    .news-filter__section.active .news-filter__section-title {
        font-size: 22px;
    }

    .news-filter__section-body li {
        font-size: 15px;
        line-height: 28px;
    }

    /* Кнопка сброса фильтров */
    #desktop_filter_reset.alt-filter__button.border {
        width: 140px;
        height: 40px;
        font-size: 15px;
        line-height: 36px;
    }

    #desktop_filter_reset.alt-filter__button.border span {
        width: 110px;
        height: 36px;
        line-height: 36px;
    }

    #desktop_filter_reset .reset-btn__icon {
        width: 18px;
        height: 18px;
    }

    /* Прочие элементы */
    .alt-filter__buttons {
        gap: 6px;
    }
}
@media (max-width: 1025px) {
    #desktop_filter_reset.alt-filter__button.border,
    .news-filter__wrapper {
        display: none !important;
    }
}
@media (max-width: 972px) {
    .news-single__head {
        flex-wrap: wrap; /* текст переносится */
    }

    .news-single__head-left {
        flex: 1 1 100%;   /* слайдер растягивается */
        max-width: 100%;
    }

    .news-single__head-swiper-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9; /* сохраняем пропорции */
    }

    .news-single__head-right {
        flex: 1 1 100%;   /* текст теперь внизу */
        max-width: 100%;
    }
}

    @media (max-width: 768px){
        .double-gallery__wrapper__swiper .global-main__next-slide,
        .double-gallery__wrapper__swiper .global-main__prev-slide {
            display: none!important;
        }
		.container.divider {
        margin-top: 138px;
    }
        .news__wrapper {
            margin-top: 40px;
            display: flex;
            flex-direction: column;
            gap: 40px;
        }
        .news-title {
            font-size: 40px;
        }

        .news-single__head-left {
            padding: 0px 10px;
        }

       .news-categories {
        display: flex;     
        flex-wrap: wrap;      
        width: 100%;          
        gap: 8px;             
        overflow: hidden;     
        margin-top: 40px;
    }

        .news-category {
            font-size: 14px;
        }

        .news-filter__wrapper {
            display: none;
        }

        .news {
            gap: 24px;
            display: flex;
            flex-direction: column;
            padding: 0px 16px;
        }

          .news-item {
        width: 100%;
        max-width: 378px; /* обмеження по дизайну */
        margin: 0 auto; /* щоб центрувати */
    }

           .news-item img {
    height: 200px !important;
    width: 328px !important;
}

        .news-item__date {
            font-size: 14px;
            margin-top: 17px;
        }

        .news-item__title {
            font-size: 16px;
            margin-top: 8px;
        }

        .news-single {
            margin-top: 40px;
        }

        .news-single__head {
            flex-direction: column;
            gap: 40px;
            margin-bottom: 24px;
        }
            
        .news-single__head-swiper-image {
            height: 217px;
            border-radius: 4px;
        }

        .news-single__head-swiper-caption {
            font-size: 14px;
        }

        .news-single__head-title {
            font-size: 18px;
            margin-bottom: 16px;
            font-family: 'Playfair Display';
            font-weight: 700;
        }

        .news-single__head-desc {
            font-size: 16px;
        }

        .news-single__content {
            flex-direction: column;
            gap: 10px;
        }

        .news-single__content-left .wysiwyg-content ul li,
        .news-single__content-left .wysiwyg-content,
        .news-single__content-right .wysiwyg-content ul li,
        .news-single__content-right .wysiwyg-content {
            font-size: 16px;
            line-height: 30px;
        }

        .news-single__head-right,
        .news-single__content {
            padding: 0px 9px;
        }

        .double-gallery__wrapper__swiper.mobile {
            padding: 0px 12px;
            margin-top: 0px !important;
        }

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

        .news-single__content .right-btn {
            display: flex;
            margin-bottom: 0px;
            padding-top: 30px;
        }

        .news-single__content-left, 
        .news-single__content-right,
        .news-single__content {
            font-size: 16px;
            line-height: 30px;
        }

        .alt-filter__body-input__wrapper {
            flex-direction: row!important;
        }

        /* ----- */

    #month_filter_placeholder {
            display: none;
        }


    }