/*
Theme Name: Spacious Child
Theme URI: https://themegrill.com/themes/spacious/
Description: Child theme for Spacious
Author: Your Name
Template: spacious
Version: 1.0.0
*/

/* =====================================================
   LAYOUT ADJUSTMENTS
===================================================== */

#main {
    padding: 0px;
}
#site-title a {
    color: #154C9C !important;
}
#content .post,
#content .page {
    padding-bottom: 0px;
}


/* Выравнивание логотипа */
#header-logo-image img {
    margin: 8px 0px 0px 0px;
}

/* =====================================================
   DESKTOP ONLY NAVIGATION ADJUSTMENTS
===================================================== */

@media (min-width: 992px) {


    /* Отключаем родной hover-dropdown */
    .main-navigation ul li:hover > ul,
    .main-navigation ul li.focus > ul {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Убираем absolute-позиционирование */
    .main-navigation .sub-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
    }

}


/* =====================================================
   ACCORDION
===================================================== */

/* summary в одну строку */
details summary {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

/* Убираем стандартные маркеры */
details summary::-webkit-details-marker {
    display: none !important;
}

details summary::marker {
    content: "" !important;
}

/* Стрелка */
details summary::before {
    content: "▼";
    margin-right: 8px;
    font-size: 14px;
    line-height: 1;
    display: inline-block;
}

/* Заголовок */
details summary h5 {
    margin: 0 !important;
    font-size: 17px;
    display: inline-block;
}

/* Контент */
.copy-accordion .accordion-content {
    padding-top: 10px;
}

.donate-buttons {
    text-align: center;
}


/* =====================================================
   TOP BAR FIX — FINAL (Spacious)
===================================================== */

#header-meta {
    padding: 0 !important;
    min-height: 0 !important;
    line-height: 1 !important;
}

#header-meta .inner-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 38px; /* при необходимости можно 40–42px */
}

/* Убираем float модели темы */
#header-meta .small-info-text,
#header-meta .small-menu {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Убираем clearfix Spacious */
#header-meta .inner-wrap::before,
#header-meta .inner-wrap::after {
    display: none !important;
}

/* Текст */
#header-meta .textwidget {
    margin: 0 !important;
    padding: 0 !important;
}

/* Соц-иконки */
.small-menu a {
    padding: 4px 5px 0px 0px ;
}
.header-social-icons {
    display: inline-flex;
    align-items: center;
	vertical-align: middle;
	position: relative;
    top: 8px; /* меняй значение */
}

.header-social-icons a {
    display: inline-block;
    margin-right: 0px;
}

.header-social-icons a:last-child {
    margin-right: 0;
}

.header-social-icons img {
    width: 24px;
    height: 24px;
    display: block;
}
/* Стили пустого шаблона*/
#blank-page-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.blank-page {
    background: #ffffff;
    margin: 0;
}
/*СПIВПРАЦЯ ТА ПIДТРИМКА*/
.support-block {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px;
    background: #f4f6fa;
    border-radius: 30px;
    margin-bottom: 80px;
}

.support-block--reverse {
    flex-direction: row-reverse;
}

.support-block__image img {
    width: 350px;
    display: block;
}

.support-block__content {
    flex: 1;
}

.support-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #e9ecf5;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .support-block,
    .support-block--reverse {
        flex-direction: column;
        text-align: center;
    }

    .support-block__image img {
        width: 100%;
        max-width: 320px;
    }
}
/*кнопки*/
/* ======================================
   GLOBAL BUTTON STYLE
   ====================================== */

.button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {

    display:inline-block;

    padding:14px 36px;
    min-height:48px;

    font-size:16px;
    font-weight:600;
    font-family:inherit;

    text-align:center;
    text-decoration:none;

    color:#ffffff;
    background-color:#154c9c;

    border:1px solid #154c9c;
    border-radius:12px;

    cursor:pointer;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .15s ease;

    box-shadow:0 4px 14px rgba(0,0,0,0.15);
}
.button{
	border: 1px solid #154c9c !important;
    background:#154c9c !important;
}
.button:hover,
button:hover,
input[type="submit"]:hover {
	border: 1px solid #f2b705 !important;
    background:#f2b705 !important;
}
.su-button {
    background-color: #154c9c !important;
    border-color: #154c9c !important;
}
.su-button:hover {
    background-color: #f2b705 !important;
	border-color: #f2b705 !important;
}

/*заголовки*/
h1 {
    font-weight: 600;
	text-transform: uppercase;
}
/* Кнопка Donate в меню */
.menu-item.donate {
    display: flex;
    align-items: center;
}


/*отличие*/
.menu-item.donate a {
    background-color: #154c9c !important;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    border: 2px solid #1e73be;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    height: 36px;        /* подгоняет высоту под меню */
}

.menu-item.donate a:hover {
    background-color: #f2b705 !important;
    border-color: #f2b705 !important;
}
.menu-item.donate a {
    background: #1e73be;
}
/*форма обр связи*/

.wpcf7 textarea{
    height: 70px;
}

.fv-join-card{
background:#f8f8f8;
border:1px solid #dddddd;
border-radius:32px;
padding:60px 40px;
text-align:center;
max-width:500px;
}

.fv-join-card h2{
font-size:34px;
font-weight:800;
line-height:1.2;
margin-bottom:30px;
}

.fv-join-card p{
font-size:20px;
line-height:1.5;
margin-bottom:30px;
}

.fv-heart{
width:300px;
}
.wpcf7 input,
.wpcf7 textarea{
    width:100%;
	background-color: #F8F8F8;
    border:1px solid #ddd;
    border-radius:6px;
	margin: 0 0 10px;
	height: 40px;
}
.donat {
margin-left: 100px;
margin-right: 100px;
}
@media (max-width: 768px) {
.donat {
margin-left:0px;
margin-right:0px;
}
}


/* правая колонка */
.wp-block-columns.join-section > .wp-block-column:last-child{
    display:flex;
}

/* форма CF7 */
.wp-block-columns.join-section .wpcf7 form{
    display:flex;
    flex-direction:column;
    width:100%;
	height:100%;   /* добавлено */
}

/* кнопка вниз */
.wp-block-columns.join-section .wpcf7 form p:last-of-type{
    margin-top:auto;
}
/*СЕКЦИИ*/
.section {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #d7d7d7;
    margin-top: 20px;
}

.section-light {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #d7d7d7;
    margin-top: 20px;
	background-color: #eaeaea;
}
.my skip-lazy {
    border-radius: 30px;
}
.join-wrapper {
	margin-left: 80px;
    margin-right: 80px;
}
@media (max-width: 768px) {
.join-wrapper {
	margin-left: 0px;
    margin-right: 0px;
}
}
/* =====================================================
   TOP BAR MOBILE FIX
===================================================== */

@media (max-width: 1024px) {

    /* разрешаем увеличение высоты */
    #header-meta .inner-wrap{
        height:auto !important;
        flex-wrap:wrap !important;
        align-items:flex-start !important;
        padding:6px 0;
    }

    /* левая часть */
    #header-meta .small-info-text{
        width:100%;
        margin-bottom:4px;
    }

    /* правая часть */
    #header-meta .small-menu{
        width:100%;
        justify-content:center !important;
		text-align:center !important;
    }

    /* разрешаем перенос текста */
    #header-meta .small-info-text div{
        white-space:normal !important;
        word-break:break-word;
        line-height:1.3;
    }
}
