@font-face {
font-family: 'Roboto Codensed';
src: url('/fonts/Roboto_Condensed-Regular.woff2') format('woff2'),
url('/fonts/Roboto_Condensed-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Roboto Codensed';
src: url('/fonts/Roboto_Condensed-SemiBold.woff2') format('woff2'),
url('/fonts/Roboto_Condensed-SemiBold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Roboto Codensed';
src: url('/fonts/Roboto_Condensed-Light.woff2') format('woff2'),
url('/fonts/Roboto_Condensed-Light.ttf') format('truetype');
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Roboto Codensed';
src: url('/fonts/RobotoCondensed-Bold.woff2') format('woff2'),
url('/fonts/RobotoCondensed-Bold.ttf') format('truetype');
font-weight: 800;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Avenir Next Cyr';
src: url('/fonts/avenirnextcyr-thin.woff2') format('woff2'),
url('/fonts/avenirnextcyr-thin.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'fontello';
src: url('/fonts/fontello.woff2') format('woff2'),
url('/fonts/fontello.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}

b,strong{
    font-weight: 800;
}
*{
    font-family: "Roboto Codensed";
    margin: 0;
    padding: 0;
    z-index: 1;
    border: 0;
    position: relative;
    background: none;
}
@media only screen and (min-width:1200px){
    body{
        background: url(/img/bg_sh.webp) 0% 800px no-repeat;
    }

    div.bg_body{
        position: absolute;
        right:0;
        top: 2000px;
        z-index: -1;
        background: url(/img/bg_sh.webp) 100% 100% no-repeat;
        width: 219px;
        height: 683px;
        color: #385f88;
      -moz-transform: matrix( -1,0,0,1,0,0);
      -webkit-transform: matrix( -1,0,0,1,0,0);
      -ms-transform: matrix( -1,0,0,1,0,0);
      transform: scale(-1, 1);
    }
}

@media (min-width:800px){
    
#container{
    width: 100%;
    min-width: 788px;
}

header,main{
     width:90%;
    max-width:1400px;
    min-width: 760px;
    margin: 0 auto;
}
}

@media (max-width:799px){
    #container{
    width: 100%;
    
}
header,main{
     width:90%;
 
    margin: 0 auto;
}
}

button{
    cursor: pointer;
}

.main_bg{
    position: absolute;
    z-index: 0;
    right:0;
top:0;
height: auto;
width: 100%;
min-width: 630px;
overflow: hidden;


}

@media (max-width:799px){
.main_bg{min-width: auto;}
}
.position-rectangle{
  position: relative;
  left: calc(15%);  
  overflow: hidden;
  width:100%;
}

.y_rectangle{
position: relative;
display: block;
top: -25px;
right: -56px;   
z-index: 0;
    
}

.y_rectangle{
width:1056px;
    
}

.collage{
    display: grid;
    grid-template: repeat(5,1fr) / repeat(7,1fr);
    position: absolute;
    width:860px;
    height: 500px;
    /*border:2px red solid;*/
    top:80px;
    left:400px;
}

@media (max-width:799px){
    .collage{
       top:10px;
    left:45%;    
}
}

.collage .img1{
    position: relative;
    top: -15px;
    grid-column: 2/3;
    grid-row: 1/4;
    align-self: start;
}

.collage .img2{
     position: relative;
    top: -10px;
    left:-90px;
    grid-column: 3/5;
    grid-row: 1/4;
    align-self: start;
}

.collage .img3{
    position: relative;
    left: -20px;
    top:-40px;
    grid-column: 5/7;
    grid-row: 2/4;
    align-self: start; 
}

.collage .img4{
    position: relative;
    top:-50px;
    left:-100px;
    grid-column: 1/5;
    grid-row: 4/6;
    align-self: start; 
    width:500px;
}


.collage .img5{
    position: relative;
    top:-45px;
    left: -60px;
    grid-column: 4/8;
    grid-row: 4/6;
    align-self: start; 
   width:380px;
}



@media (max-width:799px){
    .collage .img4{
width:auto;

}
}

.head{
    z-index: 2;
}

header.head{
    display: grid;
    grid-template: 1fr 1fr / 105px 1fr; 
    height: 91px;
   
    padding-top:20px;
   
    row-gap: 10px;
}

.logo{
    grid-row: 1 / 3;
    align-self: end;
    width: 80px;
}

.logo img{
    width: 80px;
   
}

.head-buttons{
    display: flex;
    width:200px;
    justify-content: space-between;
    justify-self: end;
  
}

@media (max-width: 799px){
    .head-buttons{display: none;}
}

a.tg,a.whatsup, a.vk{
    display: flex;
    width: 30px;
    height: 30px;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
  }

a.tg img,a.whatsup img,a.vk img{
    width: 30px;
    height: 30px;
}

.whatsup{
    background: #57d163;
}

.tg{
    background: #2ca8dd;
}

.head-buttons button{
   font-size: 12px; 
   font-weight: 600;
   padding: 8px 12px;
  background-color: #497997;
  box-shadow: 0px 8px 13px 0px rgba(0, 0, 0, 0.3);
  width: 108px;
  color:white;
  border-radius: 8px;
 
  
}
.min_menu{
    display: none;
}

.h_menu{
    display: flex;
    justify-content: space-between;
     border-radius: 8px;
    background-color: rgb(240, 240, 240);
    box-shadow: 0px 11px 26px 5px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 55px;
}

@media (max-width:799px){
    .min_menu{
    background: #fff;
    margin-top: 8px;
    justify-self: end;
    display: block;
    width:40px;
    height:40px;
    cursor: pointer;
    border: 2px #e38c25 solid;
    border-radius: 8px;
    z-index:2;
}

svg #min_menu_Mask{
    fill:#ff9507;
}

.min_menu:hover  #min_menu_Mask{
    border: 1px red solid;
    fill:#165b7b;
}
.bg_menu_mobile{
    width: 100%;
    height: 100%;
    position: fixed;
    top:0;
    left:0;
}    

.h_menu{
    display: none;
    top:20px;
    position: absolute;
    justify-content: start;
     background-color: #fff;
    box-shadow: 0px 6px 13px 5px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
    }
    
    .h_menu ul{
   list-style: none;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   margin-left: 10px;
}


.h_menu ul li{
    border-bottom: 3px solid transparent;
    padding: 0 5px;
    cursor: pointer;
    margin-top: 10px;
}
.h_menu ul li:hover{
  
}
.h_menu ul li a{
  font-size: 24px;
  font-weight: 600;
  color: rgb(73, 121, 151);
  text-decoration: none;
}

.h_menu ul li.child_menu{
  
}

.h_menu ul li ul{
    padding: 10px;
    
    width: auto;
 display: block;


}

.h_menu ul li ul li{
    border-bottom: none;
}

.h_menu ul li ul li:hover{
    border-bottom: none;

}

.h_menu ul li ul li a{
    display: block;
color: #000;
font-weight: 300;

font-size: 14px;
}
}



@media (min-width:800px)
{
.h_menu>ul{
   list-style: none;
   display: flex;
   width: 584px;
   justify-content: space-between;
   align-items: center;
   margin-left: 10px;
   column-gap: 5%;
  
}

@media only screen and (max-width: 900px){
    .h_menu>ul{width: 500px; column-gap:10px;}
    
}

.h_menu>ul li{
    border-bottom: 3px solid transparent;
    padding: 0 5px;
    cursor: pointer;
    white-space: nowrap;
}
.h_menu>ul li:hover{
   
    border-bottom: 3px #e48c26 solid;
}
.h_menu>ul li a{
  font-size: 20px;
  font-weight: 600;
  color: rgb(73, 121, 151);
  text-decoration: none;
}

.h_menu>ul li.child_menu{
 
    padding-right: 21px;
}
li.child_menu::after{
    color: #e48c26;
    font-family: fontello;
    content: "\e800";
    font-weight: bold;
    display: block;
    position: absolute;
    top:5px;
    right:0;
    width: 19px;
    height:17px;
   
}
li.child_menu:hover::after{
    -moz-transform: matrix( 1,0,0,-1,0,0);
    -webkit-transform: matrix( 1,0,0,-1,0,0);
    -ms-transform: matrix( 1,0,0,-1,0,0);
    transform: scale(1,-1);
}


 li.child_menu ul{
    position: relative;
    display: none;
    list-style: none;
    background-color: #ffffff;
    text-align: left;
    
    border-radius: 0;
    border: 1px solid #8eafcc;
    flex-wrap: wrap;
    padding: 18px 20px;
    box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
}

li.child_menu:hover  li.child_menu ul{
    display: block;
}

li.child_menu div.child_container{
    position: absolute;
  padding-top: 20px;
  background: none;  
  left: -70%;
}

li.child_menu ul::before{
    content: '';
  position: absolute;
  width: 25px;
  height: 20px;
  top:0;
  right: calc(50% + 10px);
  transform: translateX(50%);
  background: #fff;
  z-index:1;
 
}

li.child_menu ul .square{
    background-color: #ffffff;
  top: -7.5px;
  border-color: #8eafcc;
  border-width: 1px;
  border-style: solid;
  position: absolute;
  right: calc(50%);
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  
  
  position: absolute;
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  background-clip: padding-box;
   z-index:0;
}

li.child_menu ul li{
    border-bottom: none;
    margin-bottom: 12px;
}

li.child_menu ul li:last-child{
    margin-bottom: 0;
}

li.child_menu ul li:hover{
    border-bottom: none;

}

li.child_menu ul li a{
color: #004b8e;
  font-size: 16px;
 font-weight: 400;
white-space: nowrap;
line-height: 1.35;
}

li.child_menu ul li a:hover{
color: #e34000;
}
}
.head-contacts{
    padding-right: 15px;
    display: flex;
    flex-direction: column; 
}

@media (max-width: 799px){
    .head-contacts{
      display: none;
   }
}

.menu-phones{
    background: url("/img/phone1.png") center left no-repeat;
    padding-left: 18px;
    font-size: 16px;
    font-weight: 600;
    color: rgb(22, 91, 123);
  -moz-transform: matrix( 0.98840625054517,0,0,0.76007176648324,0,0);
  -webkit-transform: matrix( 0.98840625054517,0,0,0.76007176648324,0,0);
  -ms-transform: matrix( 0.98840625054517,0,0,0.76007176648324,0,0);
}

.menu-phones a{
  font-size: 16px;
    font-weight: 600;
    color: rgb(22, 91, 123);
  -moz-transform: matrix( 0.98840625054517,0,0,0.76007176648324,0,0);
  -webkit-transform: matrix( 0.98840625054517,0,0,0.76007176648324,0,0);
  -ms-transform: matrix( 0.98840625054517,0,0,0.76007176648324,0,0);
text-decoration: none;  
}

.head-email{
    background: url("/img/mail.png") left 4px no-repeat;
    font-weight: 600;
      padding-left: 35px;
      margin-top: -5px;
      
}

.head-email a{
    display: inline-block;
  font-size: 16px;
  color: rgb(22, 91, 123);
  -moz-transform: matrix( 1.25,0,0,1.05,0,0);
  -webkit-transform: matrix( 1.25,0,0,1.05,0,0);
  -ms-transform: matrix( 1.25,0,0,1.05,0,0);
  transform: scale(1.25,1.05);
  text-decoration: none;
 
}

main{
    
}

#first_block{
    
}

