/*
Theme Name: Modern Car News
Description: Современная и эстетичная тема для автомобильного новостного сайта с профессиональным сайдбаром и news hero блоком
Version: 3.8
Author: CarDriven Team
Tags: responsive, modern, news, automotive, clean, sidebar, featured, search, gutenberg
*/

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #ef4444;
    --secondary-color: #dc2626;
    --accent-color: #b91c1c;
    --dark-color: #202124;
    --text-color: #3c4043;
    --text-light: #5f6368;
    --border-color: #dadce0;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Georgia', serif;
    
    /* Spacing */
    --container-width: 1400px;
    --content-width: 900px;
    --sidebar-width: 350px;
    --section-padding: 4rem 0;
    --border-radius: 12px;
    --border-radius-small: 8px;
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

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

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

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    min-height: 90px;
}

/* Логотип и брендинг */
.site-branding {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.brand-logo {
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    /* Убрана анимация подъема */
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.logo-icon {
    width: 74px;
    height: 74px;
    color: #1e293b;
    transition: all 0.3s ease;
    order: 1;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-logo:hover .logo-icon {
    /* Убрана анимация логотипа */
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    order: 2;
}

.brand-name {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1e293b;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(135deg, #1e293b 0%, #374151 50%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.brand-car {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.brand-subtitle {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
    font-style: italic;
    white-space: normal;
    transition: all 0.3s ease;
    text-align: justify;
    text-align-last: justify;
    text-justify: distribute-all-lines;
    width: 100%;
    display: block;
}

.brand-logo:hover .brand-name {
    /* Убрана анимация основного текста */
}

.brand-logo:hover .brand-car {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo:hover .brand-subtitle {
    /* Убрана анимация подзаголовка */
}

/* Адаптивность для хедера */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem 0;
        min-height: 70px;
    }
    
    .logo-container {
        gap: 0.875rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        order: 1;
    }
    
    .brand-text {
        gap: 0.125rem;
    }
    
    .brand-name {
        font-size: 1.75rem;
        letter-spacing: 0.5px;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.25px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-container {
        gap: 0.625rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        order: 1;
    }
    
    .brand-text {
        gap: 0.125rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
        letter-spacing: 0.25px;
    }
    
    .brand-subtitle {
        font-size: 0.625rem;
        letter-spacing: 0.125px;
    }
}

/* ===== MAIN CONTENT ===== */
.site-main {
    padding: var(--section-padding);
    min-height: 70vh;
}

/* Убираем верхний отступ для страниц статей */
.single-article {
    padding-top: 0 !important;
}

/* Добавляем отступ над сайдбаром на страницах статей */
.single-article .sidebar {
    margin-top: 2rem !important;
}

/* ===== LAYOUT WITH SIDEBAR ===== */
.content-area {
    display: flex !important;
    flex-direction: row !important;
    gap: 3rem !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: none !important;
}

.main-content {
    min-width: 0 !important; /* Prevent grid blowout */
    flex: 1 !important;
    width: auto !important;
    order: 1 !important; /* Контент всегда слева */
}

.sidebar {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    width: 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    order: 2 !important; /* Сайдбар всегда справа */
}

/* Дополнительные правила для гарантии правильного порядка */
.content-area .sidebar,
.single-article .sidebar,
body .sidebar,
html .sidebar,
.sidebar {
    order: 2 !important;
}

.content-area .main-content,
.single-article .main-content,
body .main-content,
html .main-content,
.main-content {
    order: 1 !important;
}

.no-sidebar .content-area {
    grid-template-columns: 1fr;
}

.no-sidebar .sidebar {
    display: none;
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar .widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

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

.sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.sidebar .widget a:hover {
    color: var(--primary-color);
    /* padding-left: 0.5rem; - УБИРАЕМ СДВИГ ПО ЗАПРОСУ ПОЛЬЗОВАТЕЛЯ */
}

.sidebar .widget p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

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

/* Стили для популярных постов в сайдбаре */
.sidebar .widget .post-item {
    display: flex;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .widget .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .widget .post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

.sidebar .widget .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar .widget .post-info {
    flex: 1;
}

.sidebar .widget .post-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.sidebar .widget .post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ===== POSTS GRID ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-meta {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

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

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-color);
}

/* ===== SINGLE POST ===== */
.single-post {
    /* max-width: 800px; - УБИРАЕМ ОГРАНИЧЕНИЕ ШИРИНЫ */
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    /* overflow: hidden; - УБИРАЕМ БЛОКИРОВКУ СКРОЛЛА */
    box-shadow: var(--shadow);
}

.single-post-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.single-post-thumbnail {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.single-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-content {
    padding: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 2rem 0 1rem;
    color: var(--dark-color);
}

.single-post-content h2 {
    font-size: 1.8rem;
}

.single-post-content h3 {
    font-size: 1.5rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-small);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Адаптивные стили навигации удалены */
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .single-post-header,
    .single-post-content {
        padding: 2rem 1.5rem;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--dark-color);
    margin-bottom: 4px;
    transition: var(--transition);
}

.hamburger span:last-child {
    margin-bottom: 0;
}

/* ===== PAGINATION ===== */
.pagination {
    margin: 4rem 0;
    text-align: center;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.125rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    min-width: 48px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.pagination a {
    background: #ffffff;
    color: #374151;
    border: 2px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.pagination .current {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 2px solid #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Стили для кнопок Назад/Далее */
.pagination a.prev,
.pagination a.next {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.pagination a.prev:hover,
.pagination a.next:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Эффект пульсации для текущей страницы */
.pagination .current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ===== POST NAVIGATION ===== */
.post-navigation {
    margin: 3rem 0;
}

.nav-links {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.nav-previous,
.nav-next {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-previous:hover,
.nav-next:hover {
    box-shadow: var(--shadow-hover);
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-direction {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
}

/* ===== RELATED POSTS ===== */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.related-posts-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.related-post-thumbnail {
    height: 180px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.25rem;
}

.related-post-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.related-post-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--primary-color);
}

.related-post-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== TAGS & CATEGORIES ===== */
.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.post-tags a {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-small);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.no-results h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== SCREEN READER TEXT ===== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #ef4444;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 1200px) {
    .sidebar {
        width: 300px;
        min-width: 300px;
    }
    
    .content-area {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .content-area {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
        width: 100%;
        min-width: auto;
        order: 2 !important; /* Сайдбар под контентом на планшетах */
    }
    
    .main-content {
        order: 1 !important; /* Контент сверху на планшетах */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Мобильные стили навигации удалены */
    
    .content-area {
        gap: 1.5rem;
    }
    
    .sidebar {
        padding: 1.5rem;
        order: 2 !important; /* Сайдбар под контентом на мобильных */
    }
    
    .main-content {
        order: 1 !important; /* Контент сверху на мобильных */
    }
    
    .sidebar .widget {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-tags {
        justify-content: center;
    }
    
    .single-post-header,
    .single-post-content {
        padding: 2rem 1.5rem;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== LOADING ANIMATIONS ===== */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* ===== HAMBURGER ANIMATION ===== */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
} 

/* ===== УЛУЧШЕННЫЕ СТИЛИ САЙДБАРА ===== */

/* Основные стили виджетов сайдбара */
.sidebar .widget {
    margin-bottom: 1.5rem;
    padding: 0;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sidebar .widget:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

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

/* Заголовки виджетов с иконками */
.sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 1rem 1.25rem;
    color: #1e293b;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar .widget-title .widget-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.sidebar .widget-content {
    padding: 1.25rem;
}

/* Виджет "О сайте" */
.widget-about .stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.widget-about .stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.widget-about .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.widget-about .stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Виджет категорий */
.widget-categories .category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-categories .category-item {
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
}

.widget-categories .category-item:last-child {
    border-bottom: none;
}

.widget-categories .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-categories .category-link:hover {
    color: var(--primary-color);
}

.widget-categories .category-name {
    font-weight: 500;
}

.widget-categories .category-count {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 1.5rem;
    text-align: center;
}

/* Виджет последних постов */
.widget-recent-posts .recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget-recent-posts .recent-post-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.widget-recent-posts .recent-post-item:last-child {
    border-bottom: none;
}

.widget-recent-posts .recent-post-item:hover {
    background: #f8fafc;
}

.widget-recent-posts .recent-post-thumbnail {
    flex-shrink: 0;
    position: relative;
}

.widget-recent-posts .recent-post-image {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.widget-recent-posts .recent-post-content {
    flex: 1;
    min-width: 0;
}

.widget-recent-posts .recent-post-title {
    margin: 0 0 0.375rem 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.widget-recent-posts .recent-post-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-recent-posts .recent-post-title a:hover {
    color: var(--primary-color);
}

.widget-recent-posts .recent-post-date {
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 500;
}

/* Виджет подписки */
.widget-newsletter p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.widget-newsletter .newsletter-form {
    margin: 0;
}

.widget-newsletter .newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.widget-newsletter .newsletter-email {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.2s ease;
}

.widget-newsletter .newsletter-email:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.widget-newsletter .newsletter-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-newsletter .newsletter-submit:hover {
    background: var(--secondary-color);
}

/* Виджет брендов */
.widget-brands .brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.widget-brands .brand-link {
    display: block;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.widget-brands .brand-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Виджет социальных сетей */
.widget-social .social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget-social .social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

.widget-social .social-link:hover {
    transform: translateX(4px);
}

.widget-social .social-telegram {
    border-left: 4px solid #ef4444;
}

.widget-social .social-telegram:hover {
    background: #fef2f2;
    color: #ef4444;
}

.widget-social .social-vk {
    border-left: 4px solid #dc2626;
}

.widget-social .social-vk:hover {
    background: #fef2f2;
    color: #dc2626;
}

.widget-social .social-youtube {
    border-left: 4px solid #ff0000;
}

.widget-social .social-youtube:hover {
    background: #ffebee;
    color: #ff0000;
}

/* Адаптивность для сайдбара */
@media (max-width: 1200px) {
    .sidebar {
        width: 300px;
        min-width: 300px;
    }
    
    .widget-brands .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .widget-about .stats-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar .widget-content {
        padding: 1rem;
    }
    
    .sidebar .widget-title {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .widget-recent-posts .recent-post-item {
        padding: 0.75rem;
    }
    
    .widget-recent-posts .recent-post-image {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .sidebar .widget {
        margin-bottom: 1.25rem;
    }
    
    .sidebar .widget-content {
        padding: 0.875rem;
    }
    
    .sidebar .widget-title {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .widget-recent-posts .recent-post-item {
        padding: 0.625rem;
    }
    
    .widget-recent-posts .recent-post-image {
        width: 55px;
        height: 40px;
    }
    
    .widget-recent-posts .recent-post-title {
        font-size: 0.75rem;
    }
    
    .widget-recent-posts .recent-post-date {
        font-size: 0.65rem;
    }
    
    .widget-brands .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 

/* ===== КАСТОМНЫЕ ВИДЖЕТЫ ===== */

/* Виджет автомобильных категорий */
.car-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.car-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    text-align: center;
}

.car-category-item:hover {
    background: white;
    border-color: var(--category-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.car-category-item .category-icon {
    color: var(--category-color);
    transition: transform 0.2s ease;
}

.car-category-item:hover .category-icon {
    transform: scale(1.1);
}

.car-category-item .category-text {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Виджет последних новостей с фото */
.latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.latest-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    /* transition: all 0.2s ease; - УБИРАЕМ АНИМАЦИИ */
    /* border-left: 4px solid transparent; - УБИРАЕМ BORDER ДЛЯ ПРЕДОТВРАЩЕНИЯ СДВИГА */
}

/* .latest-news-item:hover - УБИРАЕМ ПО ЗАПРОСУ ПОЛЬЗОВАТЕЛЯ */

.latest-news-item .news-thumbnail {
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.latest-news-item .news-image {
    width: 100px;
    height: 75px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.latest-news-item:hover .news-image {
    transform: scale(1.05);
}

.latest-news-item .news-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.latest-news-item .news-content {
    flex: 1;
    min-width: 0;
}

.latest-news-item .news-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.3;
}

.latest-news-item .news-title a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news-item .news-title a:hover {
    color: var(--primary-color);
}

.latest-news-item .news-excerpt {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Адаптивность для кастомных виджетов */
@media (max-width: 1200px) {
    .car-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .car-category-item {
        flex-direction: row;
        text-align: left;
        padding: 0.875rem;
    }
}

@media (max-width: 768px) {
    .latest-news-item {
        flex-direction: column;
        text-align: center;
    }
    
    .latest-news-item .news-thumbnail {
        align-self: center;
    }
    
    .latest-news-item .news-image {
        width: 120px;
        height: 90px;
    }
    
    .car-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .car-category-item {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }
    
    .car-category-item .category-text {
        font-size: 0.8rem;
    }
} 

/* ===== БЛОК "СЕЙЧАС ЧИТАЮТ" ===== */

.now-reading-section {
    background: #ffffff;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.now-reading-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    text-align: left;
}

.now-reading-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem 2rem;
    column-gap: 2rem;
}

.now-reading-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.reading-bullet {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.reading-text {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reading-text:hover {
    color: #1f2937;
    text-decoration: underline;
}

/* Адаптивность для "Сейчас читают" */
@media (max-width: 768px) {
    .now-reading-section {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .now-reading-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .now-reading-list {
        grid-template-columns: 1fr;
        gap: 0.375rem;
        column-gap: 0;
    }
    
    .reading-text {
        font-size: 0.8125rem;
    }
}

/* ===== НОВОСТНОЙ ГЕРОЙ БЛОК ===== */

.news-hero-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas: "featured recent";
    min-height: 400px;
    position: relative;
}

/* Главная статья (левая часть) */
.featured-article {
    grid-area: featured;
    position: relative;
    background: #f8fafc;
}

.featured-post {
    height: 100%;
    position: relative;
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: #e5e7eb;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .featured-img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 2rem;
}

.featured-content {
    color: white;
    width: 100%;
}

.featured-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.featured-title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.featured-title a:hover {
    color: #f1f5f9;
}

.featured-meta {
    margin: 0;
}

.featured-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Список новостей (средняя часть) */
.recent-news-list {
    grid-area: recent;
    background: white;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.recent-news-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.recent-news-title {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.recent-news-items {
    flex: 1;
    padding: 0;
}

.recent-news-item {
    border-bottom: 1px solid #f1f5f9;
    /* transition: background-color 0.2s ease; - УБИРАЕМ АНИМАЦИИ ПО ЗАПРОСУ ПОЛЬЗОВАТЕЛЯ */
}

/* .recent-news-item:hover - УБИРАЕМ ПО ЗАПРОСУ ПОЛЬЗОВАТЕЛЯ */

.recent-news-item:last-child {
    border-bottom: none;
}

.recent-item-content {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-item-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.recent-item-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-item-title a:hover {
    color: var(--primary-color);
}

.recent-item-time {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Рекламный блок удален по запросу пользователя */

/* Адаптивные стили */
@media (max-width: 1200px) {
    .news-hero-container {
        grid-template-columns: 2fr 1fr;
        grid-template-areas: "featured recent";
    }
}

@media (max-width: 768px) {
    .news-hero-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "featured"
            "recent";
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .featured-overlay {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .recent-news-list {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
    
    .recent-news-header {
        padding: 0.875rem 1rem;
    }
    
    .recent-item-content {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 480px) {
    .news-hero-section {
        margin-bottom: 2rem;
        border-radius: 8px;
    }
    
    .featured-image {
        min-height: 250px;
    }
    
    .featured-overlay {
        padding: 1rem;
    }
    
    .featured-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .featured-date {
        font-size: 0.8rem;
    }
    
    .recent-item-title {
        font-size: 0.8rem;
    }
} 

/* ===== ПОЛНОСТЬЮ ПЕРЕДЕЛАННЫЕ СТИЛИ ПОИСКА ===== */

/* БЛОЧНЫЕ И КЛАССИЧЕСКИЕ ВИДЖЕТЫ ПОИСКА */
.sidebar .widget.widget_search,
.sidebar .widget.widget_block,
.sidebar .widget_search,
.sidebar .wp-block-search,
.widget.widget_search,
.widget.widget_block,
.widget_search,
.wp-block-search,
.search-form-container {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 1.5rem !important;
}

/* ЗАГОЛОВКИ ВИДЖЕТОВ ПОИСКА */
.sidebar .widget.widget_search .widget-title,
.sidebar .widget.widget_block .widget-title,
.sidebar .widget_search .widget-title,
.sidebar .wp-block-search .widget-title,
.widget.widget_search .widget-title,
.widget.widget_block .widget-title,
.widget_search .widget-title,
.wp-block-search .widget-title,
.widget-title {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.75px !important;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* КОНТЕНТ ВИДЖЕТОВ ПОИСКА */
.sidebar .widget.widget_search .widget-content,
.sidebar .widget.widget_block .widget-content,
.sidebar .widget_search .widget-content,
.sidebar .wp-block-search .widget-content,
.widget.widget_search .widget-content,
.widget.widget_block .widget-content,
.widget_search .widget-content,
.wp-block-search .widget-content {
    padding: 1.5rem !important;
}

/* ВСЕ ФОРМЫ ПОИСКА */
.search-form,
.widget_search form,
.sidebar .widget_search form,
.sidebar .widget.widget_search form,
.sidebar .widget.widget_block form,
.sidebar .wp-block-search form,
.widget.widget_search form,
.widget.widget_block form,
.wp-block-search form,
.wp-block-search__form,
.wp-block-search .wp-block-search__inside-wrapper,
form.searchform,
.searchform {
    display: flex !important;
    gap: 0 !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ВСЕ ПОЛЯ ПОИСКА */
.search-field,
.widget_search input[type="search"],
.sidebar .widget_search input[type="search"],
.sidebar .widget.widget_search input[type="search"],
.sidebar .widget.widget_block input[type="search"],
.sidebar .wp-block-search input[type="search"],
.widget.widget_search input[type="search"],
.widget.widget_block input[type="search"],
.wp-block-search input[type="search"],
.wp-block-search__input,
input.search-field,
input[type="search"],
.searchform input[type="search"] {
    flex: 1 !important;
    padding: 0.875rem 1.125rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px 0 0 10px !important;
    background: #ffffff !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    transition: all 0.25s ease !important;
    outline: none !important;
    border-right: none !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    width: auto !important;
    height: auto !important;
    min-height: 48px !important;
    max-width: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* ФОКУС НА ПОЛЯХ ПОИСКА */
.search-field:focus,
.widget_search input[type="search"]:focus,
.sidebar .widget_search input[type="search"]:focus,
.sidebar .widget.widget_search input[type="search"]:focus,
.sidebar .widget.widget_block input[type="search"]:focus,
.sidebar .wp-block-search input[type="search"]:focus,
.widget.widget_search input[type="search"]:focus,
.widget.widget_block input[type="search"]:focus,
.wp-block-search input[type="search"]:focus,
.wp-block-search__input:focus,
input.search-field:focus,
input[type="search"]:focus,
.searchform input[type="search"]:focus {
    border-color: #ef4444 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
    background: #fefefe !important;
}

/* PLACEHOLDER ТЕКСТ */
.search-field::placeholder,
.widget_search input[type="search"]::placeholder,
.wp-block-search input[type="search"]::placeholder,
.wp-block-search__input::placeholder,
input[type="search"]::placeholder {
    color: #9ca3af !important;
    font-style: normal !important;
    opacity: 0.8 !important;
}

/* ВСЕ КНОПКИ ПОИСКА */
.search-submit,
.widget_search input[type="submit"],
.sidebar .widget_search input[type="submit"],
.sidebar .widget.widget_search input[type="submit"],
.sidebar .widget.widget_block input[type="submit"],
.sidebar .wp-block-search input[type="submit"],
.widget.widget_search input[type="submit"],
.widget.widget_block input[type="submit"],
.wp-block-search input[type="submit"],
.wp-block-search__button,
.wp-block-search .wp-block-search__button,
input.search-submit,
input[type="submit"],
.searchform input[type="submit"],
button[type="submit"] {
    padding: 0.875rem 1.375rem !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border: 2px solid #ef4444 !important;
    border-radius: 0 10px 10px 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    border-left: none !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
    text-shadow: none !important;
    height: auto !important;
    min-height: 48px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    text-transform: none !important;
}

/* HOVER НА КНОПКАХ */
.search-submit:hover,
.widget_search input[type="submit"]:hover,
.sidebar .widget_search input[type="submit"]:hover,
.sidebar .widget.widget_search input[type="submit"]:hover,
.sidebar .widget.widget_block input[type="submit"]:hover,
.sidebar .wp-block-search input[type="submit"]:hover,
.widget.widget_search input[type="submit"]:hover,
.widget.widget_block input[type="submit"]:hover,
.wp-block-search input[type="submit"]:hover,
.wp-block-search__button:hover,
input.search-submit:hover,
input[type="submit"]:hover,
.searchform input[type="submit"]:hover,
button[type="submit"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #dc2626 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3) !important;
}

/* ACTIVE СОСТОЯНИЕ */
.search-submit:active,
.widget_search input[type="submit"]:active,
.wp-block-search input[type="submit"]:active,
.wp-block-search__button:active,
input[type="submit"]:active,
button[type="submit"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
}

/* БЛОЧНЫЕ ПОИСКИ WORDPRESS (Gutenberg) */
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
    display: flex !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.wp-block-search.wp-block-search__button-inside .wp-block-search__input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1 !important;
}

.wp-block-search.wp-block-search__button-inside .wp-block-search__button {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* УБИРАЕМ ДЕФОЛТНЫЕ СТИЛИ WP */
.wp-block-search .wp-block-search__label {
    display: none !important;
}

.wp-block-search.wp-block-search__button-outside .wp-block-search__button {
    margin-left: 0.5rem !important;
    border-radius: 10px !important;
}

/* ИКОНКА ПОИСКА (если используется) */
.search-icon,
.wp-block-search__button svg,
.wp-block-search__button .search-icon {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
}

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ GUTENBERG БЛОКОВ */
.widget_block .wp-block-search {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.widget_block .widget-title + .wp-block-search {
    margin-top: 0 !important;
}

/* ===== АДАПТИВНЫЕ СТИЛИ ПОИСКА ===== */

@media (max-width: 1024px) {
    .sidebar .widget.widget_search,
    .sidebar .widget.widget_block,
    .sidebar .wp-block-search,
    .widget_search,
    .wp-block-search {
        margin-bottom: 1.25rem !important;
    }
    
    .search-field,
    .widget_search input[type="search"],
    .wp-block-search input[type="search"],
    .wp-block-search__input,
    input[type="search"] {
        font-size: 0.8rem !important;
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
    }
    
    .search-submit,
    .widget_search input[type="submit"],
    .wp-block-search input[type="submit"],
    .wp-block-search__button,
    input[type="submit"] {
        padding: 0.75rem 1.125rem !important;
        font-size: 0.8rem !important;
        min-height: 44px !important;
    }
}

@media (max-width: 768px) {
    .search-field,
    .widget_search input[type="search"],
    .wp-block-search input[type="search"],
    .wp-block-search__input,
    input[type="search"] {
        font-size: 0.75rem !important;
        padding: 0.625rem 0.875rem !important;
        min-height: 42px !important;
    }
    
    .search-submit,
    .widget_search input[type="submit"],
    .wp-block-search input[type="submit"],
    .wp-block-search__button,
    input[type="submit"] {
        padding: 0.625rem 1rem !important;
        font-size: 0.75rem !important;
        min-height: 42px !important;
    }
}

@media (max-width: 480px) {
    .search-form,
    .widget_search form,
    .wp-block-search form,
    .wp-block-search__form,
    .searchform {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .search-field,
    .widget_search input[type="search"],
    .wp-block-search input[type="search"],
    .wp-block-search__input,
    input[type="search"] {
        border-radius: 10px !important;
        border-right: 2px solid #e5e7eb !important;
        border-bottom: 2px solid #e5e7eb !important;
    }
    
    .search-submit,
    .widget_search input[type="submit"],
    .wp-block-search input[type="submit"],
    .wp-block-search__button,
    input[type="submit"] {
        border-radius: 10px !important;
        border-left: 2px solid #ef4444 !important;
        border-top: 2px solid #ef4444 !important;
    }
    
    .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
        flex-direction: column !important;
        border-radius: 10px !important;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ===== */

/* Скрытие лейблов для accessibility */
.widget_search .screen-reader-text,
.wp-block-search .screen-reader-text,
.wp-block-search__label {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
}

/* Убираем стандартные стили темы для поиска */
.widget_search input,
.wp-block-search input {
    margin: 0 !important;
}

.widget_search form,
.wp-block-search form {
    margin: 0 !important;
}

/* Исправляем проблемы с flexbox в старых браузерах */
.search-form,
.widget_search form,
.wp-block-search form {
    -webkit-box-pack: start !important;
    -ms-flex-pack: start !important;
    justify-content: flex-start !important;
    -webkit-box-align: stretch !important;
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
} 

/* ================================================
   ПРОФЕССИОНАЛЬНАЯ СТРАНИЦА СТАТЬИ
   ================================================ */

/* Progress Bar для чтения */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(200, 200, 200, 0.2);
    z-index: 9999;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
}

.breadcrumbs {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumbs a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #ef4444;
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: #adb5bd;
}

.breadcrumbs .current {
    color: #ef4444;
    font-weight: 500;
}

/* Single Article Layout - полностью наследуем стили от основной темы */
.single-article .container,
.single-article .content-area,
.single-article .main-content {
    /* Никаких ограничений ширины - используем стили основной темы */
}

/* Article Hero Section - Минималистичный дизайн с картинкой */
.article-hero {
    position: relative;
    margin-bottom: 40px;
    margin-top: 20px;
    width: 100%;
    min-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фоновое изображение из featured image */
.article-hero.has-featured-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Альтернативный фон для статей без изображения */
.article-hero:not(.has-featured-image) {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    min-height: 400px;
}

/* Корректировка цветов для статей без featured image */
.article-hero:not(.has-featured-image) .article-title {
    color: white;
}

.article-hero:not(.has-featured-image) .article-excerpt {
    color: rgba(255, 255, 255, 0.85);
}

/* Темный оверлей для читаемости текста */
.article-hero.has-featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 40px;
    max-width: 900px;
    width: 100%;
}

.article-category {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: rgba(239, 68, 68, 1);
    transform: translateY(-2px);
    color: white;
}

.article-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 25px 0;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-excerpt {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.article-publish-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.publish-details {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
}

.publish-date,
.reading-time,
.post-views {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.publish-date:hover,
.reading-time:hover,
.post-views:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.publish-date svg,
.reading-time svg,
.post-views svg {
    opacity: 0.9;
    margin-right: 6px;
}

/* Social Share Buttons в Hero */
.social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.share-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-right: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.share-vk:hover {
    background: rgba(76, 117, 163, 0.8);
}

.share-telegram:hover {
    background: rgba(0, 136, 204, 0.8);
}

.share-facebook:hover {
    background: rgba(24, 119, 242, 0.8);
}



/* Article Content */
.article-content {
    margin: 50px 0;
    width: 100%;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    /* Ограничиваем только текст статьи для лучшей читаемости */
}

.content-wrapper p {
    margin-bottom: 25px;
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    margin: 40px 0 20px;
    color: #2c3e50;
    font-weight: 700;
}

.content-wrapper h2 {
    font-size: 2rem;
    border-left: 5px solid #ef4444;
    padding-left: 20px;
}

.content-wrapper h3 {
    font-size: 1.5rem;
}

.content-wrapper h4 {
    font-size: 1.25rem;
}

.content-wrapper blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 5px solid #ef4444;
    border-radius: 8px;
    font-style: italic;
    font-size: 1.1em;
    position: relative;
}

.content-wrapper blockquote::before {
    content: '"';
    font-size: 60px;
    color: #ef4444;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: serif;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 25px 0;
    padding-left: 30px;
}

.content-wrapper li {
    margin-bottom: 10px;
}

.content-wrapper a {
    color: #ef4444;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.content-wrapper a:hover {
    border-bottom-color: #ef4444;
}

/* Page Navigation */
.page-navigation {
    margin: 40px 0;
    text-align: center;
}

.page-nav-title {
    font-weight: 600;
    margin-right: 15px;
    color: #2c3e50;
}

.page-number {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number:hover,
.page-number.current {
    background: #ef4444;
    color: white;
}

/* Article Footer */
.article-footer {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.article-tags {
    margin-bottom: 40px;
}

.tags-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.tag-item {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: translateY(-2px);
}

/* Large Share Buttons */
.article-share {
    text-align: center;
}

.share-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.share-buttons-large {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn-large {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.share-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Author Bio - УДАЛЕНО по запросу пользователя */

/* Post Navigation - Минималистичный профессиональный дизайн */
.post-navigation {
    margin: 50px 0 40px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.post-navigation .nav-title {
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.nav-link-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    min-height: 80px;
    height: 80px;
}

.nav-link-card:hover {
    border-color: #ef4444;
    background: #fefefe;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.nav-link-card:hover::before {
    background: #ef4444;
}

.nav-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.nav-direction {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.nav-title-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-link-card:hover .nav-title-text {
    color: #111827;
}

/* Related Articles */
.related-articles {
    margin: 60px 0;
}

.related-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
}

.related-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover .related-overlay {
    opacity: 1;
}

.read-more-btn {
    background: #ef4444;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.related-content {
    padding: 25px;
}

.related-category {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.related-title-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 14px;
    color: #6c757d;
}

/* ===== НОВЫЕ СТИЛИ ФУТЕРА ===== */

/* Первая секция футера - логотип и название */
.footer-logo-section .footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo-section .footer-logo {
    flex-shrink: 0;
}

.footer-logo-section .footer-site-name h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-logo-section .footer-car-highlight {
    color: #ef4444;
    transition: all 0.3s ease;
}

/* Вторая секция футера - навигация */
.footer-home-section .footer-home-navigation h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-home-section .footer-nav-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-home-section .footer-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-home-section .footer-nav-link:hover {
    color: #ef4444;
    text-decoration: underline;
}

.footer-home-section .footer-nav-info svg {
    color: #ef4444;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Третья секция футера - email контакт */
.footer-email-contact h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-email-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-email-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-email-link:hover {
    color: #ef4444;
    text-decoration: underline;
}

.footer-email-info svg {
    color: #ef4444;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Мобильная адаптация футера */
@media (max-width: 768px) {
    .footer-logo-section .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-logo-section .footer-site-name h2 {
        font-size: 1.3rem;
    }
    
    .footer-home-section .footer-home-navigation {
        text-align: center;
    }
    
    .footer-home-section .footer-nav-info {
        justify-content: center;
    }
    
    .footer-email-contact {
        text-align: center;
    }
    
    .footer-email-info {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-hero {
        min-height: 400px;
        margin-bottom: 30px;
        border-radius: 12px;
    }
    
    .hero-content {
        padding: 40px 25px;
    }
    
    .article-title {
        font-size: 2.2rem;
        margin: 20px 0;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .publish-details {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-share {
        margin-top: 20px;
        gap: 12px;
    }
    
    .share-buttons-large {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nav-link-card {
        padding: 12px;
        min-height: 72px;
        height: 72px;
    }
    
    .nav-thumb img {
        width: 40px;
        height: 40px;
    }
    
    .nav-direction {
        font-size: 11px;
    }
    
    .nav-title-text {
        font-size: 13px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        font-size: 16px;
        /* Убираем padding, который может влиять на ширину */
    }
}

@media (max-width: 480px) {
    .article-hero {
        min-height: 350px;
        margin-bottom: 25px;
        border-radius: 10px;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .category-badge {
        padding: 6px 16px;
        font-size: 11px;
    }
    
    .article-title {
        font-size: 1.8rem;
        margin: 15px 0;
    }
    
    .article-excerpt {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .article-meta {
        gap: 12px;
    }
    
    .publish-details {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
    }
    
    .publish-date,
    .reading-time,
    .post-views {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .social-share {
        margin-top: 15px;
        gap: 10px;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
    }
    
    .article-footer,
    .post-navigation {
        padding: 20px 15px;
    }
    
    .nav-link-card {
        min-height: 68px;
        height: 68px;
        padding: 10px;
    }
}

/* ============================================================
   АНИМАЦИЯ ВРАЩЕНИЯ КОЛЕСА В ЛОГОТИПЕ
   ============================================================ */

/* Keyframes для плавного вращения */
@keyframes spin-wheel {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

/* Стили для анимации колеса (третий path в SVG) */
.brand-logo svg {
    transition: all 0.3s ease;
}

.brand-logo svg path:nth-child(3) {
    transform-origin: 42% 48%;
    transition: transform 0.3s ease;
}

/* Анимация при наведении на логотип */
.brand-logo:hover svg path:nth-child(3) {
    animation: spin-wheel 2s linear infinite;
    animation-delay: 0.2s;
}

/* Дополнительный эффект - легкое увеличение всего SVG при наведении */
.brand-logo:hover svg {
    transform: scale(1.05);
}

/* ============================================================
   СКРЫТИЕ ДАТ В САЙДБАРЕ
   ============================================================ */

/* Скрыть даты в виджетах "Свежие новости" и "Популярные статьи" */
.sidebar .widget .post-date,
.sidebar .widget-recent-posts .recent-post-date,
.sidebar .recent-item-time,
.sidebar .widget .entry-date,
.sidebar .widget time {
    display: none !important;
}

/* Скрыть даты в виджетах по названию */
.widget[id*="recent"] .post-date,
.widget[id*="popular"] .post-date,
.widget[class*="recent"] .post-date,
.widget[class*="popular"] .post-date {
    display: none !important;
}

/* ============================================================
   МИНИМАЛИСТИЧНЫЙ ДИЗАЙН ПОИСКА
   ============================================================ */

/* Чистый контейнер поиска */
.sidebar .widget_search,
.sidebar .wp-block-search {
    background: transparent;
    border: none;
    padding: 0 !important;
    margin-bottom: 2rem;
}

/* Простой заголовок */
.sidebar .widget_search .widget-title,
.sidebar .wp-block-search .widget-title {
    color: #1f2937 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    letter-spacing: 0.025em;
}

/* Минималистичная форма */
.sidebar .widget_search form,
.sidebar .wp-block-search form {
    display: flex;
    gap: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Чистое поле ввода */
.sidebar .widget_search input[type="search"],
.sidebar .wp-block-search input[type="search"] {
    flex: 1;
    border: none !important;
    border-bottom: 2px solid #e5e7eb !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.75rem 0 !important;
    font-size: 0.9rem !important;
    color: #374151 !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
}

.sidebar .widget_search input[type="search"]:focus,
.sidebar .wp-block-search input[type="search"]:focus {
    border-bottom-color: #ef4444 !important;
}

.sidebar .widget_search input[type="search"]::placeholder,
.sidebar .wp-block-search input[type="search"]::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* Минималистичная кнопка */
.sidebar .widget_search input[type="submit"],
.sidebar .wp-block-search input[type="submit"],
.sidebar .wp-block-search__button {
    background: #ef4444 !important;
    border: none !important;
    border-radius: 0 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin-left: 1rem !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.sidebar .widget_search input[type="submit"]:hover,
.sidebar .wp-block-search input[type="submit"]:hover,
.sidebar .wp-block-search__button:hover {
    background: #dc2626 !important;
}

/* ============================================================
   МИНИМАЛИСТИЧНАЯ БЕГУЩАЯ СТРОКА НОВОСТЕЙ
   ============================================================ */

.news-ticker-section {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    border-left: 4px solid #ef4444;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
}

.news-ticker-section::before {

}

.news-ticker-wrapper {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.news-ticker-content {
    display: inline-flex;
    align-items: center;
    animation: tickerMove 400s linear infinite;
    white-space: nowrap;
}

@keyframes tickerMove {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-item {
    display: inline-block;
    margin: 0 1.5rem;
}

.ticker-link {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.ticker-link:hover {
    color: #ef4444;
}

.ticker-separator {
    color: #9ca3af;
    margin: 0 1.5rem;
    font-weight: 300;
}

/* Эффект затухания по краям */
.news-ticker-wrapper::before,
.news-ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.news-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.news-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

/* Пауза при наведении */
.news-ticker-wrapper:hover .news-ticker-content {
    animation-play-state: paused;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-ticker-section {
        margin: 1rem 0;
    }
    
    .news-ticker-wrapper {
        height: 45px;
    }
    
    .ticker-link {
        font-size: 0.9rem;
    }
    
    .ticker-item {
        margin: 0 1rem;
    }
    
    .ticker-separator {
        margin: 0 1rem;
    }
}

/* ============================================================
   АДАПТИВНЫЕ СТИЛИ ПАГИНАЦИИ
   ============================================================ */

@media (max-width: 768px) {
    .pagination {
        margin: 2.5rem 0;
    }
    
    .pagination-wrapper {
        gap: 0.5rem;
    }
    
    .pagination a,
    .pagination .current {
        padding: 0.75rem 0.875rem;
        min-width: 42px;
        font-size: 0.9rem;
    }
    
    .pagination a.prev,
    .pagination a.next {
        padding: 0.75rem 1.125rem;
        font-size: 0.85rem;
    }
    
    /* На очень маленьких экранах показываем только важные элементы */
    @media (max-width: 480px) {
        .pagination a.dots {
            display: none;
        }
        
        .pagination a:not(.prev):not(.next):not(.current) {
            min-width: 36px;
            padding: 0.625rem 0.75rem;
        }
    }
}

/* ========================================
   КРИТИЧЕСКИ ВАЖНО: ФИКСАЦИЯ САЙДБАРА СПРАВА
   ======================================== */

/* Принудительное фиксирование порядка элементов - МАКСИМАЛЬНЫЙ ПРИОРИТЕТ */
body .content-area,
html body .content-area,
.single .content-area,
.single-post .content-area {
    display: flex !important;
    flex-direction: row !important;
}

/* Основной контент - ВСЕГДА СЛЕВА (order: 1) */
body .content-area .main-content,
html body .content-area .main-content,
.single .content-area .main-content,
.single-post .content-area .main-content,
#primary,
.main-content {
    order: 1 !important;
    flex: 1 !important;
}

/* Сайдбар - ВСЕГДА СПРАВА (order: 2) */
body .content-area .sidebar,
html body .content-area .sidebar,
.single .content-area .sidebar,
.single-post .content-area .sidebar,
#secondary,
.sidebar {
    order: 2 !important;
    width: 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    flex-shrink: 0 !important;
}

/* Адаптивность с принудительным порядком */
@media (min-width: 1025px) {
    .content-area {
        flex-direction: row !important;
    }
    
    .main-content {
        order: 1 !important;
    }
    
    .sidebar {
        order: 2 !important;
    }
}