body {
    font-family: Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #fff; /* Белый фон */
    padding: 30px;
    padding-top: 8px;
    padding-bottom: 0px;
    margin-bottom: 20px;
    box-shadow: 0 16px 5px rgba(0, 0, 0, 0.08); /* Тень снизу */
}

.header-flex-container {
    display: block;
    width: 100%; /* Ширина 100% контейнера */
    max-width: 800px; /* Максимальная ширина 1200px */
    margin: 0 auto 30px auto; /* Центрирование и отступ снизу */
    /* background-color: #f5a4a4; */
    box-sizing: border-box; /* Учитывать padding в ширине */
}

.header-container {
    display: flex;
    align-items: center; /* Вертикальное выравнивание по центру */
}

.image-container img {
    width: 60px;
    height: 60px;
    margin-left: 4px;
    margin-right: 20px;
    border-radius: 50%; /* Круглое изображение */
    border: 1px solid #319779; /* Черный круг */
    box-sizing: border-box; /* Чтобы учесть размер рамки в итоговых 64px */
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Выравнивание текста по левому краю */
    margin-top: 20px;
    margin-bottom: 20px;
}

.text-container span {
    font-family: Helvetica, Arial, sans-serif; /* Шрифт Helvetica */
}

.header-title {
    font-size: 24px; /* Размер шрифта заголовка */
    font-weight: normal; /* Нормальный вес шрифта */
    margin-top: 4px;
    margin-bottom: 4px;
    color: #6a235e; /*  Цвет текста */
    transition: font-size 0.3s ease; /* Плавное изменение размера шрифта */
}

.header-subtitle {
    font-size: 18px; /* Размер шрифта подзаголовка */
    font-weight: normal; /* Нормальный вес шрифта */
    margin-top: 4px;
    margin-bottom: 4px;
    color: #319779; /*  Цвет текста */
    transition: font-size 0.3s ease; /* Плавное изменение размера шрифта */
}

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

label {
    margin-top: 10px;
}

input {
    margin-top: 5px;
    padding: 1px;
    width: 250px;
    box-sizing: border-box;
}

button {
    border: 0px;
    margin-top: 20px;
    padding-top: 8px;
    padding: 5px 20px;
    width: 250px;
}

h1 {
    margin: 0;
    font-weight: normal; /* Нормальный вес шрифта */
}

h2 {
    font-weight: normal; /* Нормальный вес шрифта */
}

h3 {
    font-weight: bold; /* Нормальный вес шрифта */
    /*color: #6a235e; /*  Цвет текста */
}

h4 {
    font-weight: bold; /* Нормальный вес шрифта */
    /* color: #6a235e; /*  Цвет текста */
}

strong {
    color: #6a235e; /*  Цвет текста */
}

a { /* Это не трогаем, чтобы проект не поломался (и коммент этот не трогает тоже) */
    font-weight: normal; /* Нормальный вес шрифта */
    color: #6a235e; /*  Цвет текста */
}

#text-generator a { 
    color: #2b9e46; /* Фирменный зеленый цвет */
    text-decoration: none; /* Убираем подчеркивание */
    font-weight: bold; /* Жирный шрифт */
}

#text-generator a:hover {
    color: #228b22; /* Темный зеленый при наведении */
}

#text-generator a:visited {
    color: #1e7e34; /* Зеленый для посещенных ссылок */
}

#text-generator .highlight {
    color: #003366; /* Темно-синий */
    font-weight: bold; /* Жирный шрифт */
}

nav {
    color: #99468B; /* Текст */
    padding: 0px;
    margin-top: 30px;
    margin-bottom: 0px;
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    margin: 0 10px;
    margin-top: 0px;
    margin-bottom: 8px;
}

main {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px; /* Отступы по 20px со всех сторон */
    box-sizing: border-box; /* Учесть отступы в ширине */
}

section {
    display: block;
    width: 100%; /* Ширина 100% контейнера */
    max-width: 800px; /* Максимальная ширина 1200px */
    margin: 0 auto 30px auto; /* Центрирование и отступ снизу */
    background-color: #fff;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Учитывать padding в ширине */
}

section h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

