/* Стандартные стили */
@font-face {
    font-family: MetaNormalC;
    src: url(fonts/MET45__C.PFM);
}

/* @font-face {
    font-family: rfkrabuler_regular ;
    src: url(fonts/rfkrabuler_regular.ttf);
}
@font-face {
    font-family: journalism ;
    src: url(fonts/journalism.ttf); */
body {
    width: 100%;
    margin: 0px;
    padding: 0px;
    font-family: MetaNormalC, Arial, Helvetica, sans-serif;
    color: black;
	
}
body.lock {
    overflow: hidden;
	margin-right: -17px;
}

* {
    box-sizing: border-box;
/* 	font-family: MetaNormalC; */
}

div {
    display: block;
}

a {
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

main ul {
    padding: 0 0 0 50px;
}

main ul>li {
    list-style: disc;
}
main ol>li {
    list-style: auto;
}

main * {
	font-size: 16px;
	line-height: 1.5;
}
main h1 {
	font-size: 24px;
	font-weight: 800;
}
main h2{
	font-size: 24px;	
	font-weight: 800;
}
main h3{
	font-size: 19px;
	font-weight: 800;
	text-align:center;
}
main h4{
	font-size: 18px;
	font-weight: 800;	
}
main h1 * {
	font-size: 24px;
	font-weight: 800;
}
main h2 *{
	font-size: 22px;	
	font-weight: 800;
}
main h3 *{
	font-size: 19px;
	font-weight: 800;
	text-align:center;
}
main h4 *{
	font-size: 18px;
	font-weight: 800;	
}
input {
	width: 100%;
	height: 45px;
	margin-top: 15px;
}
.button {
    display: block;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: #383688;
    border-radius: 5px;
    color: #fff;
    height: 30px;
    min-width: 170px;
    line-height: 30px;
    cursor: pointer;
    -webkit-box-shadow: 0px 0px 4px rgb(68, 68, 68);
    -moz-box-shadow: 0px 0px 4px rgb(68, 68, 68);
    box-shadow: 0px 0px 4px rgb(68, 68, 68);
    -webkit-text-shadow: 0px 0px 1px rgb(68, 68, 68);
    -moz-text-shadow: 0px 0px 1px rgb(68, 68, 68);
    text-shadow: 0px 0px 1px rgb(68, 68, 68);
    transition: 0.2s;
	border: none;
}

.button:hover {
    transform: scale(1.005);
    background: #3f3e9b;
	color: #fff;
}




/* Стили для форм */

form {
    position: relative;
}

form>div.loading {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.129);
    border-radius: 3px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
}

form>div.loading>img {
    height: 50px;
}

form.sending>div.loading {
    opacity: 1;
    visibility: visible;
}
form.content_form {
	display: flex;
    flex-direction: row;
	flex-wrap: wrap;
    align-items: stretch;
}

form.content_form>label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 25px;
	justify-content: flex-end;
}

form .input_data {
	border: 1px solid #38368885;
    width: 100%;
	margin-top: 5px;
	max-width: 100%;
	min-width: 100%;
    height: 40px;
    padding: 0 10px 0 10px;
    box-sizing: border-box;
    font-size: 14px;
	border-radius: 5px;
}

form.content_form>label.name {
	width:40%;
	margin: 0 2% 10px 0;
}
form.content_form>label.phone {
	width:58%;
	margin: 0 0 10px 0;
}

form.content_form>label.service {
	width:40%;
	margin: 0 2% 10px 0;
}
form.content_form>label.contract {
	width:40%;
	margin: 0 2% 10px 0;
}
form.content_form>label.adress {
	width:58%;
	margin: 0 0 10px 0;
}	
form.content_form>label.comment {
	width:100%;
	margin: 0;
}	
form.content_form>label .subject {
	width:100%;
	margin: 0;
	text-decoration: underline;
	line-height: 1;
}	
form.content_form>label.comment>textarea {
	min-height: 100px;
}

