main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

main h1 {
    text-align: center;
    font-size: 2em;
    color: #1f1f1f;
    margin-bottom: 20px;
}

main table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 20px;
}

main table td {
    vertical-align: top;
}

main table td img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

main table td p {
    margin-bottom: 16px;
    font-size: 1em;
    line-height: 1.6;
    color: #333333;
}
/* === Страница списка новостей === */
.news-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 20px;
}

.news-title {
    margin: 0 0 10px;
    font-size: 1.25em;
    font-weight: 600;
    color: #1f1f1f;
    transition: color 0.2s;
}

.news-card:hover .news-title {
    color: #00bfff;
}

.news-excerpt {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0 0 15px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* === Страница детальной новости === */
.news-details-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00bfff;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s;
}

    .back-link:hover {
        color: #0095cc;
    }

.news-article {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.article-header h1 {
    margin: 0 0 12px;
    font-size: 2em;
    line-height: 1.3;
    color: #1f1f1f;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 0.95em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-main-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 1.05em;
    color: #333;
}

    .article-content p {
        margin-bottom: 16px;
    }

/* Адаптивность */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.6em;
    }

    .news-article {
        padding: 20px;
    }

    .article-meta {
        flex-direction: column;
        gap: 6px;
    }
}