h1{
    display: inline-block;
    font-size: 32px;
    font-weight: 600;
    margin-top: 177px;
  color: #2b3c4e;
  line-height: 1;
  text-align: left;
  text-shadow: -4px -4px 6px rgba(0, 0, 0, 0.3);
  -moz-transform: matrix( 1.08576533156923,0,0,1.08576533156923,0,0);
  -webkit-transform: matrix( 1.08576533156923,0,0,1.08576533156923,0,0);
  -ms-transform: matrix( 1.08576533156923,0,0,1.08576533156923,0,0);
  transform: scale(1.085, 1.085);
  
  padding-left: 0.85%
}

@media (max-width:799px){
    h1{
    margin-top: 25px;
    -moz-transform: none;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    }


}


h2{
  position: relative;
  font-size: 18px;
  color: rgb(134, 137, 140);
  font-weight: 600;
  display: block;
  
}
.orange_button{
  border-width: 1px;
  border-color: rgb(232, 170, 55);
  border-style: solid;
  border-radius: 8px;
  background-color: #ff9507;
  box-shadow: 0px -4px 6px 0.63px rgba(0, 0, 0, 0.3);
  width: 147px;
  height: 40px;
  font-size: 16px;
  font-weight: 600;
  color: rgb(47, 47, 47);
  line-height: 2.25;
  text-align: center;
}

