/* style.css - TopZavr.ru | Современный дизайн 2024-2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

:root {
    --bg-main: #f7f9fc;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a77;
    --accent: #ff6b35;
    --accent-dark: #e55a2b;
    --accent-light: #fff3ed;
    --border: #eef2f8;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 32px -12px rgba(255, 107, 53, 0.2);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== HEADER ========== */
.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.logo span {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--text-primary);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--accent);
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--accent-light) 0%, #fff5e6 100%);
    border-radius: 0 0 48px 48px;
    padding: 56px 0 64px;
    margin-bottom: 48px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff6b35, #ff9f4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== GRID СТАТЕЙ ========== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.section-title span {
    color: var(--accent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 53, 0.3);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.03);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
}

.card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 4px;
}

/* ========== СТРАНИЦА СТАТЬИ ========== */
.article-layout {
    display: flex;
    gap: 50px;
    margin: 50px 0;
    align-items: flex-start;
}

main {
    flex: 2.5;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

aside {
    flex: 1.2;
    position: sticky;
    top: 100px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}

.article-meta {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 28px 0 12px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.article-content img {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.article-content ul, .article-content ol {
    margin: 20px 0 20px 28px;
}

.article-content li {
    margin: 10px 0;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-secondary);
}

/* SIDEBAR */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.sidebar-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.sidebar-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s;
    display: block;
}

.sidebar-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
    transition: all 0.2s;
}

/* ========== FOOTER ========== */
.footer {
    background: #1a1a2e;
    color: #e2e2f0;
    padding: 48px 0 32px;
    margin-top: 60px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col p, .footer-col a {
    color: #a0a0c0;
    text-decoration: none;
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid #2a2a44;
    font-size: 0.8rem;
    color: #7a7a9a;
}

/* ========== РЕКЛАМНЫЕ БЛОКИ ========== */
.ad-container {
    background: linear-gradient(135deg, #f8f9fc, #f1f3f8);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin: 25px 0;
    border: 1px dashed var(--accent);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.ad-container:hover {
    border-color: var(--accent);
    background: #fff;
}

.ad-sidebar {
    margin-top: 20px;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 920px) {
    .article-layout {
        flex-direction: column;
    }
    aside {
        position: static;
        width: 100%;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    main {
        padding: 24px;
    }
    .header .container {
        flex-direction: column;
    }
    .nav {
        gap: 20px;
    }
    .article-title {
        font-size: 1.6rem;
    }
}