/*!
Theme Name: biodynamics
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: biodynamics
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

biodynamics is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

.hero {
    padding-top: 10rem;
}

.toc__list {
    margin-top: 1rem !important;
}


.hero__btn {
    display: inline-flex !important;
}

.footer__contacts span {    font-family: Raleway, sans-serif;
    font-size: 1.6rem;
    color: #1f1f1f;
    text-decoration: none;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.footer__links-right {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-left: auto;
    text-align: right;
}



.schedule__desc a {
	color: #1f1f1f;
}

.schedule__item-top {
	    gap: 2.1rem !important;
}

.btn {
	    border-left: .1rem solid #99cccd !important;
    border-top: .1rem solid #99cccd !important;
}
.publications__item,.products__item, .biodyn__img-wrap {
	border: none !important;
}

.school__img-wrap {
	box-shadow:none;
}

.publications__desc {
	color: #1f1f1f !important;
}

.schedule__desc a {
text-decoration:underline;
}

@media (max-width: 991.98px) {
	
	.content-media__media img, .content-media__media iframe {

    height: 100%;
}
	    
.footer__contacts span  {
        font-size: 1.4rem;
        gap: .8rem;
    }
    .toc__header {
        margin-bottom: 0 !important;
    }
    .content-media {
    flex-direction: column !important;
    }

    .text-section p:first-child {
        margin-top: 0 !important;
    }
}
    .main:not(.page-template-front-page .main):not(.single-course .main) {
        padding-top: 7rem !important;
    }

.contacts__info .socials {
	flex-direction:column !important;
}
}

/* Instagram и YouTube как иконки в шапке */
.header__menu-items li a[href="https://www.instagram.com/biodynamika.ukraine/"],
.header__menu-items li a[href="https://www.youtube.com/@biodynamika"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 4.4rem !important;
    height: 4.4rem !important;
    min-width: 4.4rem !important;
    padding: 0 !important;
    margin: 0 .6rem !important;
    border-radius: 50% !important;
    background: #99cccd !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    overflow: hidden !important;
    position: relative !important;
    text-decoration: none !important;
}

/* общие настройки иконок */
.header__menu-items li a[href="https://www.instagram.com/biodynamika.ukraine/"]::before,
.header__menu-items li a[href="https://www.youtube.com/@biodynamika"]::before {
    content: "";
    display: block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Instagram */
.header__menu-items li a[href="https://www.instagram.com/biodynamika.ukraine/"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><rect x='3' y='3' width='18' height='18' rx='5' stroke='%231f1f1f' stroke-width='2'/><circle cx='12' cy='12' r='4' stroke='%231f1f1f' stroke-width='2'/><circle cx='17.2' cy='6.8' r='1.2' fill='%231f1f1f'/></svg>");
}

/* YouTube */
.header__menu-items li a[href="https://www.youtube.com/@biodynamika"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%231f1f1f' d='M23 12s0-3.2-.4-4.8a3 3 0 0 0-2.1-2.1C18.9 4.7 12 4.7 12 4.7s-6.9 0-8.5.4A3 3 0 0 0 1.4 7.2C1 8.8 1 12 1 12s0 3.2.4 4.8a3 3 0 0 0 2.1 2.1c1.6.4 8.5.4 8.5.4s6.9 0 8.5-.4a3 3 0 0 0 2.1-2.1c.4-1.6.4-4.8.4-4.8Z'/><path fill='%23f4efe4' d='M10 8.5v7l6-3.5-6-3.5Z'/></svg>");
}

.header__menu-items li a[href="https://www.instagram.com/biodynamika.ukraine/"]:hover,
.header__menu-items li a[href="https://www.youtube.com/@biodynamika"]:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* Соцсети в шапке: компактно и без текста */
.header__menu-items li.menu-item-655,
.header__menu-items li.menu-item-656 {
    flex: 0 0 auto !important;
    width: 4.4rem !important;
    margin: 0 .4rem !important;
}

.header__menu-items li.menu-item-655 a,
.header__menu-items li.menu-item-656 a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 4.4rem !important;
    height: 4.4rem !important;
    min-width: 4.4rem !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #99cccd !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Иконки поверх */
.header__menu-items li.menu-item-655 a::before,
.header__menu-items li.menu-item-656 a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Instagram */
.header__menu-items li.menu-item-655 a::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><rect x='3' y='3' width='18' height='18' rx='5' stroke='%231f1f1f' stroke-width='2'/><circle cx='12' cy='12' r='4' stroke='%231f1f1f' stroke-width='2'/><circle cx='17.2' cy='6.8' r='1.2' fill='%231f1f1f'/></svg>");
}