#second_block{
    display: flex;
    width: 80%;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 200px auto 0 auto;
   
}

@media (max-width: 799px){
    #second_block{
    width: 90%;
    margin: 120px auto 0 auto;   
}
}

#second_block div{
  display: flex;
  border-radius: 5px;
  background-color: rgb(248, 248, 248);
  box-shadow: -5px -8px 15px 3px rgba(0, 0, 0, 0.35);
  width: 295px;
  height: 93px;
  justify-content: center;
  align-items: center;
}


#second_block div:last-child{
    background: #fff url("/img/img2.png") no-repeat;
    background-position: 100% 100%;
    background-size: 55px 44px;
}

#second_block div:first-child{
    background: #fff url("/img/img1.png") no-repeat;
    background-position: 100% 0;
    background-size: 87px 66px;
}
#second_block div:first-child p{
    position: relative;
    left: -30px;
}

#second_block div p{
    font-weight: 300;
    font-size: 18px;
    color: rgb(47, 47, 47);
    text-align: center;
    line-height: 1.5;
    text-shadow: -5px -5px 10px rgba(0, 0, 0, 0.3);
    -moz-transform: matrix( 0.82242513512516,0,0,0.82242513512516,0,0);
    -webkit-transform: matrix( 0.82242513512516,0,0,0.82242513512516,0,0);
    -ms-transform: matrix( 0.82242513512516,0,0,0.82242513512516,0,0);
    transform: scale(0.8);
}

