body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: url(image/moi_stati_backgr.png) no-repeat center center;
    background-size: cover;
    background-position-y: 100px;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    background-color: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 100px;
}

nav ul {
    font-family: 'Cuprum', sans-serif;
    display: flex;
    justify-content: center;
    gap: 70px;
    margin: 0;
    padding: 0;
    margin-left: 70px;
}

nav ul li {
    display: inline;
    text-align: center;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 25px;
    display: block;
    text-align: center;
    border-bottom: 3px solid #333;
    padding-bottom: 5px;
}

.contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact a {
    text-decoration: none;
    color: #333;
}

.contact img {
    width: 40px;
    height: 40px;
}

.nomber {
    font-family: 'Cuprum', sans-serif;
    margin-right:40px;
}

.nomber a {
    color: #333;
    font-size: 25px;
}

.main {
    display: flex;
    align-items: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Общие стили для контейнера со статьями */
.article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

/* Стили для каждого блока статьи */
.article {
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    display: flex; /* Flexbox для горизонтального размещения */
    align-items: center;
    gap: 10px; /* Отступы между элементами */
    justify-content: space-between; /* Разделяет элементы по всей ширине контейнера */
}

/* Стили для контейнера с информацией о статье */
/* Стили для контейнера с информацией о статье */
.article-info {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px; /* Отступы между группами информации */
    flex-grow: 1; /* Растягивает блок с информацией на всю доступную ширину */
}

/* Стили для строки с метками и значениями */
.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Стили для текста с метками "Тема" и "Описание" */
.article span.label {
    font-weight: bold;
}

/* Стили для картинки глаза */
.article img.eye-icon {
    width: 20px;
    vertical-align: middle;
    margin-right: 3px;
}

/* Стили для ссылки "Скачать ... за" */
.article a.download-link {
    display: inline-block;
    background-color: #ffa500;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.article a.download-link:hover {
    background-color: #e59400;
}

/* Стили для ссылки "Смотреть" */
.article a.view-link {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.article a.view-link:hover {
    text-decoration: underline;
}

.description {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;
    font-family: 'Cuprum', sans-serif;
}

.truncate {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Стили для блока действий (кнопок) */
.article-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-link, .download-link {
    color: #0066cc;
    text-decoration: none;
    margin-right: 10px;
}

.view-link:hover, .download-link:hover {
    text-decoration: underline;
}