.popup .popup_container>.popup_form>label>.input_data.subject {
	background: #dfdfdf;
    text-decoration: underline;
	line-height: 1;
}
form.content_form input.button {
	margin-top: 20px;
	height:40px;
	width:100%;
}


.input_data {
    box-shadow: 0 0 1px black;
    border: 0;
    background-color: #fff;
}

.input_data.error {
    box-shadow: 0 0 4px 1px rgba(255, 0, 0, 0.7);
}
.contract>.input_data{
	  -moz-appearance: textfield;
}

.contract>.input_data::-webkit-outer-spin-button,
.contract>.input_data::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

form>p.text_error {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ff2e2e;
    border-radius: 3px;
    margin: 10px 0 0 0;
    padding: 0 10px;
	width: 100%;
}

form>p.text_error>a {
    color: #ff2e2e;
    text-decoration: underline;
}

form>p.text_error>a:hover {
    color: #ff2323;
}
@media (max-width: 539px) {

	form.content_form>label.name,
	form.content_form>label.phone,
	form.content_form>label.service,
	form.content_form>label.adress,
	form.content_form>label.contract{
		width:100%;
		margin: 0 0 10px 0;
	}
	
	
}




/* Стили для разметки */
.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    min-height: 100vh;
/*     overflow: hidden; */
}

.header {
    background-color: rgb(255, 255, 255);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}



.main {
	
    -webkit-box-shadow: inset  0px 5px 5px rgb(230, 230, 230);
    -moz-box-shadow: inset  0px 5px 5px rgb(230, 230, 230);
    box-shadow: inset 0px 5px 5px rgb(230, 230, 230);
    flex: 1 1 auto;
    width: 100%;
    background-color: rgb(255, 255, 255);
    padding: 10px 10px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-content: flex-start;
    flex-direction: column;
    background-color: #f6f6f6;
}

.main_container {
    width: 100%;
}
main p:not([class]) { text-indent: 30px; }

.footer {

    width: 100%;
    background-color: rgb(245, 245, 245);
    -webkit-box-shadow: 0px -5px 5px rgb(230, 230, 230);
    -moz-box-shadow: 0px -5px 5px rgb(230, 230, 230);
    box-shadow: 0px 5px -5px rgb(230, 230, 230);
}


/* Стили для всплывающего окна */

.popup {
    display: flex;
    align-items: flex-start;
  	justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
	bottom: 0;
  	right: 0;
    background-color: rgb(247 247 247 / 95%);
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;

}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup .popup_box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 30px;
}

.popup .popup_container {
	display:flex;
	position:relative;
	align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 500px;
    color: black;
    border-radius: 1px;
    padding: 40px 0 20px 0;
    box-shadow: 0 0 5px #b1b1b1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background:  rgb(245, 245, 245);
    background-size: 70%;
    background-position: center 80%;
}

@media (max-width: 500px) {
    .popup>.popup_container {
        width: 99%;
    }
}

.popup .popup_container>.close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 32px;
    height: 32px;
    opacity: 0.3;
    transition: all .1s ease;
    cursor: pointer;
}

.popup .popup_container>.close:hover {
    opacity: 1;
}

.popup .popup_container>.close:before,
.close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: rgb(32, 32, 32);
}

.popup .popup_container>.close:before {
    transform: rotate(45deg);
}

.popup .popup_container>.close:after {
    transform: rotate(-45deg);
}

.popup .popup_container>h2 {
    margin-bottom: 15px;
	padding: 0 15px;
}

.popup .popup_container>.popup_form {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: -20px;
    padding: 15px 15px 15px 20px;
}


.popup .popup_container>.popup_form>label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 15px;
    width: 100%;
}

.popup .popup_container>.popup_form>label>.input_data {
    width: 100%;
	max-width: 100%;
	min-width: 100%;
    height: 40px;
    padding: 5px;
    box-sizing: border-box;
    font-size: 14px;
}



.popup .popup_container>.popup_form .button {
    align-self: center;
    margin-top: 15px;
    width: 100%;
}