section p {
    margin-bottom: 10px;
}

.logo-container {
    width: 100px;
    height: 100px;
    overflow: hidden; /* Обрезаем изображение, если оно больше контейнера */
    border: 1px solid #ccc;
    display: flex; /* Используем flex для центрирования изображения */
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center; /* Центрируем по вертикали */
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Масштабируем изображение, чтобы оно полностью заполняло контейнер */
}

.section-header {
    background-color: #2b9e46; /* Фирменный зелёный фон */
    color: #ffffff; /* Белый текст для контраста */
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-left: -25px;
    margin-right: -25px;
    margin-top: -5px;
    margin-bottom: 30px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header-left-text {
    text-align: left;
    font-size: 24px;
    line-height: 1.4;
    color: #ffffff; /* Белый цвет для текста */
}


.social {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social a {
    display: inline-block;
    margin: 0 10px;
}

.social i {
    font-size: 24px;
    color: #fff;
}

footer {
    background-color: #2b9e46; /* Фирменный зелёный цвет фона футера */
    color: #ffffff; /* Белый текст */
    padding: 20px;
    text-align: center;
}

.footer-link {
    color: #ffffff; /* Белый цвет текста */
    text-decoration: none; /* Убирает подчеркивание */
}

.footer-link:hover {
    text-decoration: underline; /* Подчеркивание при наведении */
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 16px;
    border-radius: 10px;
    background-color: #383434;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Тень во все стороны */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.button-container {
    text-align: center; /* Центрируем кнопки */
    margin-top: 24px;
    margin-bottom: 16px;
}

.link-button {
    width: 220px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff; /* Белый фон */
    color: rgb(100, 75, 139);
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15); /* Тень во все стороны */
    transition: all 0.3s ease;
    margin: 0 10px; /* Отступы по бокам */
    margin-top: 4px;
    margin-bottom: 4px;
    border: 0px;
}

.link-button:hover {
    background-color: #2b9e46; /* Фирменный зелёный фон при наведении */
    color: white; /* Белый текст при наведении */
}

.round-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2b9e46; /* Фирменный зелёный */
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15); /* Тень во все стороны */
    transition: all 0.3s ease;
    margin: 10px 10px; /* Отступы вокруг кнопок */
}

.round-button:hover {
    background-color: #228b22; /* Тёмный зелёный при наведении */
    color: white;
}

.article-box {
    cursor: pointer;
    margin-bottom: 34px;
    margin-top: 16px;
    margin-left: -10px;
    margin-right: -10px;
    border: 0px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
    word-wrap: break-word;
}

.article-box h4 {
    margin-top: 0px;
    margin-bottom: 4px;
    color: #6a235e; /*  Цвет текста */
}

.article-box p {
    margin-top: 4px;
    margin-bottom: 4px;
    color: #5b3897; /*  Цвет текста */
}

.article-box pre {
    margin-top: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: normal;
    color: #5b3897; /* Цвет текста */
    white-space: pre-wrap;
}

.article-box img {
    width: 60%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.green-text {
    color: green;
}

.blue-text {
    color: rgb(48, 48, 139);
}

.red-text {
    color: red;
}

.image-box {
    cursor: pointer;
    margin-bottom: 34px;
    margin-top: 16px;
    margin-left: -10px;
    margin-right: -10px;
    border: 0px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
    word-wrap: break-word;
}

.image-box img {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.mini-image-box {
    cursor: pointer;
    width: 60%;
    margin: 20px auto 1px auto; /* Верхний, правый, нижний и левый отступы */
    border: 0px;
    padding: 2px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
    word-wrap: break-word;
}


.mini-image-box img {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 500px) {
    .header-title {
        font-size: 15px; /* Уменьшаем размер заголовка на узких экранах */
    }

    .header-subtitle {
        font-size: 14px; /* Уменьшаем размер подзаголовка на узких экранах */
    }

    .image-container img {
        max-width: 50px;
        max-height: 50px;
        border-radius: 50%;
    }

    .section-header-left-text {
        text-align: left;
        font-size: 16px;
    }

    .article-box {
        font-size: 12px; /* Уменьшаем размер подзаголовка на узких экранах */
    }
}