/*
Theme Name: Сергей Баженов
Author: Ваше имя
Description: Тема для сайта художника Сергея Баженова. Главная имеет встроенный hero, портфолио с фильтрацией, лайтбокс и интерактивные точки.
Version: 3.1
*/

:root {
    /* Основные цвета */
    --bg: #EFF0F2;
    --text: #101D38;
    --footer-bg: #060A14;
    --footer-text: #EFF0F2;
    --accent: #334b4a;
    --accent-hover: #1f2f2e;
    --hero-overlay: rgba(6, 10, 20, 0.5);
    --card-bg: #FFFFFF;
    --border: #ddd;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: 0.3s ease;
}

[data-theme="dark"] {
    --bg: #101D38;
    --text: #EFF0F2;
    --footer-bg: #060A14;
    --footer-text: #EFF0F2;
    --accent: #4a7fc7;
    --accent-hover: #6a9fe7;
    --hero-overlay: rgba(6, 10, 20, 0.7);
    --card-bg: #1a2a45;
    --border: #2a3f5a;
    --shadow: 0 4px 15px rgba(0,0,0,0.5);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

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

/* ===== Header ===== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
    padding: 20px 0;
    transition: top 0.2s ease, background 0.3s ease;
}
body.admin-bar .site-header {
    top: var(--wp-admin--admin-bar--height, 32px);
}
body:not(.front-page) .site-header {
    background: rgba(255,255,255,0.9);
}
[data-theme="dark"] body:not(.front-page) .site-header {
    background: rgba(16, 29, 56, 0.95);
}

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

.site-title a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
body:not(.front-page) .site-title a {
    color: var(--text);
    text-shadow: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}
.main-nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
}
body:not(.front-page) .main-nav ul li a {
    color: var(--text);
    text-shadow: none;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    border-bottom-color: var(--accent);
    color: var(--accent);
}
.main-nav ul li.contact-btn a {
    background: #fff;
    color: #1e1e1e !important;
    padding: 8px 22px;
    border-radius: 50px;
    border-bottom: none !important;
    font-weight: 500;
    text-shadow: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s, transform 0.2s;
}
.main-nav ul li.contact-btn a:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}
[data-theme="dark"] .main-nav ul li.contact-btn a {
    background: #eaeaea;
    color: #1a1a1a !important;
}
[data-theme="dark"] .main-nav ul li.contact-btn a:hover {
    background: #ccc;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s;
    padding: 0 5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    line-height: 1;
    flex-shrink: 0;
}
body:not(.front-page) .theme-toggle {
    color: var(--text);
    text-shadow: none;
}
.theme-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
body:not(.front-page) .mobile-menu-toggle {
    color: var(--text);
}

/* ===== Мобильное меню ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .header-right {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        z-index: 999;
        animation: slideDown 0.3s ease;
    }
    
    .header-right.active {
        display: flex;
    }
    
    [data-theme="dark"] .header-right {
        background: var(--bg);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .main-nav ul li a {
        font-size: 1.2rem;
        white-space: normal;
        color: var(--text) !important;
        text-shadow: none !important;
    }
    
    .main-nav ul li.contact-btn a {
        padding: 10px 30px;
        font-size: 1.1rem;
    }
    
    .theme-toggle {
        font-size: 1.5rem;
        color: var(--text) !important;
        text-shadow: none !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Hero ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #2c2c2c url('assets/hero-bg.jpg') no-repeat center center / cover;
    background-attachment: fixed;
    position: relative;
    color: #fff;
    padding: 0 20px;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--hero-overlay);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    word-wrap: break-word;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 500px;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), transform 0.2s;
    box-shadow: 0 4px 15px rgba(51, 75, 74, 0.3);
}
.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    color: #fff;
}
@media (max-width: 480px) {
    .btn { padding: 12px 30px; }
}

/* ===== Контент на главной ===== */
.front-page .site-main {
    padding-top: 60px;
    padding-bottom: 80px;
}
body:not(.front-page) .site-main {
    padding-top: 130px;
    padding-bottom: 80px;
}
.site-main {
    padding: 40px 0 80px;
}
.site-main h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.site-main h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}
.site-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.site-main .wp-block-image img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 100%;
    height: auto;
}
.site-main .wp-block-button .wp-block-button__link {
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    padding: 14px 40px;
    transition: background var(--transition), transform 0.2s;
}
.site-main .wp-block-button .wp-block-button__link:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}
.site-main .wp-block-columns {
    gap: 40px;
}

