/*
 Theme Name:   Activist
 Description:  Kadence Child Theme
 Author:       Ice cream studio
 Author URI:   https://i-cream.ru
 Template:     kadence
 Version:      1.0.2
 Tags:         customizable, modern, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  kadencechild
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
        

/* ===== СТИЛИ ДЛЯ КОНТЕНТА ===== */
#fullpage .content {
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
        
.page-title {
    padding: 0 40px;
    text-align: center;
}
.site-branding {
    max-height: unset;
}
.site-main-header-wrap {
    transform: unset !important;
}
#masthead, #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start):not(.site-header-row-container):not(.site-main-header-wrap), #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
    background: transparent;
}
.site-main-header-inner-wrap {
    min-height: 109px !important;
    max-height: 109px !important;
}
/* ===== ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ ===== */
.fp-section {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    height: 100vh !important;
    min-height: 100vh !important;
}

.fp-slide, .fp-slidesContainer {
	height: 100%;
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
}
#fp-nav {
    top: auto !important;
    bottom: 15px;
    height: auto;
    min-height: unset;
    top: auto;
    margin: 0 !important;
}


        
/* ===== ЭФФЕКТ РАЗМЫТИЯ ===== */
/* Все секции по умолчанию размыты */
.fp-section .content {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    position: relative;
}
        
/* Эффекты размытия только когда fullPage активен */
.fullpage-active .fp-section .content {
    transform: translateY(40px) scale(0.92);
    filter: blur(8px);
    opacity: 0.4;
}

.fullpage-active .fp-section.active .content {
    transform: translateY(0) scale(1);
    filter: blur(0px);
    opacity: 1;
}
        
/* ===== АНИМАЦИЯ ПРИ ВХОДЕ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}
        
.fullpage-active .fp-section.active .content {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fullpage-active .fp-section.entering .content {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

.fullpage-active .fp-section.leaving .content {
    animation: fadeOutDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

.top_section.leaving .content {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

.top_section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}
.top_section .persona h3 {
    color: #fff;
    text-shadow: 0px 1px 18px rgba(0, 0, 0, 0.6);
}

    
@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    to {
        opacity: 0.3;
        transform: translateY(40px) scale(0.9);
        filter: blur(8px);
    }
}
 


/* Дополнительный эффект для контента внутри секции */
/*.content * {
    transition: all 0.3s ease;
}*/


/* Прелоадер для блоков last_active и last_exhibition */
.last_item {
    position: relative;
    transition: opacity 0.3s;
}

.last_item.loading {
    opacity: 0.6;
    pointer-events: none; /* запрещаем клики во время загрузки */
}

.last_item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
    



/* Специальные стили для слайдов */
.fullpage-active .fp-slide .content {
    transform: translateY(40px) scale(0.92);
    filter: blur(8px);
    opacity: 0.4;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fullpage-active .fp-slide.active .content {
    transform: translateY(0) scale(1);
    filter: blur(0px);
    opacity: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
        

/* ===== СТИЛИ ДЛЯ РЕЖИМА ОБЫЧНОГО СКРОЛЛА ===== */
.fullpage-disabled .section {
    display: flex;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    position: relative !important;
}
.fullpage-disabled .section.slider-section {
    display: block !important;
}

.fullpage-disabled .slide {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
}


.fullpage-disabled .content {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    animation: none !important;
    padding: 20px 0;
    height: auto;
    overflow: visible;
    min-width: 100%;
    min-height: 100vh;
    padding-bottom: 40px;
    padding-top: 40px;
}

.fullpage-disabled #fp-nav {
    display: none !important;
}


/* fancyapps */
#TopCarousel {
        --f-arrow-pos: 10px;
        --f-arrow-width: 38px;
        --f-arrow-height: 38px;
        --f-arrow-svg-width: 16px;
        --f-arrow-svg-height: 16px;
        --f-arrow-svg-stroke-width: 2.5;
        --f-arrow-color: #475569;
        --f-arrow-shadow: 0 6px 12px -2px rgb(50 50 93 / 25%), 0 3px 7px -3px rgb(0 0 0 / 30%);
        --f-arrow-border-radius: 50%;
        --f-arrow-bg: #fff;
        --f-arrow-hover-bg: #f9f9f9;
        --f-arrow-active-bg: #f0f0f0;
      }

      #TopCarousel .f-carousel__slide {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }

      #TopCarousel .f-carousel__slide img {
        max-width: 100%;
        height: auto;
      }
