/* =========================================
   DESIGN 1: DARK MEDIA APP (Левый скриншот)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0B0B0E; /* Глубокий темный фон */
    --bg-card: #15151A; /* Фон карточек */
    --bg-header: rgba(11, 11, 14, 0.85);
    --accent: #FF2A5F; /* Яркий розово-красный акцент */
    --accent-hover: #E11D48;
    --text-main: #FFFFFF;
    --text-gray: #A1A1AA;
    --border-color: #27272A;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.5);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.6);
    --shadow-hover: 0 15px 30px rgba(255, 42, 95, 0.15); /* Розовое свечение */
    --radius: 16px;
}

* { 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 { color: var(--accent); }
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; 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); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 100;}
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; max-width: 1400px; margin: 0 auto; }
.header-left, .header-right { display: flex; align-items: center; gap: 12px; color: var(--text-main); font-weight: 600; cursor: pointer; }
.header-left svg, .header-right svg { width: 24px; height: 24px; fill: currentColor; }
.logo { font-size: 1.8rem; font-weight: 800; color: #FFF; letter-spacing: 0; text-transform: none; }
.logo span { color: var(--accent); } /* Если часть логотипа выделена span */

.header-nav { border-top: 1px solid var(--border-color); }
.nav-links { display: flex; justify-content: center; gap: 30px; padding: 15px 20px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.nav-links a { color: var(--text-gray); font-weight: 500; font-size: 0.95rem; text-transform: capitalize;}
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 10px rgba(255,42,95,0.4); }

/* --- 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.2rem; display: flex; align-items: center; gap: 10px; font-weight: 600;}
.tag-cloud-title::before { content: ''; display: inline-block; width: 4px; height: 20px; background: var(--accent); border-radius: 4px;}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-item { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); padding: 8px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); }
.tag-item:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.tag-count { background: rgba(255,255,255,0.1); padding: 2px 8px; font-size: 0.75rem; border-radius: 20px; }
.tag-item:hover .tag-count { background: rgba(0,0,0,0.2); }

/* --- HERO GRID SECTION --- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px auto 60px; max-width: 1400px; 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: 25px; transition: all 0.3s ease; border: 1px solid var(--border-color); background: var(--bg-card); }
.post-thumb-card:hover { transform: translateY(-5px); border-color: rgba(255,42,95,0.5); box-shadow: var(--shadow-hover); }

/* Темные медиа-градиенты */
.bg-gradient-1 { background: linear-gradient(to top, #111 0%, rgba(30,10,20,1) 100%); }
.bg-gradient-2 { background: linear-gradient(to top, #111 0%, rgba(10,20,30,1) 100%); }
.bg-gradient-3 { background: linear-gradient(to top, #111 0%, rgba(20,10,30,1) 100%); }

.hero-left .post-thumb-card { height: 100%; min-height: 450px; }
.hero-right .post-thumb-card { height: 215px; padding: 20px; }
.cat-badge { background: var(--accent); color: #fff; padding: 6px 12px; font-size: 0.75rem; font-weight: 700; border-radius: 6px; display: inline-block; margin-bottom: 15px; width: fit-content; text-transform: uppercase; letter-spacing: 1px;}
.post-thumb-title { color: #FFF; font-size: 1.2rem; line-height: 1.4; font-weight: 700;}
.hero-left .post-thumb-title { font-size: 2.2rem; 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 { 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.4rem; color: var(--text-main); font-weight: 700;}
.bottom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 60px; }
.bottom-grid .post-thumb-card { height: 250px; }

/* --- POST ARTICLE --- */
.post-container { max-width: 850px; margin: 40px auto 80px; background: var(--bg-card); padding: 50px; border-radius: var(--radius); border: 1px solid var(--border-color); }
@media(max-width: 768px) { .post-container { padding: 30px 20px; } }
.post-header { margin-bottom: 40px; }
.post-h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 25px; color: var(--text-main); }
.post-meta-info { display: flex; align-items: center; gap: 15px; color: var(--text-gray); font-size: 0.95rem; border-top: 1px solid var(--border-color); padding-top: 20px; }
.post-meta-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent);}
.post-meta-text strong { color: #FFF; display: block; font-size: 1.05rem; }

.post-content { font-size: 1.1rem; line-height: 1.8; color: #D4D4D8; }
.post-content p { margin-bottom: 25px; }
.post-content h2 { font-size: 1.8rem; margin: 50px 0 20px; color: var(--text-main); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.post-content h3 { font-size: 1.4rem; 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.2rem; border-left: 4px solid var(--accent); padding: 20px; margin: 30px 0; background: rgba(255,42,95,0.05); color: #FFF; border-radius: 0 8px 8px 0;}
.post-content table { width: 100%; border-collapse: collapse; margin: 30px 0; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden;}
.post-content th, .post-content td { padding: 15px; border: 1px solid var(--border-color); text-align: left; }
.post-content th { background: rgba(255,255,255,0.02); font-weight: 700; color: #FFF; text-transform: uppercase; font-size: 0.85rem;}
.post-content a { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--accent); transition: 0.2s;}
.post-content a:hover { color: #FFF; border-color: #FFF; }

.faq-block { background: rgba(255,255,255,0.02); padding: 30px; margin: 30px 0; border: 1px solid var(--border-color); border-radius: 12px;}
.faq-question { font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; color: var(--accent); }
.faq-answer { font-size: 1.05rem; color: #D4D4D8; }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 20px 0 60px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border: 1px solid var(--border-color); border-radius: 50%; font-size: 1rem; color: var(--text-main); background: transparent; transition: 0.2s; font-weight: 600;}
.page-link:hover, .page-link.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 15px rgba(255,42,95,0.4); }

/* --- FOOTER --- */
.site-footer { background: #000; border-top: 1px solid var(--border-color); padding: 80px 0 30px; margin-top: auto; }
.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: #FFF; margin-bottom: 15px; display: inline-block; }
.footer-text { color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.footer-title { color: #FFF; font-size: 1.1rem; margin-bottom: 25px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: var(--text-gray); font-size: 0.95rem; font-weight: 500;}
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 25px; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: #71717A; }