/* --- DESIGN 3: PASTEL SOFT APP UI --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --bg-main: #FDFBFF; /* Очень светлый розовато-фиолетовый */
    --bg-card: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.9); /* Полупрозрачный хедер */
    --accent: #8B5CF6; /* Мягкий фиолетовый */
    --accent-hover: #7C3AED;
    --text-main: #2E1065; /* Темный индиго вместо черного */
    --text-gray: #6D28D9; /* Приглушенный фиолетовый для текста */
    --border-color: transparent; /* Убираем бордеры */
    --font-main: 'Nunito', sans-serif;
    --font-heading: 'Nunito', sans-serif;
    --radius: 24px; /* Очень сильное скругление */
    --shadow-sm: 0 4px 15px rgba(139, 92, 246, 0.05);
    --shadow-md: 0 10px 25px rgba(139, 92, 246, 0.08);
    --shadow-hover: 0 20px 40px rgba(139, 92, 246, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background-color: var(--bg-main); 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 { opacity: 0.7; }
h1, h2, h3, h4 { color: var(--text-main); font-weight: 800; font-family: var(--font-heading); }

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

/* --- HEADER --- */
.site-header { background: var(--bg-header); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); border-bottom: none;}
.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(--accent); 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); }
.logo span { color: var(--accent); } /* Если в HTML обернуть часть в span */

.header-nav { border-top: 1px solid rgba(139,92,246,0.1); }
.nav-links { display: flex; justify-content: center; gap: 30px; padding: 12px 20px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.nav-links a { color: var(--text-gray); font-weight: 700; 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; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-item { background: #FFF; color: var(--accent); padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); }
.tag-item:hover { background: var(--accent); color: #fff; transform: scale(1.05); box-shadow: var(--shadow-md); }
.tag-count { background: rgba(139,92,246,0.1); padding: 3px 8px; border-radius: 50px; font-size: 0.8rem; color: var(--accent); }
.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 cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: var(--shadow-md); background: var(--bg-card); border: none; }
.post-thumb-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

/* Пастельные, "конфетные" градиенты */
.bg-gradient-1 { background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.hero-left .post-thumb-card { height: 100%; min-height: 450px; }
.hero-right .post-thumb-card { height: 215px; padding: 25px; }

.cat-badge { background: #fff; color: var(--text-main); padding: 6px 14px; font-size: 0.8rem; font-weight: 800; border-radius: 50px; display: inline-block; margin-bottom: 15px; width: fit-content; box-shadow: var(--shadow-sm); }
.post-thumb-title { color: #fff; font-size: 1.2rem; line-height: 1.4; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.hero-left .post-thumb-title { font-size: 2.2rem; line-height: 1.3; }

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

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

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

/* POST CONTENT */
.post-content { font-size: 1.15rem; line-height: 1.9; color: var(--text-gray); font-weight: 600;}
.post-content p { margin-bottom: 25px; }
.post-content h2 { font-size: 2rem; margin: 50px 0 25px; color: var(--text-main); text-align: center; }
.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 li { margin-bottom: 12px; }
.post-content blockquote { font-style: italic; font-size: 1.3rem; padding: 30px; margin: 40px 0; background: linear-gradient(135deg, #F3E8FF 0%, #FAFAFA 100%); color: var(--accent); border-radius: var(--radius); text-align: center; }
.post-content table { width: 100%; border-collapse: collapse; margin: 40px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff;}
.post-content th, .post-content td { padding: 18px; border-bottom: 1px solid rgba(139,92,246,0.1); text-align: center; }
.post-content th { background: #F5F3FF; font-weight: 800; color: var(--text-main); }
.post-content a { color: var(--accent); font-weight: 800; background: rgba(139,92,246,0.1); padding: 2px 8px; border-radius: 8px; }
.post-content a:hover { background: var(--accent); color: #fff; }

/* FAQ BLOCK */
.faq-block { background: #F5F3FF; padding: 35px; margin: 40px 0; border-radius: var(--radius); box-shadow: inset 0 2px 10px rgba(139,92,246,0.05); }
.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: 15px; margin: 20px 0 60px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; font-size: 1.1rem; color: var(--text-gray); background: var(--bg-card); transition: 0.3s; font-weight: 700; box-shadow: var(--shadow-sm); }
.page-link:hover, .page-link.active { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* --- FOOTER --- */
.site-footer { background: var(--bg-card); border-top: none; padding: 80px 0 30px; margin-top: auto; border-radius: 50px 50px 0 0; box-shadow: 0 -10px 30px rgba(139, 92, 246, 0.05); }
.footer-container { display: grid; grid-template-columns: 1fr; gap: 40px; text-align: center; }
@media(min-width: 768px) { .footer-container { grid-template-columns: 1.5fr 1fr 1fr; text-align: left; } }
.footer-logo { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 15px; display: inline-block; }
.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: 1.05rem; font-weight: 700; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(139,92,246,0.1); font-size: 0.9rem; font-weight: 700; }