.top_section .content {
	width: 100%;
	min-height: 100vh;
	position: relative;
	display: flex;
    align-items: center;
    justify-content: center;
}
.fp-slides {
	min-width: 100vw;
	min-height: 100vh;
	overflow: visible;
}
.top_section .f-carousel {
	width: 100vw;
	height: 100vh;
	position: absolute !important;
	top: 0;
}
#TopCarousel .f-carousel__slide img {
	width: 100vw;
    height: 100vh;
    object-fit: cover;
}
.f-thumbs {
	position: absolute !important;
    bottom: 0;
    z-index: 9999 !important;
    width: 100vw;
    overflow: hidden;
}

.top_section .f-carousel:after {
	content: '';
	display: block;
	width: 100%;
	height: 150px;
	height: 20vh;
	background: linear-gradient(0deg, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0) 100%);
	position: absolute;
	z-index: 99;
	bottom:0;
}
.top_section .page-title {
	position: relative;
	z-index: 99;
    max-width: var(--global-content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--global-content-edge-padding);
}
.top_section .page-title h1 {
	color: #fff;
	text-shadow: 0px 1px 18px rgba(0, 0, 0, 0.6);
}



.site-branding {
  position: relative;
    background-color: #ffffff;
    padding: 40px 30px 30px 30px;
    overflow: hidden;
    box-shadow: 0px 0px 50px 0px rgba(34, 60, 80, 0.3);
    overflow: visible;
    transform: skewY(-5deg);
    top: -20px;
}


.f-thumbs.is-modern .f-thumbs__slide {
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12%), 0 100%);
}

.f-thumbs.is-modern .f-thumbs__slide:hover {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.f-thumbs.is-modern .f-thumbs__slide.is-selected {
	clip-path: unset;
}

#post_slogan {
	transform: skewY(-5deg);
}
.width-text {
    display: flex;
    justify-content: space-between;
}
.width-text span {
    color: #eeeeee;
    color: #95a8b2;
    font-family: 'Finlandica', sans-serif;
    line-height: 1.1;
    font-weight: bold;
    text-transform: uppercase;
}

/*.slide_image, .slide_desc {
	display: flex;
	flex-direction: column;
	justify-content: center;
}*/
.slide_image_wrap img {
	display: inline-block;
	max-height: 100vh;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5%), 0 100%);
	object-fit: cover;
    object-position: top;
}

.slide_image_wrap figure {
    margin-right: -50px;
    margin-left: 50px;
}

.quote-icon svg {
	fill: var(--global-palette-highlight);
	width: 1em;
    height: 1em;
}

.slide-column-wrap {
	display: grid;
    column-gap: var(--global-kb-gap-none, 0rem);
    row-gap: var(--global-kb-gap-none, 0rem);
	max-width: var(--global-content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--global-content-edge-padding);
    grid-template-columns: minmax(0, calc(30% - ((var(--global-kb-gap-none, 0rem) * 2) / 3))) minmax(0, calc(40% - ((var(--global-kb-gap-none, 0rem) * 2) / 3))) minmax(0, calc(30% - ((var(--global-kb-gap-none, 0rem) * 2) / 3)));
    grid-auto-rows: minmax(min-content, max-content);
    z-index: 1;
    position: relative;
}


.slide-column {
	display: flex;
    flex-direction: column;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    justify-content: center;
    align-self: center;
}
.slide-column .slide-inner-col {
	
}

