

@media (max-width: 1023px) {
	html, body {
		font-size: 16px; 
	}
	.document {
	    overflow: hidden;
	    padding: 0 15px;
	}
	.home__block {
		margin-bottom: 0 ;
		position: unset;
	}
	.logo__text {
		font-size: 44px;
    	line-height: 38px;
	}

	.logo__text span {
	    font-size: 20px;
	    line-height: 30px;
	}

	.h3, .h2 {
	    font-size: 48px;
	    line-height: 50px;
	    margin-left: 0px;
	    text-transform: uppercase;
	}

	.home__block-content {
		width: 100%; 
	}

	.o-prihode .h2 {
	    white-space: nowrap;
	}

	.o-prihode-image {
	    height: 140px;
	    margin-top: 80px;
	}

	.o-prihode-image img {
	    width: 224px;
	    right: -38px;
	    height: 192px;
	}

	.svyatitel_nikolaj, 
	.o-prihode-text {
	    font-size: 16px;
	}

	.wrap__prihodskaja_jizn {
	    margin-bottom: 15px;
	}

	.principal__man {
	    margin: 30px 0;
	    flex-direction: column;
	}

	.principal__man-content, 
	.principal__man-image {
		margin: unset;
		width: 100%;
	}

	.principal__man-content {
		order: 1;
	}
	.principal__man-image {
		order: 2;
	}

	.principal__man-image img {
		display: block;
		width: 70vw;
		margin: 0 auto;
	}

	.principal__man-content {
		position: relative;
		z-index: 1;
	}

	.principal__man-content > * {
		text-align: left !important;
	}

	.slider {
		margin-top: 10px;
	}

	.slider__item {
		height: auto;
	}

	.slider__item .title {
	    padding: 10px 40px;
	    height: 36px;
	}

	.slider__hover, 
	.slider__item img {
	    width: calc(100vw - 40px) !important;
	    max-height: 100vw;
	    height: 70vw;
	    border-radius: 30px;
	}

    .big__slider .slider__item img{
        height: 120vw;
        max-height: unset;
    }

	.slider .owl-nav button {
	    width: 35px;
	    height: 35px;
	    top: unset;
	    bottom: 18px;
	    filter: drop-shadow(0px -3px 4px #72727240);
	    background-size: 100% !important;
	}
	.slider .owl-nav button.owl-prev {
	    left: 0px;
	}
	.slider .owl-nav button.owl-next {
		right: 0px;
	}

	.active.center .slider__item > div {
		transform: unset;
	}

	.svyatitel_nikolaj .alignleft,
	.svyatitel_nikolaj .alignright {
	    float: unset;
	    display: block;
	    margin: 25px auto;
	}
	.svyatitel_nikolaj::before {
	    right: calc(100% / 2 - 90px);
	}

	.svyatitel_nikolaj .gallery .gallery-item img {
	    height: 200px;
	}

	.svyatitel_nikolaj .gallery .gallery-item:nth-of-type(2)::before {
		margin-left: -62px;
		width: calc(100% + 120px);
	}

	.svyatitel_nikolaj {
		margin-bottom: 50px;
	}

	#svatini_prihoda .slider__item {
	    height: 230px;
	}

	#svatini_prihoda .slider__item img {
	    height: 184px;
	    width: 120px !important;
	    border-radius: unset;
	}

	#svatini_prihoda.slider .owl-nav button {
		display: none;
	}

	.wrap__slidetext .btn-slide-right span:first-child {
		display: none; 
	}
	.wrap__slidetext .btn-slide-left span:last-child {
		display: none; 
	}

	#svatini_prihoda .active.center .slider__item > div {
		transform: scale(1.2);
	}

	#svatini_prihoda .active .slider__item::before {
	    width: 240px;
	    margin-left: -62px;
	}

	.slidetext .title {
		font-size: 32px;
		line-height: 33px;
	}

	.slidetext .text {
	    font-size: 13px;
	    padding: 0 15px;
	}

	.btn  {
		padding: 10px 20px;
	}

	.wrap__slidetext {
		padding-bottom: 30px;
	}

	.big__slider {
	    margin-bottom: 30px;
	}

	.nastojatel_prihoda-head {
	    height: 120px;
	    background-size: contain;
	    top: -114px;
	}
	.nastojatel_prihoda {
	    margin-top: 130px;
	    padding: 5px 15px 1px 15px;
	}

	.nastojatel_prihoda .slider__item img {
	    width: 100% !important;
	}

	.nastojatel_prihoda .slider .owl-nav {
	    position: relative;
	    height: 40px;
	}

	.nastojatel_prihoda .slider .owl-nav button {
		top: 10px;
	}

	.nastojatel_prihoda .slider .owl-nav button.owl-prev {
		left: 0;
	}
	.nastojatel_prihoda .slider .owl-nav button.owl-next {
		right: 0;
	}
	.stroim_sobor {
	    font-size: 13px;
	    line-height: 140%;
	}
	.wrap_stroim_sobor {
	    margin-top: 100px;
	} 

	.dnevnik_stroyki {
	    gap: 20px;
	    margin: 25px 0;
	}

	.dnevnik_stroyki-item {
	    width: calc(100% / 2 - 10px);
	}

	.dnevnik_stroyki-item img {
	    height: calc(100vw / 2 - 33px);
	}

	.home__zapiski {
		flex-direction: column;
	}

	.home__zapiski-left, 
	.home__zapiski-right {
		width: 100%;
	}

	.home__zapiski-left {
		font-size: 13px;
	}

	.home__zapiski-left .h2, 
	.home__zapiski-left .h3 {
		padding-left: 0;
	}

	.home__zapiski .h2 {
	    font-size: 48px;
	    line-height: 50px;
	}
	.home__zapiski .h3 {
		font-size: 32px;
		line-height: 33px;
	}

	.home__zapiski-left .btn {
	    font-family: 'Gilroy';
	    font-style: normal;
	    font-weight: 400;
	    font-size: 13px;
	    line-height: 140%;
	    margin: 0px 0 20px 0;
	}

	.zapiski {
	    background: #F4F4F4;
	    padding: 15px 0;
	}
	.zapiski__list {
	    width: calc(100% - 30px);
	    margin: 30px auto;
	}

	.hiuf {
	    height: 70px;
	    padding: 15px 0;
	    width: 54px;
	    border-radius: 20px;
	}

	.hiuf span:first-child {
	    font-size: 20px;
	    line-height: 22px;
	}

	.hiuf span:last-child {
		font-size: 10px;
	}

	.wrap__calendar {
	    margin: 30px 0;
	}
	.calendar__table-row.thead {
		display: none;
	}

	.calendar__table-row {
	    flex-wrap: wrap;
	    align-items: flex-start;
	    row-gap: 0;
	}
	.td-date {
	    width: 60px;
	}
	.td-raspisanie {
	    width: calc(100% - 80px);
	    padding: 0;
	}
	.td-raspisanie > div {
	    width: unset;
	    flex-wrap: nowrap;
	    flex-direction: column;
	    gap: unset;
	    margin-bottom: 12px;
	}

	.calendar__table .ege, 
	.calendar__table .date,
	.calendar__table .title {
		font-size: 13px;
		line-height: 18px;
	}

	.calendar__table .ege {
	    padding-left: 80px;
	    padding-top: 0;
	    padding-bottom: 0;
	}

	.btn {
		font-size: 13px;
		line-height: 18px;
	}

	.zapiska__nav {
	    gap: 15px;
	    justify-content: space-between;
	}

	.zapiska__nav .btn {
	    gap: 5px;
	    padding: 7px 10px;
	    width: calc(100% / 2);
	    justify-content: center;
	}

	.footer__block {
	    width: 100%;
	    flex-direction: column;
	    gap: 40px;
	    padding: 0 15px;
	}
	.footer__block-right, 
	.footer__block-left {
	    width: 100%;
	}

	.footer__block-left .h2 {
	    font-size: 48px;
	    line-height: 50px;
	}

	.footer__block p {
	    font-size: 13px;
	    line-height: 16px;
	}

	p.fic > a {
		font-size: 16px;
	}
	footer {
	    height: 1000px;
	    margin-top: 30px;
	}
	footer::before {
	    background-image: url(../img/bg-mobile-footer.jpg);
	    height: 440px;
	}

	#map {
		height: 400px;
	}

	.scroll-up {
	    font-size: 12px;
	    padding: 4px 6px;
	    left: 12px;
	}
	.scroll-up.active {
	    bottom: 25px;
	}


	.menu__toggle {
	    display: inline-block;
	    width: 30px;
	    height: 30px;
	    background: #9D3C3C;
	    border-radius: 50%;
	    position: absolute;
	    top: 10px;
	    right: 10px;
	    z-index: 3;
	}
	.menu__toggle span {
	    display: inline-block;
	    width: 18px;
	    height: 1px;
	    background: #fff;
	    position: absolute;
	    left: 6px;
	    transition: top 500ms, left 500ms, transform 500ms;
	}
	.menu__toggle span:nth-of-type(1) {
	    top: 8px;
	}
	.menu__toggle span:nth-of-type(2) {
	    top: 14px;
	}
	.menu__toggle span:nth-of-type(3) {
	    top: 20px;
	}

	body.active__menu {
		overflow: hidden;
	}

	body.active__menu .menu__toggle span:nth-of-type(2),
	body.active__menu .menu__toggle span:nth-of-type(1) {
		transform: rotate(45deg);
		top: 15px;
	}

	body.active__menu .menu__toggle span:nth-of-type(3) {
		transform: rotate(-45deg);
		top: 15px;
	}

	.home__block-side {
	    display: none;
	    position: absolute;
	    top: 0px;
	    width: 100%;
	    left: 0px;
	    height: 100%;
	    background-image: url(../img/bg-mobile-menu.jpg);
	    background-size: cover;
	    z-index: 2;
	}

	.nav__menu::before, .nav__menu::after {
	    background-position-x: center;
	}

	.nav__menu {
	    width: 276px;
	    margin: 0 auto;
	    position: relative;
	}

	.nav__menu .menu li a {
	    padding: 12px 0;
	}

	body.active__menu .home__block-side {
		display: block;
        max-height: 100%;
        overflow: hidden;
        overflow-y: auto;
	}

}

