/* =========================================
   DESIGN 2: NUCLEUS UI (Центральный скриншот)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #F4F5F9; /* Очень легкий серо-голубой фон */
    --bg-card: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.95);
    --accent: #7B61FF; /* Мягкий, но насыщенный фиолетовый */
    --accent-hover: #5A42D1;
    --text-main: #0F172A; /* Почти черный для заголовков */
    --text-gray: #64748B; /* Мягкий серый для текста */
    --border-color: #E2E8F0; /* Едва заметные границы */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --shadow-sm: 0 10px 25px rgba(123, 97, 255, 0.05);
    --shadow-md: 0 20px 40px rgba(123, 97, 255, 0.1);
    --shadow-hover: 0 25px 50px rgba(123, 97, 255, 0.15);
    --radius: 24px; /* Огромные скругления */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background: linear-gradient(135deg, #FDFBFF 0%, #F4F0FF 100%); color: var(--text-gray); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--text-main); font-weight: 800; font-family: var(--font-heading); letter-spacing: -0.5px;}

.container { max-width: 1400px; margin: 0 auto; padding: 0 30px; width: 100%; }

/* --- HEADER --- */
.site-header { background: var(--bg-header); backdrop-filter: blur(20px); border-bottom: none; box-shadow: 0 4px 30px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 100;}
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; max-width: 1400px; margin: 0 auto; }
.header-left, .header-right { display: flex; align-items: center; gap: 10px; color: var(--text-main); font-weight: 700; cursor: pointer; }
.header-left svg, .header-right svg { width: 26px; height: 26px; fill: currentColor; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--text-main); letter-spacing: -1px; }

.header-nav { border-top: 1px solid rgba(0,0,0,0.03); }
.nav-links { display: flex; justify-content: center; gap: 40px; padding: 15px 20px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.nav-links a { color: var(--text-gray); font-weight: 600; font-size: 1rem; }
.nav-links a:hover { color: var(--accent); }

/* --- TAG CLOUD --- */
.tag-cloud-wrapper { margin: 40px auto 20px; max-width: 1400px; padding: 0 30px; }
.tag-cloud-title { color: var(--text-main); margin-bottom: 20px; font-size: 1.4rem; font-weight: 800;}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item { background: #FFF; color: var(--text-main); padding: 8px 18px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); border: 1px solid transparent;}
.tag-item:hover { background: var(--accent); color: #FFF; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tag-count { background: #F1F5F9; padding: 3px 10px; font-size: 0.75rem; font-weight: 800; border-radius: 50px; color: var(--text-gray);}
.tag-item:hover .tag-count { background: #FFF; color: var(--accent);}

/* --- HERO GRID SECTION --- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px auto 60px; max-width: 1400px; padding: 0 30px; }
.hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.post-thumb-card { position: relative; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; transition: all 0.4s ease; box-shadow: var(--shadow-md); border: none; background: #FFF; }
.post-thumb-card:hover { transform: translateY(-10px) scale(1.01); box-shadow: var(--shadow-hover); }

/* Воздушные, мягкие пастельные градиенты */
.bg-gradient-1 { background: linear-gradient(135deg, #FFE5E5 0%, #F5F0FF 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #E0F2FE 0%, #FDF4FF 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #FEF08A 0%, #D9F99D 100%); }

.hero-left .post-thumb-card { height: 100%; min-height: 450px; }
.hero-right .post-thumb-card { height: 215px; padding: 25px; }
.cat-badge { background: var(--accent); color: #fff; padding: 6px 16px; font-size: 0.8rem; font-weight: 800; border-radius: 50px; display: inline-block; margin-bottom: 15px; width: fit-content; box-shadow: 0 4px 10px rgba(123,97,255,0.3);}
.post-thumb-title { color: var(--text-main); font-size: 1.3rem; line-height: 1.3; font-weight: 800;}
.hero-left .post-thumb-title { font-size: 2.5rem; line-height: 1.2; }

@media (max-width: 992px) { .hero-grid { grid-template-columns: 1fr; } .hero-left .post-thumb-card { min-height: 350px; } }
@media (max-width: 600px) { .hero-right { grid-template-columns: 1fr; } }

/* --- BOTTOM POST GRID --- */
.section-header { border-bottom: none; margin-bottom: 30px; padding-left: 10px;}
.section-header h3 { font-size: 1.8rem; color: var(--text-main); font-weight: 800;}
.bottom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.bottom-grid .post-thumb-card { height: 260px; }

/* --- POST ARTICLE --- */
.post-container { max-width: 800px; margin: 40px auto 80px; background: var(--bg-card); padding: 60px; border-radius: 32px; border: none; box-shadow: var(--shadow-md); }
@media(max-width: 768px) { .post-container { padding: 40px 25px; border-radius: 24px;} }
.post-header { margin-bottom: 40px; text-align: center;}
.post-h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 25px; color: var(--text-main); }
.post-meta-info { display: flex; justify-content: center; align-items: center; gap: 15px; color: var(--text-gray); font-size: 1rem; border-top: 1px dashed var(--border-color); padding-top: 25px; }
.post-meta-info img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm);}
.post-meta-text strong { color: var(--text-main); display: block; font-size: 1.1rem; }

.post-content { font-size: 1.15rem; line-height: 1.9; color: var(--text-gray); }
.post-content p { margin-bottom: 25px; }
.post-content h2 { font-size: 2rem; margin: 50px 0 25px; color: var(--text-main); }
.post-content h3 { font-size: 1.5rem; margin: 30px 0 15px; color: var(--text-main); }
.post-content ul, .post-content ol { margin: 0 0 25px 20px; padding-left: 20px; }
.post-content blockquote { font-style: italic; font-size: 1.3rem; padding: 30px; margin: 40px 0; background: #F8FAFC; color: var(--text-main); border-radius: 20px; text-align: center;}
.post-content table { width: 100%; border-collapse: collapse; margin: 40px 0; border: none; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);}
.post-content th, .post-content td { padding: 20px; border-bottom: 1px solid var(--border-color); text-align: left; background: #FFF;}
.post-content th { background: #F8FAFC; font-weight: 800; color: var(--text-main); font-size: 1rem;}
.post-content a { color: var(--accent); font-weight: 700; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid rgba(123,97,255,0.3); transition: 0.3s;}
.post-content a:hover { border-color: var(--accent); }

.faq-block { background: #F8FAFC; padding: 35px; margin: 40px 0; border-radius: 24px; border: none; }
.faq-question { font-weight: 800; font-size: 1.3rem; margin-bottom: 15px; color: var(--text-main); }
.faq-answer { font-size: 1.1rem; color: var(--text-gray); }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 12px; margin: 20px 0 60px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: none; border-radius: 50%; font-size: 1.1rem; color: var(--text-main); background: #FFF; box-shadow: var(--shadow-sm); transition: 0.3s; font-weight: 700;}
.page-link:hover, .page-link.active { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* --- FOOTER --- */
.site-footer { background: #FFF; border-top: none; padding: 80px 0 40px; margin-top: auto; border-radius: 40px 40px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.03);}
.footer-container { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media(min-width: 768px) { .footer-container { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-logo { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 15px; display: inline-block;}
.footer-text { color: var(--text-gray); font-size: 1rem; line-height: 1.8; margin-bottom: 20px; }
.footer-title { color: var(--text-main); font-size: 1.2rem; margin-bottom: 25px; font-weight: 800;}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: var(--text-gray); font-size: 1rem; font-weight: 600;}
.footer-links a:hover { color: var(--accent); padding-left: 5px;}
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px dashed var(--border-color); font-size: 0.95rem; font-weight: 600; }