/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --bg-body: #F3F4F6;
    --bg-card: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --primary: #4F46E5;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- Сброс стилей ссылок --- */
a { text-decoration: none; color: inherit; }

header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin-bottom: 40px;
}

header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0;
    color: #000;
}

header .nav-link {
    color: #4b5563;
    font-weight: 500;
    margin-left: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* КАРТОЧКА */
.card {
    background: var(--bg-card);
    border-radius: 0; /* Острые углы для журнального стиля */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #e5e7eb;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px; /* <--- БЫЛО 24px 0. СТАЛО 24px (отступ со всех сторон) */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; /* Чуть крупнее */
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    color: #111;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid #000;
    display: inline-block;
    width: fit-content;
    padding-bottom: 2px;
}

/* Кнопки */
.btn {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}