.slide_quote_wrap .slide-inner-col {
	box-shadow: 10px 20px 49px 0px rgba(0, 0, 0, 0.06);
	padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    background: #fff;
    transform: skewY(-5deg);
    /* clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5%), 0 100%);*/
}
.slide_title_wrap .slide-inner-col {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.slider-section {
	background: url('img/Tula_Oblast.gif') center no-repeat;
	background-size: contain;
    background-position: 30% 0;
    box-shadow: inset 0 0 150px rgb(109 135 150 / 20%);
}

.slide_buttons button {
    margin: 0 15px 15px 0;
}
.content-section {
	background: url('img/Tula_Oblast_location.gif') center no-repeat;
	background-size: contain;
    background-position: 30% 0;
    /*box-shadow: inset 0 0 150px rgb(109 135 150 / 20%);*/
}


.about_modal {
	padding: 0 !important;
	background: transparent !important;
}
/* Основной контейнер модального окна */
.about_modal_content {
    display: flex;
    flex-direction: row; /* Два столбца */
    gap: 0; /* Убираем отступ, чтобы изображение было вплотную */
    max-width: 1200px;
    height: 85vh; /* Фиксированная высота модального окна */
    max-height: 800px; /* Ограничиваем максимальную высоту */
    background: transparent;
    overflow: hidden; /* Скрываем всё, что выходит за пределы контейнера */
}

/* Столбец с изображением — фиксированный */
.about_img {
    flex: 0 0 30%; /* Занимает ровно 50% ширины, не сжимается */
    height: 100%; /* Высота равна высоте родителя */
    position: sticky; /* Фиксируем внутри родителя */
    top: 0;
    overflow: hidden; /* Скрываем части изображения, если оно больше */
}

/* Само изображение */
.about_img figure {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about_img img {
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5%), 0 100%);
    object-fit: cover; /* Изображение заполняет блок, сохраняя пропорции */
    object-position: top;
    display: block;
}

/* Столбец с текстом — прокручиваемый */
.about_text {
    flex: 1 1 70%; /* Занимает оставшиеся 50% */
    height: 100%; /* Высота равна высоте родителя */
    overflow-y: auto; /* Включаем вертикальную прокрутку */
    padding: 30px 35px; /* Отступы внутри текстового блока */
    background: #fff;
    
    /* Стилизация скроллбара (опционально) */
    scrollbar-width: thin; /* Для Firefox */
    scrollbar-color: #ccc #f0f0f0; /* Для Firefox */
}

/* Стилизация скроллбара для WebKit-браузеров (Chrome, Safari) */
.about_text::-webkit-scrollbar {
    width: 5px;
}

.about_text::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.about_text::-webkit-scrollbar-thumb {
    background: #ccc;
}

.about_text::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Стили для текстового содержимого */
.about_text p {
    margin-top: 0;
    margin-bottom: 1.2em;
    line-height: 1.6;
    color: #333;
}

.about_text h1, 
.about_text h2, 
.about_text h3 {
    margin-top: 0;
    color: #222;
}





.gallery {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 0;
      width: 100%;
      width: 100vw;
      max-width: 100%;
      height: 100vh;
      max-height: 100%;
      aspect-ratio: 6 / 3;
      margin: 0 auto;
      background: #1e2530;
    }

    .card {
      position: relative;
      background: transparent;
      border-radius: 0;
      overflow: hidden;
      box-shadow: 0;
      
      transform: scale(1);
      will-change: transform, filter, box-shadow;
      cursor: default;
    }

    /* состояние «в фокусе» — чёткая, чуть увеличенная */
    .card.active {
      transform: scale(1.1);
      box-shadow: 0 12px 32px rgba(0, 180, 255, 0.35);
      z-index: 2;
      
    }

    /* картинки внутри */
    .card img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      border-radius: 0;
      background: #2a3340;
      transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
      filter: blur(6px) brightness(0.6);
      transform: scale(1.1);
    }
    .card.active img {
         filter: blur(0px) brightness(1.1);
         transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    }

.footer-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right:0;
    width: 100%;
    z-index: 999;
}
.footer-panel .active_cat_menu {
    display: inline-block;
    padding: 20px;
    background: #fff;
    box-shadow: 0px 0px 50px 0px rgba(34, 60, 80, 0.3);
    overflow: visible;
}




/* Боковая панель - скрыта за правым краем */
.sidebar {
    position: fixed;
    top: 0;
    right: -33.33%; /* Скрыта за пределами экрана справа */
    width: 33.33%;
    height: 100vh;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Внутренний контейнер с содержимым */
.sidebar-inner {
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    position: relative;
}

/* Активное состояние - панель выезжает слева направо */
.sidebar.active {
    right: 0;
}

/* Кнопка-триггер, приклеенная к левому краю сайдбара */
.sidebar-toggle {
    position: absolute;
    left: -50px; /* Приклеена к левому краю */
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 175px;
    background: #333;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    z-index: 1002;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
}



/* Анимация стрелки при открытии */
.sidebar.active .sidebar-toggle .arrow-icon {
    text-align: center;
    display: inline-block;
    transition: transform 0.4s ease;
}
.sidebar-toggle .arrow-icon:before {
    content: 'Показать списком';
}
.sidebar.active .sidebar-toggle .arrow-icon:before {
    content: 'Закрыть список';
}

.sidebar-toggle .arrow-icon {
    display: inline-block;
    transition: transform 0.4s ease;
    text-wrap-mode: nowrap;
}

/* Заголовок панели */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    padding: 5px 10px;
    background: none;
    box-shadow: none;
}

