﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
}

a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Header ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 24px;
}
.logo {
    font-size: 22px;
    font-weight: 700;
}
.logo a { color: #333; }

/* ===== Nav ===== */
nav {
    background: #222;
    padding: 0 24px;
}
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
nav ul li a {
    display: block;
    color: #ccc;
    padding: 12px 16px;
    font-size: 14px;
}
nav ul li a:hover {
    color: #fff;
    background: #333;
    text-decoration: none;
}

/* ===== Hero ===== */
.hero {
    background: #2c3e50;
    color: #fff;
    padding: 48px 24px;
    text-align: center;
}
.hero h1 {
    font-size: 32px;
    max-width: 800px;
    margin: 0 auto 16px;
    line-height: 1.3;
}
.meta {
    font-size: 14px;
    color: #aab;
}
.meta a { color: #8cb4ff; }

/* ===== Two-column layout ===== */
.content-wrapper {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.content-main {
    flex: 3;       /* ≈75% */
    min-width: 0;  /* чтобы таблицы не распирали */
}

.sidebar {
    flex: 1;       /* ≈25% */
    min-width: 0;
}

/* ===== Article ===== */
.article h2 {
    font-size: 24px;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}
.article h3 {
    font-size: 20px;
    margin: 32px 0 12px;
}
.article p {
    margin-bottom: 16px;
}
.article ul, .article ol {
    margin: 0 0 16px 24px;
}
.article li {
    margin-bottom: 6px;
}

.jump-link {
    background: #f6f6f6;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 32px;
    font-size: 14px;
}
.article table th,
.article table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}
.article table th {
    background: #f5f5f5;
    font-weight: 600;
}
.article table tr:nth-child(even) {
    background: #fafafa;
}

.tags {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}
.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 3px;
    margin-right: 6px;
    font-size: 13px;
    color: #555;
}

/* ===== Sidebar ===== */
.widget {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
}
.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.widget-list {
    list-style: none;
}
.widget-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.widget-list li:last-child {
    border-bottom: none;
}

/* Post cards (big images) */
.post-card {
    margin-bottom: 24px;
}
.post-card img {
    border-radius: 4px;
    margin-bottom: 10px;
}
.post-card h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
}
.post-card-meta {
    font-size: 12px;
    color: #888;
}
.post-card-meta a {
    color: #888;
}

/* Post list with thumbnails */
.post-list-thumbs {
    list-style: none;
}
.post-list-thumbs li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
}
.post-list-thumbs li:last-child {
    border-bottom: none;
}
.post-list-thumbs img {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: cover;
}

/* Search */
.search-form {
    display: flex;
    gap: 0;
}
.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}
.search-form button {
    padding: 8px 16px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}
.search-form button:hover {
    background: #444;
}

/* ===== Footer ===== */
footer {
    background: #222;
    color: #999;
    text-align: center;
    padding: 24px;
    font-size: 13px;
    line-height: 1.6;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .content-wrapper {
        flex-wrap: wrap;
    }

    .content-main,
    .sidebar {
        flex: 1 1 100%;
    }

    .hero h1 {
        font-size: 24px;
    }

    nav ul {
        flex-direction: column;
    }
    nav ul li a {
        padding: 10px 16px;
    }

    .article table {
        font-size: 12px;
    }
    .article table th,
    .article table td {
        padding: 6px 8px;
    }
}


/*17.03.26	-	добавил главную :)
её стили*/
/* ===== Post Grid (2 columns) ===== */
.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.post-grid-item {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
}

.post-grid-item img {
    border-radius: 4px;
    margin-bottom: 12px;
}

.post-grid-item h2,
.post-grid-item h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.post-date {
    font-size: 13px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.post-categories {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 8px;
}
.post-categories a {
    color: #888;
}

.post-grid-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ===== Post List Horizontal (thumbnail + text) ===== */
.post-list-horizontal {
    list-style: none;
    margin-bottom: 32px;
}

.post-list-horizontal li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.post-list-horizontal li:last-child {
    border-bottom: none;
}

.post-list-horizontal li > a {
    flex-shrink: 0;
    width: 200px;
}

.post-list-horizontal li > a img {
    border-radius: 4px;
    width: 100%;
    height: auto;
}

.post-list-horizontal h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.post-list-horizontal p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ===== Separators ===== */
.article hr {
    border: none;
    border-top: 2px solid #eee;
    margin: 40px 0;
}

/* Simple hero (home page) */
.hero-simple {
    padding: 32px 24px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .post-grid-item {
        flex: 1 1 100%;
    }

    .post-list-horizontal li {
        flex-direction: column;
    }

    .post-list-horizontal li > a {
        width: 100%;
    }
}


/*КОНЕЦ	17.03.26	-	добавил главную :)
её стили*/