@media (max-width: 768px) {
    .site-main h2 { font-size: 2.2rem; }
    body:not(.front-page) .site-main { padding-top: 80px; }
}
@media (max-width: 480px) {
    body:not(.front-page) .site-main { padding-top: 70px; }
}

/* ===== Портфолио ===== */
.works-archive {
    padding-top: 130px;
    padding-bottom: 80px;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.work-item {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.work-item .work-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.work-item .work-info {
    padding: 20px;
}
.work-item .work-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    word-wrap: break-word;
}
.work-item .work-info .work-excerpt {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
    word-wrap: break-word;
}
.work-item .work-info .work-category {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
}
.work-item .work-thumbnail {
    position: relative;
    overflow: hidden;
}
.work-item .work-thumbnail .zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.work-item:hover .work-thumbnail .zoom-icon {
    opacity: 1;
}

@media (max-width: 768px) {
    .works-archive { padding-top: 80px; }
    .works-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
    .works-grid { grid-template-columns: 1fr; }
}

/* Фильтрация */
.filter-buttons {
    margin: 30px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-btn {
    padding: 8px 20px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 30px;
    color: var(--text);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: #fff;
}
.filter-btn.active {
    box-shadow: 0 4px 10px rgba(51,75,74,0.3);
}

/* Сингл работы */
.single-work {
    padding: 40px 0 80px;
}
.single-work .work-content {
    padding-top: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.single-work .work-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    word-wrap: break-word;
}
.single-work .work-content .work-meta {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 20px;
    word-wrap: break-word;
}
.single-work .work-content .work-description {
    font-size: 1.1rem;
    line-height: 1.8;
    word-wrap: break-word;
}
.work-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .single-work { padding-top: 40px; }
    .single-work .work-content h1 { font-size: 2.2rem; }
    .work-navigation { flex-direction: column; align-items: center; gap: 15px; }
}
@media (max-width: 480px) {
    .single-work { padding-top: 30px; }
}

/* Страница отдельной выставки */
.single-exhibition {
    padding: 40px 0 80px;
}

/* Архив выставок */
.exhibitions-archive {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .single-exhibition { padding-top: 70px; }
    .exhibitions-archive { padding-top: 40px; }
}
@media (max-width: 480px) {
    .single-exhibition { padding-top: 60px; }
    .exhibitions-archive { padding-top: 30px; }
}

/* Боковые отступы для всех страниц с контентом */
.single-work,
.single-exhibition,
.works-archive,
.exhibitions-archive {
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .single-work,
    .single-exhibition,
    .works-archive,
    .exhibitions-archive {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .single-work,
    .single-exhibition,
    .works-archive,
    .exhibitions-archive {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Интерактивные точки */
.work-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 auto 30px;
}
.work-image-container img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #334b4a;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(51, 75, 74, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 5;
}
.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(51, 75, 74, 0.6);
}
.hotspot .hotspot-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 200px;
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.5;
    z-index: 10;
    pointer-events: none;
    border: 1px solid var(--border);
    word-wrap: break-word;
}
.hotspot .hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--card-bg);
}
.hotspot .hotspot-tooltip .tooltip-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--accent);
}
.hotspot.active .hotspot-tooltip,
.hotspot:hover .hotspot-tooltip {
    display: block;
}
.hotspot.tapped .hotspot-tooltip {
    display: block;
}

@media (max-width: 480px) {
    .hotspot { width: 18px; height: 18px; }
    .hotspot .hotspot-tooltip { min-width: 150px; max-width: 220px; font-size: 0.8rem; }
}

/* ===== Лайтбокс ===== */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}
.lightbox-content img {
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.4);
}
.lightbox-nav.prev {
    left: 20px;
}
.lightbox-nav.next {
    right: 20px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
    transition: background var(--transition), color var(--transition);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-copyright {
    flex: 1 1 280px;
}
.footer-copyright p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    word-wrap: break-word;
}
.footer-legal {
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 400px;
    word-wrap: break-word;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin: 0;
    padding: 0;
}
.footer-nav ul li a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-nav ul li a:hover {
    color: var(--accent);
}

