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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #e63946; text-decoration: none; }
a:hover { color: #c1121f; }

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

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
    position: absolute; top: -100px; left: 0;
    background: #e63946; color: #fff; padding: 10px 16px; z-index: 9999;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============ HEADER ============ */
.site-header {
    position: relative;
    background: #fff;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    color: #e63946;
}

.custom-logo-link img,
.custom-logo {
    max-height: 50px;
    width: auto;
}

/* Меню как вкладки */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav li { margin: 0; padding: 0; }

.main-nav a {
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: background .2s, color .2s;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: #fdf6ec;
    color: #e63946;
}

/* Burger */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 26px;
    height: 3px;
    background: #222;
    border-radius: 2px;
    position: relative;
    transition: .3s;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-icon::before { top: -8px; }
.menu-icon::after  { top: 8px; }

/* ============ SITE CONTENT ============ */
.site-content {
    min-height: calc(100vh - 300px);
}

section { padding: 100px 0; }

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #fdf6ec, #ffe5d9);
    padding-top: 140px;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; color: #666; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }

.btn {
    display: inline-block;
    background: #e63946;
    color: #fff;
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background .2s, transform .2s;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover {
    background: #c1121f;
    color: #fff;
    transform: translateY(-2px);
}

/* ============ СЕКЦИИ ============ */
.scenarios { background: #fdf6ec; }

.scenarios h2,
.contact h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 40px;
    color: #222;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.card h3 { margin-bottom: 10px; color: #222; font-size: 1.2rem; }
.card h3 a { color: #222; }
.card h3 a:hover { color: #e63946; }
.card p { color: #666; margin-bottom: 12px; }
.card a { font-weight: 600; }

.card-thumb {
    display: block;
    margin: -30px -30px 20px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}
.card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .4s;
}
.card:hover .card-thumb img { transform: scale(1.05); }

.contact { text-align: center; background: #fff; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
}
.contact-info p { margin: 0; font-size: 1.1rem; }

/* ============ ЗАПИСИ (блог) ============ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.post-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.post-card .post-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 3/2;
}
.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.post-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.post-category {
    display: inline-block;
    background: rgba(230,57,70,.1);
    color: #e63946;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.post-title { margin: 0 0 12px; font-size: 1.25rem; }
.post-title a { color: #222; }
.post-title a:hover { color: #e63946; }

.post-meta {
    font-size: .85rem;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.meta-sep { opacity: .5; }

.post-excerpt {
    color: #666;
    font-size: .95rem;
    margin: 0 0 18px;
    flex: 1;
}

.read-more { font-weight: 600; color: #e63946; align-self: flex-start; }

/* Одна запись */
.single-post {
    background: #fff;
    margin-bottom: 30px;
}
.entry-title { font-size: 2rem; margin: 0 0 16px; }
.entry-meta { color: #888; font-size: .9rem; margin-bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.entry-thumbnail { margin: 24px -40px; }
.entry-content { font-size: 1.05rem; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; margin-bottom: .6em; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content blockquote {
    border-left: 4px solid #e63946;
    background: #fdf6ec;
    margin: 1.5em 0;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.entry-content img { border-radius: 8px; margin: 1.5em 0; }
.entry-content a { text-decoration: underline; }

/* Навигация записей */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}
.post-navigation a {
    display: block;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    color: #222;
    font-weight: 500;
    font-size: .95rem;
}
.post-navigation a:hover { color: #e63946; }
.nav-next { text-align: right; }

/* ============ СТРАНИЦЫ ============ */
.page-header { margin-bottom: 30px; }
.page-title { margin: 0; font-size: 2rem; }
.archive-description { color: #666; margin-top: 8px; }

/* ============ ПАГИНАЦИЯ ============ */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    border-radius: 8px;
    color: #222;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    font-weight: 500;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #e63946;
    color: #fff;
}

/* ============ ПОИСК ============ */
.search-form { display: flex; gap: 8px; margin: 16px 0; }
.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
}
.search-field:focus { border-color: #e63946; }
.search-submit {
    background: #e63946;
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.search-submit:hover { background: #c1121f; }

/* ============ КОММЕНТАРИИ ============ */
.comments-area {
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid #f2f2f2; }
.comment-author { font-weight: 600; margin-bottom: 6px; }
.comment-meta { font-size: .85rem; color: #888; margin-bottom: 10px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: #e63946; }
.comment-form input[type="submit"] {
    background: #e63946;
    color: #fff;
    border: 0;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}
.comment-form input[type="submit"]:hover { background: #c1121f; }

/* ============ FOOTER ============ */
.site-footer {
    background: #1d3557;
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}
.site-footer a { color: #ffb4a2; }
.site-footer a:hover { color: #fff; }

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}
.site-footer .widget-title { color: #fff; margin-bottom: 16px; font-size: 1.1rem; }
.site-footer .widget ul { list-style: none; padding: 0; }
.site-footer .widget ul li { padding: 6px 0; }
.site-footer .widget a { color: #d1d5db; }
.site-footer .widget a:hover { color: #fff; }

/* ============ SIDEBAR ============ */
.widget-area .widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.widget-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    padding-bottom: 12px;
    border-bottom: 2px solid #f2f2f2;
}
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid #f2f2f2; }
.widget ul li:last-child { border-bottom: 0; }
.widget a { color: #222; }
.widget a:hover { color: #e63946; }

/* ============ 404 ============ */
.error-404 { text-align: center; padding: 60px 20px; }
.error-404 .page-title { font-size: 3rem; margin-bottom: 20px; }

/* ============ WORDPRESS CORE ============ */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 20px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: #888; text-align: center; padding: 8px 0; }
.sticky { border-left: 4px solid #e63946; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

    .main-nav.toggled {
        max-height: 500px;
        overflow: auto;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 20px;
        align-items: stretch;
    }

    .main-nav li { border-bottom: 1px solid #f2f2f2; }
    .main-nav li:last-child { border-bottom: 0; }

    .main-nav a {
        display: block;
        padding: 14px 0;
        border-radius: 0;
    }

    .hero h1 { font-size: 2rem; }
    .hero p  { font-size: 1rem; }
    .scenarios h2, .contact h2 { font-size: 1.7rem; }
    section { padding: 60px 0; }

    .comments-area { padding: 24px 20px; }
    .entry-thumbnail { margin: 20px -20px; }
    .entry-title { font-size: 1.5rem; }

    .post-navigation { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }

    .posts-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .comments-area { padding: 20px 16px; }
    .entry-thumbnail { margin: 16px -16px; }
    .pagination .page-numbers { min-width: 38px; height: 38px; font-size: .9rem; }
}

/* ============ СТРАНИЦЫ (page.php) ============ */

.page-article { background: #fff; }

/* Hero страницы — картинка фоном, H1 по центру */
.page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fdf6ec, #ffe5d9);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 20px 60px;
    margin-bottom: 40px;
    overflow: hidden;
}

/* Затемнение поверх картинки (чтобы текст был читаем) */
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
}

.page-hero.has-image .page-hero-overlay {
    display: block;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero .page-title {
    font-size: 3rem;
    margin: 0;
    line-height: 1.15;
    color: #222;
    text-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* Если есть картинка — текст белый */
.page-hero.has-image .page-title {
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

/* Тело страницы */
.page-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.page-body .entry-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-body .entry-content h2 { font-size: 1.8rem; margin-top: 1.5em; }
.page-body .entry-content h3 { font-size: 1.3rem; margin-top: 1.2em; }
.page-body .entry-content p  { margin-bottom: 1.1em; }
.page-body .entry-content img { border-radius: 12px; margin: 1.5em 0; }

/* Мобильные */
@media (max-width: 768px) {
    .page-hero {
        min-height: 300px;
        padding: 100px 16px 40px;
        margin-bottom: 30px;
    }
    .page-hero .page-title { font-size: 1.8rem; }
    .page-body { padding: 0 16px 40px; }
}

/* ============ ВИДЖЕТ «ПОСЛЕДНИЕ ЗАПИСИ С ФОТО» ============ */
.widget-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-recent-posts .widget-post {
    padding: 0;
    margin-bottom: 12px;
    border-bottom: 0;
}
.widget-recent-posts .widget-post:last-child { margin-bottom: 0; }

.widget-post-link {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 140px;
    background: #f2f2f2;
    text-decoration: none;
}

.widget-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.widget-post-link:hover .widget-post-thumb {
    transform: scale(1.06);
}

.widget-post-thumb-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdf6ec, #ffe5d9);
}

.widget-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
    pointer-events: none;
}

.widget-post-title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    z-index: 2;
    transition: color .2s;
}

.widget-post-link:hover .widget-post-title {
    color: #ffb4a2;
}

/* ============ БЛОК «ПОСЛЕДНИЕ ЗАПИСИ» ============ */
.scen-block-posts { margin: 40px 0; }

.scen-block-title {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 32px;
}

.scen-block-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr); /* дефолт */
}
.scen-block-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
}
.scen-block-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.scen-block-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: #f2f2f2;
}
.scen-block-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s;
}
.scen-block-card:hover .scen-block-thumb img { transform: scale(1.06); }

.scen-block-thumb-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdf6ec, #ffe5d9);
}

.scen-block-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
    pointer-events: none;
}

.scen-block-title-over {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    z-index: 2;
}

.scen-block-title-plain {
    margin: 20px 20px 0;
    font-size: 1.2rem;
}
.scen-block-title-plain a { color: #222; }

.scen-block-body { padding: 20px; }

.scen-block-date {
    font-size: .85rem;
    color: #888;
    margin-bottom: 8px;
}

.scen-block-excerpt {
    color: #666;
    font-size: .95rem;
    margin: 0 0 14px;
}

.scen-block-btn {
    display: inline-block;
    font-weight: 600;
    color: #e63946;
}

@media (max-width: 768px) {
    .scen-block-grid { grid-template-columns: 1fr !important; }
}

/* Мета записи внутри hero */
.page-hero .entry-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.page-hero .entry-meta a {
    color: #fff;
}

/* Категории записи внутри hero */
.page-hero .entry-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.page-hero .entry-categories .post-category {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Если картинки нет — категории и мета на бежевом фоне */
.page-hero:not(.has-image) .entry-meta {
    color: #666;
    text-shadow: none;
}
.page-hero:not(.has-image) .entry-meta a {
    color: #e63946;
}
.page-hero:not(.has-image) .entry-categories .post-category {
    background: rgba(230,57,70,.1);
    color: #ff7883;
    backdrop-filter: none;
}

/* Убираем отступ у page-body в single */
.single-post .page-hero {
    margin-bottom: 40px;
}

/* ============ FOOTER 4 КОЛОНКИ ============ */
.site-footer {
    background: #1d3557;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column .widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-column p,
.footer-column li {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-column a {
    color: #ffb4a2;
    text-decoration: none;
    transition: color .2s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    padding: 4px 0;
}

/* Облако тегов в подвале */
.footer-column .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-column .tag-link {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    color: #d1d5db;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    transition: all .2s;
}

.footer-column .tag-link:hover {
    background: #e63946;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #d1d5db;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Принудительно на всю ширину */
.site-footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 50px 0 20px;
    box-sizing: border-box;
}

body {
    margin: 0 !important;
}

/* ============ ЗАПИСЬ С ДВУМЯ САЙДБАРАМИ ============ */
.single-with-sidebars {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

.single-sidebar {
    position: sticky;
    top: 20px;
    overflow-x: auto;
}

.single-sidebar .widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    overflow-x: auto;
    word-wrap: break-word;
    max-width: 100%;
}

.single-sidebar .widget-title {
    margin: 0 0 14px;
    font-size: 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f2f2f2;
}

/* Картинки в сайдбарах не вылезают */
.single-sidebar img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* iframe рекламы не вылезает */
.single-sidebar iframe {
    max-width: 100%;
    width: 100%;
    display: block;
}

/* Всё в сайдбарах — по ширине */
.single-sidebar * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Контент записи */
.single-content {
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    min-width: 0;
}

.single-content .entry-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.single-content .entry-content p { margin-bottom: 1.1em; }
.single-content .entry-content h2 { font-size: 1.8rem; margin: 1.5em 0 .6em; }
.single-content .entry-content h3 { font-size: 1.3rem; margin: 1.3em 0 .5em; }
.single-content .entry-content img { border-radius: 12px; margin: 1.5em 0; }
.single-content .entry-content blockquote {
    border-left: 4px solid #e63946;
    background: #fdf6ec;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    margin: 1.5em 0;
}

/* ============ АДАПТИВ ============ */

/* Планшет — оставляем только правый сайдбар */
@media (max-width: 1100px) {
    .single-with-sidebars {
        grid-template-columns: 1fr 200px;
    }
    .single-sidebar-left {
        display: none;
    }
}

/* Мобильные — оба сайдбара скрыты, контент на всю ширину */
@media (max-width: 768px) {
    .single-with-sidebars {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 20px auto;
        padding: 0 16px;
    }

    .single-sidebar {
        display: none;
    }

    .single-content {
        padding: 24px 20px;
    }
}