/*
Theme Name: Preschool and Kindergarten Child
Template: preschool-and-kindergarten
Version: 1.0
Text Domain: preschool-and-kindergarten-child
*/

/* Блок фактов о детском саде */

.balausa-facts {
	padding: 55px 0;
	background: #f8fbfd;
}

.balausa-facts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.balausa-fact {
	text-align: center;
	background: #ffffff;
	padding: 28px 20px;
	border-radius: 8px;
	box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
}

.balausa-fact-number {
	margin-bottom: 10px;
	font-size: 36px;
	line-height: 1.2;
	font-weight: 700;
	color: #3ea8d1;
}

.balausa-fact-time {
	font-size: 30px;
}

.balausa-fact-label {
	font-size: 15px;
	line-height: 1.5;
	color: #555;
}

@media (max-width: 991px) {
	.balausa-facts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.balausa-facts {
		padding: 35px 0;
	}

	.balausa-facts-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.balausa-fact {
		padding: 22px 15px;
	}

	.balausa-fact-number {
		font-size: 32px;
	}

	.balausa-fact-time {
		font-size: 28px;
	}
}

/* Дополнительная навигация на главной */

/* Дополнительная навигация */

.balausa-navigation-section {
	padding: 35px 0;
	background: #f8fbfd;
	border-top: 1px solid #eef3f5;
	border-bottom: 1px solid #eef3f5;
}

.balausa-navigation-section ul.balausa-additional-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 30px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.balausa-navigation-section ul.balausa-additional-menu li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.balausa-navigation-section ul.balausa-additional-menu li::before {
	display: none !important;
	content: none !important;
}

.balausa-navigation-section ul.balausa-additional-menu a {
	display: block;
	padding: 8px 0;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.balausa-navigation-section ul.balausa-additional-menu a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.balausa-navigation-section {
		padding: 25px 15px;
	}

	.balausa-navigation-section ul.balausa-additional-menu {
		flex-direction: column;
		gap: 5px;
	}
}


/* Основное меню: компактная версия для длинных названий */
@media only screen and (min-width: 1025px) {

	#site-navigation > div > ul#primary-menu {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		white-space: nowrap;
	}

	#site-navigation > div > ul#primary-menu > li {
		float: none;
		flex-shrink: 0;
		margin-left: 22px;
	}

	#site-navigation > div > ul#primary-menu > li:first-child {
		margin-left: 0;
	}

	#site-navigation > div > ul#primary-menu > li > a {
		font-size: 14px;
		padding-left: 0;
		padding-right: 0;
		white-space: nowrap;
	}

}


/* Переключатель языков в верхней панели */
.balausa-language-switcher {
	float: right;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 0 20px;
	padding-top: 1px;
}

.balausa-language-switcher__link {
	display: inline-block;
	font-size: 13px;
	line-height: 20px;
	font-weight: 700;
	text-decoration: none;
	color: #919191;
}

.balausa-language-switcher__link:hover,
.balausa-language-switcher__link:focus,
.balausa-language-switcher__link.current {
	color: #41aad4;
	text-decoration: none;
}

.balausa-language-switcher__link + .balausa-language-switcher__link::before {
	content: '|';
	margin-right: 8px;
	color: #d0d0d0;
}


/* Дополнительное меню под слайдером */
/* Дополнительное меню под слайдером */
.home-extra-navigation-section {
    position: relative;
    z-index: 30;
    background: transparent !important;
    margin: -18px 0 15px;
    padding: 0 !important;
}

