/* style.css — Единый файл стилей для сайта МечтыДом */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FDFBF7;
    color: #3C2A1F;
    line-height: 1.65;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== HEADER (СТИКИ) ===== */
.site-header {
    background: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    padding: 16px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #3C2A1F;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nav a {
    color: #5A4030;
    text-decoration: none;
    margin-left: 32px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav a:hover { color: #C49A6C; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #E8DCCC 0%, #FDFBF7 100%);
    border-radius: 0 0 40px 40px;
    padding: 80px 0;
    margin-bottom: 60px;
    text-align: center;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #3C2A1F;
    margin-bottom: 20px;
}
.hero p {
    font-size: 18px;
    color: #6B4C3A;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== КАРТОЧКИ ===== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 48px;
    text-align: center;
    color: #3C2A1F;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}
.article-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px -12px rgba(0,0,0,0.15);
}
.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.card-content {
    padding: 28px;
}
.card-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #C49A6C;
    font-weight: 600;
    margin-bottom: 12px;
}
.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}
.card-excerpt {
    color: #6B4C3A;
    font-size: 15px;
}
.card-link {
    text-decoration: none;
    color: inherit;
}

/* ===== ЛЭЙАУТ СТАТЬИ (2 колонки) ===== */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) 1fr;
    gap: 60px;
    margin: 60px 0;
}
.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.article-meta {
    color: #8E6B53;
    border-bottom: 1px solid #EBE3D9;
    padding-bottom: 20px;
    margin-bottom: 32px;
    font-size: 14px;
}
.article-content {
    font-size: 17px;
}
.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 40px 0 16px;
    font-weight: 700;
}
.article-content p {
    margin-bottom: 24px;
    color: #4B3624;
    line-height: 1.7;
}
.article-content ul {
    margin: 20px 0 20px 24px;
}
.article-content li {
    margin-bottom: 8px;
}
.article-image {
    width: 100%;
    border-radius: 24px;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* ===== САЙДБАР ===== */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.sidebar-widget {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 32px;
    border: 1px solid #F0E8DF;
}
.sidebar-widget h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: #3C2A1F;
}
.sidebar-articles {
    list-style: none;
}
.sidebar-articles li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0E8DF;
}
.sidebar-articles a {
    text-decoration: none;
    color: #5A4030;
    font-weight: 500;
    transition: color 0.2s;
}
.sidebar-articles a:hover { color: #C49A6C; }

/* ===== ФУТЕР ===== */
.footer {
    background: #F4EBE1;
    color: #6B4C3A;
    padding: 50px 0 30px;
    margin-top: 60px;
    border-radius: 40px 40px 0 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-links a {
    color: #6B4C3A;
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
}
.footer-links a:hover { color: #C49A6C; }

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 36px; }
    .article-layout { grid-template-columns: 1fr; gap: 30px; }
    .article-header h1 { font-size: 32px; }
    .articles-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; gap: 15px; }
    .footer-inner { flex-direction: column; text-align: center; gap: 15px; }
    .nav a { margin: 0 15px; }
}