/* style.css — общие стили для всего сайта Domashny-Vkus */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fefaf5;
    color: #3d2a1a;
    line-height: 1.7;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 251, 245, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #c1440e;
    letter-spacing: -0.02em;
}

.logo span {
    color: #e6a057;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: #5c432b;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #c1440e;
}

.hero {
    background: linear-gradient(135deg, #fff0e0 0%, #ffe4cc 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 2rem 2rem;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #3d2a1a;
}

.hero p {
    font-size: 1.2rem;
    color: #6b4c34;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    color: #3d2a1a;
    border-left: 5px solid #c1440e;
    padding-left: 1rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c1440e;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #3d2a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-excerpt {
    color: #7a6854;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Article Layout */
.article-layout {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.article-main {
    flex: 2;
    min-width: 0;
}

.article-sidebar {
    flex: 1;
    min-width: 260px;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #3d2a1a;
}

.article-meta {
    color: #8a715b;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0e4d5;
    padding-bottom: 1rem;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #3d2a1a;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #c1440e;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: #4f3d2c;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #4f3d2c;
}

.article-content img {
    width: 100%;
    border-radius: 20px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c1440e;
    display: inline-block;
    color: #3d2a1a;
}

.sidebar-articles {
    list-style: none;
}

.sidebar-articles li {
    margin-bottom: 1rem;
}

.sidebar-articles a {
    text-decoration: none;
    color: #4f3d2c;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
}

.sidebar-articles a:hover {
    color: #c1440e;
}

/* Footer */
.footer {
    background: #2b2118;
    color: #d4bfab;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer h4 {
    color: #f5e2cf;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer a {
    color: #d4bfab;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #c1440e;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #4a392b;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .header-inner {
        flex-direction: column;
    }
    .article-layout {
        flex-direction: column;
    }
    .article-header h1 {
        font-size: 1.8rem;
    }
}

/* Recipe Cards */
.recipe-tip {
    background: #fff7f0;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #c1440e;
}