.more-btn {
    background: transparent;
    font-size: 18px;
}

.services__title {
    font-size: 64px;
    font-family: 'Playfair Display';
    font-weight: 700;
    color: var(--second-text-color);
    line-height: 60px;
}

.services-category__buttons {
    display: flex;
    gap: 10px;
    margin-top: 64px;
}
.services-category__button {
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 18px;
    transition: .2s;
    color: var(--main-text-color);
    background: transparent;
}
.services-category__button:hover {
    background: var(--second-text-color);
    color: black;
    cursor: pointer;
}
.services-category__button.active {
    background: var(--second-text-color);
    color: black;
}

.services-section {
    margin-top: 64px;
}
.services-section.hidden {
    display: none;
}
.services-excurs__photo {
    width: 100%;
    height: 424px;
    object-fit: cover;
    border-radius: 10px;
}

.dropdown .dropdown-content ul li::after {
    top: -5px;
}
.dropdown .dropdown-content {
    line-height: 30px;
}
.dropdown .dropdown-content p {
    margin: 16px 0px;
}
.wysiwyg-content ul li {
    margin-left: 0px;
    color: #F4EBE0B8;
    line-height: 30px;
}
.dropdown .dropdown-files {
    margin-top: 12px;
}
.dropdown .dropdown-file p {
    margin: 0px!important;
}

.services-excurs__program-elements__wrapper {
    color: var(--main-text-color);
    position: relative;
    margin-top: 120px;
    height: fit-content;
}
.services-excurs__program-elements__wrapper::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    top: 0px;
    background: #5A0D14;
}
.services-excurs__program-elements__title {
    font-size: 32px;
    font-family: 'Playfair Display';
    font-weight: 700;
    color: var(--second-text-color);
    padding-left: 26px;
    margin-bottom: 23px;
}
.services-excurs__program-elements {
    list-style-position: inside;
    margin: 0px;
    padding: 0px;
    padding-left: 26px;
    display: flex;
    flex-direction: column;
}
.services-excurs__program-elements li {
    list-style: none;
    position: relative;
    line-height: 40px;
    padding-bottom: 16px;
}
.services-excurs__program-elements li p {
    margin: 0px;
}
.services-excurs__program-elements li::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #5A0D14;
    border-radius: 100%;
    top: 10px;
    left: -31px;
}

.services-excurs__programs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 94px;
}

.services-excurs__attention-wrapper {
    margin-top: 48px;
}
.services-excurs__attention-title {
    margin: 0px;
    font-size: 24px;
    font-family: 'Playfair Display';
    font-weight: 600;
    line-height: 40px;
    margin-bottom: 16px;
}
.services-excurs__attention-content {
    font-size: 18px;
    line-height: 40px;
}
.services-excurs__attention-content p {
    margin: 0px;
}

.services-excurs__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 59px;
    margin-top: 120px;
}
.services-excurs__element {
    color: var(--main-text-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: space-between;
}
.services-excurs__element p {
    margin: 0px;
}
.services-excurs__element-image {
    width: 100%;
    height: 249px;
    border-radius: 10px;
    object-fit: cover;
}
.services-excurs__element-date {
    opacity: .5;
}
.services-excurs__element-title {
    color: var(--second-text-color);
    font-size: 24px;
    font-weight: 400;
}
.services-excurs__element-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.services-excurs__element-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}
.services-excurs__element-footer .more-btn {
    background: transparent;
    font-size: 18px;
}

.record-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.record-section {
    color: var(--main-text-color);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 16px;
    line-height: 40px;
    position: relative;
    max-width: clamp(202px, 50vw, 716px);
    width: max-content;
}
.record-section:nth-child(1) {
    width: auto;
    height: fit-content;
    gap: 0px;
}
.record-section:nth-child(1) img {
    width: 100%;
    height: 249px;
    border-radius: 10px;
    object-fit: cover;
}

.record-section .wysiwyg-content ul li::after {
    top: -5px;
}

.record-section:nth-child(2) h2, .record-section:nth-child(2) p {
    margin: 0px;
}
.record-section:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 16px;
    line-height: 40px;
    position: relative;
}
.record-section:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -48px;
    height: 280px;
    width: 1px;
    background: #6E050F;
}

.record-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 228px;
}
.record-item__type {
    margin: 0px;
    opacity: .5;
    font-size: 16px;
}
.record-item__title {
    margin: 0px;
    margin-top: 16px;
    font-size: 24px;
    font-weight: 400;
}
.record-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 64px;
}