/* YouTube */
.header__menu-items li.menu-item-656 a::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%231f1f1f' d='M23 12s0-3.2-.4-4.8a3 3 0 0 0-2.1-2.1C18.9 4.7 12 4.7 12 4.7s-6.9 0-8.5.4A3 3 0 0 0 1.4 7.2C1 8.8 1 12 1 12s0 3.2.4 4.8a3 3 0 0 0 2.1 2.1c1.6.4 8.5.4 8.5.4s6.9 0 8.5-.4a3 3 0 0 0 2.1-2.1c.4-1.6.4-4.8.4-4.8Z'/><path fill='%23f4efe4' d='M10 8.5v7l6-3.5-6-3.5Z'/></svg>");
}

/* Чуть ближе к кнопке Купити */
.header__menu-items li.menu-item-656 {
    margin-right: 1.2rem !important;
}
/* Подправить расстояния в шапке */
.header__menu-items {
    gap: 2.2rem !important;
}

.header__menu-items li.menu-item-655,
.header__menu-items li.menu-item-656 {
    margin: 0 !important;
}

.header__menu-items li.menu-item-655 {
    margin-left: 1rem !important;
}

.header__menu-items li.menu-item-656 {
    margin-left: -0.6rem !important;
    margin-right: 0.6rem !important;
}

.header__menu-items .header__btn {
    margin-left: 0.8rem !important;
}
/* Кнопка Купити меньше */
.header__btn {
    padding: 1.2rem 2.4rem !important;
    min-width: 0 !important;
    gap: 1.2rem !important;
}

/* Кружок со стрелкой чуть меньше */
.header__btn-arrow,
.header__btn-icon,
.header__btn-circle {
    width: 4.2rem !important;
    height: 4.2rem !important;
    min-width: 4.2rem !important;
}

/* Блок справа чуть левее */
.header__menu-items li.menu-item-655 {
    margin-left: -0.6rem !important;
}

.header__menu-items li.menu-item-656 {
    margin-left: -0.8rem !important;
    margin-right: -0.2rem !important;
}

.header__menu-items .header__btn {
    margin-left: -0.4rem !important;
    margin-right: 0.6rem !important;
}
/* Такой же цвет, как у кнопки Купити */
.header__menu-items li.menu-item-655 a,
.header__menu-items li.menu-item-656 a {
    background: #76b8bb !important;
}
/* Меню компактнее и текст по центру */
.header__menu-items {
    display: flex !important;
    align-items: center !important;
    gap: 1.4rem !important;
}

.header__menu-items > li {
    margin: 0 !important;
    padding: 0 !important;
}

.header__menu-items > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 5.6rem;
    padding: 0 0.8rem !important;
    line-height: 1.05 !important;
}

/* Немного уже обычные текстовые пункты */
.header__menu-items > li:not(.menu-item-655):not(.menu-item-656) > a:not(.header__btn) {
    min-width: 10rem;
}

/* Соцсети оставить компактными */
.header__menu-items li.menu-item-655 > a,
.header__menu-items li.menu-item-656 > a {
    min-width: 4.8rem !important;
    padding: 0 !important;
}
/* Соцсети без кругов — только значки */
.header__menu-items li.menu-item-655 > a,
.header__menu-items li.menu-item-656 > a {
    background: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
    min-width: auto !important;
    height: auto !important;
    padding: 0 .4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Размер самих значков */
.header__menu-items li.menu-item-655 > a::before,
.header__menu-items li.menu-item-656 > a::before {
    width: 2.2rem !important;
    height: 2.2rem !important;
}
/* Скрыть IG и YT только в футере */
footer .menu-item-655,
footer .menu-item-656,
.footer .menu-item-655,
.footer .menu-item-656 {
    display: none !important;
}