@import url(https://fonts.googleapis.com/css?family=Roboto+Slab:400,300|Open+Sans:400,700&subset=latin,cyrillic,cyrillic-ext);

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14;
	background-color: rgb(223, 223, 223);
    color: #333333;
    margin: 0 auto;
    width: 800px;
}

a {
    color: #229ED9;
    font-size: 16;
    font-weight: 500;
    text-decoration: none;
}

main {
    background-color: white;
    padding: 5;
}

header {
    background-color: #229ED9;
    color: white;
    padding: 10;
    margin: 10px 0px 0px 0px;
    text-align: center;
    border-radius: 15px 15px 0px 0px;
}

footer {
    background-color: #FFFFFF;
    color: #8C8C8C;
    border-top: 1px solid rgb(223, 223, 223);
    padding: 5;
    margin: 0px 0px 10px 0px;
    text-align: center;
    border-radius: 0px 0px 15px 15px;
}



h1 {
    font-size: 40px;
    font-weight: 600;
    color: #229ED9;
    text-align: center;
}

h2 {
    font-size: 35px;
    font-weight: 500;
    color: #229ED9;
}


h3 {
    font-size: 30px;
    font-weight: 500;
    color: #229ED9;
}

.main_text {
    width: 620px;
    padding: 3px;
    white-space: pre-wrap; /* чтобы отображать переносы строк*/
    margin: 15px auto; /* чтобы div был по центру */
}

/* контейнер для вписания аватарок */    
.pic_avatar_1 {
    width: 150px;
    height: 150px;
}
.pic_avatar_1 img {
    width: 100%;
    object-fit: scale-down;
}

img.avatar_1 {
    border-radius: 15px;
}

.pic_avatar_2 {
    width: 50px;
    height: 50px;
    float: left;
    margin: 0px 5px 0px 0px ;
}
.pic_avatar_2 img {
    width: 100%;
    object-fit: scale-down;
}

img.avatar_2 {
    border-radius: 5px;
}

.head_info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line_button_to_app {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /*border: 1px solid hsl(110, 73%, 49%);*/
}

.button_to_app {
    width: 270px;
    height: 100px;
    border: 1px solid #229ED9;
    border-radius: 10px;
    margin: 5px;
    padding: 10px;
}

.header_button_to_app {
    display: flex;
    flex-direction: row;
}




.big_button {
    text-align: center;
}

.big_button button {
    background-color: #229ED9;
    color: white;
    font-size: 16;
    font-weight: 500;
    border: none;    
    padding: 10px 10px;
    margin: 3px;
    cursor: pointer;
    border-radius: 5px;
}

.tg_icon {
    width: 35px;
    height: 35px;
}

.tg_icon img {
    width: 100%;
    object-fit: scale-down;
}


.tg_icon_2 {
    width: 20px;
    height: 20px;
    vertical-align: bottom;
    display: inline-block; /* чтобы не переносились на новую строку при наличии места */
    /*border: 1px solid hsl(110, 73%, 49%);*/
}

.tg_icon_2 img {
    width: 100%;
    object-fit: scale-down;
}


/* ============================================================ */

.page_menu {
    border: none;
    margin: 0 auto; /*  для центрирования  */
}


.page_menu a {
    text-decoration: none;
    color: black;
    font-size: 14;
    display: inline-block; /* для того чтобы кнопка была шириной с надпись */
    border: 1px solid #229ED9; /* Параметры границы */
    border-radius: 5px;
    
    padding: 8px 10px;
    margin: 0px;
    font-weight: 500;
    
}

.page_menu a:hover {
    color: white;
    background-color: #229ED9;
    border-radius: 10px;
}

.page_menu .selected {
    color: white;
    display: inline-block; /* для того чтобы кнопка была шириной с надпись */
    background-color: #229ED9;
    border: 1px solid #229ED9; /* Параметры границы */
    border-radius: 5px;
    
    padding: 8px 10px;
    margin: 0px;
    font-weight: 500;
    
}

/* ============================================================ */


.adv_goriz_niz {
    width:  620px;
    height: 115px;
    margin: 7px;
    margin: 0 auto; /*  для центрирования  */
}

@media screen and (max-width:1050px) {
    /* ----    максимальная  ширина экрана 1050  --------------------------------------------------------- */


body {
    width:97%;
}

.main_text {
    width: 90%;
}

.line_button_to_app {
    flex-direction: column;
}

.button_to_app {
    width: 93%;
}

.adv_goriz_niz {
    width:  90%;
}

}