/*
Theme Name: Church
Theme URI: mailto:besttheory@yandex.ru
Author: BestTheory
Author URI: mailto:besttheory@yandex.ru
Description: Church
Version: 1.0
Text Domain: church
*/
html * {
	max-height:1000000px;
	box-sizing: border-box;
}
body {
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.73;
	color: var(--color-text);
	font-family: 'Open Sans', sans-serif;
}
@media (any-hover: hover){
	body::-webkit-scrollbar {
		width: 10px;
	}
	body::-webkit-scrollbar-thumb {
		width: 10px;
		border-radius: 5px;
		background-color: var(--color-turquoise);
	}
	body::-webkit-scrollbar-track {
		background-color: transparent;
	}
}
@media(max-width: 600px){
	body {
		font-size: 16px;
	}
}
a {
	color: var(--color-red);
	transition: 0.2s;
	background-color: transparent;
    text-decoration: none;
}
a:focus, 
a:active {
	outline: none;
}
@media(any-hover: hover){
	a:hover {
		color: var(--color-text);
	}
}
.body-preload {
	height: 100vh;
	overflow-y: hidden;
}
.loader {
	display: flex;
    position: absolute;
	justify-content: center;
	align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
	width: 100%;
	height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
}
.loader.load-modal{
	padding-top: 20px;
}
.preloader {
	display: flex;
    position: fixed;
	flex-direction: column;
	justify-content: center;
	align-items: center;
    background: #fff;
	padding-bottom: 50px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
	transition: 0.5s;
	opacity: 1;
}
.preloader img {
    width: 130px;
	opacity: 0;
	animation: preloader 0.8s 1 alternate;
	animation-fill-mode: forwards;
	animation-delay: 0.3s;
	transition: 0.8s;
	transform: translateY(-15px);
}
@keyframes preloader {
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}
.preloader.hidden {
	opacity: 0;
}

/** ПРЕЛОАДЕР ТРИ ТОЧКИ **/
.dot-loader {
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 5px;
	background: #bbb;
	animation: dotFlashing 1s infinite linear alternate;
	animation-delay: .5s;
}

.dot-loader::before, 
.dot-loader::after {
	content: '';
	background: #bbb;
	display: inline-block;
	position: absolute;
	top: 0;
}

.dot-loader::before {
	left: -15px;
	width: 10px;
	height: 10px;
	border-radius: 5px;
	animation: dotFlashing 1s infinite alternate;
	animation-delay: 0s;
}

.dot-loader::after {
	left: 15px;
	width: 10px;
	height: 10px;
	border-radius: 5px;
	animation: dotFlashing 1s infinite alternate;
	animation-delay: 1s;
}

.dot-loader.white,
.dot-loader.white::before, 
.dot-loader.white::after {
	background: #fff;
}
@keyframes dotFlashing {
	0% {
		opacity: 0.9;
	}
	50%,100% {
		opacity: 0.5;
	}
}
/** ПРЕЛОАДЕР ТРИ ТОЧКИ (END) **/

/** ПРЕЛОАДЕР КОЛЬЦА **/
@keyframes ldio-inki5akk5hi {
	0% {
		top: 0px;
		left: 0px;
		width: 0;
		height: 0;
		opacity: 1;
	}
	100% {
		top: -50px;
		left: -50px;
		width: 100px;
		height: 100px;
		opacity: 0;
	}
}
.ldio-inki5akk5hi div {
	position: absolute;
	border-width: 3.5px;
	border-style: solid;
	opacity: 1;
	border-radius: 50%;
	animation: ldio-inki5akk5hi 1.4s cubic-bezier(0,0.2,0.8,1) infinite;
}
.ldio-inki5akk5hi div:nth-child(1) {
	border-color: var(--color-red);
	animation-delay: 0s;
}
.ldio-inki5akk5hi div:nth-child(2) {
	border-color: var(--color-blue);
	animation-delay: -0.7s;
}
.loadingio-spinner-ripple-suy99jlmlnf {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 1;
	z-index: 100;
	display: flex;
	overflow: hidden;
	position: absolute;
	align-items: center;
	justify-content: center;
}
.ldio-inki5akk5hi {
	position: relative;
	transform: translateZ(0) scale(1);
	backface-visibility: hidden;
	transform-origin: 0 0;
}
.ldio-inki5akk5hi div { 
	box-sizing: content-box; 
}
/** ПРЕЛОАДЕР КОЛЬЦА (END) **/