.popup-wrapper {
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: #00000075;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}
.popup-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}
.popup-wrapper .popup {
    background: #1D1D1C;
    border-radius: 10px;
    padding: 32px;
    position: relative;
    max-width: 409px;
}
.popup-wrapper .popup-close {
    bottom: 150px;
    width: fit-content;
    position: absolute;
    right: 32px;
    cursor: pointer;
    background: transparent;
    border: none;
    box-shadow: none;
}
.popup-wrapper .popup-title {
    width: 80%;
    font-size: 32px;
    color: var(--main-text-color);
    font-weight: 700;
    margin-top: 0px;
    font-family: 'Libre Franklin';
}
.popup-wrapper .popup-item {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--main-text-color);
    margin-top: 24px;
    font-size: 24px;
    height: 30px;
}
.popup-wrapper.hidden {
  display: none;
}





.printing-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 64px;
    gap: 64px;
}
.printing-item {
    color: var(--main-text-color);
    max-width: 100%;
    position: relative;
}
.printing-item.bottom-divider::after {
    content: '';
    width: 379px;
    height: 1px;
    position: absolute;
    bottom: -30px;
    background: #6E050F;
}


.printing-item__type {
    margin: 0px;
    margin-bottom: 8px;
    opacity: .5;
    font-size: 14px;
}
.printing-item__title {
    margin: 0px;
    font-size: 24px;
    font-weight: 500;
}
.printing-item__footer {
    margin-top: 61px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.printing-item__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;               
  flex-wrap: wrap;        
  width: 100%;             
  max-width: 55%;          
  box-sizing: border-box;
}


.souvenirs-desc {
    font-size: 18px;
    color: var(--main-text-color);
    line-height: 38px;
    width: 560px;
    margin-top: 64px;
    margin-bottom: 64px;
}
.souvenirs-desc p {
    margin: 0px;
}
.souvenirs-items__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 64px;
    gap: 64px;
}
.souvenirs-item {
    color: var(--main-text-color);
    width: 100%;
}
.souvenirs-item.hidden {
    display: none;
}
.souvenirs-item__cover {
    width: 100%;
    height: 249px;
    border-radius: 10px;
    object-fit: cover;
}
.souvenirs-item__brand {
    margin: 0px;
    margin-top: 24px;
    opacity: .5;
    font-size: 16px;
}
.souvenirs-item__title {
    margin: 0px;
    margin-top: 16px;
    font-size: 24px;
    font-weight: 400;
}
.souvenirs-item__footer {
    margin-top: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.more-btn__wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 48px;
}
.more-btn__centeted-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 120px;
    margin-bottom: 140px;
}


.services-excurs__programs.mobile,
.services-excurs__attention-wrapper.mobile {
    display: none!important;
}


/* acces */
body.accessibility-mode .popup-wrapper .popup {
    background: #ffffff;
    border-radius: 10px;
    padding: 32px;
    position: relative;
    max-width: 409px;
}
/* стандартний колір */
.popup-item svg {
  color: #F4EBE0;
}

/* у режимі accessibility-mode locked → чорний */
body.accessibility-mode.locked .popup-item svg {
  color: #000;
}
/* стандартний колір */
.popup-close svg {
  color: #F4EBE0;
}

/* при accessibility-mode locked */
body.accessibility-mode.locked .popup-close svg {
  color: #000;
}
body.accessibility-mode .services-category__button.active
 {
    background:#ffffff;
}

body.accessibility-mode .services-excurs__element-footer {
    display: contents;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}


/*tablet*/
@media (max-width: 1200px) and (min-width: 769px) {

  /* Общий контейнер */
  .container.divider {
    margin-top: 138px;
    padding: 0 40px;
  }

  /* Заголовки */
  h1 {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 40px;
  }
  h2, .section-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 32px;
  }

  /* Сетки */
  .report-categories {
    gap: 8px;
    flex-wrap: wrap;
  }

  .reports-wrapper {
    display: flex;
    flex-direction: row;
    gap: 60px; 
    margin-top: 48px;
  }

  .reports-wrapper .reports-categories {
    width: 240px; 
    gap: 32px;
  }

  .reports-wrapper .reports-content {
    width: 100%;
    max-width: 680px;
  }

  /* Контент внутри */
  .reports-content h1 {
    font-size: 36px;
    margin-bottom: 48px;
  }

  .reports-category__name {
    font-size: 20px;
    line-height: 28px;
  }

  .reports-category ul {
    gap: 12px;
  }
  .reports-category ul li {
    font-size: 15px;
    line-height: 26px;
  }

  /* Документы */
  .reports-content__documents {
    gap: 80px; 
  }

  .reports-content__documents .reports-content__documents-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 28px;
  }

  .reports-content__documents-files {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .reports-content__documents-files .reports-content__documents-file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #1E1E21;
    border-radius: 16px;
    color: var(--second-text-color);
    text-decoration: none;
    width: 100%;
    min-width: 0; 
    box-sizing: border-box;
  }

  .reports-content__documents-files .reports-content__documents-file p {
    font-size: 16px;
  }

  /* Попап */
  .popup {
    max-width: 360px; 
    padding: 24px;
  }
  
    .services-excurs__element-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px; /* чуть меньше отступа */
        flex-wrap: nowrap;
    }

    .services-excurs__element-price {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 16px;
    }

    .services-excurs__element-footer {
        flex-shrink: 0;   
        min-width: 140px;    
        max-width: 180px;  
        font-size: 14px;  
        padding: 0px 4px; 
        white-space: nowrap; 
        text-align: center;
        border-radius: 10px;
    }
    .printing-item.bottom-divider::after {
        width: 100%;         
        left: 0;            
        right: 0;             
        max-width: 100%;      
    }
    .printing-item__field{
        width: 100%;
        max-width: 70%;
    }
    .record-item {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 99px;
    }
    .record-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
        line-height: 40px;
        position: relative;
        max-width: none;
        width: auto;
    }

    /* acces */
    body.accessibility-mode .services-excurs__element-footer {
    display: grid;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}