.popup .popup_container>.buttons_callback {
    background-color: rgb(255, 160, 0);
    color: #fff;
    width: 100%;
    box-shadow: 0px 0px 3px rgb(0, 0, 0);
    border-radius: 1px;
}

.popup .popup_container>.buttons_callback td {
    text-align: center;
    padding: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.popup .popup_container>.buttons_callback td:last-child {
    border-right: none;
}

.popup .popup_container>.buttons_callback td:not(.active):hover {
    background-color: rgb(255, 140, 0);
}

.popup .popup_container>.buttons_callback td.active {
    background-color: rgb(87, 238, 0);
    box-shadow: 0px 0px 1px rgb(0, 0, 0);
    z-index: 1;
}

.popup .popup_container>.buttons_callback td.active:hover {
    background-color: rgb(87, 218, 0);
}

.popup .popup_container>.popup_contacts {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.popup .popup_container>.popup_contacts a {
    display: block;
    text-decoration: none;
    color: black;
    font-size: 24px;
    position: relative;
    line-height: 1.5;
	font-weight: 800;
	color: #25245c;
}

.popup .popup_container>.popup_contacts a:first-child {
    margin-top: 0;
}

.popup .popup_container>.popup_contacts>a:after {
    display: block;
    position: absolute;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #25245c;
    content: "";
    transition: width 0.3s ease-out;
}

.popup .popup_container>.popup_contacts>a:hover:after,
.popup .popup_container>.popup_contacts>a:focus:after {
    width: 100%;
}


.popup .popup_container>.popup_item.active {
    display: flex;
}

.nav_buttons {
    position: fixed;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0;
}

.nav_buttons_contant {
    width: 1200px;
    position: relative;
}

.nav_buttons_contantainer {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.phone_nav {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px double white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 3px black, inset 0 0 3px black;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.phone_nav>i {
    display: block;
    color: rgb(255, 197, 97);
    font-size: 25px;
    text-shadow: 0 0 3px black;
}

.nav_buttons.active .phone_nav {
    opacity: 1;
}

.phone_nav:hover {
    opacity: 1;
}

.phone_nav:hover>i {
    color: rgb(255, 160, 0);
}

.arrow_top {
    opacity: 0;
    visibility: hidden;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    margin-bottom: 10px;
}

.nav_buttons.active .arrow_top {
    opacity: 1;
    visibility: visible;
}

.arrow_top>i {
    display: block;
    color: rgb(255, 197, 97);
    font-size: 35px;
    text-shadow: 0 0 3px black;
    transition: all 0.2s ease;
}

.arrow_top:hover>i {
    color: rgb(255, 160, 0);
    transform: translateY(-5px);
}

.popup_thanks>.popup_container {
    min-height: 260px;
    background-size: 70%;
    background-position: center 100%;
}

.popup_thanks>.popup_container>h2 {
    margin-top: 40px;
    font-size: 20px;
	padding: 0 15px;
}


form.search-form {
	margin: 15px 0 15px 0;
	padding: 5px;
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    background: #dfdfdf;
}
form.search-form  input{
	margin: 0;
}
form.search-form .search-field {
	width: 70%;
	margin: 0 20px 0 0;
}
form.search-form .search-submit {
	width: 30%;
}
form.search-form #searchsubmit {
	cursor:pointer;
}
form.lk input {
	margin-top: 20px;
}
@media (max-width: 767px) {
	form.search-form .search-form__input {
	width: 100%;
}
	
	
}
/* Анимации */


@keyframes animation_button {
    0% {}

    60% {
        transform: scale(1.06, 0.93);
    }

    70% {
        transform: scale(1, 1);
    }

    80% {
        transform: scale(1.06, 0.9);
    }

    100% {
        transform: scale(1, 1);
        background: rgb(255, 255, 255);
        color: rgb(56, 54, 136);
    }

}


@keyframes rubberBand {
    from {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        -webkit-transform: scale3d(0.95, 1.05, 1);
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        -webkit-transform: scale3d(1.05, 0.95, 1);
        transform: scale3d(1.05, 0.95, 1);
    }

    to {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}


