@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;
   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;
}
#menu, #menu a, #menu a::before, #menu a::after{
   transition: .3s ease-in-out;
}

/* кнопка переключения меню, появляющаяся при ширине 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;
}

/* ---------- Контактная информация ---------- */

.post {
   margin-bottom: 30px;
   width: 100%;
}
.title-contactInfo{
   position: relative;
   padding: 25px 0 25px 0;
}
.title-contactInfo h2{
   position: absolute;
   font-family: 'DS-CenturyCapitals';
   font-size: 36.5px;
   color: white;
   letter-spacing: 1.9px;
   line-height: 55px;
   top: 30%;
   left: 20%;
}

.contactInfo{
   position: relative;
   /*background: url(../img/5-ContactInfo/Блок_контактной_информации1.png) no-repeat center;*/
   background-size: contain;
   width: 100%;
   height: 100%;
}
.firstAdress{
   position: absolute;
   font-family: 'DS-CenturyCapitals';
   font-size: 35px;
   color: white;
   line-height: 47.5px;
   top: 42%;
   left: 3.5%;
}
.first{
   position: absolute;
   top: 0;
   padding: 4% 0 0 4%;
   width: 96%;
   height: 40%;
}
.secondAdress{
   position: absolute;
   font-family: 'DS-CenturyCapitals';
   font-size: 36px;
   color: white;
   line-height: 47.5px;
   top: 87%;
   left: 3.5%;
}
.second{
   position: absolute;
   top: 45%;
   padding: 4% 0 0 4%;
   width: 96%;
   height: 40%;
}
.mail{
   position: absolute;
   font-family: 'DS-CenturyCapitals';
   font-size: 34px;
   color: white;
   line-height: 45px;
   top: 94%;
   left: 32%;
}

/* ---------- 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;
}
#map{
   height: 100px;
}
.post .metrika{
   position: absolute;
   width: 150px;
   height: 50px;
}

/*Laptop*/
@media screen and (max-width: 1024px) {
   .title-contactInfo h2{
      font-size: 32px;
   }
   .firstAdress, .secondAdress, .mail{
      font-size: 30.5px;
   }
   .firstAdress{
      top: 40%;
   }
   .secondAdress{
      top: 85%;
      left: 5%;
   }
   .mail{
      top: 92%;
   }
}
/*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-contactInfo h2{
      font-size: 23px;
      top: 25%;
   }
   .firstAdress{
      font-size: 22.5px;
      line-height: 30px;
      top: 40%;
      left: 4%;
   }
   .secondAdress{
      font-size: 22.5px;
      line-height: 30px;
      top: 85%;
   }
   .mail{
      font-size: 20px;
      top: 92%;
   }
   .copy{
      float: left;
   }
}
/*Mobile L iPhone 12 Pro Max*/
@media screen and (max-width: 428px) {
   body{
      height: calc(100vh - 195px);
   }
   .title-contactInfo h2{
      font-size: 11.5px;
      top: 16%;
   }
   .contactInfo{
      top: 100px;
   }
   .firstAdress{
      font-size: 12px;
      line-height: 16px;
      top: 41%;
   }
   .secondAdress{
      font-size: 12px;
      line-height: 16px;
      top: 86%;
   }
   .mail{
      font-size: 11px;
      top: 90%;
   }
   .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;
   }
}
/*IphoneXR*/
@media only screen and (max-device-width: 414px) {
   html {
      -webkit-text-size-adjust: none;
   }
   .title-contactInfo h2{
      font-size: 11px;
   }
   .firstAdress{
      font-size: 11.5px;
   }
}
/*One more iPhone XR*/
@media (max-device-width: 414px) {
   html {
      -webkit-text-size-adjust: none;
   }
   .title-contactInfo h2{
      font-size: 11px;
   }
   .firstAdress{
      font-size: 11.5px;
   }
}
/*iPhone XR Rotate*/
/*@media screen and (max-width: 896px) {
   .title-contactInfo h2{
      font-size: 27.5px;
   }
   .firstAdress{
      font-size: 26.5px;
   }
   .secondAdress{
      font-size: 27px;
      left: 4%;
   }
   .mail{
      font-size: 27px;
      left: 30%;
   }
}*/
/*Note 9t 2160x1080*/
@media only screen and (max-device-width: 393px) {
   .title-contactInfo h2{
      font-size: 10.2px;
   }
   .firstAdress{
      font-size: 11px;
   }
   .secondAdress{
      font-size: 11.3px;
   }
}
/*One more note 9t*/
@media screen and (max-width: 393px) {
   .title-contactInfo h2{
      font-size: 10.2px;
   }
   .firstAdress{
      font-size: 11px;
   }
   .secondAdress{
      font-size: 11.3px;
   }
}
/*Redmi 5 plus, note 8 2160x1080*/
@media (max-device-width: 393px) {
   .title-contactInfo h2{
      font-size: 10.2px;
   }
   .firstAdress{
      font-size: 11px;
   }
   .secondAdress{
      font-size: 11.3px;
   }
}
/*Mobile M*/
@media screen and (max-width: 375px) {
   #menu a{
      font-size: 14px;
   }
   .title-contactInfo h2{
      font-size: 9.5px;
      top: 12.5%;
   }
   .firstAdress{
      font-size: 10.5px;
      top: 41%;
   }
   .secondAdress{
      font-size: 10.5px;
      top: 86%;
   }
   .mail{
      font-size: 10px;
      top: 89%;
   }
}
/*Mobile S*/
@media screen and (max-width: 320px) {
   #menu a{
      font-size: 10px;
   }
   .logo span{
      font-size: 15px;
   }
   .title-contactInfo h2{
      font-size: 7.5px;
      left: 20.5%;
      top: 11%;
   }
   .firstAdress{
      font-size: 8.75px;
      line-height: 12.5px;
      top: 41%;
   }
   .secondAdress{
      font-size: 8.75px;
      line-height: 12.5px;
      top: 86%;
   }
   .mail{
      font-size: 8px;
      top: 88%;
   }
}

@media (max-width: 926px) and (orientation: landscape){
   #mainInfo{
      display: none;
   }
   .rotate{
      background: #111111;
      display: block;
   }
}