.sidebar-close:hover {
    color: #000;
    transform: rotate(90deg);
    background: none;
    box-shadow: none;
}

/* Контент панели */
.sidebar-content {
    padding: 20px;
}

.sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-content ul li {
    margin-bottom: 8px;
}

.sidebar-content ul li a {
    transition: all 0.3s;
}


/* Оверлей */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Мобильные устройства (ширина ≤ 768px) */
@media (max-width: 768px) {
    .sidebar {
        width: 90%;
        right: -90%;
    }
    
    .sidebar-toggle {
        left: -45px;
        width: 45px;
        height: 150px;
        font-size: 16px;
        border-radius: 6px 0 0 6px;
    }

}

/* Очень маленькие экраны (≤ 480px) */
@media (max-width: 480px) {
    .sidebar {
        width: 90%;
        right: -90%;
    }
    
    .sidebar-toggle {
        left: -40px;
        width: 40px;
        height: 150px;
        font-size: 14px;
        border-radius: 5px 0 0 5px;
    }
}

.sidebar_item a {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    text-decoration: none;
}
.sidebar_item h3 {
    font-size: 1.25em;
    line-height: 1.25em;
}


.sidebar_item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5%), 0 100%);
}

.rotated-text {
  transform: rotate(-90deg);
}


/*** cookie alert ***/

#cookie_note{
    display: none;
    position: fixed;
    bottom: 15px;
    left: 50%;
    max-width: 90%;
    transform: translateX(-50%);
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.6);
    z-index: 999;
}

#cookie_note p{
    margin: 0;
    font-size: 0.7rem;
    text-align: left;
    color: black;
}

.cookie_accept{
    width:30%;
    border: 0;
    font-size: 14px;
    text-wrap: nowrap;
}
@media (min-width: 576px){
    #cookie_note.show{
        display: flex;
    }
}

@media (max-width: 575px){
    #cookie_note {
        width: 100%;
    }
    
    #cookie_note.show{
        display: block;
        text-align: left;
    }
    .cookie_accept {
        width: auto;
    }
}



/* ============================================
   Стили для шорткода [active_tax]
   Современная плиточная сетка
   ============================================ */

/* Базовый контейнер */
.tula_term_list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0 !important;
    margin: 0;
}

/* Элемент плитки */
.tula_term_list li {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transform: skewY(-5deg);
}

/* Hover-эффект */
.tula_term_list li:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.08);
    transform: skewY(-5deg);
}
.tula_term_list li div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: skewY(5deg);
}

/* Контейнер для изображения (SVG) */
.term_img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* SVG внутри контейнера */
.term_img svg {
    width: 100%;
    height: 100%;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Увеличение иконки при наведении */
.tula_term_list li:hover .term_img svg {
    transform: scale(1.1);
}

/* Ссылка вокруг изображения */
.term_img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Название термина */
.term_name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin-top: 5px;
}

/* Ссылка названия */
.term_name a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

/* Подчеркивание при наведении */
.term_name a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.term_name a:hover {
    color: #e74c3c;
}

.term_name a:hover::after {
    width: 100%;
}

/* ============================================
   КОЛИЧЕСТВО КОЛОНОК
   ============================================ */

/* 1 колонка (по умолчанию) */
.tula_term_list.cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

