@font-face{
	font-family: 'CharlemagneC';
	font-style: normal;
	src: url('../fonts/15352.ttf') format("truetype");
}

@font-face {
    font-family: 'DS-CenturyCapitals';
    src:url('../fonts/DS-CenturyCapitals.ttf.woff') format('woff'),
        url('../fonts/dscentury.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

*, *:after, *:before {
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   transition: .3s ease-in-out;
   font-weight: 400;
}
ul {
   list-style: none;
}
a {
   text-decoration: none;
   outline: none;
}
img {
   display: block;
   width: 100%;
}
body {
   font-family: 'charlemagnec';
   font-size: 14px;
   line-height: 1;
   color: black;
   background: black;
   height: calc(100vh - 200px);
}
body::before{
   background: url(../img/background.jpg) no-repeat center;
   background-size: cover;
   content: ' ';
   height: 100%;
   width: 100%;
   left: 0;
   position: fixed;
   top: 0;
   will-change: transform;
   z-index: -1;
}
#mainInfo{
   position: relative;
   min-height: 100%;
}

/* добавим очистку потока для всех контейнеров, внутри которых задано обтекание дочерних элементов */

header:after, .container:after, footer:after, .widget-posts-list li:after, #subscribe:after {
   content: "";
   display: table;
   clear: both;
}
.container {
   margin: 0 auto;
   width: 100%;
   max-width: 1170px;
   padding: 0 15px;
}
header .container{
   max-width: 1300px;
}
header {
   width: 100%;
   background: linear-gradient(#272727, #202423);
   padding: 15px 0;
   margin-bottom: 30px;
   position: relative;

   -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
   -moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
   -ms-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
   -o-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
   box-shadow: 0px 0px 10px rgba(0,0,0,.8);
}

/* ----------меню---------- */

ul{
   text-align: center;
   background: linear-gradient(#272727, #202423);
}

#menu li {
   display: inline-block;
   margin-right: 30px;
}
#menu a {
   font-family: 'charlemagnec';
   font-size: 20px;
   color: gray;
   text-decoration: none;
   display: inline-block;
   vertical-align: top;
   padding: 6px 5px;
   border-radius: 5px;
}
#menu a:hover {
   text-decoration: underline
}
#menu li:last-child {
   margin-right: 0;
}

/* кнопка переключения меню, появляющаяся при ширине 768px */

.logo{
   display: none;
   float: left;
}
.logo span {
   font-size: 25px;
   display: inline-block;
   width: 30px;
   height: 30px;
   line-height: 30px;
   border-radius: 50%;
   margin: 5px 0;
   text-align: center;
}
.logo span:nth-child(1) {
   background: white;
   color: black;
}
.logo span:nth-child(2) {
   color: white;
}
.nav-toggle {
   display: none;
   position: relative;
   float: right;
   width: 40px;
   height: 40px;
   margin-left: 20px;
   background: white;
   cursor: pointer;
   border-radius: 5px;
}
.nav-toggle span {
   display: block;
   position: absolute;
   top: 19px;
   left: 8px;
   right: 8px;
   height: 2px;
   background: black;
}
.nav-toggle span:before, .nav-toggle span:after {
   content: "";
   position: absolute;
   display: block;
   left: 0;
   width: 100%;
   height: 2px;
   background: black;
} 
.nav-toggle span:before {
   top: -10px;
}
.nav-toggle span:after {
   bottom: -10px;
}

/* класс, который будет добавлен в верхнему меню при нажатии на кнопку и покажет скрытое меню*/
#menu.active {
   max-height: 180px;
}

li .active{
   background: white;
}

/* ---------- Список услуг ---------- */

#background{
    position: fixed;    
    display: none;
    background-color: rgba(0, 0, 0, 0.65);
    min-height: 100vh;
    min-width: 100%;
    overflow-x: auto;
    bottom: 0;
}

