:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --primary-color: #B28F64;
    --primary-hover: #9c7c56;
    --header-border: #eeeeee;
    --footer-top-bg: #111111;
    --footer-bottom-bg: #000000;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-light: #aaaaaa;
    --header-border: #333333;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
}

/* Icons */
.icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.icon-small {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--header-border);
    padding-top: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.social-icons a, .user-actions button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.social-icons a:first-child {
    margin-left: 0;
    margin-right: 15px;
}

.social-icons a:hover, .user-actions button:hover {
    opacity: 1;
}

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

.logo-img {
    width: 60px;
}

.logo h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.header-nav {
    border-top: 1px solid var(--header-border);
}

.header-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
}

.header-nav a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.featured-img-wrapper img {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 16/10;
}

.category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

.featured-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 13px;
    align-items: center;
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.post-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1/1;
}

.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
}

/* Sidebar */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 18px;
    border-bottom: 2px solid var(--header-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--header-border);
    border-right: none;
    outline: none;
    font-family: inherit;
    background-color: transparent;
    color: var(--text-color);
}

.search-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition);
    font-family: var(--font-heading);
}

.search-form button:hover {
    background-color: var(--primary-hover);
}

/* Você Pulou Section */
.missed-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--header-border);
}

.section-title {
    font-size: 20px;
    border-bottom: 2px solid var(--header-border);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

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

.missed-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.missed-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.missed-card:hover img {
    transform: scale(1.05);
}

.missed-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
}

.missed-overlay h4 {
    color: var(--white);
    font-size: 16px;
    line-height: 1.3;
}

/* Welcome Pre-footer */
.welcome-pre-footer {
    background-color: var(--bg-color);
    text-align: center;
    padding: 60px 0 40px;
    margin-top: 40px;
    border-top: 1px solid var(--header-border);
}

.welcome-pre-footer h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.welcome-pre-footer p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    color: var(--white);
}

.footer-top {
    background-color: var(--footer-top-bg);
    padding: 30px 0;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom {
    background-color: var(--footer-bottom-bg);
    padding: 20px 0;
    border-bottom: 1px solid #222;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--white);
}

.scroll-top {
    background-color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition);
}

.scroll-top:hover {
    background-color: var(--primary-hover);
}

.scroll-top img {
    width: 16px;
    filter: brightness(0) invert(1);
}

.footer-disclaimer {
    background-color: var(--footer-bottom-bg);
    padding: 20px 0 30px;
    font-size: 11px;
    color: #666;
    text-align: justify;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    background-color: var(--bg-color);
    border: 1px solid var(--header-border);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 9999;
    padding: 20px;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-modal.show {
    transform: translateY(0);
}

.cookie-content p {
    font-size: 13px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: background-color var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

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

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-card img {
        aspect-ratio: 16/9;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .missed-grid {
        grid-template-columns: 1fr;
    }
    
    .header-nav ul {
        flex-wrap: wrap;
    }
}
/* Inner page styles */
/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 30px;
}
.breadcrumbs a {
    color: var(--text-color);
    font-weight: 600;
}
.breadcrumbs a:hover {
    color: var(--primary-color);
}

/* Single Post Header */
.post-header {
    margin-bottom: 25px;
}
.post-header h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 10px 0 20px;
}

/* Post Main Image */
.post-main-image-wrapper {
    margin-bottom: 40px;
    border-radius: 6px;
    overflow: hidden;
}
.post-main-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Table of Contents */
.toc {
    background-color: #f7f5f2;
    border: 1px solid var(--header-border);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
}
body.dark-mode .toc {
    background-color: #222222;
}
.toc h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.toc ol {
    margin: 0;
    padding-left: 20px;
}
.toc li {
    margin-bottom: 10px;
}
.toc a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all var(--transition);
}
.toc a:hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

/* Post Content Typography & Elements */
.post-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--header-border);
}
.post-content h3 {
    font-size: 24px;
    margin: 35px 0 15px;
}
.post-content h4 {
    font-size: 20px;
    margin: 30px 0 15px;
}
.post-content h5 {
    font-size: 18px;
    margin: 25px 0 10px;
    color: var(--primary-color);
}
.post-content h6 {
    font-size: 16px;
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.post-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}
.text-highlight {
    color: var(--primary-color);
    font-weight: 700;
    background-color: rgba(178, 143, 100, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}
.post-content ul, 
.post-content ol {
    margin: 0 0 25px 20px;
    padding-left: 20px;
}
.post-content ul li, 
.post-content ol li {
    margin-bottom: 12px;
    line-height: 1.7;
}
.post-content ul {
    list-style-type: square;
}

/* Inner Article Image */
.inner-image {
    margin: 40px 0;
}
.inner-image img {
    width: 100%;
    border-radius: 4px;
    height: auto;
}
.inner-image figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
}

/* Styled Table */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.content-table thead tr {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: left;
}
.content-table th, 
.content-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--header-border);
}
.content-table tbody tr:nth-of-type(even) {
    background-color: rgba(0,0,0,0.02);
}
body.dark-mode .content-table tbody tr:nth-of-type(even) {
    background-color: rgba(255,255,255,0.02);
}
.content-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--primary-color);
}

/* Forms Styling (Comments & Contact) */
.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}
.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--header-border);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(178, 143, 100, 0.1);
}
.btn-full {
    width: 100%;
    text-align: center;
    padding: 14px;
}

/* Comments Section Specifics */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--header-border);
}
.comments-section h3 {
    font-size: 24px;
    margin-bottom: 5px;
}
.comments-subtitle {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 14px;
}

/* Contact Widget Specifics */
.widget-contact {
    background-color: rgba(178, 143, 100, 0.05);
    padding: 25px;
    border-radius: 4px;
    border: 1px solid var(--header-border);
}
.widget-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Related Articles (Перелинковка) */
.related-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--header-border);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.related-card {
    border: 1px solid var(--header-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.related-img-wrap img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.related-content {
    padding: 20px;
}
.related-content h4 {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .post-header h1 {
        font-size: 32px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .post-header h1 {
        font-size: 26px;
    }
    .post-content h2 {
        font-size: 24px;
    }
    .content-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}