/* 2 колонки */
.tula_term_list.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 колонки */
.tula_term_list.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 колонки */
.tula_term_list.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 5 колонок */
.tula_term_list.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* 6 колонок */
.tula_term_list.cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты и маленькие ноутбуки (до 1200px) */
@media (max-width: 1200px) {
    .tula_term_list.cols-5,
    .tula_term_list.cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .tula_term_list.cols-4,
    .tula_term_list.cols-5,
    .tula_term_list.cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tula_term_list li {
        padding: 20px 15px;
    }
    
    .term_img {
        width: 60px;
        height: 60px;
    }
    
    .term_img svg {
        max-width: 60px;
        max-height: 60px;
    }
    
    .term_name {
        font-size: 15px;
    }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    .tula_term_list {
        gap: 15px;
    }
    
    .tula_term_list.cols-3,
    .tula_term_list.cols-4,
    .tula_term_list.cols-5,
    .tula_term_list.cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tula_term_list li {
        padding: 18px 12px;
        border-radius: 12px;
    }
    
    .term_img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .term_img svg {
        max-width: 50px;
        max-height: 50px;
    }
    
    .term_name {
        font-size: 14px;
    }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .tula_term_list {
        gap: 12px;
    }
    
    .tula_term_list.cols-2,
    .tula_term_list.cols-3,
    .tula_term_list.cols-4,
    .tula_term_list.cols-5,
    .tula_term_list.cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tula_term_list li {
        padding: 15px 10px;
        border-radius: 10px;
    }
    
    .term_img {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .term_img svg {
        max-width: 40px;
        max-height: 40px;
    }
    
    .term_name {
        font-size: 12px;
    }
    
    .term_name a::after {
        display: none;
    }
}

/* ============================================
   ВАРИАНТЫ ДИЗАЙНА (дополнительные классы)
   ============================================ */

/* Вариант с тенями и градиентами */
.tula_term_list.style-gradient li {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.tula_term_list.style-gradient li:hover {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
}

/* Вариант с цветной обводкой */
.tula_term_list.style-border li {
    border: 2px solid transparent;
    background: transparent;
    box-shadow: none;
}

.tula_term_list.style-border li:hover {
    border-color: #e74c3c;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.1);
}

/* Вариант с круговыми иконками */
.tula_term_list.style-circle .term_img {
    border-radius: 50%;
    background: #f0f0f5;
    padding: 15px;
}

.tula_term_list.style-circle li:hover .term_img {
    background: #e74c3c;
}

.tula_term_list.style-circle li:hover .term_img svg {
    filter: brightness(0) invert(1);
}

/* Темная тема */
.tula_term_list.theme-dark li {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.05);
}

.tula_term_list.theme-dark .term_name a {
    color: #ffffff;
}

.tula_term_list.theme-dark li:hover {
    background: #2a2a4e;
    border-color: rgba(255, 255, 255, 0.1);
}

.tula_term_list.theme-dark .term_name a:hover {
    color: #e74c3c;
}

/* ============================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ (опционально)
   ============================================ */

.tula_term_list.animate li {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.tula_term_list.animate li:nth-child(1) { animation-delay: 0.05s; }
.tula_term_list.animate li:nth-child(2) { animation-delay: 0.10s; }
.tula_term_list.animate li:nth-child(3) { animation-delay: 0.15s; }
.tula_term_list.animate li:nth-child(4) { animation-delay: 0.20s; }
.tula_term_list.animate li:nth-child(5) { animation-delay: 0.25s; }
.tula_term_list.animate li:nth-child(6) { animation-delay: 0.30s; }
.tula_term_list.animate li:nth-child(7) { animation-delay: 0.35s; }
.tula_term_list.animate li:nth-child(8) { animation-delay: 0.40s; }
.tula_term_list.animate li:nth-child(9) { animation-delay: 0.45s; }
.tula_term_list.animate li:nth-child(10) { animation-delay: 0.50s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




   
    /* === мобильные вертикальные (телефоны) — 3 колонки, 6 рядов === */
    @media (max-width: 760px) {
      .gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, 1fr);
        aspect-ratio: 3 / 6;
      }
    }


    /* лёгкий "пульс" для активной карточки — дополнительная плавность */
    .card.active img {
      transform: scale(1.02);
    }
    .card img {
      transition: transform 0.5s ease;
    }

.footer_title {
    font-size: 5em;
    color: #fff;
    text-shadow: 0px 1px 18px rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 50%;
    width: 100%;
    font-family: var(--global-heading-font-family);
    font-weight: 700;
    text-align: center;
    transform: translate(0, -50%);
    z-index: 99;
    
}
.footer_title span {
    display: inline-block;
    margin: auto;
    max-width: var(--global-content-width);
    padding: 0 var(--global-content-edge-padding);
}



.mainpage_book, .frontpage_block {
    width: 100%;
    height: 100%;
    width: 100vw;
    height: 100vh;
    position: relative;
    background: #dedede;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.mainpage_book .last_item {
    flex: 1;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 var(--global-content-edge-padding);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.mainpage_book .last_item span.h1 a {
    font-size: 4em;
    color: #fff;
    text-shadow: 0px 1px 18px rgba(0, 0, 0, 0.6);
    font-family: var(--global-heading-font-family);
    font-weight: 700;
    line-height: 1.25em;
    text-decoration: none;
    margin-bottom: 30px;
    display: inline-block;
}
@media (max-width:1024px) {
    .mainpage_book, .frontpage_block {
        width: 100%;
        height: auto;
        width: 100vw;
        height: auto;
        min-height: 100vh;
    }
    .mainpage_book .last_item {
        min-height: 100vh;
        padding-top: 106px;
        padding-bottom: 106px;
    }
}
@media (max-width:768px) {
    .mainpage_book .last_item span.h1 a {
       font-size: 3em; 
    }
}
.mainpage_book:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left:0;
    right:0;
    width:100%;
    overflow: visible;
    background: url('img/book_top.svg');
    height: 4vw;
    background-size: contain;
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: 99;
}
.mainpage_book:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left:0;
    right:0;
    width:100%;
    overflow: visible;
    background: url('img/book_bottom_new.svg');
    height: 4vw;
    background-size: contain;
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: 99;
}
.last_exhibition:before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 20%, rgba(255, 255, 255, 0.3) 30%, rgba(0, 0, 0, 0) 40%);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.last_active:after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 60%, rgba(255, 255, 255, 0.3) 70%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.65) 100%);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.mainpage_book > div .block_title {
    display: flex;
    flex-direction: column;
    z-index: 990;
    position: relative;
}
.mainpage_book .block_title .button {
    margin: 0 15px 15px 0;
}
.mainpage_book .subtitle h3 {
    color: #fff;
    text-shadow: 0px 1px 18px rgba(0, 0, 0, 0.6);
    font-family: var(--global-heading-font-family);
    font-weight: 700;
    line-height: 1.25em;
    z-index: 990;
}

