/* ===========================================
   БАЗА
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    background: #faf8f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================================
   СТРОГИЙ ХЕДЕР — ЛОГОТИП ПО ЦЕНТРУ, СОЦСЕТИ СПРАВА
   =========================================== */
.site-header {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #ffffff;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 70px;
}

/* ===== ЛОГОТИП ПО ЦЕНТРУ ===== */
.site-branding {
    flex: 0 0 auto;
    text-align: center;
}

.site-logo {
    display: block;
    margin-top: 50px;
}

.site-logo img {
    max-width: 100%;
    height: auto;
    max-height: 130px;
    width: auto;
    display: block;
}

/* ===== НАЗВАНИЕ (если нет логотипа) ===== */
.site-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    text-decoration: none;
    color: #1a1a2e;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #b8a69a;
}

.site-description {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b8a69a;
    margin: 2px 0 0;
}

/* ===== СОЦИАЛЬНЫЕ СЕТИ — ВСЕГДА СПРАВА ===== */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 0;
    top: 20%;
    transform: translateY(-50%);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 15%;
    background: #000000;
}

.social-links a:hover {
    background: #2c241e;
    transform: scale(1.08);
}

.social-links a svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* ===========================================
   СТРАНИЦА ПОРТФОЛИО
   =========================================== */
.portfolio-page {
    background: #ffffff;
    min-height: 100vh;
}

.portfolio-header {
    padding: 80px 0 10px;
    text-align: center;
    background: #ffffff;
}

.portfolio-title {
    font-family: serif;
    font-weight: 400;
    font-size: 32px;
    color: #2c241e;
    margin: 0 0 16px;
}

.portfolio-description {
    max-width: 580px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
    color: #8a7e76;
}

/* ===========================================
   СЛАЙДЕР
   =========================================== */
.fullscreen-slider {
    position: relative;
    width: 100%;
    padding: 40px 0 50px;
    background: transparent;
    overflow: hidden;
}

.slider-dots {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4c9c0;
    cursor: pointer;
    transition: all 0.5s ease;
    border: none;
}

.slider-dots .dot.active {
    background: #2c241e;
    border-radius: 4px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 520px;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    align-items: center;
}