#second_block div p strong{
    font-weight: 600;
}

#third_block{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    row-gap: 30px;
    column-gap: 20px;
    max-width: 780px;
    margin: 0 auto 150px auto;
}

#third_block h2{
    width: 100%;
    text-align: center;
    margin-top: 100px;
    font-size: 30px;
    color: rgb(56, 63, 71);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: -8px -5px 9px rgba(0, 0, 0, 0.3);
}

#third_block div{
    display: grid;
    grid-template: 1fr 50px 45px / 1fr;
    align-items: center;
    justify-items: center;
    border-width: 2px;
  border-color: rgb(188, 188, 188);
  border-style: solid;
  background-color: rgb(246, 246, 246);
  box-shadow: -4px -4px 8px 0px rgba(0, 0, 0, 0.35);
  width: 174px;
  height: 225px;
  cursor: pointer;
}


@media (max-width:799px){
    #third_block{
    margin: 50px auto 0 auto;
    }
    
    #third_block h2{
    margin-top: 0;
   }
   
   #third_block div{   
  max-width: 200px;
  width: 90%;
  height: 250px;
}
}

#third_block div:hover{
  border-width: 2px;
  border-color: rgb(232, 169, 55);
  border-style: solid;
}

#third_block div::before{
content: " ";
display: block;
border: 3px #e8a937 solid;
position: absolute;
width: 45px;
left: 10px;
top: -6px;
}

/*#third_block div:hover::before{
 width: 22px;
 height: 22px;
background-color: #e8a937;
opacity: 0.5;
z-index:2;
}*/

#third_block div a.to_page{ 
  display: flex;
  justify-self: end;
  border-width: 2px;
  border-color: rgb(232, 169, 55);
  border-style: solid;
  background-color: rgb(255, 255, 255);
  box-shadow: 0px -4px 5px 0px rgba(0, 0, 0, 0.3);
  width: 93px;
  height: 25px;
  text-decoration: none;
  font-size: 11px;
  color: rgb(32, 39, 40);
  line-height: 1.2;
  justify-content: center;
  align-items: center;
  margin-right: 7px;
  font-weight: 600;
}

#third_block div a.to_page:hover{ 
    background-color: #eee;
}

#third_block div img{
    max-height: 123px;
    max-width: 174px;
}

#third_block div p{
   font-weight: 600;
   text-align: center;
}

