@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #FAFAFA; /* Очень мягкий белый фон */
    --bg-card: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.85); /* Полупрозрачность для эффекта стекла */
    --accent: #2563EB; /* Благородный синий */
    --accent-hover: #1D4ED8;
    --text-main: #0F172A; /* Глубокий грифельно-черный для контраста */
    --text-gray: #475569; /* Мягкий серый для текста */
    --border-color: #E2E8F0;
    
    /* Комбинация шрифтов: Журнальный для заголовков, чистый для чтения */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 32px -8px rgba(15, 23, 42, 0.12);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-sans); 
    background-color: var(--bg-main); 
    color: var(--text-gray); 
    line-height: 1.7; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
a:hover { opacity: 0.7; }
h1, h2, h3, h4 { color: var(--text-main); font-family: var(--font-serif); }

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

/* --- HEADER --- */
.site-header { 
    background: var(--bg-header); 
    backdrop-filter: saturate(180%) blur(16px); /* Красивое размытие фона (Apple style) */
    border-bottom: 1px solid var(--border-color); 
    position: sticky; top: 0; z-index: 100;
}
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; max-width: 1280px; margin: 0 auto; }
.header-left { display: flex; align-items: center; gap: 12px; color: var(--text-main); font-weight: 600; cursor: pointer; }
.header-left svg { width: 22px; height: 22px; fill: currentColor; }

/* Логотип в премиальном журнальном стиле */
.logo { font-size: 1.8rem; font-weight: 700; font-family: var(--font-serif); color: var(--text-main); letter-spacing: -0.5px; }

.header-right { display: flex; align-items: center; gap: 15px; color: var(--text-main); font-weight: 600; }
.header-right svg { width: 20px; height: 20px; fill: currentColor; }

.header-nav { border-top: 1px solid var(--border-color); }
.nav-links { display: flex; justify-content: center; gap: 35px; padding: 16px 20px; max-width: 1280px; margin: 0 auto; flex-wrap: wrap; }
.nav-links a { color: var(--text-gray); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--text-main); }

/* --- TAG CLOUD --- */
.tag-cloud-wrapper { margin: 50px auto 20px; max-width: 1280px; padding: 0 30px; }
.tag-cloud-title { color: var(--text-main); margin-bottom: 20px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 1px;}
.tag-cloud-title::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-item { 
    background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-gray); 
    padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s ease;
}
.tag-item:hover { background: var(--text-main); color: #fff; border-color: var(--text-main); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tag-count { background: #F1F5F9; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; color: var(--text-main); }
.tag-item:hover .tag-count { background: rgba(255,255,255,0.2); color: #fff;}

/* --- HERO GRID SECTION --- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px auto 60px; max-width: 1280px; padding: 0 30px; }
.hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.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.16, 1, 0.3, 1);
    border: 1px solid var(--border-color); background: var(--bg-card);
}
.post-thumb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }

/* Очень нежные, дорогие пастельные градиенты для фона карточек */
.bg-gradient-1 { background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%); }

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

.cat-badge { 
    background: var(--text-main); color: #fff; 
    padding: 6px 12px; font-size: 0.7rem; font-weight: 700; 
    text-transform: uppercase; border-radius: 4px; display: inline-block; 
    margin-bottom: 15px; width: fit-content; letter-spacing: 1px;
}
.hero-right .cat-badge { margin-bottom: 12px; font-size: 0.65rem; }

.post-thumb-title { color: var(--text-main); font-size: 1.3rem; line-height: 1.3; font-weight: 600; font-family: var(--font-serif); }
.hero-left .post-thumb-title { font-size: 2.2rem; line-height: 1.2; letter-spacing: -0.5px; }

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

/* --- BOTTOM POST GRID --- */
.section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 30px; }
.section-header h3 { font-size: 1.5rem; font-family: var(--font-serif); font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 0; }

.bottom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-bottom: 80px; }
.bottom-grid .post-thumb-card { height: 280px; }