#ActiveCarousel {
        --f-carousel-slide-width: min(40%, 387px);
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}
#ActiveCarousel .f-carousel__viewport {
    padding-top: 40px;
    padding-bottom: 40px;
}
      #ActiveCarousel .f-carousel__slide p {
        padding: 40px 0;
        perspective: 400px;
        overflow: visible;
      }

      #ActiveCarousel .f-carousel__slide img {
        transform: translateZ(var(--f-translateZ, 0))
          rotateY(var(--f-rotateY, 0)) scale(var(--f-scale, 1));
        transform-style: preserve-3d;
        max-width: 100%;
        max-height: 100%;
        height: auto;
        object-fit: cover;
        width: 688px;
        height: 387px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5%), 0 100%);
        cursor: pointer;
}
.wp-block-pullquote {
    padding: 0 !important;
}
.wp-block-pullquote blockquote::before {
    content: "\2714" !important;
}


.bottom_section .content {
    background-color: #1e2530;
    padding-top: 3em;
    padding-bottom: 3em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='315.8' height='88.27' data-name='' viewBox='0 0 315.8 88.27'%3E%3Cdefs%3E%3Cstyle%3E.cls-2%7Bfill:%23fff;stroke-width:0%7D%3C/style%3E%3C/defs%3E%3Cg id='_Слой_1-2' data-name='Слой 1' style='opacity:.15'%3E%3Cpath d='m54.07 82.29 11.35-55.27 12-1.33-4.75 23.13 5.07-.56 15.4-24.31 13.01-1.44L87.2 50.84l7.26 26.98-12.84 1.42-5.72-21.98-5.07.56-4.75 23.13-12 1.33Zm59.05-6.52 9.33-45.4-13.43 1.48 2.03-9.87 38.95-4.3-2.03 9.87-13.43 1.48-9.33 45.4zm32.95-3.65 11.35-55.27 12-1.33-5.53 26.92-2.53 6.68q-.23.72.29.82.51.1 1-.65l25.53-35.84 11.32-1.25-11.35 55.27-12.08 1.33 5.66-27.55 2.33-6.51q.31-.74-.19-.87t-1.06.54l-25.83 36.5-10.9 1.2Zm54.58-6.03L212 10.82l20.19-2.23q8.79-.97 12.88 2.39t2.62 10.55a17 17 0 0 1-3.54 7.38 19.5 19.5 0 0 1-6.63 5.17q4.13.78 5.79 3.99 1.65 3.2.65 8.11a20 20 0 0 1-7.17 11.98q-5.64 4.56-14.43 5.53zm13.32-10.57 9.8-1.08q3.8-.42 6.2-2.46a9 9 0 0 0 3.05-5.2q.66-3.24-1-4.98t-5.38-1.33l-9.8 1.08zm4.69-22.82 8.79-.97a10 10 0 0 0 5.88-2.5 9.7 9.7 0 0 0 3-5.35q.64-3.15-.92-4.76-1.57-1.6-5.12-1.21l-8.79.97zM43.03 29.5 26.3 31.35l-9.12 1.01-1.91 9.32 6.6-.73L0 88.27l12.08-1.33L30.23 45.2l1.65-4.81q.33-.81.96-.84t.56.67l-.47 4.68.47 12.85 9.42-1.04-9.18 7.61.74 20.17 12.17-1.34-3.52-53.62Z' class='cls-2'/%3E%3Cpath d='m19.33 58.42-.14-.01-.26.99zm-.97 3.09-4.32 16.22 21.92-18.16z' class='cls-2'/%3E%3Cpath d='m263.96 5.64-2.37 11.52 19-2.1-8.98 43.75 11.86-1.32 11.36-55.26zm39.97-4.33-2.36 11.52-8.99 43.75 11.87-1.31L315.8 0z' style='fill:%23fff;stroke-width:0;fill-rule:evenodd'/%3E%3C/g%3E%3C/svg%3E");
    background-position: center;
    background-size: 40%;
    background-repeat: no-repeat;
}