#text,.text_page{  
  margin: 0 auto;
  padding: 60px 25px;
  border-width: 4px;
  border-color: rgb(255, 255, 255);
  border-style: solid;
  border-radius: 5px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 18px 43.7px 2.3px rgba(0, 0, 0, 0.3);
  width:80%;
  max-width: 768px;
  min-height: 456px;
  z-index: initial;
 }
 
 #text{
       margin-bottom: 400px;
 }
 
 #text ol{
       margin-left: 30px;
       margin-top: 10px;
 }
 
 .map-in-contacts{
     height: 400px;
 }
  .text_page{
     margin-top: 90px;
     min-height: auto;
    
  font-size: 18px;
  color: rgb(16, 27, 34);
  font-weight: 400;
  background: rgba(255,255,255,0.98);
  }
  
  .text_page .text{
     width:69%;
     margin: 0 auto;
  }
 
   .text_page h1{
   margin-top:0;
   margin-bottom: 40px;
  font-size: 34px;
  width: 100%;
  color: rgb(38, 78, 104);
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  -moz-transform: matrix( 0.89,0,0,0.89,0,0);
  -webkit-transform: matrix( 0.89,0,0,0.89,0,0);
  -ms-transform: matrix( 0.89,0,0,0.89,0,0);
  transform: scale(0.89,0.89);



 }
 
 
 /* Отступы для заголовков внутри блока с классом "text" */
.text h1, .text h2, .text h3 {
    margin-top: 20px; /* Отступ сверху */
    margin-bottom: 20px; /* Отступ снизу */
  
}

/* Отступ первого символа абзаца */
.text p::first-letter {
    margin-left: 0; /* Отступ первого символа */
}

.text p{
    margin-top:5px;
}
.text .info{
      position: relative;
  font-size: 18px;
  color: rgb(134, 137, 140);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
  margin-top:-10px;
}
/* Отступы для списков */
.text ul, .text ol {
    margin-left: 20px; /* Отступ слева */
    margin-top: 10px; /* Отступ сверху */
    margin-bottom: 10px; /* Отступ снизу */
}
 
 @media (max-width:799px){
     #text,.text_page{  
min-height: auto;


 }
 
 .text_page{
  margin-top: 10px;
  padding: 15px 15px;
 }
 .text_page h1{
     margin-top:10px;
 }
   .text_page .text{ width:90%;  }
 }
 
 .text_page a{
     color:#497997;
 }
 
 #text::after{
     content: " ";
     border-width: 4px;
  border-color: #ff9609;
  border-style: solid;
  border-radius: 5px;
  background-color: #ff9609;
  box-shadow: -10px -10px 27px 2px rgba(0, 0, 0, 0.23);
  position: absolute;
  width: 291px;
  height: 201px;
  top: -50px;
  right: -106px;
  z-index: -1;
 }
 
 @media(max-width: 1030px){
     #text::after{
         display: none;
     }
 }
 
 
 #text h2{
     font-weight: 800;
     font-size: 24px;
     color: #000;
     margin-bottom: 50px;
 }
 
 #text p{
     margin-top: 25px;
     font-weight: 300;
     font-size: 15px;
     color: rgb(1, 1, 1);
     line-height: 1.25;
     
 }
 

 

 
 .about{
     width: 100%;
     margin-bottom: 20px;
    text-align: center;
    margin-top: 100px;
    font-size: 30px;
    color: rgb(56, 63, 71);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: -8px -5px 9px rgba(0, 0, 0, 0.3);
 }
 
 @media (min-width:800px){
 #text::before{
     content: " ";
    
  background-image: url("/img/bg_text.webp");
  background-repeat: no-repeat;
  position: absolute;
  width: 614px;
  height: 412px;
 bottom: -300px;
  left: -200px;
  z-index: -1;
 }
 }
 
 @media (min-width:800px){
 .contacts{     
     height: 414px;
   box-shadow: -5px -10px 16px 10px rgba(0, 0, 0, 0.2);  
 
 }

 #ya_map{
     position: absolute;
     width: 100%;
     height: 100%;
 }

 .adress{
  position: absolute;
  top:135px;
  right:60px;
  border-width: 4px;
  border-color: #838282;
  border-style: solid;
  border-radius: 4px;
  background-color: rgb(131, 130, 130);
  box-shadow: -5px -10px 16px 10px rgba(0, 0, 0, 0.4);
  width: 306px;
  height: 231px;
}
  }
.adress h4{
  font-size: 18px;
  font-weight: 400;
  color: rgb(1, 1, 1);
  line-height: 1.2;
  text-align: left;
  margin: 28px auto 20px 20px;
  border-bottom: 4px #d7bb66 solid;
  width: 184px;
  padding-bottom: 17px;
  padding-left: 10px;
}
.adress p{
   font-weight: 300;
   margin-left: 20px;
   color: #fff;
}