/** ПРЕЛОАДЕР КНОПОК **/
.loading-btn {
	position: relative!important;
	color: transparent!important;
}
.loading-btn > *:not(.dot-loader) {
    visibility: hidden!important;
}
.loading-btn .dot-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}
/** ПРЕЛОАДЕР КНОПОК (END) **/

/** МОДАЛЬНОЕ ОКНО **/
.modal {
    position: fixed;
	padding: 50px 20px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 29, 34, 0.50);
    z-index: 50;
	display: none;
	overflow-y: scroll;
	height: 100vh;
	width: 100vw;
}
@media(any-hover: hover){
	.modal::-webkit-scrollbar {
		width: 10px;
	}
	.modal::-webkit-scrollbar-thumb {
		width: 10px;
		background-color: #F5C885;
	}
	.modal::-webkit-scrollbar-track {
		background-color: transparent;
	}
}
.modal.show{
	display: block;
	opacity: 0;
	transition: opacity 0.2s;
}
.modal.opacity{
	opacity: 1;
}
.modal > div {
    background-color: #fff;
	border-radius: 5px;
    box-shadow: 0px 4px 25px rgb(0 0 0 / 7%);
    min-width: 60px;
    width: max-content;
    max-width: 100%;
    position: relative;
    margin: auto;
	overflow: hidden;
	transition: transform 0.2s;
	transform: scale(0.7);
}
.modal.opacity > div {
	transform: scale(1);
}
.modal .modal-content {
	position: relative;
	min-width: 200px;
	min-height: 190px;
}
.modal .modal-content h3 {
	overflow: hidden;
    text-overflow: ellipsis;
}
.modal .btn-close {
    color: #333;
    position: absolute;
    right: 10px;
    top: 10px;
	width: 40px;
	height: 40px;
    border: 1px solid transparent;
	cursor: pointer;
	z-index: 1;
}
.modal .btn-close:before {
    content: '';
    display: block;
    top: calc(50% - 1px);
    left: calc(50% - 11px);
    width: 22px;
    height: 2px;
    position: absolute;
    background: #777;
    transition: 0.2s;
    transform-origin: center;
    transform: rotate(45deg);
}
.modal .btn-close:after {
    content: '';
    display: block;
    top: calc(50% - 1px);
    left: calc(50% - 11px);
    width: 22px;
    height: 2px;
    position: absolute;
    background: #777;
    transition: 0.2s;
    transform-origin: center;
    transform: rotate(315deg);
}
@media(any-hover: hover){
	.modal .btn-close:hover:before,
	.modal .btn-close:hover:after {
		background: #000;
	}
}
@media(max-width: 600px){
	.modal > div {
		border-radius: 15px;
	}
}
@media(max-width: 375px){
	.modal {
		padding: 10px;
	}
}
/** МОДАЛЬНОЕ ОКНО (END) **/

/** ВСПЛЫВАЮЩЕЕ СООБЩЕНИЕ **/
.popup-alert {
    position: fixed;
    width: 100%;
    max-width: max-content;
    margin: 0 auto;
    padding: 0 10px;
    top: 5px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    box-sizing: border-box;
}
.popup-alert > div {
    color: #fff;
    font-size: 16px;
    position: relative;
    border-radius: 25px;
    padding: 10px 60px 10px 30px;
    box-shadow: 0 10px 10px 0 rgba(0,0,0,0.2);
}
.popup-alert  .btn-close {
    position: absolute;
    color: #fff;
    top: 0;
    right: 0;
    top: 10px;
    right: 25px;
    cursor: pointer;
}
.popup-alert.success  .btn-close{
	color: #fff;
}
.popup-alert.show{
	display: block;
	opacity: 0;
	transition: 0.1s;
}
.popup-alert.opacity{
	opacity: 1;
	top: 20px;
}
.popup-alert.danger > div {
    background-color: #cb4039;
}
.popup-alert.success > div {
    background-color: #003E30;
	color: #fff;
}
/** ВСПЛЫВАЮЩЕЕ СООБЩЕНИЕ (END)**/


