


@media (max-width: 767px) {

    :root {
        --wp--preset--font-size--medium: 18px;
    }

    html, body {
        font-size: 20px;
        line-height: 27px;
    }

	h2 {
		font-size: 24px; 
	}
    h3 {
        font-size: 18px;
    }
	h4, h5, h6 {
		font-size: 18px; 
	}

    .breadcrumbs {
        text-align: center;
        margin: 20px 0;
    }

	.h1 {
		font-size: 24px;
		line-height: 130%;
	}

    .scroll-up {
        width: 48px;
        height: 48px;
        right: 20px;
        background-size: 20px;
    }
    .scroll-up.active {
        bottom: 20px;
    }


	.header-nav {
		display: none;
	}

    .header-nav ul {
        flex-wrap: wrap;
    }

    .wrap-category, 
    .header-logo, 
    .flex-title {
        padding-left: 10px; 
        padding-right: 10px;
    }

    .header-nav ul.menu {
        padding-top: 50px;
    }
    .header-nav .sub-menu {
    	padding-left: 15px;
    }

    .header-nav ul.menu li {
        display: block;
        width: 100%;
    }

    .header-nav ul li.current-menu-item a, 
    .header-nav ul li a:hover {
        font-weight: bold;
    }

    body.admin-bar .header-nav {
    	padding-top: 60px;
    }

    .header-nav ul.menu li a {
        padding: 10px 15px;
        color: #7A675E;
        text-align: center;
    }
    .header-nav ul.sub-menu  li a {
    	font-weight: 500;
    }

    header {
        position: relative;
        background-image: none;
    }

    .header-logo {
        background-image: url(../svg/bg__head__mobile-top.svg), url(../svg/bg__head__mobile-bottom.svg);
        background-position-x: 0%, 0%;
        background-position-y: 0%, 100%;
        background-size: 100%, 100%;
        background-repeat: no-repeat;
    }


    .header-image {
        width: 100%;
        background-image: none;
        background-repeat: no-repeat;
        background-size: cover;
        padding: 15px 15px 0 15px;
        background-color: #ffffff;
    }

    .header-image img {
        display: block;
        border-radius: 28px;
    }

    .logo-subtext {
    	display: none;
    }

    .header-logo .logo {
        position: absolute;
        display: block;
        height: 60px;
        left: 18px;
        top: 16px;
    }
    .header-logo .logo img {
        height: 100%;
    }

    .logo-text {
        font-weight: 600;
        font-size: 16px;
        line-height: 19px;
        width: calc(100% - 70px);
        max-width: 270px;
        padding-left: 10px;
        text-align: center;
        margin: 0 auto;
    }

    .wrap-nav-toggle {
	    position: absolute;
	    right: 0px;
	    top: 5px;
	    height: 60px;
	    width: 60px;
    }

    .nav-toggle {
        display: inline-block;
        position: absolute;
        width: 44px;
        height: 44px;
        right: 15px;
        top: 12px;
    }

    .nav-toggle span {
        height: 10px;
        width: 100%;
        display: block;
        position: absolute;
        right: 0;
        transition: all 200ms linear;
        background-image: url(../svg/line-menu.svg);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .nav-toggle span:nth-of-type(1) {
        top: 11px; 
    }
    .nav-toggle span:nth-of-type(2) {
        top: 23px; 
    }
    .nav-toggle span:nth-of-type(3) {
        top: 35px; 
    }

    #header_nav:checked ~ .wrap-header-nav .header-nav {
        display: block;
        position: fixed;
        top: 0px;
        width: 100%;
        height: 100%;
        background-color: #FFD16C;
        z-index: 1;
        background-image: url(../svg/line-openmenu-top.svg), url(../svg/line-openmenu-bottom.svg);
        background-position-y: 0, 100%;
        background-position-x: center;
        background-repeat: no-repeat;
        background-size: 100%;
        overflow-y: auto;
    }

    #header_nav:checked ~ .wrap-nav-toggle {
	    height: 100%;
	    position: absolute;
	    z-index: 999999999;
    }

    #header_nav:checked ~ .wrap-nav-toggle .nav-toggle span:nth-of-type(1),
    #header_nav:checked ~ .wrap-nav-toggle .nav-toggle span:nth-of-type(2) {
        transform: rotate(45deg);
        top: 24px; 
        width: 100%; 
    }

    #header_nav:checked ~ .wrap-nav-toggle .nav-toggle span:nth-of-type(3) {
        transform: rotate(-45deg);
        top: 24px; 
        width: 100%; 
    }

    .block__donate {
        margin: 15px 0;
        display: flex;
        flex-direction: column;
    }

    .block__donate-item:nth-of-type(1) {
        order: 2;
    }
    .block__donate-item:nth-of-type(2) {
        order: 1;
        text-align: center;
    }
    .block__donate-item:nth-of-type(3) {
        order: 3;
    }

    .title-yellow p {
        margin: 10px 0px;
    }

    .socials-links {
        display: flex;
        margin: 15px 0;
        justify-content: center;
    }
    .container {
        padding: 0 15px;;
    }

    .block__donate-item .button {
        display: none;
    }

    .post-item .image {
        height: 290px;
    }

    .block__donate-item p {
        text-align: center;
    }

    .block__donate-item p, 
    .post-item .description {
        font-size: 16px;
        line-height: 20px;
        font-weight: normal;
    }

    .h2-line {
        display: block;
        text-align: center;
        margin: 20px 0;
    }
    .h2-line::after,
    .h2-line::before {
    	display: none;
    }

    .h2-side {
		font-size: 20px;
		line-height: 26px;
    }

    .b-calendar__number {
    	font-size: 18px;
    }
    .h3-side {
		font-size: 18px;
		line-height: 20px;
		text-transform: uppercase;
    }

    .wp-shedule {
        margin: 20px 0;
    }
    .block-side {
    	padding: 20px;
    }

    .shedule-show {
        text-align: center;
    }

    .shedule-content strong {
        margin-top: 10px;
        font-size: 20px;
        line-height: 27px;
    }

    .donate__double {
        flex-direction: column;
        gap: 10px;
    }


    .bg-paragraph p {
        padding: 30px;
        font-size: 20px;
        margin: 20px 0;
    }
    .bg-paragraph p:nth-of-type(1) {
        margin-top: 20px;
        background-position-x: -55%;
    }
    .bg-paragraph p strong {
        font-size: 20px;
        font-weight: 600;
    }

    .block-side p {
        font-size: 20px;
        line-height: 22px;
    }

    .shedule-content {
        text-align: center;
        font-size: 18px;
        line-height: 20px;
    }
    .block-side-inner .shedule-content br {
        display: none; 
    }
    .shedule-show h4 {
        font-size: 18px;
        line-height: 20px;
    }

    .post-item {
    	display: block;
    	margin-bottom: 30px;
    }

	.post-item .description, 
	.post-item .title {
		margin: 10px 0;
	}

    .post-item .datetime {
        margin: 15px 0 10px 0;
    }

    .post-item .title {
    	font-size: 18px; 
    	line-height: 26px;
    }

    ul.page-numbers li {
        font-size: 20px;
    }



    .lr-content {
        gap: 20px;
    }
    .lr-content-item:nth-child(even),
    .lr-content-item {
        flex-direction: column;
        gap: 0;
    }



    .lr-content-item:first-child {
        padding: 15px;
    }
    .lr-content-image {
        max-width: 100%;
    }
    .lr-content-text h3, .lr-content-text p {
        font-size: 18px;
        line-height: 24px;
    }



    .header-video {
        height: unset;
        padding-top: 72%;
    }

    .header-video video {
        position: absolute;
        top: 0;
        left: 0;
    }



    .wrap-page-video .flexbox {
        margin-bottom: 0;
        margin-top: 15px;
        padding: 0;
        flex-direction: column-reverse;
        gap: 20px;
    }
    .tpl-video-content {
        padding: 20px;
    }
    .tpl-video-content .wp-block-image img {
        height: 240px !important;
    }
    .tpl-video-content p {
        font-size: 18px;
        line-height: 24px;
    }
    .wrap-page-video .flexbox-side h2 {
        font-size: 20px;
        line-height: 24px;
    }
    .wrap-page-video .title-yellow {
        margin-top: 20px;
    }
    .wrap-page-video .title-yellow ul {
        text-align: center;
        list-style: none;
    }

    .wp-block-gallery.columns-3 {
        margin-top: 16px;
    }


    .title-yellow blockquote, 
    .block-field blockquote, 
    .block-field a {
        font-size: 20px;
        font-weight: 600;
        line-height: 25px;
    }

    .wrap-page-video .block-side-inner {
        padding: 0;
    }
    .wrap-page-video .block-buttons {
        margin-top: 16px;
    }

    .wrap-page-video .button-blue {
        margin-top: 20px;
    }

    .trebi-first {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-bottom: 20px;
    }
    .trebi-first-side {
        width: 100%;
    }
    .trebi-first-side img {

    }

    .mobile-br {
        display: block;
    }

    .mobile-hide {
        display: none;
    }

    .image-pc {
        display: none;
    }
    .image-mobile {
        display: block;
    }

    .trebi-first-side .button {
        display: none;
    }

    .wrap-rules {
        margin: 0;
    }
    .wrap-rules .title-yellow p {
        font-size: 20px;
        line-height: 24px;
        font-weight: 600;
    }
    .wrap-rules .title-yellow {
        padding: 15px;
    }
    .wrap-rules .title-yellow hr {
        margin: 20px auto;
        max-width: 300px;
    }
    .wrap-rules h3 {
        font-size: 20px; 
    }

    .wrap-rules ul {
        padding-left: 17px;
    }
    .wrap-rules ul li strong {
        font-size: 20px;
        line-height: 24px;
    }

    .wrap-rules ul li {
        margin-bottom: 15px;
    }

    .trebi-box {
        padding: 20px;
    }

    .trebi-box h2 {
        margin: 15px 0 20px 0;
        font-size: 24px;
    }
    .trebi-box-repeater p {
        font-size: 18px;
        line-height: 24px;
        margin: 15px auto;
        max-width: 100%;
    }
    .wrap-blocks {
        margin: 20px 0;
    }
    .wrap-rules .flexbox-content p {
        font-size: 18px;
        line-height: 24px;
    }

    .tainstva-content img, 
    .wrap-rules .flexbox-side img {
        height: 75vw;
    }

    .tainstva-content p {
        font-size: 18px;
        line-height: 120%;
    }

    .block-tainstva-side {
        padding: 20px;
    }

    .block-tainstva-side h2 {
        margin: 15px 0 25px;
    }
    .block-tainstva-side ul {
        padding-left: 20px;
    }
    .block-tainstva-side ul li {
        font-size: 18px;
        line-height: 22px;
        margin: 0;
    }

    .flexbox-images {
        width: 100%;
        display: none;
    }

    .flexbox-image {
        display: block;
    }


    .flexbox {
        flex-direction: column;
        padding: 0 0;
        margin: 15px 0;
    }

    .wrap-zapiski .zapiski {
        
    }
    
    .wrap-zapiski .trebi {
        flex-direction: column-reverse;
    }

    body.home .flexbox {
        padding: 0 15px;
    }

    .flexbox-side,
    .flexbox-content {
        width: 100%; 
    }

    .flexbox-side h2 {
        position: unset; 
        top: unset;
    }

    .trebi-box, .block-side {
        margin: 0;
    }

    .mobile-buttons {
        display: flex;
        flex-direction: column;
        margin: 30px 0;
    }

    .trebi-mobile {
        display: block;
    }
    .trebi-mobile .button {
        display: block;
    }

    .title-yellow, .button {
        margin: 5px auto;
        font-size: 18px;
        font-weight: 600;
        line-height: 20px;
        padding: 15px 30px;
    }

    .mobile-buttons .button {
        width: 100%;
    }

    body.page-id-35 iframe {
        height: 75vw;
    }
    body.page-id-35 .wp-block-group-is-layout-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    body.page-id-35 .block__donate-item .button {
        display: block;
    }
    body.page-id-35 .block__donate-item:nth-of-type(1) {
        order: 1;
    }
    body.page-id-35 .block__donate-item:nth-of-type(2) {
        order: 2;
    }

    .block__donate-beige {
        padding: 50px 30px;
        text-align: center;
    }

    .photonic-stream {
        margin-top: 0 !important;
    }

    .wp-block-media-text>.wp-block-media-text__content {
        padding: 0;
    }

    .wrap-single .photonic-object-header {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }
    .wrap-single .photonic-header-title {
        font-size: 20px;
        line-height: 22px;
    }
    .wrap-single .photonic-object-header img {
        width: 100%;
        height: auto;
    }
    
    .margin-40-0, 
    .margin-60-0 {
        margin: 15px 0;
    }
    .wrap-trebi {
    	background-color: unset; 
    }
    .wrap-trebi .flexbox {
    	flex-direction: column-reverse;
    	padding: 0; 
    }
    .wrap-trebi .flexbox-content {
    	background-color: #efe8de;
    	padding: 0 10px;
    }

	.h2-trebi,
    .h2-center {
    	text-align: center;
    	display: block;
    }

    .h2-center::after, 
    .h2-center::before, 
    .h2-trebi::after, 
    .h2-trebi::before {
    	display: none;
    }

	.h3-trebi {
	    text-align: center;
	    padding: unset;
	    margin-top: -25px;
	    font-size: 18px;
	    line-height: 20px;
	    width: 160px;    
	    margin-bottom: 10px;
	}

	.h1-trebi {
		background: #fff;
	}

	.wrap-shool .flexbox-right {
		padding: 10px 30px;
	}
	.wrap-shool .flexbox-right .post-item .image {
		height: 220px;
	}
    .h4-copyright {
        font-weight: normal;
        font-size: 16px;
    }
    .footer-flex p {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 5%;
    }
    .single-image img {
        width: 180px;
        height: auto;
    }
    footer {
        background-image: url(../svg/line-left.svg), url(../svg/line-right.svg);
        background-position-x: 0%, 100%;
        background-position-y: 100%;
        background-repeat: no-repeat;
        background-size: 25%;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo, 
    .footer-menu {
    	display: none;
    }

    .wrap-page-shedules, 
    .footer-address {
    	padding: 0 10px;
    }

    .footer-address h4 {
        max-width: 215px;
        text-align: center;
        margin: 15px auto;
    }

    #footer__address-mobile::before {
        display: block;
        height: 20px;
        width: 47%;
        background-image: url(../svg/line-mob-hr.svg);
        background-position-y: center;
        background-repeat: no-repeat;
        border-radius: 0 3px 3px 0;
        margin-bottom: 0px;
        border: unset;
        margin: 10px auto;
        content: '';
    }

    .footer-address::before {
        width: 58px;
        height: 90px;
        content: '';
        display: block;
        margin: 0 auto;
        background-image: url(../svg/logo.svg);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .wrap-page-shedules .h1 {
        text-align: center;
    }

    .copyright {
        margin-top: 10px;
    }


    .wrap-single > .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 375px) {
    .nav-toggle {
        width: 44px;
    }

    .logo-text {
        font-size: 14px;
        max-width: 230px;
    }
}
