h5 {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 100%;
    color: #0B0014;
}


h2 {
    font-weight: 700;
    font-size: 3rem;
    line-height: 100%;
    color: #0B0014;
}


p {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 35px;
    color: #0B0014;
    margin-bottom: 0.4rem!important;
}

.company_header {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 1rem;
}


.company_header img {
    width: 10.6rem;
    height: 11.813rem;
}

.company_name {
    margin-left: 1.5rem;
}


.company_name h2 {
    font-weight: 700;
    font-size: 3rem;
    line-height: 100%;
    color: #0B0014;
}



.display_style {
    display: flex;
}

.history_text p {
    margin-bottom: 26px;
}

.title_style {
    font-weight: 700;
    font-size: 2rem;
    line-height: 100%;
    color: #0B0014;

}

.title_margin {
    margin-bottom: 2.75rem;
    margin-top: 3.188rem;
}

.img_width {
    width: 35rem ; 
    flex-shrink: 0;
}


.company_middle_img {
    height: 25.188rem; 
     /* Запрещает уменьшение контейнера */
}


.company_down_img {
    height: 16.625rem; 
    margin-right: 2.5rem;
}

.company_mission_up h5 {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 100%;
    color: #0B0014;
    margin-top: 1.25rem;
    margin-bottom: 1.625rem;
}




.images-style {
    width: 100%; /* Не больше контейнера */
    height: 100%; /* Не больше контейнера */
    object-fit: cover; /* Сжимает без обрезки */
}


.president-text {
    position: absolute;
    bottom: 0px;
    width: 100%;
    background: #F2F4F3; 
    color: black;
    padding: 10px;
    text-align: center;
    border-radius: 40px 40px 0 0; /* Закругляем верхние углы */
}

/* Делаем контейнер для изображения позиционированным */
.president_img {
    height: 38.875rem;
    position: relative;
    display: inline-block;
}



.news-title {
    max-width: 53.75rem;
    margin-top: 3.625rem;
    margin-bottom:5.563rem ;
}

.news-title h1 {
    font-weight: 700;
    font-size: 4rem;
    line-height: 100%;
    color: #0B0014;
}


.news-title-phone {
    display: none;
}

.seccond-title {
    margin-top: 8.75rem;
    margin-bottom: 3.563rem;
}

.goals-text {
    max-width: 34.875rem;
}

.goals-text p {
    line-height: 2rem; 
}


.stage-container {
    margin: 11.875rem 0;
}

.stage-container h3 {
    margin-bottom: 1rem;
}


.bi-dot {
    font-size: 3rem;       /* Увеличение размера иконки */
    vertical-align: middle;  /* Выравнивание по центру текста */
    margin-right: 10px;      /* Отступ между иконкой и текстом */
}
.middle-img {
    width: 28.688rem ; 
    flex-shrink: 0;
    height: 23.063rem;
    margin-right: 2.5rem;
}




.down-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* Два равных столбца */
    gap: 3.563rem; /* Расстояние между элементами */
    align-items: start; /* Выравнивание по верху */
    padding-bottom: 10rem;
}

.news-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
}

.news-down-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.restrictions p {
    display: flex;
    align-items: center;
}



.news-right {
    display: grid;
    grid-template-columns: 1fr; /* Одна колонка */
    grid-template-rows: repeat(2, auto); /* Два ряда */
    align-self: stretch;
    gap: 27px;
}

 img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Закругленные углы */
}


.restrictions-extra-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Два равных столбца */
    gap: 20px;
}

.restrictions {
    text-align: left; /* Выравниваем текст влево */
}

.extra-text {
    text-align: left; /* Выравниваем текст вправо */
    
}


.news-down-img-right {
    width: 100%;
    height: 23.813rem;
}


.news-down-img-left {
    margin-top: auto;
    width: 100%;
    height: 32.813rem;
}


.d-phone {
    display: none;
}

.d-big-phone {
    display: none;
}



@media (max-width: 1200px) {

    p {
        font-size: 1.2rem;
    }

    .img_width {
        width: 32rem; 
    }
}




@media (max-width: 991px) {

    p {
        font-size: 1.5rem;
    }
    .display_style {
        flex-direction: column;
    }

    .img-phone-style {
        width: 100% !important;
        height: 100% !important;
        padding: 1.5rem 0;
    }
    

    .img_width {
        width: 100%;
    }


    .company_mission_down {
        flex-direction: column-reverse;
    }

    .d-laptop {
        display: none;
    }

    .d-big-phone {
        display: block;
    }


    .d-phone {
        display: none;
    }

   
    .news-title-phone {
        display: block;
    }

    .down-continer-big-phone {
        display: block;
        height: auto;
        width: 100%;
        margin-bottom: 6.25rem;
    }

    .down-continer-big-phone p {
        margin: 0;
    }
    

    .big-phone-col-img-left {
        height: 24.875rem;
    }

    .extra-text {
        margin-top: 40px;
    }

    .big-phone-col-img-right {
        height: 21.25rem;
        margin-top: 25px;

    }

    .restrictions-text {
        margin-top: 25px;
    }



    .seccond-title {
        margin-top: 3.37rem;
    }

    .stage-container {
        margin: 3.37rem 0;
    }


    .news-right-phone {
        display: flex;
        gap: 10px;
        justify-content: center; /* Выравнивание по центру */
    }

    .news-down-img-right-phone {
        width: 350px !important;
        height: 350px !important;
        flex: 1 1 350px; /* Гибкость: фиксированный размер 350px */
    }



    
}





@media (max-width: 600px) {
    p {
        line-height: 23px;

    }

    .d-big-phone {
        display: none;
    }


    .d-phone {
        display: block;
    }

    .d-laptop {
        display: none;
    }





    .about-contianer {
        flex-direction: column; /* Меняем направление flex на вертикальное */
    }

    .about_img {
        order: -1; /* Перемещаем изображение наверх */
        width: 100%;
        height: 300px; /* Фиксированная высота для изображения */
        position: relative;
        display: inline-block;
        overflow: hidden; 
        padding: 0;
        margin-bottom: 3.37rem;

    }

    .about_img img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Растягиваем изображение на всю высоту */
        border-radius: 10px; /* Закругление углов изображения */
    }



    .news-title h1 {
        font-size: 2.7rem; /* Размер заголовка */
        margin: 0;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Тень для текста */
    }




    .about_img {
        order: -1; /* Перемещаем изображение наверх */
        width: 100%;
        height: 300px; /* Фиксированная высота для изображения */
        position: relative;
        display: inline-block;
        overflow: hidden; 
        padding: 0;
        margin-bottom: 3.37rem;

    }

    .about_img img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Растягиваем изображение на всю высоту */
        border-radius: 10px; /* Закругление углов изображения */
    }


    .news-title {
        position: absolute;
        bottom: 0px;
        width: 100%;
        background: #F2F4F3; 
        color: black;
        padding: 10px;
        text-align: center;
        border-radius: 40px 40px 0 0; /* Закругляем верхние углы */
        margin: 0;
    }

}
    