/* --- POST ARTICLE --- */
.post-container { 
    max-width: 800px; margin: 60px auto 100px; background: var(--bg-card); 
    padding: 60px 80px; border-radius: var(--radius); 
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); 
}
@media(max-width: 768px) { .post-container { padding: 40px 25px; margin: 30px auto; } }

.post-header { margin-bottom: 40px; text-align: center; }
.post-h1 { font-size: 3rem; line-height: 1.15; margin-bottom: 30px; color: var(--text-main); font-weight: 700; letter-spacing: -1px; }
@media(max-width: 768px) { .post-h1 { font-size: 2.2rem; } }

.post-meta-info { display: flex; justify-content: center; align-items: center; gap: 15px; color: var(--text-gray); font-size: 0.95rem; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 20px 0; }
.post-meta-info img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.post-meta-text { text-align: left; }
.post-meta-text strong { color: var(--text-main); display: block; font-size: 1rem; font-weight: 600; }

/* POST CONTENT */
.post-content { font-size: 1.15rem; line-height: 1.8; color: var(--text-gray); font-weight: 400; }
.post-content p { margin-bottom: 25px; }
.post-content h2 { font-size: 2rem; margin: 60px 0 25px; color: var(--text-main); font-weight: 600; }
.post-content h3 { font-size: 1.5rem; margin: 40px 0 15px; color: var(--text-main); font-weight: 600;}
.post-content ul, .post-content ol { margin: 0 0 30px 20px; padding-left: 20px; }
.post-content li { margin-bottom: 12px; }

/* Блок цитаты в классическом журнальном стиле */
.post-content blockquote { 
    font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; line-height: 1.5;
    text-align: center; border: none; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); 
    padding: 40px 20px; margin: 50px 0; color: var(--text-main); border-radius: 0; background: transparent;
}
.post-content table { width: 100%; border-collapse: collapse; margin: 40px 0; font-size: 1rem; }
.post-content th, .post-content td { padding: 18px 15px; border-bottom: 1px solid var(--border-color); text-align: left; }
.post-content th { font-weight: 600; color: var(--text-main); border-bottom: 2px solid var(--text-main); }
.post-content a { color: var(--accent); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; }
.post-content a:hover { border-bottom-color: var(--accent); opacity: 1; }

/* FAQ BLOCK */
.faq-block { background: transparent; padding: 0; margin: 40px 0; border: none; }
.faq-question { font-weight: 600; font-size: 1.25rem; margin-bottom: 12px; color: var(--text-main); border-top: 1px solid var(--border-color); padding-top: 20px; }
.faq-answer { font-size: 1.05rem; color: var(--text-gray); margin-bottom: 20px; }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0 80px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; color: var(--text-main); background: var(--bg-card); transition: 0.2s; font-weight: 600;}
.page-link:hover, .page-link.active { background: var(--text-main); color: #fff; border-color: var(--text-main); transform: translateY(-2px); box-shadow: var(--shadow-sm); opacity: 1;}

/* --- FOOTER --- */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--border-color); padding: 80px 30px 30px; margin-top: auto; }
.footer-container { display: grid; grid-template-columns: 1fr; gap: 50px; max-width: 1280px; margin: 0 auto; }
@media(min-width: 768px) { .footer-container { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { font-size: 1.8rem; font-weight: 700; font-family: var(--font-serif); color: var(--text-main); margin-bottom: 20px; display: inline-block; }
.footer-text { color: var(--text-gray); font-size: 1rem; line-height: 1.7; margin-bottom: 25px; max-width: 400px; }
.footer-title { color: var(--text-main); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; font-weight: 700; font-family: var(--font-sans); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: var(--text-gray); transition: color 0.2s; font-size: 0.95rem; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.contact-info { list-style: none; color: var(--text-gray); font-size: 0.95rem; }
.contact-info li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 25px; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: #94A3B8; font-weight: 500; max-width: 1280px; margin-left: auto; margin-right: auto;}