body.accessibility-mode .souvenirs-item__footer {
    margin-top: 64px;
    display: grid;
    align-items: center;
    justify-content: space-between;
}

}
@media (max-width: 1024px) and (min-width: 769px) {

   

  .services-excurs__wrapper {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center; 
  }
  .services-excurs__element:last-child {
    grid-column: 1 / -1; 
    justify-self: center; 
    max-width: 80%;
  }
  .services-category__buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;

    overflow-x: auto;     
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; 
}

.services-category__buttons::-webkit-scrollbar {
    display: none;
}

.services-category__button {
    flex: 0 0 auto;              
    scroll-snap-align: start;     
    white-space: nowrap;          
    padding: 10px 20px;
    border-radius: 8px;
 
    font-size: 16px;
    cursor: pointer;
}


/* acces */
body.accessibility-mode .services-category__buttons {
       padding: 4px 6px 4px 6px;
    }

}


/*mobile*/
@media (max-width: 768px) {
    .container.divider {
        margin-top: 104px;
    }

    .services__title {
        font-size: 40px;
    }
    
    .services-category__buttons {
        overflow: scroll;
    }
    .services-category__buttons::-webkit-scrollbar {
        display: none;
    }
    .services-section {
        margin-top: 40px;
    }
    .services-excurs__photo {
        height: auto;
        aspect-ratio: 355 / 136;
        width: 100%;
    }
    .services-category__buttons {
        margin-top: 40px;
        gap: 8px;
    }
    .services-category__button {
        min-height: 48px;
        width: 100%;
        white-space: nowrap;
        font-size: 14px;
    }
    .services-excurs__programs {
        display: flex;
        flex-direction: column;
        gap: 0px;
        margin-top: 64px;
    }
    .services-excurs__program-elements__title {
        font-size: 18px;
        line-height: 40px;
        margin-bottom: -10px;
    }
    .services-excurs__program-elements__wrapper {
        margin: 0px;
        padding: 0px 8px;
    }
    .services-excurs__program-elements li::after {
        top: 32px;
    }
    .services-excurs__attention-wrapper {
        margin-top: 54px;
    }
    .services-excurs__wrapper {
        display: flex;
        flex-direction: column;
        margin-top: 64px;
        padding: 0px 16px;
        gap: 16px;
    }
    .services-excurs__attention-title {
        font-size: 18px;
        margin-bottom: 0px;
        line-height: 30px;
    }
    .services-excurs__attention-content {
        font-size: 16px;
    }
    .printing-item.bottom-divider::after {
        width: 100%;
    }
    .services-excurs__attention-content .wysiwyg-content {
        margin-top: 8px;
        line-height: 30px;
    }
    .services-excurs__element-image {
        height: auto;
        max-height: 300px;
        aspect-ratio: 328/200;
        width: 100%;
    }
    .services-excurs__element-header {
        gap: 8px;
    }
    .services-excurs__element-footer {
        margin-top: 48px;
    }
    .services-excurs__element {
        gap: 0px;
    }
    .services-excurs__element-date {
        margin-top: 16px!important;
        font-size: 14px;
    }
    .services-excurs__element-title {
        font-size: 16px;
    }
    .services-excurs__element-footer .more-btn {
        height: 45px;
    }
    .printing-item.bottom-divider .printing-item__title {
        font-size: 18px;
    }
    .dropdown-wrapper {
        margin-top: 64px;
        margin-bottom: 80px;
    }

    .dropdown {
        padding: 16px;
    }
    .dropdown-title {
        line-height: 40px;
    }
    .dropdown .dropdown-title__wrapper {
        align-items: center;
    }

    .record-wrapper {
        padding: 0px 5px;
    }
    .record-item {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }
    .record-section:nth-child(1) {
        width: auto;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    .record-item__type {
        margin-top: 16px;
        font-size: 14px;
    }
    .record-item__title {
        margin-top: 8px;
        font-size: 16px;
    }
    .record-item__footer {
        margin-top: 48px;
    }
    .record-item__footer .more-btn {
        height: 45px;
    }
    .record-section:nth-child(2) h2, .record-section:nth-child(2) p {
        font-size: 18px;
    }
    .record-section:nth-child(2) {
        margin-top: 80px;
        position: relative;
        max-width: 100%;
    }
    .record-section:nth-child(2)::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        left: 0;
        top: -40px;
    }
    .record-section:nth-child(2) .wysiwyg-content {
        margin: 0px;
    }

    .popup-wrapper {
        top: 0px;
    }
    .popup-wrapper .popup {
        padding: 16px;
        max-width: 301px;
    }

    .popup-wrapper .popup-close {
        width: fit-content;
        position: absolute;
        right: 20px;
        cursor: pointer;
        top: 25px;
        transform: scale(0.8);
    }
 
    .services-section:nth-child(6) {
        padding: 0px 5px;
    }
    .services-section:nth-child(6) h2 {
        font-size: 18px;
        margin: 0px;
    }
    .printing-items {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin-top: 40px;
    }
    .printing-items .printing-item:last-child::after {
        display: none;
    }
    .printing-item::after {
        content: '';
        width: 379px;
        height: 1px;
        position: absolute;
        bottom: -30px;
        background: #6E050F;
    }

    .souvenirs-desc {
        display: none;
    }
    .souvenirs-items__wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 0px 15px;
    }
    .souvenirs-item {
        width: 100%;
    }
    .souvenirs-item__brand {
        margin-top: 16px;
        font-size: 14px;
    }
    .souvenirs-item__title {
        font-size: 16px;
        margin-top: 8px;
    }
    .souvenirs-item__footer {
        margin-top: 48px;
    }
    .souvenirs-item__footer .more-btn {
        height: 45px;
    }
    .souvenirs-item__price {
        font-size: 16px;
    }

    .popup-wrapper .popup-title {
        font-size: 24px;
        line-height: 40px;
        font-weight: 700;
    }
    .popup-wrapper .popup-item {
        font-size: 16px;
    }

    .services-excurs__programs:not(.mobile),
    .services-excurs__attention-wrapper:not(.mobile) {
        display: none!important;
    }

    .services-excurs__programs.mobile,
    .services-excurs__attention-wrapper.mobile {
        display: block!important;
    }

    .services-excurs__attention-wrapper.mobile {
        color: var(--second-text-color);
        margin-top: 54px;
        padding: 0px 8px;
    }

    .dropdown .dropdown-content,
    .dropdown .dropdown-content  ul li {
        line-height: 20px;
        font-size: 14px;
    }
    .dropdown .dropdown-content ul li::after {
        top: 0px;
    }
    .dropdown .dropdown-file {
        height: 54px;
        padding: 0px 24px;
        width: 100%;
    }
    .centered-btn, .more-btn__centeted-wrapper {
        padding-bottom: 0px;
        padding-top: 0px;
        margin-top: 48px;
    }
    .more-btn__centeted-wrapper {
        margin-top: 20px;
    }
    /* access */
    body.accessibility-mode .services-category__button {
        width: auto;
    }
     body.accessibility-mode .dropdown-file {
  display: flex;
  align-items: center;
  gap: 8px; 
  background: #3a3a3a; 
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  width: 100%;         
  
}
body.accessibility-mode .services-excurs__element {
  flex: 1 1 calc(50% - 20px);  
  box-sizing: border-box;
}

body.accessibility-mode .services-category__buttons {
  padding: 4px 4px 8px 4px; 
  display: flex;
  gap: 12px;                        
  overflow-x: auto;                 
  white-space: nowrap;              
  -webkit-overflow-scrolling: touch;
  max-width: 100%;                  
}



body.accessibility-mode .services-category__buttons::-webkit-scrollbar {
  display: none; 
}

body.accessibility-mode .services-category__button {
  flex: 0 0 auto; 
}
body.accessibility-mode .services-excurs__wrapper {
  display: flex;
  flex-wrap: wrap;          
  gap: 20px;              
  justify-content: center;  
  box-sizing: border-box;
  max-width: 100%;
}

 body.accessibility-mode .dropdown-file svg {
  flex-shrink: 0;      
}

 body.accessibility-mode .dropdown-file p {
  margin: 0;
  flex: 1;            
  white-space: normal;
  word-break: break-word; 
}

body.accessibility-mode .services-category__button.active
 {
    background:#ffffff;
}

}