body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

h1, h2 {
    color: #333;
    text-align: center;
}

/* Отдельный стиль для блока "О нас" */
#about-us {
    text-align: justify;
}

/* Общий стиль для блока с текстом и изображением */
.about-us-content,
.services {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
    padding: 1em;
    flex-wrap: wrap;
}

/* Стиль для изображений в блоках */
.about-us-content img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin-left: 1em;
}

.services img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin-left: 0em;
    margin-right: 1em;
}

/* Указываем порядок элементов в блоке "Услуги" */
.services p {
    order: 2;
}

.services img {
    order: 1;
}

/* Стиль для текста в блоках */
.about-us-content p,
.services p {
    flex: 1 1 300px;
    margin: 0;
}



header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    height: 100px;
}

.my-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 100px;
}

.contact-info-left {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
}

.contact-info-right {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
}

.phone-collor {
    color: rgb(237, 18, 55);
    margin-top: 10px;
    font-size: 20px;
}
.adres-collor {
    color: white;
}

.contact-info-left a {
    text-decoration: none;
    margin-bottom: 0px;
    transition: background-color 0.3s ease;
    margin-left: 70px;
}

.contact-info-right a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0px;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.contact-info-left a:last-child,
.contact-info-right a:last-child {
    margin-bottom: 0;
}

.contact-info-left a:hover,
.contact-info-right a:hover {
    background-color: rgb(34, 34, 34);
    border-radius: 5px;
}
/* Почему мы */
#why-us {
    padding: 20px;
    background-color: #f0f0f0;
    color: #343a40;
    text-align: center;
}

#why-us h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.otstup {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 74px;
}

  /* конец почему мы */

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
}


#language-selector a {
    margin: 0 10px;
    color: #fff;
}

@media (max-width: 768px) {

    .about-us-content,
    .services {
        flex-direction: column;
    }

    .about-us-content img,
    .services img {
        margin: 1em auto 0;
        display: block;
    }

    .about-us-content p,
    .services p {
        order: 1;
        text-align: center;
    }
    
    header {
        flex-direction: column;
        height: auto;
    }

    .my-logo {
        position: relative;
        transform: none;
        margin-bottom: 20px;
        left: 0%;
        
    }

    .contact-info-left {
        flex-direction: row;
        justify-content: space-around;
        margin-bottom: 10px;
        margin-left: -60px;
    }

    .contact-info-right {
        flex-direction: row;
        justify-content: space-around;
        margin-bottom: 10px;
    }
/* почему мы для телефонов */
    #why-us {
        padding: 10px;
    }

    #why-us h2 {
        font-size: 1.5em;
    }

    #why-us p, #why-us ul li {
        font-size: 0.9em;
    }
    /*Конец*/
}