/* CSS Variables & Reset */
:root {
    --bg-color: #f4f5f5;
    --text-color: #1a1a1a;
    --accent-yellow: #ffcc00;
    --border-color: #000000;
    --footer-bg: #111111;
    --footer-text: #e0e0e0;
    --shadow-offset: 6px;
    --border-width: 3px;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Neo-Brutalism Utilities */
.neo-card {
    background-color: #fff;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px 0px var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tag {
    display: inline-block;
    background-color: var(--accent-yellow);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag-dark {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Top Bar */
.top-bar {
    background-color: var(--text-color);
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticker {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 70%;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}
.social-icon.blue { background-color: #1877f2; }
.social-icon.pink { background-color: #e4405f; }
.social-icon.yellow { background-color: #ffcc00; color: #000; }

/* Header */
.main-header {
    padding: 20px 0;
    background-color: var(--bg-color);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* Navbar */
.navbar {
    background-color: var(--accent-yellow);
    border-top: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
    padding: 15px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    font-weight: 700;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: #fff;
}

/* Main Content */
main {
    padding: 40px 20px;
}

/* Hero */
.hero {
    position: relative;
    height: 450px;
    margin-bottom: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay-card {
    position: relative;
    z-index: 2;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.hero-overlay-card h2 {
    font-size: 2.2rem;
    margin: 15px 0;
}

/* Layout Grid */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 50px;
}

/* Article Cards */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-card {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: center;
}

.article-img-wrap {
    flex: 0 0 40%;
}

.article-img-wrap img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
    border: 2px solid var(--border-color);
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 10px;
}

.author {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Sidebar Search */
.search-widget {
    padding: 0;
    overflow: hidden;
}

.widget-header {
    background-color: var(--accent-yellow);
    padding: 15px;
    font-weight: 800;
    text-align: center;
    border-bottom: var(--border-width) solid var(--border-color);
}

.widget-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-body input {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-yellow);
    padding: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 4px 4px 0px 0px var(--border-color);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px var(--border-color);
}

/* Missed Section */
.missed-section {
    padding: 0;
    overflow: hidden;
    margin-bottom: 50px;
}

.missed-header {
    background-color: var(--accent-yellow);
    padding: 15px;
    text-align: center;
    border-bottom: var(--border-width) solid var(--border-color);
}

.missed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.mini-card {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
}

.mini-card h4 {
    font-size: 1rem;
    margin-top: 5px;
    text-shadow: 1px 1px 2px #000;
}

/* Welcome Section */
.welcome-section {
    background-color: #fff;
    border-top: var(--border-width) solid var(--border-color);
    padding: 60px 0;
    text-align: center;
}

.welcome-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.welcome-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    border-top: var(--border-width) solid var(--border-color);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-badge {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--border-color);
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.disclaimer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #aaa;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    padding: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Initial state can be adjusted by JS */
}

.cookie-modal p {
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions button {
    flex: 1;
}

.btn-secondary {
    background-color: #eee;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    
    .missed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .ticker {
        width: 100%;
    }

    .nav-inner {
        flex-direction: column;
        gap: 15px;
    }

    .article-card {
        flex-direction: column;
    }

    .article-img-wrap {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cookie-modal {
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .missed-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-overlay-card h2 {
        font-size: 1.5rem;
    }
}

/* --- Стили для внутренней страницы --- */
/* =========================================
   NEW STYLES FOR INNER ARTICLE PAGE
========================================= */

/* Post Wrapper & Header */
.single-post-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.post-card {
    padding: 30px;
    background-color: #fff;
}

.post-header {
    margin-bottom: 25px;
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 20px;
}

.post-header .main-title {
    font-size: 2.5rem;
    margin: 15px 0;
    line-height: 1.1;
}

.post-header .author {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
}

/* Images inside Article */
.post-main-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 30px;
    display: block;
}

.post-inline-img {
    width: 100%;
    height: auto;
    margin: 30px 0;
    display: block;
}

/* Typography styles for Article Content */
.post-content {
    color: var(--text-color);
    font-size: 1.1rem;
}

.post-content h1, 
.post-content h2, 
.post-content h3, 
.post-content h4, 
.post-content h5, 
.post-content h6 {
    color: var(--text-color);
    margin-top: 35px;
    margin-bottom: 15px;
}

.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.7rem; }
.post-content h4 { font-size: 1.4rem; }
.post-content h5 { font-size: 1.2rem; }
.post-content h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-content span {
    background-color: var(--accent-yellow);
    padding: 2px 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 700;
}

/* Table Styles */
.post-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    overflow: hidden;
}

.post-table th, 
.post-table td {
    border: var(--border-width) solid var(--border-color);
    padding: 15px;
    text-align: left;
}

.post-table th {
    background-color: var(--accent-yellow);
    font-weight: 800;
    font-size: 1.1rem;
}

.post-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Comments & Contact Form Styles */
.comments-section {
    padding: 0;
    overflow: hidden;
}

.comments-header {
    background-color: var(--accent-yellow);
    padding: 20px 30px;
    border-bottom: var(--border-width) solid var(--border-color);
}

.comments-header h3 {
    margin: 0;
    font-size: 1.6rem;
}

.comments-body {
    padding: 30px;
    background-color: #fff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group label span {
    color: #e4405f;
}

.form-control {
    padding: 14px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-color);
    transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s;
}

.form-control:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 4px 4px 0px 0px var(--border-color);
    transform: translate(-2px, -2px);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    align-self: flex-start;
    padding: 15px 30px;
    margin-top: 10px;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .post-header .main-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .comments-body {
        padding: 20px;
    }

    .post-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}