.slide {
    flex: 0 0 25%;
    height: 100%;
    padding: 0 10px;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.slide.left img {
    width: 400%;
    object-position: left center;
}

.slide.left {
    opacity: 0.35;
}

.slide.center {
    flex: 0 0 50%;
}

.slide.center img {
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(44, 36, 30, 0.08);
}

.slide.right img {
    width: 400%;
    object-position: right center;
}

.slide.right {
    opacity: 0.35;
    margin-left: -10px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: #2c241e;
    border: 1px solid rgba(44, 36, 30, 0.06);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(44, 36, 30, 0.08);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slide-counter {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 12px;
    color: #b8a69a;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 18px;
    border-radius: 20px;
}

.slide-counter span {
    color: #2c241e;
}

/* ===========================================
   СЕТКА ПОСТОВ — 3 В РЯД
   =========================================== */
.portfolio-posts {
    padding: 10px 0 80px;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    row-gap: 70px;
}

.post-item {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.post-item .post-thumbnail img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.post-item .entry-header {
    padding: 22px 24px 8px;
    text-align: center;
}

.post-item .entry-title {
    font-family: serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
    opacity: 0.7;
}

.post-item .entry-title a {
    text-decoration: none;
    color: #2c241e;
}

.post-item .entry-title a:hover {
    color: #b8a69a;
}

.post-item .entry-meta {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c4b9b0;
    margin-top: 4px;
}

.post-item .entry-summary {
    padding: 8px 24px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #8a7e76;
}

.post-item .entry-footer {
    padding: 0 24px 24px;
}

.post-item .read-more {
    font-size: 12px;
    color: #2c241e;
    text-decoration: none;
    border-bottom: 1px solid #e8e0d8;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.post-item .read-more:hover {
    border-bottom-color: #2c241e;
}

.post-item::after {
    content: '';
    display: block;
    width: 60px;
    height: 20px; 
    margin: 10px auto 0;
    transition: all 0.5s ease;
    opacity: 0.7;
    background-image: url('/wp-content/uploads/2026/08/logo2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* ===========================================
   ПАГИНАЦИЯ
   =========================================== */
.pagination {
    text-align: center;
    margin-top: 56px;
}

.pagination .page-numbers {
    display: inline-block;
    font-size: 14px;
    color: #c4b9b0;
    text-decoration: none;
    padding: 4px 14px;
    margin: 0 2px;
}

.pagination .current {
    color: #2c241e;
}

.pagination .page-numbers:hover {
    color: #2c241e;
}

/* ===========================================
   АДАПТИВ — СОЦСЕТИ ВСЕГДА СБОКУ
   =========================================== */
@media (max-width: 1024px) {
    .slider-track {
        height: 420px;
    }
    .slide {
        flex: 0 0 25%;
        padding: 0 8px;
    }
    .slide.center {
        flex: 0 0 60%;
    }
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        row-gap: 70px;
    }
    .portfolio-header {
        padding: 20px 0 5px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }

    .header-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        min-height: 56px;
        /* НЕТ flex-direction: column — ВСЕГДА В СТРОКУ */
    }

    .site-logo img {
        max-height: 120px;
    }

    .site-title {
        font-size: 18px;
        text-align: center;
    }
    
    .portfolio-title{
        font-size: 18px;
        text-align: center;
    }

    .site-description {
        font-size: 9px;
        text-align: center;
    }

    .social-links {
        display: flex;
        align-items: center;
        gap: 8px;
        position: absolute;
        right: 20px;
        top: 20%;
        transform: translateY(-50%);
    }

    .social-links a {
        width: 30px;
        height: 30px;
    }

    .social-links a svg {
        width: 15px;
        height: 15px;
    }

    .slider-track {
        height: 320px;
    }
    .slide {
        flex: 0 0 25%;
        padding: 0 6px;
    }
    .slide.center {
        flex: 0 0 50%;
    }
    .slider-dots {
        top: 14px;
        gap: 10px;
    }
    .slider-dots .dot {
        width: 7px;
        height: 7px;
    }
    .slider-dots .dot.active {
        width: 7px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }
    .post-item .post-thumbnail img {
        height: 180px;
    }
    
    .site-logo {
    margin-top: 70px;
}

.fullscreen-slider {
    padding: 40px 0 10px;
}
}

@media (max-width: 480px) {
    .site-header {
        padding: 8px 0;
    }

    .header-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        min-height: 44px;
        /* НЕТ flex-direction: column — ВСЕГДА В СТРОКУ */
    }

    .site-logo img {
        max-height: 90px;
    }

    .site-title {
        font-size: 15px;
        text-align: center;
    }

    .site-description {
        font-size: 7px;
        text-align: center;
    }

    .social-links {
        display: flex;
        align-items: center;
        gap: 5px;
        position: absolute;
        right: 20px;
        top: 20%;
        transform: translateY(-50%);
    }

    .social-links a {
        width: 26px;
        height: 26px;
    }

    .social-links a svg {
        width: 13px;
        height: 13px;
    }

    .slider-track {
        height: 220px;
    }
    .slide {
        flex: 0 0 25%;
        padding: 0 4px;
    }
    .slide.center {
        flex: 0 0 50%;
    }
    .slide.left,
    .slide.right {
        opacity: 0.2;
    }
    .slider-dots {
        top: 10px;
        gap: 8px;
    }
    .slider-dots .dot {
        width: 6px;
        height: 6px;
    }
    .slider-dots .dot.active {
        width: 6px;
    }
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .prev-btn {
        left: 5px;
    }
    .next-btn {
        right: 5px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .post-item .post-thumbnail img {
        height: 200px;
    }
}

@media (max-width: 380px) {

    .site-logo img {
        max-height: 70px;
    }
}

@media (max-width: 320px) {

    .site-logo img {
        max-height: 55px;
    }
}

/* ===========================================
   СТИЛИ ДЛЯ ЗАПИСЕЙ (ПОСТОВ)
   =========================================== */
.single-post {
    background: #faf8f5;
}

.single-post .post-header {
    padding: 60px 0 30px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #e8e0d8;
}

.single-post .post-header .post-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 42px;
    color: #2c241e;
    margin: 0 0 12px;
    line-height: 1.2;
}

.single-post .post-header .post-meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #b8a69a;
    letter-spacing: 1px;
}

.single-post .post-header .post-meta span {
    margin: 0 8px;
}

.single-post .post-header .post-meta a {
    color: #b8a69a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post .post-header .post-meta a:hover {
    color: #2c241e;
}

.single-post .post-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 50px 24px 60px;
    background: #ffffff;
}