/** BUTTON TOP **/
.go-top {
	position: fixed;
	z-index: 3;
	left: 20px;
	bottom: 20px;
	background: var(--color-turquoise);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: none;
	justify-content: center;
	align-items: center;
	transition: 0.3s;
	cursor: pointer;
}
.go-top.show {
	display: flex;
}
.go-top:before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(135deg);
	margin-top: 6px;
	transition: 0.3s;
}
/** BUTTON TOP (END) **/

.spinner {
	height: 5px;
	width: 5px;
	color: #F1F8FF;
	box-shadow: -10px -10px 0 5px,
				-10px -10px 0 5px,
				-10px -10px 0 5px,
				-10px -10px 0 5px;
	animation: loader-38 6s infinite;
}

@keyframes loader-38 {
	0% {
		box-shadow: -10px -10px 0 5px,
					-10px -10px 0 5px,
					-10px -10px 0 5px,
					-10px -10px 0 5px;
	}
	8.33% {
		box-shadow: -10px -10px 0 5px,
					10px -10px 0 5px,
					10px -10px 0 5px,
					10px -10px 0 5px;
	}
	16.66% {
		box-shadow: -10px -10px 0 5px,
					10px -10px 0 5px,
					10px 10px 0 5px,
					10px 10px 0 5px;
	}
	24.99% {
		box-shadow: -10px -10px 0 5px,
					10px -10px 0 5px,
					10px 10px 0 5px,
					-10px 10px 0 5px;
	}
	33.32% {
		box-shadow: -10px -10px 0 5px,
					10px -10px 0 5px,
					10px 10px 0 5px,
					-10px -10px 0 5px;
	}
	41.65% {
		box-shadow: 10px -10px 0 5px,
					10px -10px 0 5px,
					10px 10px 0 5px,
					10px -10px 0 5px;
	}
	49.98% {
		box-shadow: 10px 10px 0 5px,
					10px 10px 0 5px,
					10px 10px 0 5px,
					10px 10px 0 5px;
	}
	58.31% {
		box-shadow: -10px 10px 0 5px,
					-10px 10px 0 5px,
					10px 10px 0 5px,
					-10px 10px 0 5px;
	}
	66.64% {
		box-shadow: -10px -10px 0 5px,
					-10px -10px 0 5px,
					10px 10px 0 5px,
					-10px 10px 0 5px;
	}
	74.97% {
		box-shadow: -10px -10px 0 5px,
					10px -10px 0 5px,
					10px 10px 0 5px,
					-10px 10px 0 5px;
	}
	83.3% {
		box-shadow: -10px -10px 0 5px,
					10px 10px 0 5px,
					10px 10px 0 5px,
					-10px 10px 0 5px;
	}
	91.63% {
		box-shadow: -10px -10px 0 5px,
					-10px 10px 0 5px,
					-10px 10px 0 5px,
					-10px 10px 0 5px;
	}
	100% {
		box-shadow: -10px -10px 0 5px,
					-10px -10px 0 5px,
					-10px -10px 0 5px,
					-10px -10px 0 5px;
	}
}

.modal-success .modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 50px 30px;
}
.modal-success .success {
    text-align: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 20px;
    font-size: 16px;
    max-width: 250px;
    font-weight: 600;
}
.modal-success .success:before {
    content: '';
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-turquoise);
}
.modal-success .success:after {
    content: '';
    top: 43px;
    left: 51%;
    transform: translateX(-50%) rotate(45deg);
    position: absolute;
    display: block;
    width: 20px;
    height: 35px;
    border-right: 10px solid #fff;
    border-bottom: 10px solid #fff;
}
@media(max-width: 600px){
	.modal-success .success {
		font-size: 20px;
	}
}