@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;700&display=swap');

:root {
    --primary: #1a1a1a;
    --accent: #0066ff;
    --gray-light: #f9f9f9;
    --gray-border: #e2e2e2;
    --text-muted: #666;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    background: #fff;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Навигация */
header {
    border-bottom: 1px solid var(--gray-border);
    padding: 20px 0;
    background: #fff;
    position: sticky; top: 0; z-index: 100;
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; }

nav ul { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }

nav a { text-decoration: none; color: var(--primary); font-weight: 500; font-size: 0.9rem; }
nav a:hover { color: var(--accent); }

/* Сетка контента */
.main-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; margin-top: 40px; }

.card { grid-column: span 4; border-bottom: 1px solid var(--gray-border); padding-bottom: 20px; transition: 0.3s; }

.card:hover opacity { opacity: 0.8; }

.card-img { width: 100%; height: 220px; object-fit: cover; margin-bottom: 15px; }

.category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--accent); letter-spacing: 1px; }

/* Адаптивность */
@media (max-width: 992px) {
    .card { grid-column: span 6; }
}

@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; }
    .card { grid-column: span 12; }
    h1 { font-size: 2rem !important; }
}
footer {
    border-top: 1px solid var(--gray-border);
    padding: 60px 0;
    margin-top: 80px;
    background: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; }
.footer-title { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 20px; display: block; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}