.single-post .post-content .entry-content {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.9;
    color: #3d3732;
}

.single-post .post-content .entry-content p {
    margin-bottom: 24px;
}

.single-post .post-content .entry-content h2,
.single-post .post-content .entry-content h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: #2c241e;
    margin: 40px 0 16px;
}

.single-post .post-content .entry-content h2 {
    font-size: 30px;
}

.single-post .post-content .entry-content h3 {
    font-size: 24px;
}

.single-post .post-content .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 0;
}

.single-post .post-content .entry-content blockquote {
    border-left: 3px solid #d4c9c0;
    padding: 16px 30px;
    margin: 30px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    color: #5a4f48;
    background: #faf8f5;
}

.single-post .post-content .entry-content ul,
.single-post .post-content .entry-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.single-post .post-content .entry-content li {
    margin-bottom: 8px;
}

.single-post .post-tags {
    padding: 20px 0 0;
    border-top: 1px solid #e8e0d8;
    margin-top: 40px;
}

.single-post .post-tags .tags-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b8a69a;
    margin-right: 12px;
}

.single-post .post-tags a {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #8a7e76;
    text-decoration: none;
    padding: 4px 14px;
    border: 1px solid #e8e0d8;
    border-radius: 20px;
    margin: 0 4px 8px 0;
    transition: all 0.3s ease;
}

.single-post .post-tags a:hover {
    color: #2c241e;
    border-color: #b8a69a;
}

.single-post .post-navigation {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e8e0d8;
}

.single-post .post-navigation a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #8a7e76;
    text-decoration: none;
    transition: color 0.3s ease;
    max-width: 45%;
}

.single-post .post-navigation a:hover {
    color: #2c241e;
}

.single-post .post-navigation .nav-prev {
    text-align: left;
}

.single-post .post-navigation .nav-next {
    text-align: right;
}

@media (max-width: 768px) {
    .single-post .post-header .post-title {
        font-size: 30px;
    }
    .single-post .post-content {
        padding: 30px 20px 40px;
    }
    .single-post .post-content .entry-content {
        font-size: 16px;
    }
    .single-post .post-content .entry-content h2 {
        font-size: 24px;
    }
    .single-post .post-content .entry-content h3 {
        font-size: 20px;
    }
    .single-post .post-content .entry-content blockquote {
        font-size: 17px;
        padding: 12px 20px;
    }
    .single-post .post-navigation {
        flex-direction: column;
        gap: 12px;
        padding: 20px 20px 40px;
    }
    .single-post .post-navigation a {
        max-width: 100%;
        text-align: center;
    }
    .single-post .post-tags a {
        font-size: 12px;
        padding: 3px 12px;
    }
}

@media (max-width: 480px) {
    .single-post .post-header {
        padding: 40px 0 20px;
    }
    .single-post .post-header .post-title {
        font-size: 24px;
    }
    .single-post .post-content {
        padding: 20px 16px 30px;
    }
    .single-post .post-content .entry-content {
        font-size: 15px;
    }
    .single-post .post-content .entry-content h2 {
        font-size: 20px;
    }
    .single-post .post-content .entry-content h3 {
        font-size: 18px;
    }
}

/* ===========================================
   АРХИВ ЗАПИСЕЙ
   =========================================== */
.archive-header {
    padding: 60px 0 30px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #e8e0d8;
}

.archive-header .archive-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 36px;
    color: #2c241e;
    margin: 0 0 8px;
}

.archive-header .archive-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #8a7e76;
}

/* ===========================================
   СТИЛИ ДЛЯ ЦИТАТ, КОДА И ДРУГИХ ЭЛЕМЕНТОВ
   =========================================== */
.wp-block-quote {
    border-left: 3px solid #d4c9c0 !important;
    padding: 16px 30px !important;
    margin: 30px 0 !important;
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
    font-size: 20px !important;
    color: #5a4f48 !important;
    background: #faf8f5 !important;
}