@media(max-width:799px){
     .contacts{
     display: flex;
     flex-direction: column-reverse;
     align-items: center;
    margin-top: 50px; 
    justify-content: space-between;
   box-shadow: -5px -10px 16px 10px rgba(0, 0, 0, 0.2);  
   height:450px;
   padding:10px 5px;
    }
   #text{
       margin-bottom: 70px;
   }


 .contacts #ya_map{
     width:100%;
     height:250px;
     
 }
 
  .adress{

  margin: 0 auto;
  border-width: 4px;
  border-color: #838282;
  border-style: solid;
  border-radius: 4px;
  background-color: rgb(131, 130, 130);
  width: 95%;
  max-width: 306px;
  height: 231px;
  margin-bottom: 5px;
}
}

 footer{
     display: flex;
     background: url("/img/horse.png") no-repeat;
     background-size: 100% 100%;
     aspect-ratio: 3 / 1;
     margin-top: 150px;
     justify-content: center;
     align-items: center;

 }
 
 footer div.footer {
     display: flex;
     justify-content: center;
     align-items: center;
  border-radius: 2px;
  background-color: rgba(0, 0, 0,0.4); 
  width: 97%;
  height: 90%;  
}

 .foot-content{
     width: 90%;
     height:90%;
  display: grid;
  grid-template: 90px 90px 1fr 1fr / repeat(4,1fr);
}

.foot_content_2_1{
    grid-row: 2/3;
    grid-column: 1/2;
    font-weight: 800;
    font-size: 18px;
    color: #165b7b;
    align-self: center;
   
}

.foot_content_2_1 span{
   font-weight: 400; 
}

.foot_content_3_1{
    font-family: "Avenir Next Cyr";
    font-weight: 600;
    font-size: 12px;
    line-height: 1.333;
    color: rgb(253, 253, 253);
    grid-row: 3/4;
    grid-column: 1/2;
    width: 250px;
}


.map_site_foot{
   grid-row:1/4;
   grid-column: 2/4; 
}

@media (max-width:900px)
{
  .map_site_foot{
      display: none;
  }
}

.map_site_foot ul{
    list-style: none;
}

.map_site_foot>ul{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    row-gap: 5px;
    height:100%;
}

.map_site_foot a{
    color: #f6f7f9; 
    text-decoration: none;
    font-weight: 600;
    font-size:14px;
}

.map_site_foot li ul{
    margin-left: 10px;


}

.map_site_foot li ul a{
        font-size: 12px;
}

.foot-info{
    grid-row:1/2;
    grid-column: 4/5;
}


.foot-info p{
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0px 16px 24.94px rgba(0, 0, 0, 0.18);
  
  
}


.foot-contacts{
    grid-row:2/4;
    grid-column: 4/5;
}

.foot-contacts a{
    display: flex;
    width: 30px;
    height: 30px;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
  }

.foot-contacts a img{
    width: 30px;
    height: 30px;
}


@media (max-width:900px){
    .foot-contacts{
    grid-row:1/3;
    grid-column: 2/4;
    margin-left: 10px;
    }
}


.foot-contacts p{
white-space: nowrap;
}

.foot-contacts h6 {
  font-size: 18px;
  color: rgb(56, 88, 119);
  font-weight: bold;
  line-height: 1.2;
  text-align: left;
  margin-bottom: 27px;
}

.foot-tel{
    background: url("/img/phone1.png") center left no-repeat;
    padding-left: 25px;
  font-size: 16px;
  font-weight: 600;
  color: rgb(253, 253, 253);
  line-height: 1.2;
  text-align: left;
}

.foot-mail{
    background: url("/img/mail.png") center left no-repeat;
    padding-left: 25px;
  font-size: 18px;
  color: rgb(253, 252, 252);
  font-weight: bold;
  line-height: 1.2;
  text-align: left;
  margin-top:27px;
}

@media(max-width:1000px){
   .foot-mail{
  margin-top:0;
} 
.foot-contacts h6 {margin-bottom: 10px;}
}

@media (max-width:480px){
    .foot-contacts{
    display: flex;
    flex-direction: column;
    justify-content: start;
    column-gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    grid-row:2/5;
    grid-column: 2/5;
    }
.foot-contacts h6 {
    display:none;
}

.foot-mail{
    margin-top:10px;
}

.foot-info{
    grid-row:1/2;
    grid-column: 2/5;
}

}


@media only screen and (max-width:900px){
    .foot_content_3_1{display:none;}
}


