/* === Глобальные стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0f172a;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    padding: 2rem 1rem;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* === СЕТКИ === */
.posts-grid, .projects-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

@media (min-width: 1400px) {
    .posts-grid, .projects-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
}
@media (min-width: 1800px) {
    .posts-grid, .projects-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
}
@media (max-width: 768px) {
    .posts-grid, .projects-grid { grid-template-columns: 1fr; }
}

/* === КАРТОЧКИ (единый стиль) === */
.blog-card, .project-card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover, .project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}

.blog-card .blog-date, .project-card .project-date {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.blog-card .blog-title, .project-card .project-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card .blog-title a, .project-card .project-title {
    color: white;
    text-decoration: none;
}

.blog-card .blog-title a:hover {
    color: #60a5fa;
}

.blog-card .blog-summary, .project-card .project-desc {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.project-card .project-company {
    color: #60a5fa;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Теги */
.tag, .tech-tag {
    display: inline-block;
    background: rgba(59,130,246,0.2);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.65rem;
    color: #60a5fa;
    margin: 0.2rem 0.2rem 0 0;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.btn:hover { background: #2563eb; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #e2e8f0; }
.btn-outline:hover { background: rgba(59,130,246,0.3); border-color: #3b82f6; }

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 2rem;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.9rem;
}
.pagination a:hover { background: #3b82f6; color: white; }
.pagination .current { background: #3b82f6; color: white; }

/* Заголовки */
h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: white;
}
.section-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2rem;
}