@media (max-width: 767px) {
	body.home {
		background-image: url(../img/bg-home-mobile.jpg);
	}
	header {
	    background-image: url(../img/bg-mobile-header.jpg);
	    height: 260px;
	}

	.h1__button .btn {
	    bottom: -57px;
	}

	.h1__button .h2:before {
		display: none;
	}

}

@media (min-width: 768px) and (max-width: 1023px) {

}


@media (min-width: 1200px) {
	.footer__block::before {
	    display: block;
	    content: '';
	    width: 274px;
	}

	.footer {
		padding-top: 140px;
		padding-bottom: 140px;
	}

	header {
		background-size: contain;
	}
}



@media (min-width: 1200px) and (max-width: 1600px) {
	header {
	    max-height: 45vw;
	}

	.o-prihode-image img {
	    width: 115%;
	    right: 0;
	    top: 0;
	}

	body.home {
		background-size: 104% auto;
		background-image: url(../img/bg-home-1400.jpg);
	}

	.nav__menu .menu li a {
	    padding: 10px 0;
	}

	footer {
		height: 765px;
	}
	footer::before {
		height: 695px;
		left: -41px;
	}
}



@media (min-width: 1200px) and (max-width: 1300px) {
	.home__block {
	    width: calc(100% - 80px);
	}
}

@media all and (min-width: 1023px){
    .big__slider .slider__item{
        height: auto;
        position: relative;
        padding-bottom: 130%;
    }
    .big__slider .slider__item > div,
    .big__slider .slider__item a{
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
    .big__slider .slider__item img{
        width: 100% !important;
        height: 100%;
    }
    .big__slider .owl-carousel .owl-stage-outer{
        padding: 50px 0;
    }
}