/* Общие стили для страницы */
body {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Контейнер для основного контента */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Левый контент */
.main-content {
    width: 800px;
    padding-right: 20px;
}

/* Правый контент (сайдбар) */
.sidebar {
    width: 400px;
    padding: 20px;
    border-radius: 5px;
    height: 100%;
    max-height: 565px;
}

/* Стили для заголовков */
h1.article-title {
    font-size: 36px;
    color: #2c3e50;
}

h2.article-subtitle {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

h3.section-title, .sidebar-title {
    font-size: 24px;
    color: #29b976; /* Новый акцентный цвет */
    margin-bottom: 15px;
    margin-top: 0;
}

/* Стили для ссылок в статье и сайдбаре */
ul.age-list, ul.sidebar-age-list {
    list-style: none;
    padding: 0;
    margin: 0;

}

ul.sidebar-age-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

ul.age-list li {
    margin-bottom: 10px;
}

ul.sidebar-age-list li {
    width: 50px;
}

ul.age-list li a, ul.sidebar-age-list li a {
    display: block;
    background-color: #29b976; /* Новый акцентный цвет */
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

ul.age-list li a:hover, ul.sidebar-age-list li a:hover {
    background-color: #1c8344;
}

/* Листинг преимуществ */
ul.benefit-list {
    list-style: none;
    padding-left: 0;
}

ul.benefit-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

ul.benefit-list li:before {
    content: '✔';
    color: #29b976; /* Акцентный цвет */
    position: absolute;
    left: 0;
    top: 0;
}

/* Хедер */
.main-header {
    background-color: #fff;
    color: white;
    text-align: center;
    border-bottom: 1px solid lightgray;
}

.logo-image {
    max-width: 250px;
}

/* Мета-информация */
.meta-info {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.advertorial {
    color: #e67e22; /* Оранжевый для advertorial */
}

.date, .author {
    color: #95a5a6;
}

.article-image {
    width: 100%;
    border-radius: 10px;
}

/* Футер */
.main-footer {
    background-color: #2c3e50; /* Цвет футера */
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-link-item {
    display: inline-block;
    cursor: pointer;
}


.footer-link-item a {
    color: white;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Адаптивность для небольших экранов */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .main-content, .sidebar {
        width: 100%;
        padding: 0;
    }

    h1.article-title {
        font-size: 28px;
    }

    h2.article-subtitle {
        font-size: 22px;
    }

    h3.section-title, .sidebar-title {
        font-size: 20px;
    }
}


/* Основные стили для модальных окон */
.modal {
    display: none; /* Скрываем модальное окно по умолчанию */
    position: fixed; /* Фиксируем модальное окно на экране */
    z-index: 1; /* Помещаем его на передний план */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Темный фон */
}

/* Контент модального окна */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
}

/* Кнопка закрытия модального окна */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Кнопки открытия модальных окон */
button {
    margin: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2980b9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #1c5983;
}