.home-extra-navigation {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.home-extra-menu {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-extra-menu > li {
    flex: 1 1 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-extra-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 14px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-extra-menu > li > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* Цветная верхняя полоска */
.home-extra-menu > li:nth-child(1) > a {
    border-top: 4px solid #f27eb1;
}

.home-extra-menu > li:nth-child(2) > a {
    border-top: 4px solid #4aa9d8;
}

.home-extra-menu > li:nth-child(3) > a {
    border-top: 4px solid #f4b84a;
}

.home-extra-menu > li:nth-child(4) > a {
    border-top: 4px solid #8cc152;
}

.home-extra-menu > li:nth-child(5) > a {
    border-top: 4px solid #9b7bd8;
}

/* Планшет */
@media only screen and (max-width: 900px) {
    .home-extra-navigation-section {
        margin-top: -30px;
    }

    .home-extra-menu {
        flex-wrap: wrap;
    }

    .home-extra-menu > li {
        flex: 1 1 calc(50% - 7px);
    }
}

/* Телефон */
@media only screen and (max-width: 600px) {
    .home-extra-navigation-section {
        margin-top: -20px;
        margin-bottom: 25px;
    }

    .home-extra-menu {
        gap: 10px;
    }

    .home-extra-menu > li {
        flex: 1 1 100%;
    }

    .home-extra-menu > li > a {
        min-height: 62px;
    }
}


/* Как поступить в детский сад */
.balausa-enrollment {
    background: #f8fbfd;
    padding: 60px 0 55px;
    margin-top: 0;
}

.balausa-enrollment-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.balausa-enrollment-inner > h2 {
    margin: 0 0 12px;
    text-align: center;
    color: #f27eb1;
    font-size: 30px;
}

.balausa-enrollment-subtitle {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

.balausa-enrollment-steps {
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.balausa-enrollment-step {
    position: relative;
    flex: 1 1 0;
    background: #fff;
    padding: 28px 20px 24px;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.balausa-step-number {
    margin-bottom: 14px;
    font-size: 30px;
    font-weight: 700;
    color: #4aa9d8;
}

.balausa-enrollment-step h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
}

.balausa-enrollment-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.balausa-enrollment-step:nth-child(1) {
    border-top: 4px solid #f27eb1;
}

.balausa-enrollment-step:nth-child(2) {
    border-top: 4px solid #4aa9d8;
}

.balausa-enrollment-step:nth-child(3) {
    border-top: 4px solid #f4b84a;
}

.balausa-enrollment-step:nth-child(4) {
    border-top: 4px solid #8cc152;
}

.balausa-enrollment-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 950px;
    margin: 32px auto 0;
    padding: 22px 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.balausa-enrollment-docs {
    flex: 1;
}

.balausa-enrollment-docs strong {
    display: block;
    margin-bottom: 7px;
    color: #f27eb1;
    font-size: 17px;
}

.balausa-enrollment-docs p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.balausa-enrollment-button {
    display: inline-block;
    flex-shrink: 0;
    padding: 15px 25px;
    background: #4aa9d8;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border: 2px solid #4aa9d8;
    transition: all 0.2s ease;
}

.balausa-enrollment-button:hover {
    background: transparent;
    color: #4aa9d8 !important;
}

.balausa-enrollment-note {
    margin: 18px auto 0;
    text-align: center;
    font-size: 12px;
    color: #888;
}

@media only screen and (max-width: 900px) {
    .balausa-enrollment-steps {
        flex-wrap: wrap;
    }

    .balausa-enrollment-step {
        flex: 1 1 calc(50% - 9px);
    }

    .balausa-enrollment-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media only screen and (max-width: 600px) {
    .balausa-enrollment {
        padding: 45px 0;
    }

    .balausa-enrollment-inner > h2 {
        font-size: 26px;
    }

    .balausa-enrollment-steps {
        display: block;
    }

    .balausa-enrollment-step {
        margin-bottom: 14px;
    }

    .balausa-enrollment-bottom {
        padding: 20px;
    }

    .balausa-enrollment-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}


/* Уменьшаем высоту слайдера на главной */
.home img.attachment-preschool-and-kindergarten-banner-thumb {
    width: 100%;
    height: 570px !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}


.home .balausa-about {
    margin-top: -50px !important;
    position: relative;
    z-index: 10;
}