.bottom_section .post-navigation {
    max-width: var(--global-content-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--global-content-edge-padding, 20px);
}
.about_prev, .about_next {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    font-size: 1.5em;
    line-height: 1.25em;
}
.about_next {
    justify-content: flex-end;
}
.bottom_section .post-navigation a {
    color: #fff;
}

.bottom_section .post-navigation .nav-previous:after {
    background-color: #3d454f;
}
.about_prev img, .about_next img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5%), 0 100%);
}

.tax-links svg {
    height: 72px;
    width: 58px;
    display: inline-block;
    margin-top: .5em;
}
#secondary h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
}
.entry-tags .tags-links.tax-links  {
    flex-direction: column;
    gap: 15px;
}
.entry-tags .tags-links >div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}
/*
.has-sidebar .content-container {
    justify-content: center;
    align-items: flex-start;
}
*/
#secondary .sidebar-inner-wrap {
    background: #fff;
    background-color: #ffffff;
    padding: 40px 30px 30px 30px;
    overflow: hidden;
    box-shadow: 0px 0px 50px 0px rgba(34, 60, 80, 0.3);
    overflow: visible;
    transform: skewY(-5deg);
}
#secondary .sidebar-inner-wrap > .widget {
    transform: skewY(5deg);
}


.map {
    width: 100%;
    height: 100%;
    position: fixed !important;
}

.entry-hero-container-inner {
    background: #fff;
}
#archive-container .slide {
    margin-bottom: 40px;
}
#archive-container .slide_image_wrap img {
    height: 400px;
}
.site-header-upper-inner-wrap.child-is-fixed, .site-main-header-inner-wrap {
    height: auto;
    min-height: unset !important;
    max-height: unset !important;
}
.site-branding {
    position: absolute;
}
.date_filter {
    display: flex;
    width: 50px;
    flex-basis: 50px;
    flex-grow: 0;
    align-items: flex-start;
    padding-top: 5em;
    justify-content: center;
    height: 100%;
}
.date_filter ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.date_filter li a {
    writing-mode: vertical-lr;
    /* text-orientation: upright; */
    text-decoration: none;
    background: #878787;
    color: #fff;
    width: 100%;
    max-width: 50px;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.date_filter li.active a {
    background: #d24a43;
}
.date_filter.date_filter_left a {
    transform: rotate(180deg);
}
@media (max-width: 1024px) {
    .mainpage_book {
        flex-wrap: wrap;
        width: 100%;
        height: 100%;
    }
    .mainpage_book > div.last_item {
        flex-basis: calc(100% - 50px);
        width: 100%;
        min-height: 100vh;
    }
    .mainpage_book:before, .mainpage_book:after {
        content: none;
    }
    .bottom_section .content {
        padding: 0 !important;
    }
}
.slide .slide_title a {
    font-family: Finlandica, sans-serif;
    text-decoration: none;
}


    
@media (max-width:768px) {
    .bottom_section .post-navigation {
        margin-top: 0;
        margin-bottom: 0;
        padding-top:  2em;
        padding-bottom:  2em;
    }

    .about_prev img, .about_next img {
        width: 100px;
        height: 100px;
    }
    .about_prev, .about_next {
        font-size: 1.15em;
    }
    
    .slide-column-wrap {
        display: grid;
        column-gap: var(--global-kb-gap-none, 0rem);
        row-gap: var(--global-kb-gap-none, 0rem);
        max-width: var(--global-content-width, 1200px);
        margin-left: auto;
        margin-right: auto;
        padding: 0 var(--global-content-edge-padding, 20px);
        
        /* Сетка 2 колонки, но первый блок занимает обе */
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        
        z-index: 1;
        position: relative;
        width: 100%;
        min-height: 100%;
        align-content: start;
        align-items: stretch;
    }

    /* Первый блок - на всю ширину (2 колонки) */
    .slide-column-wrap .slide-column:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
    }

    /* Второй блок - первая колонка */
    .slide-column-wrap .slide-column:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    /* Третий блок - вторая колонка */
    .slide-column-wrap .slide-column:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2;
    }
    .slide_image_wrap figure {
        margin-left: 0
    }
    .slide_image_wrap img {
        max-height: unset;
        width: 100%;
    }
    .about_img img {
        width: 100%;
        height: auto;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0%), 0 100%);
        object-fit: cover;
        object-position: center top;
        display: block;
    }
    .about_modal_content {
        flex-direction: column;
        height: auto;
        max-height: none;
        border-radius: 0px;
    }
    .footer_title {
        font-size: 3em;
    }
    .bottom_section .content {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .slider-section {
        background: url(img/Tula_Oblast.gif) center no-repeat;
        background-size: contain;
        background-position: 30% 50%;
        box-shadow: inset 0 0 150px rgb(109 135 150 / 20%);
        background-attachment: fixed;
    }
}