@media only screen and (max-width:600px){
    footer{
    
     background: url("/img/horse_434.png") no-repeat;
     background-size: 100% 100%;
     aspect-ratio: 1.4 / 1;
     margin-top: 100px;
   
 }
}

.popup_bg{
    display: block;
    position: fixed;
    background: #000;
    opacity: 0.5;
    width: 100%;
    height: 100vh;
    left:0;
    top:0;
    overflow-y: auto;
    
}

#popup1{
       z-index: 100; 
       display: none;
}

.popup{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  position: fixed;
  border-width: 1px;
  border-color: rgb(163, 169, 172);
  border-style: solid;
  border-radius: 15px;
  background-color: rgb(255, 255, 255);
  left:50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 661px;
  height: 391px;
  z-index:101;

}

.left-popup{ 
  background-color: #497997;
  border-radius: 20px;
  width: 372px;
  height: 352px;

}

@media (max-width:799px){
    .popup{width:99%;}
    .left-popup{display:none;}
}

.right-popup{
    align-self: start;
    padding-top: 35px;
}

.right-popup .result-block {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black;
    font-weight: bold;
}
 .result-block .circle {
    width: 100px;
    height: 100px;
    background-color: green;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-popup .message {
    margin-top: 10px;
    width:200px;
}

.h_popup{
  font-weight: 600;
  font-size: 14px;
  color: rgb(77, 110, 142);
  line-height: 1.2;
  margin-bottom: 21px;
}
.right-popup input{
  display: block;
  border-width: 2px;
  border-color: rgb(51, 102, 153);
  border-style: solid;
  border-radius: 12px;
  background-color: rgb(253, 253, 253);
  width: 210px;
  height: 28px;
  margin-bottom: 15px;
  outline: none;
  padding-left: 13px;
    font-size: 14px;
  color: rgb(104, 104, 104);
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width:799px){
   .right-popup input{ caret-color: transparent;}
}

.popup .error{
    color: red;
    margin-bottom: 10px;
    display: none;
    font-size: 13px;
    max-width: 200px;
}

.popup .border-red{
    border: 2px #b00 solid;
}
@media (max-width: 799px)
{
.popup .popup_border_focus{
    border: 2px #000 solid;
}
}
.right-popup button{
   border-width: 2px;
  border-color: #497997;
  border-style: solid;
  border-radius: 7px;
  background-color: #497997;
  width: 227px;
  height: 32px; 
  text-align: left;
  padding-left: 13px;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  margin-top: 10px;
}
.right-popup .agreement{
  display: block;
  width: 227px;
  font-size: 10px;
  color: rgb(106, 89, 36);
  line-height: 1.4;
  text-align: left;
  margin-top: 10px;

}

.number_phone{
    display: inline-block;
    background: url(/img/phone1.png) no-repeat;
    background-size: auto 90%;
    padding-left: 15px;
    font-weight: 600;
    font-size: 12px;
    color: rgb(77, 110, 142);
    line-height: 1.2;
    margin-top: 20px;
}

.email_popup{
    background: url("/img/mail.png") left no-repeat;
    background-size: auto 12px;
    font-size: 14px;
    color: rgb(77, 110, 142);
    font-weight: 600;
    padding-left: 20px;
    margin-top: 15px;
    margin-bottom: 5px;
}

.left-popup .h_popup{
    
    font-size: 16px;
    color: rgb(253, 252, 251);
    font-weight: 600;
    line-height: 1.6;
    margin: 20px auto auto 20px;
    margin-left: 20px;
    -moz-transform: matrix( 1.3,0,0,0,0,0);
    -webkit-transform: matrix( 1.3,0,0,0,0,0);
    -ms-transform: matrix(1.3,0,0,0,0,0);
    transform: scale(1.3,1);
    width: 140px;
    margin-left: 45px;
    padding-bottom: 10px;
    border-bottom: 4px #d7bb66 solid;
}

.left-popup .info_popup{
    display: block;
    color: #fff;
    width:90%;
    margin: 0 auto;
    position: relative;
    top: 50%;
    font-size: 16px;
    font-weight: 400;
}

.popup_close{
    width:20px;
    height:20px;
    position: absolute;
    right:10px;
    top:10px;
    z-index: 110;
}

.button-phone{
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 90px;
    right: 90px;
    cursor: pointer;
   
}

.button-phone .b_rotate{
    display: flex;
    justify-content: center;
    align-items: center;
     background: #0fbf0f;
    border-radius: 35px;
    width: 70px;
    height: 70px;

     animation: drabble_rotate 2s ease-out;
animation-iteration-count: infinite;
-webkit-animation: drabble_rotate 2s ease-out;
  animation-iteration-count: 1;
-webkit-animation-iteration-count: infinite;
}

.button-phone .b_rotate:hover{
-webkit-animation: none;
animation: none;
}
.button-phone div:first-child{
position: absolute;
right: 90px;
white-space: nowrap;
padding: 9px 13px;
font-size: 15px;
border-radius: 3px;
-webkit-transform: translateX(0%) translateY(-50%);
transform: translateX(0%) translateY(-50%);
top: 50%;
background: #292929;
color: #fff;
opacity: .85;
-webkit-transition: all 0.1s linear;
transition: all 0.1s linear;

}

.button-phone div:first-child::after{
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        border: solid transparent;
        border-top-width: medium;
        border-right-width: medium;
        border-bottom-width: medium;
        border-left-color: transparent;
        border-left-width: medium;
        border-width: 10px;
        top: 50%;
        right: -20px;
        transform: translateY(-50%);
border-left-color: #292929;
}

@media only screen and (max-width:1199px){
    .button-phone div:first-child,.button-phone div:first-child::after{display:none;}
    .button-phone{right: 40px;bottom:160px;}
    
}

@-webkit-keyframes drabble_rotate {
 0% {
  -webkit-transform:rotate(0deg) scale(1);
  transform:rotate(0deg) scale(1)
 }
 25% {
  -webkit-transform:rotate(10deg) scale(1.1);
  transform:rotate(10deg) scale(1.1)
 }
 50% {
  -webkit-transform:rotate(0deg) scale(1);
  transform:rotate(0deg) scale(1)
 }
 70% {
  -webkit-transform:rotate(-10deg) scale(1.1);
  transform:rotate(-10deg) scale(1.1)
 }
 100% {
  -webkit-transform:rotate(0deg) scale(1);
  transform:rotate(0deg) scale(1)
 }
}
@keyframes drabble_rotate {
 0% {
  -webkit-transform:rotate(0deg) scale(1);
  transform:rotate(0deg) scale(1)
 }
 25% {
  -webkit-transform:rotate(10deg) scale(1.1);
  transform:rotate(10deg) scale(1.1)
 }
 50% {
  -webkit-transform:rotate(0deg) scale(1);
  transform:rotate(0deg) scale(1)
 }
 70% {
  -webkit-transform:rotate(-10deg) scale(1.1);
  transform:rotate(-10deg) scale(1.1)
 }
 100% {
  -webkit-transform:rotate(0deg) scale(1);
  transform:rotate(0deg) scale(1)
 }
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    /* Центрируем содержимое по вертикали */
    display: flex;
    align-items: center;
    justify-content: center;
}

#cookie-banner.hidden {
    display: none;
}

