@font-face {
  font-family: 'SF-Pro'; /* Имя, под которым шрифт будет доступен в CSS */
  src: url('fonts/SF-Pro-Display-Regular.otf') format('opentype'); /* Путь к файлу и указание формата */
}

@font-face {
  font-family: 'SF-Pro-Italic'; /* Имя, под которым шрифт будет доступен в CSS */
  src: url('fonts/SF-Pro-Display-LightItalic.otf') format('opentype'); /* Путь к файлу и указание формата */
}

@font-face {
  font-family: 'Cunia'; /* Имя, под которым шрифт будет доступен в CSS */
  src: url('fonts/cunia.otf') format('opentype'); /* Путь к файлу и указание формата */
  font-weight: normal; /* Начертание (normal, bold и др.) */
  font-style: normal; /* Стиль (normal, italic) */
}

@media (min-width: 640px) {
html, body{
    padding: 0;
    margin: 0;
    font-family: "SF-Pro", serif;
    font-weight: normal;
    color: #6a6b3f;
    position: relative;
    font-size: 16px;
}

a{
    text-decoration: none;
    color: #6a6b3f;
}

a:hover{
    text-decoration: underline;
}

.container{
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

header{
    white-space: nowrap;
    position: fixed;
    max-width: 1200px;
    z-index: 500;
    top: 0;
    background-color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    }

h1, h2{
    text-align: center;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
    font-weight: normal;
    font-family: "Cunia", serif;
    color: #383f4f;
    font-size: 28px;

}

.head{
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.head a{
    margin-top: 0px;
    width: 20%;
    min-width: 150px;
}

.head img{
    width: 100%;
}

.head div{
    width: 80%;
}
  
main{
    position: relative;
    top: 110px;
    z-index: 100;
    padding-left: 5px;
    padding-right: 5px;
}

.title{
    text-align: center;
    font-size: 28px;
}

.title_mobile{
    display: none;
}

.desktop ul{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.desktop li{
    margin: 0px 10px;
    list-style-type: none;
}

.mobile{
    display: none;
}

.slogan{
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    height: 350px;
    background-image: url('img/fon_1.jpg');
    background-size: 100%;
    border-radius: 5px;
}

.slogan h2{
    margin: 50px;
    font-family: "SF-Pro-Italic", cursive;
    text-align: center;
    color: white;
}

.links{
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    align-items: center;

}

.link{
    margin: 12px;
}

.link img{
    width: 33px;
}

.contacts{
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 18px;
}

.contacts a:hover{
    text-decoration: none;
}

.contact{
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: white;
}

.contact img{
    width: 30px;
    margin: 7px;
}

.application{
    margin: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.application:hover{
    background-color: rgba(255, 255, 255, 1.0);
    text-decoration: none;
}

.application p{
    margin: 15px;
    font-size: 20px;
}

.services{
    scroll-margin-top: 80px;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
    height: 450px;
    background-image: url('img/fon_2.jpg');
    background-size: 100%;
    margin-top: 40px;
    border-radius: 5px;
}

.services h2{
    margin-top: 50px;
    color: white;
}

.services ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.services img{
    width: 50px;
}

.services p{
    margin-left: 20px;
    font-size: 20px;
}

.services li{
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style-type: none;
    margin: 2%;
    width: 25%;
    
}

.info{
    scroll-margin-top: 80px;
    margin: 30px 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.info_img{
   width: 30%;
}

.info_img img{
   width: 100%;
   border-radius: 5px;
}

.underline:hover{
    cursor: pointer;
    text-decoration: underline;
}

.about{
    margin: 3%;
    width: 57%;
    font-size: 17px;
}

.portfolio{
    scroll-margin-top: 120px; 
    margin-top: 70px;
}

.portfolio h2{
    text-align: center;
}


.pro_info{
    width: 270px;
    padding-left: 30px;
    display: flex;
    align-items: center;
}

.pro_info p{
    margin-left: 15px;
    font-size: 19px;
    color: black;
}

.pro_info:hover{
    text-decoration: none;
}

.pro_info img{
    width: 30px;
}

.pro_block{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.pro_block p{
    text-align: left;
}

.pro_block_a:hover{
    text-decoration: none;
}

.pro_block img{
    margin-right: 35px;
    width: 300px;
}

.portfolio_v2{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;

}

.pro_block_v2{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.pro_block_v2 img{
    margin: 0;
    width: 100%;
}

.city h2{
    text-align: center;
}

.lecture{
    scroll-margin-top: 120px;
    margin-top: 30px;
}

.lecture img{
    border-radius: 5px;
}

.lecture h2{
    text-align: center;
}

.example{
    margin-top: 30px;
    scroll-margin-top: 80px;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*background-color:#e9f5ec;
    border-radius: 5px;*/
}

.example h2{
    text-align: center;
    margin: 40px;
 }


.example_block{
    display: flex;
    align-items: center;
}

.example_block span{
    color: #383f4f;
}

sup{
    font-size: 12px;
}

.video{
    display: flex;
    align-items: center;
    font-size: 22px;

}

.video img{
    width: 80px;
    margin-right: 20px;
}

.excursion{
    scroll-margin-top: 80px;
}

.excursion img{
    border-radius: 5px;
}


.application_block{
    scroll-margin-top: 80px;
    position: relative;
    margin-top: 55px;
    padding-top: 35px;
    background-image: url('img/fon_3.jpg');
    background-size: 100%;
    border-radius: 5px;
    color: white;
    height: 415px;
}

#contactForm{
    font-size: 19px;
    max-width: 400px;
    margin-top: 150px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.form-group{
    width: 400px;
    margin: 15px;
}
#phone{
    height: 30px;

}


#phone, #message{
    width: 400px;
    border-radius: 7px;
    font-size: 17px;
}

#submit{
    height: 40px;
    width: 300px;
    margin: 15px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 7px;
    font-size: 19px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9);
}

#submit:hover{
    background-color: rgba(255, 255, 255, 1);;
}

#formMessage{
    text-align: center;
    height: 40px;
    font-size: 19px;
}

.personal_data{
   margin-top: 0px;
   margin-bottom: 0;
}

.personal_data a{
    font-size: 14px;
    color:rgba(255, 255, 255, 0.8);
}

.links_footer{
    position: absolute;
    left: 20px;
    bottom: 30px;
    display: flex;
    align-items: center;

}

.link_footer{
    margin: 12px;
}

.link_footer img{
    width: 33px;
}

.contacts_footer{
    position: absolute;
    right: 20px;
    bottom: 40px;
    display: flex;
    align-items: center;
    font-size: 18px;
}

.contacts_footer a:hover{
    text-decoration: none;
}

.contact_footer{
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: white;
}

.contact_footer img{
    width: 30px;
    margin: 7px;
}

.city{
    margin: 20px;
}

.privat_p{
    margin: 20px 30%;
    font-size: 18px;
}


.city_img{
    margin-top: 50px;
}

.city_img h2{
    text-align: center;
    font-size: 25px;
}

.city_img h3{
    text-align: center;
    font-size: 20px;
}

.city_img p{
    margin: 10px;
    text-align: left;
    font-size: 18px;
}

.city_img img{
    max-width: 100%;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.image h2{
    text-align: center;
}

.footer_index{
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.footer_index p{
text-align: center;
}

.footer{
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.footer p{
text-align: center;
}

/*-------------------------------------------------*/
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.thumbnail {
  width: auto;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#expanded-img {
  margin-top: 5%;  
  margin-left: 5%;
  margin-right: 5%;  
  max-height: 80%;
  width: 90%;
  /*width: auto;*/
  height: auto;
  object-fit: contain; /* Ключевое свойство */
  /*border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);*/
}

.diplom {
    cursor: pointer;
}

#diplom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 900;
}

#diplom-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    z-index: 800;
}

}

                            /*-------------------------------------------------------------------------------*/
                            /*-------------------------------------------------------------------------------*/
                            /*-------------------------------------------------------------------------------*/

@media (min-width: 770px) and (max-width: 1000px) {

body{
    font-size: 15px;
}  

.head img{
    width: 20%;
    min-width: 150px;
}

.title{
    font-size: 23px;
}

h1,h2{
    font-size: 24px;
}

.application p{
    font-size: 18px;
}

.info{
    margin: 10px;
}

.info_img{
   width: 35%;
}

.info_img img{
   width: 100%;
}

.about{
    margin: 5%;
    width: 58%;
    font-size: 14px;
}

.services{
    height: 400px;
    margin-top: 20px;
    border-radius: 5px;
}

.services h2{
    margin-top: 50px;
    color: white;
}

.services ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.services img{
    width: 45px;
}

.services p{
    margin-left: 15px;
    font-size: 17px;
}


.video{
    font-size: 16px;
}

.video img{
    width: 60px;
    margin-right: 20px;
} 

.city_img h2{
    font-size: 22px;
}

.city_img h3{
    font-size: 18px;
}

.city_img p{
    font-size: 16px;
}

}

@media (min-width: 640px) and (max-width: 770px) {

body{
    font-size: 14px;
}  

.head img{
    width: 18%;
    min-width: 80px;
}

.title{
    font-size: 18px;
}

h1,h2{
    font-size: 20px;
}

.application p{
    font-size: 18px;
}

.info{
    margin: 0px;
}

.info_img{
   width: 35%;
}

.info_img img{
   width: 100%;
}

.about{
    margin: 5%;
    width: 58%;
    font-size: 14px;
}

.services{
    height: 350px;
    margin-top: 20px;
    border-radius: 5px;
}

.services h2{
    margin-top: 50px;
    color: white;
}

.services ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.services img{
    width: 40px;
}

.services p{
    margin-left: 15px;
    font-size: 15px;
}


.video{
    font-size: 16px;
}

.video img{
    width: 60px;
    margin-right: 20px;
}

.city_img h2{
    font-size: 20px;
}

.city_img h3{
    font-size: 17px;
}

.city_img p{
    font-size: 15px;
}

}


@media (max-width: 640px){  /*-------------------------------------------------------------------------------*/
                            /*-------------------------------------------------------------------------------*/
                            /*-------------------------------------------------------------------------------*/

html, body{
    min-width: 360px;
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "SF-Pro", serif;
    font-weight: normal;
    color: #6a6b3f;
    position: relative;
    font-size: 15px;
    
}

a{
    text-decoration: none;
    color: #6a6b3f;
}

a:hover{
    text-decoration: none;
}

.container{
    width: auto;
    position: relative;
    
}


header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 75px;
    background-color: white;
    z-index: 800;
}

h1, h2{
    margin: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-family: "Cunia", serif;
    color: #383f4f;
}

h2{
    font-size: 19px;
}

.head img{
    width: 180px;
    margin: 5px;
}

  
main{
    z-index: 500;
    position: relative;
    width: 100%;
    top: 75px;
}

.title_mobile{
    font-size: 18px;
}

.title{
    display: none;
}

.desktop{
    display: none;
}

.menu_gamburger{
    z-index: 888;
    cursor: pointer;
    width: 55px;
    height: 50px;
    position: absolute;
    background-color: transparent;
    right: 30px;
    top: 10px;
}

.menu_gamburger div{
    z-index: 888;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: #6a6c40;
    margin-top: 10px;
}

.active #d1{
    z-index: 888;
    position: relative;
    transform: rotate(45deg);
    top:14px;
    left: 0px;
}

.active #d2{
    display: none;
}

