* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Mulish", sans-serif;
}

body {
    transition: opacity ease-in 0.2s;
    background: #FAFAFA;
    color: #1C1C1C;
}

h2 {
    padding-bottom: 10px;
}

h3 {
    padding-bottom: 10px;
}

.container-header {
    display: flex;
    flex-direction: row; /* Десктопное отображение (картинка слева, текст справа) */
    justify-content: flex-start; /* Убираем растяжение между блоками */
    align-items: stretch;
    margin: 10px 10% 60px;
    align-items: center;     
    justify-content: space-around;
}

.container-header .text {
    padding: 15px;
    max-width: 450px;
}

.logo {
    padding-bottom: 20px; /* Отступ снизу для логотипа */
}

.container-header .image {
    max-width: 500px;
    padding: 70px 50px 20px 50px;
}

.container-header h4 {
    margin-bottom: 30px;
    font-size: 18px;
}
 
.container-header .button { 
    width: 300px;
    height: 45px;
    display: flex;
    align-items: center;    
    justify-content: center;
    text-align: center;
}

.second-button {
    width: 300px;
    height: 45px;
    display: flex; 
    align-items: center;    
    justify-content: center;
    border-radius: 30px;
    text-decoration: none;
    color: #3FA7D6;
    background-color: #ffffff;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: solid 0.5px #EEF1F3;
}

.second-button:hover {
    background-color: #2E8FBC;
    color: #ffffff;
}

.button-mobile {
    display: none; /* Скрываем кнопки для мобильных устройств по умолчанию */
    flex-direction: column;
    gap: 10px; /* Отступ между кнопками */
    margin-top: 20px;
    align-items: center;     /* по вертикали */
    justify-content: center; /* по горизонтали */
    text-align: center;
}

.container {
    display: flex;
    flex-direction: row; /* Десктопное отображение (картинка слева, текст справа) */
    justify-content: flex-start; /* Убираем растяжение между блоками */
    align-items: stretch;
    margin: 25px 10%;
    background: #ffffff;
    border-radius: 40px;
    overflow: hidden;
    border: solid 0.5px #EEF1F3;
}

.image {
    width: 50%;
    height: auto;
    display: block;
    object-fit: cover;
}

.text {
    flex: 1;
    width: auto; /* Текстовый блок будет занимать только нужную ширину */
    padding: 40px; /* Увеличиваем отступы внутри блока */
    text-align: center; /* Центрируем текст внутри блока */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем по вертикали */
    color: #1F1F1F;
}

.text img {
    max-width: 100%; /* Картинка будет адаптироваться к ширине контейнера */
    height: auto; /* Высота картинки будет пропорциональна */
    margin: 20px 0; /* Отступы вокруг картинки */
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Отступ между кнопками */
    margin-top: 20px;
}

.button {
    display: inline-block; /* Кнопка будет занимать только нужную ширину */
    padding: 10px 20px;
    border: 0;
    border-radius: 30px;
    text-decoration: none;
    color: #fff;
    background-color: #3FA7D6;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #2E8FBC;
    color: white;
}

/* Для выбора, с какой стороны отображается картинка на десктопе */
.image-left .image {
    order: 0;
}

.image-right .image {
    order: 1;
}

/* Контейнер для всего блока */
.content-container {
    display: flex;
    flex-direction: column; /* По умолчанию элементы располагаться будут в столбик */
    margin-bottom: 20px;
    align-items: center; /* Центрируем элементы */
    background-color: #f0f0f0;
    padding: 30px;
}

/* Основная картинка */
.main-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Текст и ссылка под текстом */
.text-link {
    text-align: center;
    margin-bottom: 10px;
}

.text-link p {
    font-size: 16px;
    margin-bottom: 10px;
}

.text-link a {
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.text-link a:hover {
    color: rgb(0, 86, 123);
}

/* Контейнер для двух картинок с ссылками */
.image-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.image-links img {
    /* width: 150px; */
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-links a {
    display: block;
}

.image-links img:hover {
    transform: scale(1.05); /* Немного увеличиваем картинку при наведении */
}

/* Футер */
footer {
    border-top: solid 1px #EEF1F3;
    padding: 30px;
    text-align: center;
}

footer h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

footer p {
    font-size: 16px;
    margin-bottom: 10px;
    color: black;
}

/* Социальные иконки */
.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    color: red;
    /* font-size: 36px; */
    margin: 0 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* Контактная информация */
.contact-info {
    margin-bottom: 20px;
}

.contact-info a {
    color: gray;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

footer img, footer img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.text-link-button {
    display: inline-block;
    padding: 10px 20px;
    border: 0;
    border-radius: 30px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 16px;
    background-color: #3F8A72;
}

.text-link-button:hover {
    background-color: #E63E20;
    color: white;
}

@media screen and (max-width: 950px) {
    .container {
        margin: 25px 5%;
    }
    .container-header {
        margin: 10px 5% 60px;
    }
}

/* Мобильная версия */
@media screen and (max-width: 768px) {
    .container-header {
        flex-direction: column;
        margin: 25px 10px 60px;
    }

    .button-mobile {
        display: flex; 
    }

    .container-header .button-container {
        display: none; 
    }

    .container-header h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .container-header .image {
        padding-top: 0;
        padding-bottom: 0;
    }

    .container {
        flex-direction: column; /* Изменение на колонку на мобильных устройствах */
        margin: 25px 10px;
    }

    .image {
        width: 100%;
        margin-bottom: 0; /* Убираем отступ снизу у картинки */
    }

    .text {
        width: auto; /* Текстовый блок не растягивается на всю ширину */
        height: auto; /* Убираем фиксированную высоту для мобильных устройств */
        padding: 40px; /* Увеличиваем отступы внутри блока для мобильных */
    }

    .image-left .image {
        order: 0;
    }

    .image-right .image {
        order: 0;
    }
    
    footer {
        padding: 20px;
    }

    .social-icons a {
        font-size: 20px;
        margin: 0 10px;
    }

    footer h3 {
        font-size: 20px;
    }

    footer p {
        font-size: 14px;
    }
}

/* Мобильное отображение */
@media screen and (max-width: 1280px) {
    .content-container {
        flex-direction: column; /* Элементы располагать в столбик */
        align-items: center;
    }
}

/* Десктопное отображение */
@media screen and (min-width: 1281px) {
    .content-container {
        flex-direction: row; /* Элементы располагать в строку */
        justify-content: space-between;
        align-items: center;
    }

    .image-links {
        flex-direction: row; /* Картинки расположены горизонтально */
    }
}