.wp-block-quote cite {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-style: normal;
    color: #b8a69a;
}

.wp-block-image img {
    border-radius: 0 !important;
}

.wp-block-gallery {
    margin: 30px 0 !important;
}

.wp-block-gallery img {
    border-radius: 0 !important;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid #e8e0d8;
    margin: 40px 0;
}

.wp-block-separator.is-style-dots {
    border-top: none;
}

.wp-block-code,
pre.wp-block-code {
    background: #f5f3f0;
    padding: 20px;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    border: 1px solid #e8e0d8;
}

.wp-block-table {
    margin: 30px 0;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid #e8e0d8;
    padding: 12px 16px;
    text-align: left;
}

.wp-block-table th {
    background: #f5f3f0;
    font-weight: 500;
    color: #2c241e;
}

/* ===========================================
   МИНИАТЮРА ЗАПИСИ (ФОТО)
   =========================================== */
.post-featured-image {
    padding: 30px 0 10px;
    background: #faf8f5;
}

.post-featured-image .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(44, 36, 30, 0.06);
}

.entry-summary{
    display:none;   
}

.entry-footer{
    display:none;   
}

.entry-meta{
    display:none;   
}

.entry-meta ::after{
    display:none;   
}

.single-post .post-header .post-meta{
    display: none;
}













/* ===========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ТОЛЬКО ФОТО НА ВЕСЬ ЭКРАН + СТРЕЛКИ
   =========================================== */
