:root {
    --primary-color: #ef7676;
    --bg-light: #f4f7f8;
    --text-dark: #333333;
    --text-muted: #888888;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

/* Header */
.site-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Ticker */
.ticker-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    margin-top: 20px;
}

.ticker-container {
    display: flex;
    align-items: center;
    padding: 0;
}

.ticker-label {
    background-color: #7a8288;
    color: var(--white);
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.ticker-text {
    padding: 0 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-controls button {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.category-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 4px 8px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 10;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

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

.card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
}

.card-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-top: 8px;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.hero-card .card-title {
    font-size: 0.9rem;
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.large-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.main-card.large {
    background: var(--white);
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.main-card.large .card-title {
    font-size: 1.4rem;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid var(--text-dark);
    padding: 5px 15px;
    margin-top: 10px;
}

.read-more:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* Horizontal Cards */
.small-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.horizontal-card {
    display: flex;
    background: var(--white);
    padding: 10px;
    gap: 15px;
    align-items: center;
}

.horizontal-card img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    padding: 20px;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.widget-item:last-child {
    margin-bottom: 0;
}

.widget-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.w-content h4 {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 5px;
}

.w-content span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Pre-Footer Welcome */
.pre-footer-welcome {
    background-color: var(--white);
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.pre-footer-welcome h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.pre-footer-welcome p {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: #f0f0f0;
}

.footer-top {
    padding: 40px 0;
}

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

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    font-size: 0.9rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Cookie Modal (Right positioned) */
.cookie-modal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--primary-color);
}

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

.cookie-content {
    padding: 20px;
}

.cookie-content h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cookie-content p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
}

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

.btn-accept, .btn-close {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
}

.btn-accept {
    background-color: var(--primary-color);
    color: var(--white);
    flex-grow: 1;
}

.btn-accept:hover {
    background-color: #d96262;
}

.btn-close {
    background-color: #e0e0e0;
    color: var(--text-dark);
}

.btn-close:hover {
    background-color: #cccccc;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .large-cards-row, .small-cards-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    .cookie-modal {
        right: 15px;
        left: 15px;
        width: auto;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .ticker-text {
        display: none;
    }
}
/* --- Стили для внутренней страницы --- */
/* =========================================
   SINGLE ARTICLE STYLES
   ========================================= */

.single-article {
    background-color: var(--white);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-radius: 4px;
}

.article-header {
    margin-bottom: 25px;
    position: relative;
}

.static-tag {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 2px;
}

.single-article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta strong {
    color: var(--text-dark);
    margin-left: 4px;
}

/* Typography styles: h1-h6, p, span */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-body h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.article-body h3 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.article-body h4 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    color: #555;
}

.article-body h5 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
    font-weight: bold;
}

.article-body h6 {
    font-size: 0.95rem;
    margin: 15px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body .dropcap {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-right: 8px;
    padding-top: 6px;
    color: var(--primary-color);
    font-weight: bold;
}

.article-body .highlight-text {
    background-color: rgba(239, 118, 118, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
    font-style: italic;
    color: var(--text-dark);
}

/* Image Styles */
.article-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-inline-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Table Styles */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
    background-color: var(--white);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

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

.article-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

.article-table tr:hover {
    background-color: #f5f5f5;
}

/* =========================================
   FORMS STYLES (Comments & Contact)
   ========================================= */

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.comments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

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

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.custom-form input,
.custom-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(239, 118, 118, 0.1);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #d96262;
}

.btn-full {
    width: 100%;
}

/* Sidebar Contact Form specific styles */
.author-contact-widget {
    background-color: #fdfaf5;
    border: 1px solid #f0e6d2;
    border-top: 4px solid var(--primary-color);
}

.widget-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 0.9rem;
}

/* Responsive adjustments for article page */
@media (max-width: 768px) {
    .single-article {
        padding: 20px;
    }
    
    .single-article-title {
        font-size: 2rem;
    }

    .custom-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}
.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.article-body ul {
    margin: 18px 0;
    padding-left: 22px;
    list-style: none;
}

.article-body ul li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 14px;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

.article-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: #d9534f;
    border-radius: 50%;
}