/* ==============================================
   СПОЙЛЕР (универсальный)
   ============================================== */

.custom-spoiler {
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Кнопка спойлера */
.spoiler-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    color: var(--global-palette5,#3d5e81);
    padding: 8px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    list-style: none;
    transition: all 0.3s ease;
    user-select: none;
    border-radius: 3px;
    width: auto;
    align-self: flex-start;
    border: 2px solid var(--global-palette6,#5d7b9d);
    text-decoration: none;
    line-height: 1.6;
    margin-top: 12px;
    order: 2; /* кнопка после контента */
}

.spoiler-title:hover {
    background: var(--global-palette2,#4abc1a);
    color: var(--global-palette9,#FFFFFF);
    border-color: var(--global-palette9,#FFFFFF);
}

/* Убираем стандартный маркер details */
.custom-spoiler > summary {
    list-style: none;
}
.custom-spoiler > summary::-webkit-details-marker {
    display: none;
}

/* Текст "Докладніше" видим всегда */
.spoiler-button-text {
    display: inline-block;
}

/* Текст "Згорнути" скрыт по умолчанию */
.spoiler-close-text {
    display: none;
}

/* При открытом спойлере показываем "Згорнути", скрываем "Докладніше" */
.custom-spoiler[open] .spoiler-button-text {
    display: none;
}

.custom-spoiler[open] .spoiler-close-text {
    display: inline-block;
}

/* Контент — скрыт по умолчанию */
.spoiler-content {
    display: none;
    order: 1; /* контент перед кнопкой */
}

/* При открытом спойлере — показываем контент */
.custom-spoiler[open] .spoiler-content {
    display: block;
    animation: fadeSlide 0.3s ease-out;
}

/* Анимация появления контента */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==============================================
   КАБИНЕТ — ВСЕГДА ПОВЕРХ ПОИСКА
   ============================================== */

.ddd-user-block--logged {
    position: relative;
    z-index: 99999 !important;
}

.ddd-user-block__dropdown {
    position: absolute !important;
    z-index: 99999 !important;
}

.ddd-search-dropdown {
    z-index: 9999 !important; /* чуть ниже */
}

/* ==============================================
   ПОДМЕНЮ КАДЕНС — ВСЕГДА ПОВЕРХ ПОИСКА
   ============================================== */

.header-navigation .header-menu-container ul ul {
    z-index: 99999 !important;
}

.header-navigation .header-menu-container ul ul li.menu-item {
    z-index: 99999 !important;
}

/* Если нужно и для других вложенных меню */
.main-navigation ul ul {
    z-index: 99999 !important;
}

/* Поиск — остаётся ниже */
.ddd-search-dropdown {
    z-index: 999 !important;
}


/*контент сайта*/

.site-branding a.brand {   gap: 0;}

.single-content p { margin-bottom: 1rem;}

#primary-menu .menu .current-menu-item a:hover {color:var(--global-palette9,#FFFFFF)!important;}
 
.sub-menu .current-menu-item a:hover {color:var(--global-palette4,#094C72)!important; background: var(--global-palette7,#d5dce4)!important;}
 

/* ==============================================
   УМЕНЬШАЕМ ЛОГОТИП ДЛЯ ПЛАНШЕТОВ (1024–1199px)
   ============================================== */

@media (max-width: 1199px) and (min-width: 1024px) {
    .site-branding img {
        max-width: 150px !important;  /* подбери под свой макет */
        height: auto !important;
    }
}

/* ==============================================
   ЛОГОТИП — КРУПНЕЕ НА МОБИЛКЕ (≤767px)
   ============================================== */

@media (max-width: 835px) {
    .site-branding img {
        max-width: 220px !important;  /* подбери свой размер */
        height: auto !important;
    }

}

.popup-drawer .drawer-header {
  padding: 16px 20px!important;
}

.entry-content a,
.ddd-full-cat-description a, 
.ddd-full-cat-description a:hover
{
/*   font-weight: 700;*/
}

 


/* ==============================================
   ОТКЛЮЧАЕМ ГЛОБАЛЬНЫЕ ОТСТУПЫ У ЗАГОЛОВКОВ
   ============================================== */

.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
    margin: 0 0 10px 0 !important;
}



/* Кастомный H1 отступы */
.ddd-single-title, .ddd-page-title,  .ddd-archive-title {
    margin-bottom: clamp(1rem, 2vw, 2.5rem) !important;
}

.space-top {
    margin-top: clamp(1.5rem, 3vw, 4rem) !important;
}

.space-bottom {
    margin-bottom: clamp(1.5rem, 3vw, 4rem) !important;
}

.space-top-last {
    margin-top: clamp(1.5rem, 3vw, 4rem) !important;
    margin-bottom: clamp(1.5rem, 3vw, 4rem) !important;
}

.space-inner {
    padding-top: clamp(0.9rem, 1.8vw, 2.7rem) !important;   /* на 10% меньше */
    padding-bottom: clamp(1.15rem, 2.3vw, 3.45rem) !important; /* на 15% больше */
}
 
 .widget-title {
     font-family: var(--global-heading-font-family)!important; 
}


/* ==============================================
   КОМПАКТНЫЕ ФОРМЫ 1-CLICK
   ============================================== */

.ddd-required-placeholder {
    position: relative;
    display: block;
    width: 100%;
}

.ddd-required-placeholder p {
    margin-bottom: 20px!important;
}


.awooc-form-custom-order p {
    margin: 5px 0!important;
}


.ddd-required-placeholder input {
    width: 100%;
    padding: 8px 30px 8px 12px !important;
    border: 1px solid var(--global-palette7, #d5dce4);
    border-radius: 4px;
    font-size: 0.95rem !important;
    background: var(--global-palette9, #ffffff);
    transition: border-color 0.2s ease;
}

.ddd-required-placeholder input:focus {
    border-color: var(--global-palette2, #4abc1a);
    outline: none;
}

.ddd-required-star {
    position: absolute;
    top: 33%;
    right: 12px;
    transform: translateY(-33%);
    color: #ff4500;
    font-weight: 700;
    font-size: 1.1rem;
    pointer-events: none;
}

.ddd-required-note {
    display: block;
    font-size: 0.8rem !important;
    color: var(--global-palette6, #5d7b9d);
    margin-bottom: 10px !important;
}

.ddd-required-note .ddd-required-star {
    position: static;
    transform: none;
    font-size: 0.9rem;
    margin-right: 2px;
}

.awooc-form-custom-order .wp-element-button {
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
    margin-top: 4px !important;
}