@media (max-width: 768px) {
    .slide {
        padding: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .slide img {
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .slide.left,
    .slide.right,
    .slide.center {
        opacity: 1 !important;
        transform: none !important;
        flex: 0 0 100% !important;
    }

    .slide.left img,
    .slide.right img {
        width: 100% !important;
        object-position: center !important;
    }
}





















/* ===========================================
   СТРЕЛКИ ДЛЯ СЛАЙДЕРА (БЕЗ ФОНА И КРУГЛЯШКОВ)
   =========================================== */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    color: #2c241e;
    border: none !important;
    width: auto;
    height: auto;
    font-size: 40px;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

/* ===== НА ДЕСКТОПЕ СКРЫВАЕМ ===== */
@media (min-width: 769px) {
    .slider-btn {
        display: none !important;
    }
}

/* ===== НА МОБИЛКЕ ПОКАЗЫВАЕМ ===== */
@media (max-width: 768px) {
    .slider-btn {
        display: flex !important;
        font-size: 56px !important;
        background: transparent !important;
        color: #ffffff !important;
        border: none !important;
        padding: 0 12px !important;
    }

    .slider-btn:hover {
        color: rgba(255, 255, 255, 0.7) !important;
        transform: translateY(-50%) scale(1.05) !important;
    }

    .prev-btn {
        left: 5px !important;
    }

    .next-btn {
        right: 5px !important;
    }
}
































/* Восстанавливаем сетку галереи */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-item {
    display: block;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

/* 4 колонки */
.gallery-columns-4 .gallery-item {
    width: calc(25% - 10px);
}

/* 3 колонки */
.gallery-columns-3 .gallery-item {
    width: calc(33.333% - 10px);
}

/* 2 колонки */
.gallery-columns-2 .gallery-item {
    width: calc(50% - 10px);
}

/* На случай, если картинки внутри расползаются */
.gallery-item .gallery-icon {
    display: block;
    width: 100%;
}

.gallery-item .gallery-icon img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    margin: 0;
}

/* Для мобильных устройств — чтобы на телефонах было по 1-2 колонки */
@media (max-width: 768px) {
    .gallery-columns-4 .gallery-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .gallery-columns-4 .gallery-item,
    .gallery-columns-3 .gallery-item,
    .gallery-columns-2 .gallery-item {
        width: 100%;
    }
}
































/* ========================================
   СТИЛИ ДЛЯ .SINGLE-POST .POST-CONTENT
   ======================================== */

/* --- Десктопная версия (от 1024px) --- */
@media (min-width: 1024px) {
    .single-post .post-content {
        max-width: 90%;            /* Резиновая ширина — 90% от экрана */
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;           /* Небольшие отступы по бокам, чтобы текст не прилипал к краям */
        font-size: 18px;           /* Размер шрифта — комфортно для чтения */
        line-height: 1.8;          /* Межстрочный интервал — воздух между строк */
    }

    /* Картинки внутри поста */
    .single-post .post-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;        /* Лёгкое скругление (опционально) */
        margin: 30px 0;
    }

    /* Абзацы */
    .single-post .post-content p {
        margin-bottom: 1.5em;
    }

    /* Заголовки внутри поста */
    .single-post .post-content h2 {
        font-size: 28px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .single-post .post-content h3 {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    /* Списки */
    .single-post .post-content ul,
    .single-post .post-content ol {
        padding-left: 30px;
        margin-bottom: 1.5em;
    }

    .single-post .post-content li {
        margin-bottom: 8px;
    }

    /* Таблицы и прочие элементы */
    .single-post .post-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

    .single-post .post-content table td,
    .single-post .post-content table th {
        padding: 10px 15px;
        border: 1px solid #ddd;
    }
}

/* ======================================== */

/* --- Планшетная версия (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .single-post .post-content {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 30px;
        font-size: 17px;
        line-height: 1.7;
    }

    .single-post .post-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 25px 0;
    }

    .single-post .post-content p {
        margin-bottom: 1.4em;
    }

    .single-post .post-content h2 {
        font-size: 26px;
        margin-top: 35px;
        margin-bottom: 18px;
    }

    .single-post .post-content h3 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .single-post .post-content ul,
    .single-post .post-content ol {
        padding-left: 25px;
        margin-bottom: 1.4em;
    }
}

/* ======================================== */

/* --- Мобильная версия (до 767px) --- */
@media (max-width: 767px) {
    .single-post .post-content {
        max-width: 100%;         /* На телефоне занимает всю ширину экрана */
        padding: 0 16px;         /* Отступы по бокам — чтобы текст не прилипал к краям */
        font-size: 16px;         /* Чуть меньше, чем на десктопе, чтобы помещалось */
        line-height: 1.7;        /* Достаточный интервал для удобства */
        word-wrap: break-word;   /* Чтобы длинные слова переносились */
        overflow-wrap: break-word;
    }

    /* Картинки на мобильных */
    .single-post .post-content img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        margin: 20px 0;
    }

    /* Абзацы */
    .single-post .post-content p {
        margin-bottom: 1.2em;
    }

    /* Заголовки на мобильных */
    .single-post .post-content h2 {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .single-post .post-content h3 {
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .single-post .post-content h4 {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    /* Списки на мобильных */
    .single-post .post-content ul,
    .single-post .post-content ol {
        padding-left: 20px;
        margin-bottom: 1.2em;
    }

    .single-post .post-content li {
        margin-bottom: 6px;
    }

    /* Таблицы — делаем прокручиваемыми на телефонах */
    .single-post .post-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        margin: 20px 0;
    }

    .single-post .post-content table td,
    .single-post .post-content table th {
        padding: 8px 12px;
        border: 1px solid #ddd;
        font-size: 14px;
    }

    /* Цитаты */
    .single-post .post-content blockquote {
        padding: 10px 16px;
        margin: 20px 0;
        font-size: 16px;
        border-left: 4px solid #ccc;
    }

    /* Видео и iframe — делаем адаптивными */
    .single-post .post-content iframe,
    .single-post .post-content video {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        width: 100%;
    }
}

/* ======================================== */

/* --- Дополнительно: улучшаем галерею внутри поста --- */

/* Чтобы галерея не разваливалась и была по центру */
.single-post .post-content .gallery {
    margin: 30px 0;
    justify-content: center;
}

/* Если галерея внутри поста на 4 колонки — на мобильных делаем 2, а на очень маленьких — 1 */
@media (max-width: 600px) {
    .single-post .post-content .gallery-columns-4 .gallery-item {
        width: calc(50% - 10px) !important;
    }
}

@media (max-width: 400px) {
    .single-post .post-content .gallery-columns-4 .gallery-item,
    .single-post .post-content .gallery-columns-3 .gallery-item,
    .single-post .post-content .gallery-columns-2 .gallery-item {
        width: 100% !important;
    }
}


.single-post .post-content .entry-content .aligncenter {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 0;
}


























