@keyframes mainText {
    from {margin-bottom: 1%;}
    to {margin-bottom: 0;}
}
@keyframes lowMainText {
    from {margin-top: 1%;}
    to {margin-top: 0;}
}
@keyframes phone1 {
    from {left: -10%; border-right: 2px solid #ffffff; }
    to {border-right: 2px solid #f7f7f7; left: 0%;}
}
@keyframes phone1_m {
    from {left: -10%; border-bottom: 2px solid #ffffff; }
    to {border-bottom: 2px solid #f7f7f7; left: 0%;}
}
@keyframes phone2 {
    from {left: 10%;}
    to {left: 0%}
}
*{
    padding: 0;
    margin: 0;
    font-family: 'MTSSansWebBlack', sans-serif;
}
a{
    color: #ffffff;
    text-decoration: none;
}
header {
    background-image: url(../img/headerbg.jpg);
    height: 60vh;
    background-position-y: center;
    width: 100%;
    background-size: cover;
    background-color: rgb(0, 0, 0);
    background-repeat: no-repeat;
    text-align: center;
    vertical-align: middle;
}
header .headerblock{
    height: 100%;
    width: 100%;
    background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: center;
}
header h1{
    text-shadow: 0px 2px 20px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 400%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'MTSSansWebBlack', sans-serif;
    animation-name: mainText;
    animation-duration: 0.8s;
} 
header span{
    color: white;
    font-family: 'MTS Compact', sans-serif;
    text-shadow: 0px 2px 20px rgba(0, 0, 0, 0.3);
    font-size: 260%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation-name: lowMainText;
    animation-duration: 0.8s;
} 
.head-block{
        height: 5vh;
        min-height: 45px;
        width: 90vw;
        padding: 1vh;
        padding-left: 6vw;
        padding-right: 6vw;
        display: flex;
        justify-content: space-between;
        transition: 0.5s;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
}

.head-block .headerPhone a{
    font-size: 150%;
    transition:0.5s;
}
.head-block .headerPhone a:hover{
    color: #494949;
}
.contacts {
    height: 40vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0;
}.contact-block {
    height: 40vh;
    width: 25vw;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.contact-block h1{
    font-size: 250%;
    margin-bottom: 1%;
    margin-top: -6%;
}
.contact-block a:hover{
    transition: 0.5s;
}
.contact-block a:hover{
    color: black;
}
#podkl_Contact{
    border-right: 2px solid #f7f7f7; animation-name: phone1; animation-duration: 1s;
}
#podkl_Contact a:hover{
    color: #414141 !important;
}
#tp_Contact{
    animation-name: phone2; animation-duration: 1s;
}
.phone a{
    font-size: 270%;
    color: #414141;
    display: block;
    font-family: 'MTS Compact', sans-serif;
    font-weight: 700;
}
.orange a{
    color: #ff6a2f;
}
.email{
    font-size: 220%;
    color: #ff6a2f;
    font-family: 'MTS Compact', sans-serif;
}


.aboutUs{
    min-height: 55vh;
    background: #f7f7f7;
    padding: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.aboutUs h1{
    font-size: 260%;
    width: 60vw;
}
.aboutUs p{
    font-size: 200%;
    width: 60vw;
    font-family: 'MTS Compact', sans-serif;
}
.mainFormSection{
    padding: 2.5vh;
    display: flex;
    justify-content: center;
}
.formBlock{
    width: 55vw;
    height: fit-content;
    background: #f7f7f7;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
}
.imgBlock img{
    max-height: 40vh;
}
.actionBlock{
    width: 100%;
    padding: 1% 4%;
}
.formBlock form{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.formBlock form h1 {
    font-size: 250%;
    margin-bottom: 2%;
}
.formBlock form input{
    font-family: 'MTS Compact', sans-serif;
    font-size: large;
    border: 1px solid #dde1e7;
    height: 5vh;
    width: 60%;
    padding: 2%;
    margin-bottom: 1%;
    border-radius: 10px;
}
.formBlock form button{
    width: 56%;
    height: 44px;
    margin-top: 1%;
    margin-left: 2%;
    border-radius: 8px;
    font-size: 18px;
    color: white;
    border: none;
}
.formBlock form button:hover{
    transition: 0.3s;
    cursor: pointer;
}
.formBlock form p{    
    font-family: 'MTS Compact', sans-serif;
    font-size: .9rem;
    width: 100%;
    margin-top: 1%;
}
.formBlock form p a{    
    font-family: 'MTS Compact', sans-serif;
    font-size: .9rem;
    color: blue;
}

@keyframes rotate {
    from {
        transform: rotate(0deg); /* Начальное состояние */
	}
    to {
        transform: rotate(360deg); /* Конечное состояние */
    }
}
.LoadImg{
	height: 52%;
	animation: rotate 2s linear infinite; /* Анимация вращения */
}


footer{
    height: 15vh;
    background: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
}
footer p{
    color: darkgray;
    font-family: 'MTS Compact', sans-serif;
    width: 70%;
    font-size: 70%;
    text-align: justify;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 25px;
    width: 18%;
    border-radius: 10px;
    height: fit-content;
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  #modalDone{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #modalDone img{
    height: 15vh;
  }
  
  #modalDone p{
    font-size: 170%;
  }

  #modalError{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #modalError h1{
    color: #ff0032;
  }

  #modalError p{
    font-family:'MTS Compact', sans-serif;
  }
  .Advantages{        
    background: #f7f7f7;
    height: fit-content;
    display: flex;
    justify-content: center;
    padding: 5vh 0 5vh 0;
  }
  .AdvantagesBlock{    
    width: 20vw;
    height: fit-content;
    background: white;
    margin-right: 1vw;
    padding: 1vw;
    border-radius: 10px;
    min-height: 35vh;
  }
  .AdvantagesBlock_title{
    font-size: 129%;
  }
  .AdvantagesList{
    list-style: none;
  }
  .AdvantagesList_elem{
    font-family: 'MTS Compact', sans-serif;
    border-left: 3px solid #d7d7d7;
    padding-left: 1vw;
    margin-top: 2%;
  }
  .supportMain {
    width: 106%;
    height: 120px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    min-width: 445px;
    margin-top: 2%;
    margin-left: 20%;
  }
  #supportQR{
    background-image: url(/img/supportQR.svg);
    width: 30%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .supportBlocks{
    margin-top: 2%;
    width: 70%;
    height: 100%;
    display: flex;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-around;
  }
  .supportBlock{
    width: 130px;
    height: 50px;
    margin: 2%;
    background-color: #f2f3f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding-left: 4%;
  }

  @media (max-width: 1520px) {
    .supportMain {
        margin-left: 40%;
    }
  }
  @media (max-width: 1110px) {
    .supportMain {
        width: 100%;
        height: 120px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-end;
        min-width: 200px;
        margin-top: 2%;
        margin-left: 10%;
    }
    .supportBlock {
        width: 124px;
        height: 50px;
        margin: 2%;
        background-color: #f2f3f7;
        border-radius: 10px;
        display: flex;
        align-items: center;
        padding-left: 4%;
    }
    .supportBlocks {
        margin-top: 2%;
        width: 170%;
        height: 100%;
        display: flex;
        align-items: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-content: space-around;
    }
    #supportQR{
        display: none;
    }
}
  @media (max-width: 1465px) {
    .formBlock form h1 {
        font-size: 200%;
    }
    .AdvantagesBlock {
        width: 25vw;
    }
  }
  @media (max-width: 1450px) {
    .formBlock form h1 {
        font-size: 200%;
    }
    .formBlock form input{
        width: 80%;
    }
    .formBlock form button {
        width: 76%;
  
    }
  }
  @media (max-width: 1275px) {
    .formBlock {
        width: 70vw;
    }
  }
  @media (max-width: 1000px) {
    .formBlock {
        width: 90vw;
    }
    .AdvantagesBlock {
        width: 30vw;
    }
    .imgBlock img{
        max-height: 45vh;
    }
  }
  @media (max-width: 900px) {
    .head-block .headerPhone a {
        font-size: 120%;
    }
    .aboutUs{
        align-items: flex-start;
        min-height: 45vh;
    }
    .aboutUs p {
        width: 85vw;
        font-size: 130%;
    }
    .aboutUs h1 {
        font-size: 200%;
        width: 90vw;
    }
    .Advantages {
        flex-direction: column;
        align-items: center;
    }
    .AdvantagesBlock {
        width: 60vw;
        margin-bottom: 5%;
        padding: 3%;
    }
  }
  @media (max-width: 790px) {
    .head-block .headerPhone a {
        font-size: 100%;
    }
    .contacts {
        height: 60vh;
        display: flex;
        flex-direction: column;
        padding: 0;
        justify-content: center;
        min-height: 530px;
    }
    .contact-block {        
        height: 30vh;
        width: 100vw;
        padding: 0;
        min-height: 265px;
    }
    #podkl_Contact {
        border-bottom: 2px solid #f7f7f7;
        border-right: none;
        animation-name: phone1_m;
        animation-duration: 1s;   
    }
    .formBlock {
        width: 60vw;
    }
    .formBlock form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .imgBlock{
        display: none;
    }
    .formBlock form p {
        font-size: 0.7rem;
        width: 80%;
    }
    .formBlock form a {
        font-size: 0.7rem;
    }
    .formBlock {
        width: 60vw;
        height: fit-content;
        padding-bottom: 3%;
    }
    footer p {
        width: 90%;
    }
    .supportMain {
        width: 50%;
        margin-left: 0%;
    }

}
@media (max-width: 705px) {
    .formBlock {
        width: 90vw;
    }
    footer {
        height: fit-content;
        padding: 10px;
    }
    header h1 {
        font-size: 300%;
    }
    header span {
        font-size: 160%;
    }
}
@media (max-width: 600px) {
    .AdvantagesBlock {
        width: 70vw;
    }
}
@media (max-width: 590px) {
    .AdvantagesBlock {
        width: 70vw;
    }
    .supportMain {
        width: 70%;
    }
}
@media (max-width: 475px) {
    .AdvantagesBlock {
        width: 80vw;
    }
    .formBlock form h1 {
        font-size: 170%;
    }
    .formBlock form input {
        width: 90%;
    }
    .formBlock form button {
        width: 88%;
    }
    .contact-block h1 {
        font-size: 200%;
        margin-bottom: 1%;
        margin-top: -6%;
    }
    .phone a{
        font-size: 220%;
    }
    .email {
        font-size: 190%;
        color: #ff6a2f;
    }
    .formBlock form input{
        border-radius: 8px;
    }
    header h1 {
        font-size: 250%;
    }
    header span {
        font-size: 110%;
    }
    .supportMain {
        width: 90%;
    }
}