body {
    font-family: Arial, sans-serif;
    color: #1f526f;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Изменение размера хедера и выравнивание текста */
header {
    background-color: #1f526f;
    color: white;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
}

.logo {
    position: absolute;
    left: 1px; /* Позиционируем логотип слева */
    width: 70px; /* Размер логотипа */
}

/* Добавляем анимацию к заголовку */
header h1 {
    margin: 0;
    font-size: 2.5em;
    animation: fadeIn 2s ease-in-out; /* Анимация появления */
}

/* Описание анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px); /* Начальное положение текста */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Конечное положение текста */
    }
}

section {
    background-color: white;
    margin: 20px 0;
    padding: 20px;
    text-align: center;
}

/* Технологии: горизонтальные блоки */
.technology-row {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.technology-item {
    background-color: white;
    padding: 20px;
    width: 30%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Ограничение размеров изображений в блоке Технологии */
.tech-image {
    margin-top: 10px;
    width: 100%;
    max-width: 300px; /* Ограничение максимальной ширины */
    max-height: 300px; /* Ограничение максимальной высоты */
    height: auto;
    border-radius: 5px;
}

/* Стили для раздела Отзывы */
#testimonials {
    background-color: #eaf4f9;
    padding: 20px 0;
    text-align: center;
}

.testimonial-row {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonial-item {
    background-color: white;
    padding: 20px;
    width: 30%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.testimonial-item p {
    font-style: italic;
}

.testimonial-item h4 {
    margin-top: 10px;
    font-weight: bold;
}

/* Стили для раздела Новости */
#news {
    background-color: #f9f9f9;
    padding: 20px 0;
    text-align: center;
}

.news-row {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.news-item {
    background-color: white;
    padding: 20px;
    width: 30%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
}

.news-item a {
    text-decoration: none;
    color: inherit;
}

.news-item h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.marquee {
    margin: 0;
    font-size: 14px;
    color: #1f526f;
}

/* Стили для раздела Контакты */

#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

#contact input, #contact textarea {
    width: 80%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact button {
    padding: 10px 20px;
    background-color: #1f526f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#contact button:hover {
    background-color: #174056;
}


/* Стили для раздела Партнеры */
#partners {
    background-color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

.partners-container {
    overflow: hidden;
    width: 100%;
}

.partners-row {
    display: flex;
    animation: marquee 15s linear infinite;
    flex-wrap: nowrap;
}

.partner-item {
    background-color: white;
    padding: 20px;
    width: 30%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 20px;
}

.partner-item img {
    width: 50%; /* Уменьшение размера значков в три раза */
    height: auto;
    border-radius: 5px;
}

.partner-item p {
    margin-top: 10px;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}



.image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.media {
    width: 30%;
    height: auto;
}

footer {
    text-align: center;
    padding: 1em 0;
    background-color: #333;
    color: white;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Расстояние между логотипом и текстом */
    flex-wrap: wrap;
}

.footer-logo {
    height: 40px; /* Задайте высоту логотипа */
    width: auto; /* Ширина будет автоматически рассчитана для сохранения пропорций */
}