.active #d3{
    z-index: 888;
    position: relative;
    transform: rotate(-45deg);
    top: 0px;
    left: 0px;
}

.menu_mobile{
    display: none;
    width: 100%;
    padding: 70px 0 20px 10px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    right: 0;
    top: 0;
    z-index: 880;
    border-radius:0 0 0 0px;
    padding-bottom: 30px;
}

.menu_mobile ul{
    margin: 30px;
}
.menu_mobile li{
    font-size: 20px;
    margin: 15px 10px;
    list-style-type: none;
}

.menu_mobile a{
    color: white;
}

.slogan{
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    height: 280px;
    background-image: url('img/fon_1_mobile.jpg');
    background-size: 100%;
}

.slogan h2{
    font-size: 19px;
    color: white;
    font-family: 'SF-Pro-Italic';
    font-weight: normal;
    
}

.links{
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;

    

}

.link{
    margin: 5px;
   
}

.link img{
    width: 30px;
}

.contacts{
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.contacts a:hover{
    text-decoration: none;
} 

.contact{
    font-size: 14px;
    margin: 7px;
    display: flex;
    align-items: center;
    color: white;
    
}

.contact img{
    width: 25px;
    margin-right: 7px;
}

.application{
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    background-color: white;
    border-radius: 6px;
}


.application p{
    font-size: 12px;
    margin: 5px;
}

.services{
    width: 100%;
    scroll-margin-top: 60px;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
    background-image: url('img/fon_2_mobile.jpg');
    background-size: 100%;
    margin-top: 15px;
        
}

.services h2{
    color: white;
    margin-top: 30px;
    margin-bottom: 0;
    font-size: 18px;
}

.services ul{
    padding-left: 3%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
}

.services img{
    width: 35px;
    margin-right: 7px;
}

.services p{
    font-size: 15px;
}

.services li{
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style-type: none;
    margin-top: 0;
    margin-bottom: 5%;
    width: 42%;

}

.info{
    scroll-margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.info_img{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 0px;;
    
   
}

.info_img img{
   width: 70%;
   border-radius: 5px;
}

.about{
    width: 92%;
    margin:  5px  4%;
    
}

.about a{
    text-decoration: underline;
}

.portfolio{
    scroll-margin-top: 80px;
    width: 100%;
    margin-top: 25px;
}

.underline{
    text-decoration: underline;
}




.pro_info{
    width: 70%;
    margin: 10px 10%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pro_info p{
    font-size: 16px;
    margin-left: 10px;
    
}

.pro_info img{
    width: 30px;
    
}

.pro_block{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
   
}

.pro_block p{
    width: 92%;
    margin: 4%;
} 

.mobile_none{
    display: none;
}


.pro_block img{
    width: 80%;
    margin: 5px 10%;
}

.portfolio_v2{
    margin-top: 25px;
}

.pro_block_v2{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.pro_block_v2 p{
    margin: 4px;
    font-size: 18px;
}

.pro_block_v2 img{
    width: 80%;
    margin: 0px 10%;
}

.lecture{
    scroll-margin-top: 80px;
    margin-top: 20px;
}

.lecture img{
    width: 80%;
    margin: 5px 10%;
}   

.lecture p{
    width: 90%;
    margin: 5px 5%;
} 

.example{
    width:100% ;
    
}


.example_slider img{
    width: 100%;
}

.example_block{
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.example_block span{
    font-size: 18px;
}

.video{
    display: flex;
    align-items: center;

}

.video img{
    width: 50px;
    margin-right: 10px;
}

.excursion img{
    width: 80%;
    margin: 5px 10%;
}

.excursion p{
    text-align: left;
    width: 90%;
    margin: 5px 5%;
} 

.application_block{
    width: 100%;
    margin-top: 30px;
    padding-top: 10px;
    background-image: url('img/fon_3_mobile.jpg');
    background-size: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contactForm{
    width: 100%;
    font-size: 17px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.form-group{
    width: 100%;
}

#phone{
    height: 30px;
}

#phone, #message{
    width: 80%;
    margin: 15px 0;
    margin-left: 9%;
    border-radius: 7px;
    font-size: 17px;
}

#submit{
    height: 40px;
    width: 70%;
    margin: 10px 15%;
    border-radius: 7px;
    font-size: 16px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9);
}

#submit:hover{
    background-color: rgba(255, 255, 255, 1);;
}

#formMessage{
    text-align: center;
    height: 20px;
    font-size: 19px;
    margin: 5px;
}

.personal_data{
   margin-top: 0px;
   margin-bottom: 0;
}

.personal_data a{
    font-size: 14px;
    text-decoration: underline;
    color:rgba(255, 255, 255, 0.8);
}

.links_footer{
    position: relative;
    display: flex;
    align-items: center;

}

.link_footer{
    margin: 12px;
}

.link_footer img{
    width: 33px;
}

.contacts_footer{
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.contacts_footer a:hover{
    text-decoration: none;
}

.contact_footer{
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: white;

}

.contact_footer img{
    width: 30px;
    margin: 7px;
}

.city{
    width: 90%;
    margin: 5%;
}

.privat_p{
    
}

.city_img{
   
}

.city_img h2{
    text-align: center;
}

.city_img h3{
   text-align: center;
}

.city_img p{
    width: 92%;
    margin: 4%;
}

footer{
    height: 40px;
}

footer p{
    text-align: center;
}

/*-------------------------------------------------*/
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.thumbnail {
  width: auto;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#expanded-img {
  margin-top: 20%;
  margin-left: 2%;
  margin-right: 2%;  
  max-height: 96%;
  width: 96%;
  height: auto;
  object-fit: contain; /* Ключевое свойство */
}


#diplom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 900;
}

#diplom-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 96%;
    max-height: 96%;
    z-index: 800;
}

}