.post{
   margin-bottom: 30px;
   width: 100%;
}
.post-image{
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.continue{
    margin-top: 15px;
    display: none;
    font-size: 15px;
    color: whitesmoke;
}
.title-services{
    position: relative;
    padding: 25px 0 25px 0;
}
.title-services h2{
    position: absolute;
    font-family: 'DS-CenturyCapitals';
    font-size: 50px;
    color: white;
    letter-spacing: 2.9px;
    line-height: 55px;
    top: 23%;
    left: 28%;
}

.spisok-uslug{
    position: relative;
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 100%;
}

.block-uslug{
    position: relative;
    max-width: 100%;
    margin: 25px 20px 25px 20px;
    text-align: center;
    cursor: pointer;
}

.a1, .a2, .a3, .a4, .a5, .a6{
    position: absolute;
    font-family: 'DS-CenturyCapitals';
    font-size: 22px;
    color: white;
    text-decoration: none;
}

.a1{
    top: 83%;
    left: 0;
}
.a2{
    top: 83%;
    left: 10%;
}
.a3{
    top: 83%;
    left: 10%;
}
.a4{
    top: 83%;
    left: -.5%;
}
.a5{
    top: 83%;
    left: -5%;
}
.a6{
    top: 83%;
    left: 11%;
}

/* ---------- Rotate ---------- */

.rotate{
   display: none;
   position: absolute;
   width: 100%;
   height: 100vh;
   top: 0;
   align-items: center;
}
.rotate img{
   width: 40%;
   margin-left: auto;
   margin-right: auto;
}

/* ---------- Футер ---------- */

footer {
   padding: 20px 0;
   background: linear-gradient(#272727, #202423);
   margin-top: 50px;

   -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
   -moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
   -ms-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
   -o-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
   box-shadow: 0px 0px 10px rgba(0,0,0,.8);
}
.footer-col{
   width: 100%;
   max-width: 1170px;
   margin: 0 auto;
   padding: 0 15px;
}
.footer-col a {
   font-family: 'Open Sans';
   font-size: 18px;
   color: gray;
}
.footer-col:last-child {
   text-align: center;
}
.copy{
   float: center;
}
.kek{
   display: inline;
}
.vk img{
   display: inline;
   float: right;
   margin-left: 2%;
   width: 30px;
   height: 30px;
}
.inst img{
   display: inline;
   float: right;
   margin-left: 2%;
   width: 30px;
   height: 30px;
}
.tg img{
   display: inline;
   float: right;
   width: 30px;
   height: 30px;
}
/*Laptop*/
@media screen and (max-width: 1024px) {
    .title-services h2{
        font-size: 44px;
    }
}
/*Tablet*/
@media screen and (max-width: 768px) {
   .logo {
        display: block;
   }
   .nav-toggle {
        display: block;
   }
   header {
      padding: 10px 0;
   }
   /* скрываем верхнее меню, отменяем обтекание, позиционируем его, сместив на высоту шапки сайта */
   #menu {
        max-height: 0;
        float: none;
        position: absolute;
        overflow: hidden;
        top: 63px;
        right: 0;
        left: 0;
        margin: 0;
        padding: 0;
        z-index: 3;
   }
   /* делаем элементы списка блочными, чтобы они располагались друг под другом */
   #menu li {
        display: block;
        text-align: center;
        border-bottom: 1px solid #EBEBE3;
        margin-right: 0;
   }
   .title-services h2{
        font-size: 32px;
        top: 20%;
   }
   .block-uslug{
        margin: 25px 40px 25px 40px;
   }
   .copy{
      float: left;
   }
}
/*Mobile L iPhone 12 Pro Max*/
@media screen and (max-width: 428px) {
    body{
        height: calc(100vh - 180px);
    }
    header{
        margin-bottom: 15px;
    }
    .post-image{
        top: 20vh;
    }
    .title-services h2{
        font-size: 15.5px;
        top: 10%;
    }
    .block-uslug{
        width: 40%;
        margin: 25px 10px 25px 10px;
    }
    .block-uslug a{
        font-size: 14px;
    }
    .a2{
        left: 10%;
    }
    .a3{
        left: 10%;
    }
    .a4{
        left: -1%;
    }
    .a5{
        left: -6%;
    }
    .footer-col a{
        font-size: 10px;
    }
    footer{
        margin-top: 0;
    }
    .vk img{
        width: 20px;
        height: 20px;
    }
    .inst img{
         width: 20px;
         height: 20px;
    }
    .tg img{
         width: 20px;
         height: 20px;
    }    
}
/*iPhone XR*/
@media (max-device-width: 414px) {
    .title-services h2{
        font-size: 14px;
        top: 10%;
        left: 29%;
    }
}
/*iPhone XR Rotate*/
/*@media screen and (max-width: 896px) {
    .title-services h2{
        font-size: 38px;
    }
    .block-uslug{
        margin: 25px 0;
    }
}*/
/*Note 9t 2160x1080*/
@media only screen and (max-device-width: 393px) {
    .title-services h2{
        font-size: 13px;
    }
    .a2{
        left: 7%;
    }
    .a3{
        left: 7%;
    }
    .a4{
        left: -5%;
    }
    .a5{
        left: -10%;
    }
    .a6{
        left: 8%;
    }
}
/*One more note 9t*/
@media screen and (max-width: 393px) {
    .title-services h2{
        font-size: 13px;
    }
    .a2{
        left: 7%;
    }
    .a3{
        left: 7%;
    }
    .a4{
        left: -5%;
    }
    .a5{
        left: -10%;
    }
    .a6{
        left: 8%;
    }
}
/*Redmi 5 plus 2160x1080*/
@media (max-device-width: 393px) {
    .title-services h2{
        font-size: 13px;
    }
    .a2{
        left: 7%;
    }
    .a3{
        left: 7%;
    }
    .a4{
        left: -5%;
    }
    .a5{
        left: -10%;
    }
    .a6{
        left: 8%;
    }
}
/*Mobile M*/
@media screen and (max-width: 375px) {
    #menu a{
        font-size: 14px;
   }
    .title-services h2{
        font-size: 12.5px;
        top: 10%;
    }
    .continue{
        font-size: 12px;
    }
    .block-uslug{
        width: 40%;
        margin: 25px 10px 25px 10px;
    }
    .block-uslug a{
        font-size: 14px;
    }
    .a2{
        left: 5%;
    }
    .a3{
        left: 5%;
    }
    .a4{
        left: -8%;
    }
    .a5{
        left: -13%;
    }
    .a6{
        left: 6%;
    }
    .footer-col a{
        font-size: 12px;
    }
}
/*Mobile S*/
@media screen and (max-width: 320px) {
    #menu a{
      font-size: 10px;
    }
    .logo span{
        font-size: 15px;
    }
    .title-services h2{
        font-size: 10px;
        top: 10%;
    }
    .continue{
        font-size: 10px;
    }
    .block-uslug{
        width: 40%;
        margin: 25px 10px 25px 10px;
    }
    .block-uslug a{
        font-size: 10px;
    }
    .a2{
        left: 12%;
    }
    .a3{
        left: 12%;
    }
    .a4{
        left: 0%;
    }
    .a5{
        left: -3%;
    }
    .a6{
        left: 12%;
    }
    .footer-col a{
        font-size: 10px;
    }
}

@media (max-width: 926px) and (orientation: landscape){
    #mainInfo{
        display: none;
    }
    .rotate{
        background: #111111;
        display: block;
    }
}