.footer-social {
    flex: 0 1 auto;
    text-align: right;
}
.footer-social span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}
.social-links a {
    display: inline-block;
    color: var(--footer-text);
    font-size: 1.4rem;
    transition: transform 0.2s, color 0.2s;
}
.social-links a:hover {
    transform: scale(1.15);
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 10px;
    text-align: center;
}
.footer-disclaimer {
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-copyright { flex: 1 1 auto; }
    .footer-legal { max-width: 100%; }
    .footer-nav ul { justify-content: center; }
    .footer-social { text-align: center; }
    .social-links { justify-content: center; }
}

/* ===== Хлебные крошки ===== */
.breadcrumbs {
    margin: 20px 0 10px;
    font-size: 0.9rem;
    opacity: 0.7;
    word-wrap: break-word;
}
.breadcrumbs .separator {
    margin: 0 5px;
}
.breadcrumbs .current {
    font-weight: 500;
}
.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== Дополнительные стили ===== */
.work-meta {
    font-size: 0.95rem;
    opacity: 0.8;
    word-wrap: break-word;
}
.work-taxonomies {
    font-size: 0.9rem;
    opacity: 0.7;
    word-wrap: break-word;
}
.work-video iframe {
    max-width: 100%;
}
.work-gallery .gallery-item {
    transition: transform 0.2s;
}
.work-gallery .gallery-item:hover {
    transform: scale(1.05);
}
.work-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    align-items: center;
}

/* ===== Рейтинг звёздами ===== */
.work-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.rating-stars {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}
.rating-stars .star {
    font-size: 1.8rem;
    color: #ccc;
    transition: color 0.2s, transform 0.2s;
}
.rating-stars .star.active,
.rating-stars .star:hover {
    color: #f5b342;
}
.rating-stars .star:hover {
    transform: scale(1.2);
}
.rating-text {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===== Кнопка "Связаться" ===== */
.btn-contact {
    background: var(--accent);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    transition: background 0.3s;
}
.btn-contact:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* ===== Кнопки соцсетей ===== */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.share-buttons span {
    margin-right: 5px;
    font-weight: 500;
}
.share-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.share-btn:hover {
    opacity: 0.8;
    color: #fff;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.vk { background: #4a76a8; }
.share-btn.telegram { background: #0088cc; }
.share-btn.whatsapp { background: #25d366; }

/* ===== Комментарии ===== */
.work-comments {
    margin: 40px 0;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}
.work-comments .comment-respond {
    margin-top: 20px;
}
.work-comments .comment-form input,
.work-comments .comment-form textarea {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 12px;
    background: var(--bg);
    color: var(--text);
    width: 100%;
    max-width: 100%;
}
.work-comments .comment-form .submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
}
.work-comments .comment-form .submit:hover {
    background: var(--accent-hover);
}

/* ===== Сетка "Избранные работы" (шорткод) ===== */
.bazhenov-latest-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.bazhenov-latest-work-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.bazhenov-latest-work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.bazhenov-latest-work-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.bazhenov-latest-work-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.bazhenov-latest-work-item h3 {
    padding: 12px 15px 15px;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
    word-wrap: break-word;
}

@media (max-width: 480px) {
    .bazhenov-latest-works-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== Исправления для тёмной темы ===== */
[data-theme="dark"] .work-item .work-info .work-excerpt {
    color: var(--text);
}
[data-theme="dark"] .breadcrumbs a {
    color: var(--accent);
}
[data-theme="dark"] .breadcrumbs .current {
    color: var(--text);
}
[data-theme="dark"] .work-meta,
[data-theme="dark"] .work-taxonomies {
    color: var(--text);
}
[data-theme="dark"] .rating-text {
    color: var(--text);
}
[data-theme="dark"] .share-buttons span {
    color: var(--text);
}

/* ===== Общие исправления ===== */
img {
    max-width: 100%;
    height: auto;
}
iframe {
    max-width: 100%;
}
pre, code, blockquote {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.wp-block-image {
    max-width: 100%;
}
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* ===== Плавная прокрутка ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Адаптивная типографика ===== */
@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.8rem !important;
    }
    h3 {
        font-size: 1.4rem !important;
    }
    .container {
        padding: 0 15px;
    }
    .site-title a {
        font-size: 1.2rem;
    }
}

/* Кнопка сброса рейтинга */
.reset-rating {
    background: #d9534f !important;
    color: #fff !important;
    border: none !important;
    padding: 4px 15px !important;
    font-size: 0.8rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
}

.reset-rating:hover {
    background: #c9302c !important;
}

.work-item.hidden {
    display: none !important;
}