
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-main: #FFFFFF;
    --bg-alt: #F3F3F3;
    --text-main: #191A23;
    --accent: #B9FF66; /* Лаймовый из Positivus */
    --border-color: #191A23;
    --header-font: 'Space Grotesk', sans-serif;
    --body-font: 'Inter', sans-serif;
    --shadow-solid: 0px 5px 0px var(--border-color);
    --shadow-hover: 0px 8px 0px var(--border-color);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--body-font); 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
h1, h2, h3, h4, .logo { font-family: var(--header-font); font-weight: 700; color: var(--text-main); }

/* --- HEADER --- */
.site-header { padding: 30px 20px; max-width: 1240px; margin: 0 auto; width: 100%; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 2rem; display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 30px; height: 30px; background: var(--accent); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.header-right { display: flex; align-items: center; gap: 30px; }
.slogan { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; color: #444; max-width: 250px; text-align: right; }
.btn-primary { 
    background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 14px; 
    padding: 12px 25px; font-family: var(--header-font); font-size: 1.1rem; 
    transition: all 0.3s ease; box-shadow: 0px 3px 0px var(--border-color);
}
.btn-primary:hover { background: var(--accent); box-shadow: var(--shadow-solid); transform: translateY(-2px); }

/* --- HERO SECTION (Index only) --- */
.hero-section {
    max-width: 1240px; margin: 40px auto 60px; padding: 0 20px;
    display: flex; gap: 40px; align-items: center;
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; }
.hero-text h1 span { background: var(--accent); padding: 0 10px; border-radius: 8px; display: inline-block; transform: rotate(-2deg); }
.hero-text p { font-size: 1.2rem; margin-bottom: 30px; max-width: 500px; color: #333; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
.lime-blob { width: 300px; height: 300px; background: var(--accent); border-radius: 50%; border: 2px solid var(--border-color); box-shadow: var(--shadow-solid); }

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 20px; text-align: center; }
    .header-right { flex-direction: column; }
    .slogan { text-align: center; }
    .hero-section { flex-direction: column; text-align: center; margin-top: 20px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin: 0 auto 30px; }
}

/* --- TICKER (Tags) --- */
.ticker-wrap { background: var(--bg-main); padding: 10px 0; margin-bottom: 50px; overflow: hidden; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.ticker { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; padding: 10px 20px; }
.ticker-item { 
    font-size: 0.95rem; font-weight: 500; padding: 6px 20px; 
    border: 1px solid var(--border-color); border-radius: 30px; background: var(--bg-alt);
    transition: all 0.2s;
}
.ticker-item:hover { background: var(--accent); box-shadow: 0px 3px 0px var(--border-color); transform: translateY(-2px); }

/* --- GRID & CARDS --- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; flex-grow: 1; width: 100%; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; margin-bottom: 60px; }

.post-card { 
    border: 1px solid var(--border-color); border-radius: 30px; padding: 35px 30px; 
    display: flex; flex-direction: column; background: var(--bg-alt); 
    box-shadow: var(--shadow-solid); transition: all 0.3s ease; position: relative;
}
.post-card:nth-child(even) { background: var(--bg-main); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); background: var(--accent); }

.card-meta { display: inline-block; background: var(--bg-main); border: 1px solid var(--border-color); padding: 4px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; width: fit-content; }
.post-card:nth-child(even) .card-meta { background: var(--accent); }

.card-title { font-size: 1.6rem; line-height: 1.3; margin-bottom: 15px; }
.card-excerpt { font-size: 1rem; color: #444; flex-grow: 1; margin-bottom: 25px; }
.card-author { display: flex; align-items: center; gap: 12px; margin-top: auto; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; }
.card-author img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); object-fit: cover; }
.card-author-name { font-size: 0.9rem; font-weight: 600; font-family: var(--header-font); }
.card-date { font-size: 0.8rem; color: #555; }

/* --- POST ARTICLE --- */
.post-container { max-width: 900px; margin: 0 auto 80px; background: var(--bg-main); padding: 50px; border: 1px solid var(--border-color); border-radius: 40px; box-shadow: var(--shadow-solid); }
@media (max-width: 768px) { .post-container { padding: 30px 20px; border-radius: 20px; } }
.post-header { margin-bottom: 40px; border-bottom: 2px dashed var(--border-color); padding-bottom: 40px; text-align: center; }
.post-category { display: inline-block; background: var(--accent); border: 1px solid var(--border-color); padding: 6px 15px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.post-h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 30px; }
.post-author-block { display: inline-flex; align-items: center; gap: 15px; background: var(--bg-alt); padding: 10px 25px; border-radius: 30px; border: 1px solid var(--border-color); }
.post-author-block img { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border-color); }
.post-author-info { text-align: left; }
.post-author-info strong { display: block; font-size: 1.1rem; font-family: var(--header-font); }
.post-author-info span { font-size: 0.85rem; color: #555; }

/* POST CONTENT */
.post-content { font-size: 1.15rem; line-height: 1.8; color: #222; }
.post-content p { margin-bottom: 25px; }
.post-content h2 { font-size: 2.2rem; margin: 60px 0 25px; padding-bottom: 15px; border-bottom: 2px solid var(--border-color); display: inline-block; }
.post-content h3 { font-size: 1.6rem; margin: 40px 0 15px; }
.post-content ul, .post-content ol { margin: 0 0 25px 20px; padding-left: 20px; }
.post-content li { margin-bottom: 12px; }
.post-content blockquote { font-family: var(--header-font); font-size: 1.4rem; border: 1px solid var(--border-color); border-left: 10px solid var(--accent); padding: 25px; margin: 40px 0; background: var(--bg-alt); border-radius: 0 20px 20px 0; font-weight: 500; }
.post-content table { width: 100%; border-collapse: collapse; margin: 40px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-color); }
.post-content th, .post-content td { padding: 15px; border: 1px solid var(--border-color); text-align: left; }
.post-content th { background: var(--accent); font-weight: 700; font-family: var(--header-font); font-size: 1.1rem; }
.post-content a { color: var(--text-main); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.post-content a:hover { background: var(--accent); }

/* FAQ BLOCK */
.faq-block { background: var(--bg-alt); padding: 30px; margin: 20px 0; border: 1px solid var(--border-color); border-radius: 20px; box-shadow: 0px 4px 0px var(--border-color); }
.faq-question { font-weight: 700; font-size: 1.3rem; margin-bottom: 15px; font-family: var(--header-font); display: flex; gap: 10px; align-items: center;}
.faq-question::before { content: "+"; background: var(--accent); width: 30px; height: 30px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--border-color); font-weight: bold; }
.faq-answer { margin-bottom: 0; font-size: 1.1rem; padding-left: 40px; }

/* RELATED POSTS */
.related-posts { margin-top: 80px; padding-top: 50px; border-top: 2px solid var(--border-color); }
.related-title { font-size: 2.2rem; margin-bottom: 40px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.related-grid .post-card { padding: 25px; border-radius: 20px; box-shadow: 0px 4px 0px var(--border-color); }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 15px; margin: 40px 0 80px; font-family: var(--header-font); }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid var(--border-color); border-radius: 12px; font-size: 1.2rem; font-weight: 700; background: var(--bg-main); box-shadow: 0px 3px 0px var(--border-color); }
.page-link:hover, .page-link.active { background: var(--accent); transform: translateY(-2px); box-shadow: 0px 5px 0px var(--border-color); }

/* --- FOOTER --- */
.site-footer { background: var(--text-main); color: var(--bg-main); padding: 80px 20px 40px; margin-top: auto; border-top-left-radius: 40px; border-top-right-radius: 40px; max-width: 1240px; margin: 0 auto; width: 100%; }
.footer-container { display: grid; grid-template-columns: 1fr; gap: 50px; }
@media(min-width: 768px) { .footer-container { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { font-size: 2.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-icon { background: var(--bg-main); }
.footer-title { background: var(--accent); color: var(--text-main); display: inline-block; padding: 5px 15px; border-radius: 8px; font-size: 1rem; margin-bottom: 25px; }
.footer-stats li { margin-bottom: 15px; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; font-size: 1.1rem; }
.footer-stats span:last-child { color: var(--accent); font-weight: bold; font-family: var(--header-font); font-size: 1.2rem;}
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #999; }
