/**************************************************************************************************/
/* ОБЩЕЕ ФОРМАТИРОВАНИЕ */

* { margin: 0px; 
    padding: 0px;
    box-sizing: border-box;                                                                         /* включения в качестве состаляющей части блочного элемента всех значений свойств width и height рамки и  отступов */
    font-size: 16px;
}

/* ОБЩЕЕ ФОРМАТИРОВАНИЕ */
/**************************************************************************************************/


/**************************************************************************************************/
/* Первая полоса с адресом */
 .wrapper{
    background-color: #272727;
    color: white;
    display: flex;
    flex-flow: row wrap;
}

@media (min-width: 1024px){ 
.wrapper{
    padding-left: 15%;
    padding-right: 15%;   
}}

.wrapper > div{
    padding: 10px 50px;
    font-size: 20px;
}

.wrapper > div:nth-child(2){
    margin-right: auto;
}

.wrapper img{
    margin-right: 10px;
}
/* Первая полоса с адресом */
/**************************************************************************************************/


/**************************************************************************************************/
/* background для меню */
html, body, .wrapper_2{
    height: 100%;
}
@media (min-width: 1024px){
    .wrapper_2{
    height: 100%;
}}
@media (max-width: 1023px){
    .wrapper_2{
    height: 50%;
}}

.wrapper_2{
    background-image: url(./pictures/moscow-city.jpg);
    background-size: cover;
}
/* background для меню */
/**************************************************************************************************/


/**************************************************************************************************/
/* Панель навигации*/
.wrapper_2_2{
    display: flex;
    flex-flow: row wrap;
    padding-top: 1%;
}

@media (min-width: 1024px){
    .wrapper_2_2{
        padding-left: 15%;
        padding-right: 15%;
}}

.wrapper_2_2 img, .wrapper_2_2 h1{
    display: inline-block;
    margin-right: 20px;
    font-size: 30px;
}

.wrapper_2_2 h1{
    margin-left: 30px;
}

.wrapper_2_2 > div{
    padding: 10px 50px;
    font-size: 30px;
    font-weight: 600;
}

.wrapper_2_2 > div:nth-child(2){
    margin-right: auto;
    font-weight: 400;
}

.first_menu a{
    display: inline-block;
    font-size: 25px;
    color: white;
    text-decoration: none;
    padding: 0 15px;
}
/* Панель навигации*/
/**************************************************************************************************/


/**************************************************************************************************/
/* Анимация основного заголовка */
.wrapper_2_2 h1{
    animation-name: first_animation;
    animation-duration: 5.0s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes first_animation{
    0% {transform: scale(1); color: black; box-shadow: 0 0 0 0 rgba(255,255,255,.3); background-color: transparent; border-radius: 0px; }
    10% {transform: scale(1); color: black; box-shadow: 0 0 0 0 rgba(255,255,255,.3); background-color: transparent; border-radius: 0px; }
    50% {transform: scale(1.75); color: white; box-shadow: 0 0 10px 10px rgba(255,255,255,.3); background-color: rgba(255, 255, 255, 0.4); border-radius: 5px; }
    90% {transform: scale(1); color: black; box-shadow: 0 0 0 0 rgba(255,255,255,.3); background-color: transparent; border-radius: 0px; }
    100% {transform: scale(1); color: black; box-shadow: 0 0 0 0 rgba(255,255,255,.3); background-color: transparent; border-radius: 0px; }
}


/* Анимация основного заголовка */
/**************************************************************************************************/


/**************************************************************************************************/
/* Кнопка Проекты */
.main_button{
    width: 500px;
    margin: 10% auto auto auto;
    background-color: rgba(255, 230, 20, 0);
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 3s, color 3s, transform 3s linear 1s;
    font-size: 70px;
    color: white;
}

.main_button:hover{
    background-color: rgba(0, 132, 211, 0.6);
    color: black;
    transform: scale(2.25);
}

body{
    overflow-x: hidden;                                                                                 /* не позволяет расширяться области просмотра при сильном увеличении кнопки при запущенной трансформации */
}

.wrapper_2 :last-child{
    text-decoration: none;
}
/* Кнопка Проекты */
/**************************************************************************************************/


/**************************************************************************************************/
/* Наши услуги (название)*/
.our_services_string{
    margin: 50px;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

.our_services_string :nth-child(1){
    width: 100px;
    height: 4px;
    border: 2px solid orange;
    margin: 0 auto 20px auto;
    
}
.our_services_string :nth-child(2){
    font-size: 2em;
    font-weight: 600;
    margin: 0 auto 0 auto;
    text-transform: uppercase;
}

/* Наши услуги */
/**************************************************************************************************/


/**************************************************************************************************/
/* Список услуг с кнопками */
@media (min-width: 1024px){ 
.our_services{
    margin-left: 15%;
    margin-right: 15%;     
}}
.our_services{
    padding: 0 50px 50px 50px;
}

.our_services_buttons{
    display: flex;
    flex-flow: row wrap;
}

.div_with_button{
    display: flex;
    margin-top: 30px;
    flex: 1 0 550px;
}


.my_text{
    margin: 10px 20px;
    flex: 1 0 400px;
}
.my_text h6{
    font-size: 1.5em;
}
.my_text :last-child{
    margin-top: 10px;
    font-size: 1.25em;
}

.button{
    width: 100px;
    height: 100px;
    background-color: orange;
    border-radius: 50px;
    flex: 0 0 100px;
}
.first{
    background-image: url(./pictures/office.png);
    background-repeat: no-repeat;
    background-size: 70px 70px;
    background-position: 50% 50%;
}
.second{
    background-image: url(./pictures/forest.png);
    background-repeat: no-repeat;
    background-size: 70px 70px;
    background-position: 50% 50%;
}
.third{
    background-image: url(./pictures/house-repair.png);
    background-repeat: no-repeat;
    background-size: 70px 70px;
    background-position: 50% 50%;
}
.fourth{
    background-image: url(./pictures/monument.png);
    background-repeat: no-repeat;
    background-size: 70px 70px;
    background-position: 50% 50%;
}
/* Список услуг с кнопками */
/**************************************************************************************************/


/**************************************************************************************************/
/* Наша история */
.wrapper_history{
    padding-bottom: 50px;
}

@media (min-width: 1024px){ 
.wrapper_history{
    padding-left: 15%;
    padding-right: 15%;   
}}

.wrapper_history_internal h5{
    font-size: 1.5em;
    margin-bottom: 10px;
}

.wrapper_history_internal p{
    font-size: 1.25em;
}

.wrapper_history_internal > div{
    margin: 10px 50px;
}

.wrapper_history_internal div img{
    width: 100%;
}

.wrapper_history_internal{
    display: flex;
    flex-flow: row wrap;
}

.wrapper_history_internal :nth-child(1){
    flex: 3 3 480px;
}

.wrapper_history_internal :nth-child(2){
    flex: 1 1 480px;
}
/* Наша история */
/**************************************************************************************************/


/**************************************************************************************************/
/* Наша история. Анимация. */
.wrapper_history_internal :nth-child(2) img{
    animation-name: photo_move;
    animation-duration: 7s;
    animation-timing-function: linear;
}

@keyframes photo_move{
    0% {transform: scale(1); opacity: 0.0;}
    50% {transform: scale(1.25)}
    100% {transform: scale(1); opacity: 1.0;}
}
/* Наша история. Анимация. */
/**************************************************************************************************/