/* Стилизация кнопки */
#cookie-banner button {
    margin-left: 10px;
    border-radius: 5px; 
    font-size: 1em; 
    padding: 10px 20px; 
    cursor: pointer; 
    transition: all .3s ease-in-out; 
    outline: none; 
    box-shadow: 0 2px 5px rgba(0,0,0,.2); 
    color: black; 
    background-color: white; 
    border: 2px solid white; 
}

#cookie-banner button:hover,
#cookie-banner button:focus {
    transform: scale(1.05); 
    opacity: 0.9; 
}

.pictures{
    display: flex;
    flex-wrap: wrap;
    width:100%;
    justify-content: space-between;
    row-gap: 25px;
}
.pictures div{
    box-shadow: 0px 8px 13px 0px rgba(0, 0, 0, 0.3);
    width:30%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 10px;
    background-color: #fff;
    z-index:5;
    opacity: 1;
}
.pictures div h2{
   margin-top: 5px;
   margin-bottom: 5px;
   align-self: start;
   width:90%;
}
.pictures img{
    max-width: 90%;
    max-height: 130px;
    margin-bottom: 5px;
    cursor: pointer;
}

@media only screen and (max-width:740px){
    .pictures img{
    max-height: 90px;
    }
    .pictures div{
     width:45%;
}
}

@media only screen and (max-width:400px){
    .pictures div{
     width:95%;
}
}