@media (max-width:480px) {
    #fullpage .content-section .kt-inside-inner-col {
        padding: 0 !important;
    }
    .slide-column-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
        padding: 0;
        min-height: auto;
        height: auto;
    }
    .wp-block-pullquote blockquote {
        padding: 1em;
    }
    .comment-navigation .nav-links, .post-navigation .nav-links {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr); /* две строки одинаковой высоты */
    }
    .comment-navigation .nav-next, .post-navigation .nav-next {
        grid-column-start: 1;
        text-align: right;
    }
    .comment-navigation .nav-previous:after, .post-navigation .nav-previous:after {
        content: none;
    }
    
    
    /* На мобильных все блоки идут друг за другом */
    .slide-column-wrap .slide-column:nth-child(1),
    .slide-column-wrap .slide-column:nth-child(2),
    .slide-column-wrap .slide-column:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .slide_image_wrap figure {
        margin-right: 0;
        margin-left: 0;
    }
    .footer_title {
        font-size: 2.5em;
    }
    .bottom_section .content {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

}



/* Дополнительные стили для страницы всех практик */

/* Статистика в сайдбаре */
.sidebar-stats {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.sidebar-stats .total-count {
    color: #e74c3c;
}

/* Двойной фильтр */
.active_cat_menu {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    flex-wrap: wrap;
    align-items: center;
}

.active_cat_menu select {
    min-width: 200px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px 10px 0;
}

.active_cat_menu select:hover {
    border-color: #999;
}

.active_cat_menu select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Адаптивность для фильтров */
@media (max-width: 768px) {
    .active_cat_menu {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    
    .active_cat_menu select {
        width: 100%;
        min-width: unset;
    }
}

/* Счетчик на карте (опционально) */
.map-statistics {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
}

.map-statistics strong {
    color: #e74c3c;
}

/* Стили для состояний загрузки */
.loading-spinner {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-posts, .error {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

.error {
    color: #e74c3c;
}
/* Стили для селектов с количеством */
.active_cat_menu select option {
    padding: 5px 10px;
}

.active_cat_menu select option:not(:first-child) {
    border-bottom: 1px solid #f0f0f0;
}


/* Количество практик в селекте */
.active_cat_menu select option {
    font-size: 14px;
}

.active_cat_menu select option span.count {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}
.desctop_nav_trigger {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999;
    display: none;
}
.menu-toggle-open {
    box-shadow: 0px 0px 50px 0px rgba(34, 60, 80, 0.3) !important;
    transform: skewY(-5deg);
    margin-top: 15px;
    margin-right: 15px;
    border-radius: 0 !important;
}
@media screen and (min-width: 1025px) {
    .desctop_nav_trigger {
        display: block;
    }
}
