/* =============================================================================
   «Секреты Дачника» — слой оформления (fs-design)
   Подключается mu-плагином fs-design ПОСЛЕ стилей темы reboot.
   Тема не редактируется: всё переопределяется здесь и переживает обновления.
   ============================================================================= */

:root {
    /* Зелёная палитра */
    --fs-green-900: #10301F;
    --fs-green-800: #17522F;
    --fs-green-700: #1F6B41;
    --fs-green-600: #2C8B54;
    --fs-green-500: #43A063;
    --fs-green-100: #DCEDE1;
    --fs-green-050: #EFF6F0;

    /* Тёплый акцент (урожай) */
    --fs-accent: #D9822B;
    --fs-accent-050: #FDF4E8;

    /* Текст и поверхности */
    --fs-ink: #16241D;
    --fs-text: #303F37;
    --fs-muted: #6C7C74;
    --fs-line: #E2E9E3;
    --fs-tint: #F4F8F3;
    --fs-tint-warm: #FBF6EC;

    --fs-radius: 14px;
    --fs-radius-sm: 10px;
    --fs-shadow-sm: 0 1px 2px rgba(16, 48, 31, .06), 0 6px 18px -12px rgba(16, 48, 31, .28);
    --fs-shadow-md: 0 2px 8px rgba(16, 48, 31, .08), 0 18px 34px -20px rgba(16, 48, 31, .4);

    /* Шрифт для длинного текста: системный, читается лучше геометрического Montserrat */
    --fs-text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* -----------------------------------------------------------------------------
   1. База
   -------------------------------------------------------------------------- */

body {
    color: var(--fs-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .post-card__title, .section-block__title, .widget-header {
    color: var(--fs-ink);
    letter-spacing: -.01em;
}

::selection {
    background: var(--fs-green-100);
    color: var(--fs-green-900);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.post-card__title a:focus-visible {
    outline: 3px solid var(--fs-green-500);
    outline-offset: 2px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
}

/* -----------------------------------------------------------------------------
   2. Шапка
   -------------------------------------------------------------------------- */

.site-header {
    background-color: var(--fs-green-700);
    background-image: linear-gradient(180deg, #23764A 0%, var(--fs-green-700) 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.site-header,
.site-header a,
.site-header .pseudo-link {
    color: #fff;
}

.site-title,
.site-title a {
    color: #fff;
    letter-spacing: -.02em;
}

.site-title a:hover {
    color: #fff;
    opacity: .85;
}

.site-description {
    color: rgba(255, 255, 255, .78);
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin-top: 2px;
}

.site-header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Липкая шапка на десктопе */
@media (min-width: 992px) {
    .site-header.full {
        position: sticky;
        top: 0;
        z-index: 120;
    }

    .admin-bar .site-header.full {
        top: 32px;
    }
}

/* Меню в шапке */
.top-menu > ul > li > a,
.top-menu > ul > li > span {
    font-weight: 700;
    font-size: .82em;
    letter-spacing: .04em;
}

.top-menu > ul > li > a:before,
.top-menu > ul > li > span:before {
    background: var(--fs-accent);
    height: 3px;
    bottom: -6px;
    border-radius: 2px;
}

.top-menu > ul > li.current-menu-item > a:before,
.top-menu > ul > li.current-menu-parent > a:before,
.top-menu > ul > li.current-post-parent > a:before {
    transform: scaleX(1);
}

.humburger span {
    height: 2px;
    border-radius: 2px;
}

.header-search .search-icon:hover {
    opacity: .8;
}

/* Поисковый экран */
.search-screen .search-form .search-field {
    border-radius: var(--fs-radius-sm);
    border: 1px solid var(--fs-line);
}

/* -----------------------------------------------------------------------------
   3. Слайдер на главной
   -------------------------------------------------------------------------- */

.card-slider-container {
    margin-bottom: 44px;
}

.card-slider__image:after {
    background: linear-gradient(180deg, rgba(10, 26, 17, 0) 30%, rgba(10, 26, 17, .82) 100%);
}

.card-slider__title {
    font-size: 1.5em;
    line-height: 1.25;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

.card-slider-container .swiper-pagination-bullet {
    background: #fff;
    opacity: .45;
    width: 9px;
    height: 9px;
}

.card-slider-container .swiper-pagination-bullet-active {
    background: var(--fs-accent);
    opacity: 1;
    transform: scale(1.15);
}

.card-slider-container .swiper-button-next,
.card-slider-container .swiper-button-prev {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(16, 48, 31, .45);
    backdrop-filter: blur(2px);
    background-size: 14px 24px;
    transition: background-color .2s;
}

.card-slider-container .swiper-button-next:hover,
.card-slider-container .swiper-button-prev:hover {
    background-color: var(--fs-green-600);
}

/* -----------------------------------------------------------------------------
   4. Секции главной
   -------------------------------------------------------------------------- */

.section-block {
    padding-top: 10px;
    padding-bottom: 10px;
}

.section-block__title {
    position: relative;
    font-size: 1.65em;
    line-height: 1.25;
    padding-left: 18px;
}

.section-block__title:before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--fs-green-500), var(--fs-green-700));
}

.section-block__header {
    margin-bottom: 26px;
}

/* Фоновые «полосы» секций — приглушённые, вместо салатового и бежевого */
.preset-bgc-10,
.sidebar-left .section-preset--bgc-10,
.sidebar-none .section-preset--bgc-10:before,
.sidebar-right .section-preset--bgc-10 {
    background: var(--fs-tint);
}

.preset-bgc-11,
.sidebar-left .section-preset--bgc-11,
.sidebar-none .section-preset--bgc-11:before,
.sidebar-right .section-preset--bgc-11 {
    background: var(--fs-tint-warm);
}

/* -----------------------------------------------------------------------------
   5. Карточки записей
   -------------------------------------------------------------------------- */

.post-card__title a {
    color: inherit;
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--fs-green-600);
}

.post-card__meta {
    color: var(--fs-muted);
    font-size: .78em;
}

.post-card__meta .post-card__views,
.post-card__meta .post-card__comments,
.post-card__meta .post-card__date {
    color: var(--fs-muted);
}

/* Рубрика-бейдж */
.post-card:not(.post-card--small) .post-card__category {
    background: var(--fs-green-600);
    font-weight: 700;
    letter-spacing: .04em;
    padding: .35em 1.1em;
    box-shadow: 0 2px 10px rgba(16, 48, 31, .25);
}

.post-card:not(.post-card--small) .post-card__category:hover {
    background: var(--fs-green-700);
}

/* --- сетка: обычные карточки --- */
.post-card--grid:not(:nth-child(6n)):not(:nth-child(6n+1)) .post-card__thumbnail,
.post-card--vertical .post-card__thumbnail,
.post-card--horizontal .post-card__thumbnail {
    border-radius: var(--fs-radius);
    overflow: hidden;
    background: var(--fs-tint);
}

.post-card--grid:not(:nth-child(6n)):not(:nth-child(6n+1)) .post-card__thumbnail img,
.post-card--vertical .post-card__thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .35s ease;
}

.post-card--grid:not(:nth-child(6n)):not(:nth-child(6n+1)):hover .post-card__thumbnail img,
.post-card--vertical:hover .post-card__thumbnail img {
    transform: scale(1.04);
}

/* Заголовки карточек одинаковой высоты — строки не «пляшут» */
.post-card--grid:not(:nth-child(6n)):not(:nth-child(6n+1)) .post-card__title,
.post-card--vertical .post-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

/* --- сетка: крупные карточки-герои (6n, 6n+1) --- */
.post-card--grid:nth-child(6n),
.post-card--grid:nth-child(6n+1) {
    border-radius: var(--fs-radius);
    overflow: hidden;
}

.post-card--grid:nth-child(6n):not(.post-card--thumbnail-no) .post-card__thumbnail:before,
.post-card--grid:nth-child(6n+1):not(.post-card--thumbnail-no) .post-card__thumbnail:before {
    background: linear-gradient(180deg, rgba(9, 24, 15, 0) 35%, rgba(9, 24, 15, .85) 100%);
}

.post-card--grid:nth-child(6n):not(.post-card--thumbnail-no) .post-card__title,
.post-card--grid:nth-child(6n+1):not(.post-card--thumbnail-no) .post-card__title {
    padding-top: 60px;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.post-card--grid:nth-child(6n) .post-card__meta,
.post-card--grid:nth-child(6n+1) .post-card__meta {
    color: rgba(255, 255, 255, .85);
}

/* --- карточки в блоке «Вам также может понравиться» --- */
.post-card--related .post-card__thumbnail {
    border-radius: var(--fs-radius);
    overflow: hidden;
    background: var(--fs-tint);
}

.post-card--related .post-card__thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .35s ease;
}

.post-card--related:hover .post-card__thumbnail img {
    transform: scale(1.04);
}

.post-card--related .post-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

/* --- карточки без картинки: мягкая зелёная плитка вместо пустой рамки --- */
.post-card--grid.post-card--thumbnail-no,
.post-card--related.post-card--thumbnail-no,
.post-card--vertical.post-card--thumbnail-no {
    background: var(--fs-green-050);
    border: 1px solid var(--fs-green-100);
    border-radius: var(--fs-radius);
    padding: 20px 22px;
    transition: border-color .2s, background .2s;
}

.post-card--grid.post-card--thumbnail-no:hover,
.post-card--related.post-card--thumbnail-no:hover,
.post-card--vertical.post-card--thumbnail-no:hover {
    border-color: var(--fs-green-500);
    background: #fff;
}

.post-card--vertical.post-card--thumbnail-no .post-card__title {
    margin-top: 0;
}

/* --- маленькие карточки (список с миниатюрой слева) --- */
.post-card--small .post-card__thumbnail {
    border-radius: var(--fs-radius-sm);
    overflow: hidden;
}

.post-card--small .post-card__thumbnail img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.post-card--small .post-card__title {
    line-height: 1.35;
}

/* --- карточки в архиве: миниатюра слева, текст справа --- */
.post-card--standard {
    position: relative;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-auto-rows: min-content;
    align-content: start;
    column-gap: 22px;
    margin-bottom: 24px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--fs-line);
    border-radius: var(--fs-radius);
    box-shadow: var(--fs-shadow-sm);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.post-card--standard > *:not(.post-card__thumbnail) {
    grid-column: 2;
}

/* Бейдж рубрики в карточке без картинки не должен растягиваться на всю колонку */
.post-card--standard > .post-card__category {
    justify-self: start;
}

.post-card--standard.post-card--thumbnail-no {
    grid-template-columns: minmax(0, 1fr);
}

.post-card--standard.post-card--thumbnail-no > * {
    grid-column: 1;
}

.post-card--standard:hover {
    box-shadow: var(--fs-shadow-md);
    transform: translateY(-2px);
    border-color: var(--fs-green-100);
}

/* Двойная сиреневая черта-разделитель темы больше не нужна */
.post-card--standard:after {
    display: none;
}

.post-card--standard .post-card__title {
    font-size: 1.4em;
    line-height: 1.3;
    margin-bottom: .5em;
}

.post-card--standard .post-card__description {
    color: var(--fs-text);
    font-family: var(--fs-text-font);
    font-size: 1em;
    line-height: 1.6;
}

.post-card--standard .post-card__meta {
    margin-bottom: .8em;
}

.post-card--standard .post-card__thumbnail {
    grid-column: 1;
    grid-row: 1 / span 20;
    align-self: start;
    border-radius: var(--fs-radius-sm);
    overflow: hidden;
    margin-bottom: 0;
    background: var(--fs-tint);
}

.post-card--standard .post-card__thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.post-card--standard:hover .post-card__thumbnail img {
    transform: scale(1.04);
}

/* Записи без единой картинки — декоративная «грядка» вместо пустоты */
.post-card--standard.post-card--thumbnail-no {
    padding-left: 26px;
}

.post-card--standard.post-card--thumbnail-no:before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--fs-green-500), var(--fs-green-700));
}

/* -----------------------------------------------------------------------------
   6. Пагинация
   -------------------------------------------------------------------------- */

.pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    line-height: 42px;
    border-radius: var(--fs-radius-sm);
    border: 1px solid var(--fs-line);
    color: var(--fs-ink);
    font-weight: 700;
    transition: all .2s;
}

.pagination .page-numbers:hover {
    border-color: var(--fs-green-500);
    color: var(--fs-green-700);
    background: var(--fs-green-050);
}

.pagination .page-numbers.current {
    background: var(--fs-green-600);
    border-color: var(--fs-green-600);
    color: #fff;
}

/* -----------------------------------------------------------------------------
   7. Страница записи
   -------------------------------------------------------------------------- */

.breadcrumb {
    color: var(--fs-muted);
    font-size: .78em;
    letter-spacing: .03em;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--fs-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--fs-green-600);
}

.entry-title {
    font-size: 2.35em;
    line-height: 1.16;
    letter-spacing: -.02em;
    margin-bottom: .55em;
}

.entry-image img,
.entry-image.post-card__thumbnail img {
    border-radius: var(--fs-radius);
    display: block;
    width: 100%;
    object-fit: cover;
}

/* Панель метаданных — карточка, а не «плавающие» иконки */
.entry-meta {
    background: var(--fs-tint);
    border: 1px solid var(--fs-line);
    border-radius: var(--fs-radius-sm);
    padding: 14px 20px;
    margin-top: 22px;
    margin-bottom: 26px;
    color: var(--fs-ink);
}

.entry-meta .entry-label {
    color: var(--fs-muted);
    letter-spacing: .04em;
}

/* Оглавление (собственное оглавление темы) */
.entry-content .table-of-contents {
    background: var(--fs-green-050);
    border: 1px solid var(--fs-green-100);
    border-left: 4px solid var(--fs-green-600);
    border-radius: var(--fs-radius-sm);
    padding: 20px 26px;
}

.entry-content .table-of-contents__header {
    color: var(--fs-ink);
    font-weight: 700;
}

.entry-content .table-of-contents__list a {
    color: var(--fs-green-700);
    text-decoration: none;
}

.entry-content .table-of-contents__list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Врезка «Читайте еще» внутри текста */
.entry-content a:has(.ctaText) {
    display: block;
    background: var(--fs-accent-050) !important;
    border-left: 4px solid var(--fs-accent) !important;
    border-radius: 0 var(--fs-radius-sm) var(--fs-radius-sm) 0;
}

.entry-content .ctaText {
    color: var(--fs-accent);
    letter-spacing: .02em;
}

.entry-content .postTitle {
    color: var(--fs-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Оглавление сторонних плагинов — на случай замены */
#toc_container,
.toc_widget_list,
div#ez-toc-container {
    background: var(--fs-green-050);
    border: 1px solid var(--fs-green-100);
    border-left: 4px solid var(--fs-green-600);
    border-radius: var(--fs-radius-sm);
    padding: 18px 22px;
}

#toc_container .toc_title,
div#ez-toc-container .ez-toc-title {
    font-weight: 700;
    color: var(--fs-ink);
}

#toc_container a,
div#ez-toc-container a {
    color: var(--fs-green-700);
    text-decoration: none;
}

#toc_container a:hover,
div#ez-toc-container a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- типографика текста статьи --- */
.entry-content {
    font-family: var(--fs-text-font);
    font-size: 18px;
    line-height: 1.75;
    color: var(--fs-text);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content blockquote {
    max-width: 40em;
}

.entry-content p {
    margin-bottom: 1.15em;
}

.entry-content h2 {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 1.55em;
    line-height: 1.25;
    margin-top: 1.9em;
    margin-bottom: .6em;
}

.entry-content h3 {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 1.25em;
    line-height: 1.3;
    margin-top: 1.6em;
    margin-bottom: .5em;
}

.entry-content h4 {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 1.08em;
    margin-top: 1.4em;
}

.entry-content a {
    color: var(--fs-green-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(31, 107, 65, .35);
    transition: color .15s, text-decoration-color .15s;
}

.entry-content a:visited {
    color: var(--fs-green-700);
}

.entry-content a:hover {
    color: var(--fs-green-600);
    text-decoration-color: currentColor;
}

.entry-content strong,
.entry-content b {
    color: var(--fs-ink);
}

.entry-content ul li:before {
    background: var(--fs-green-500) !important;
    border-color: var(--fs-green-500) !important;
}

.entry-content li {
    margin-bottom: .5em;
}

.entry-content img {
    border-radius: var(--fs-radius-sm);
}

.entry-content blockquote {
    border-left: 4px solid var(--fs-green-500);
    background: var(--fs-green-050);
    border-radius: 0 var(--fs-radius-sm) var(--fs-radius-sm) 0;
    padding: 18px 24px;
    font-style: normal;
    color: var(--fs-ink);
}

.entry-content table {
    border-radius: var(--fs-radius-sm);
    overflow: hidden;
    border: 1px solid var(--fs-line);
}

.entry-content table th {
    background: var(--fs-green-050);
    color: var(--fs-ink);
}

.entry-content table td,
.entry-content table th {
    border-color: var(--fs-line);
    padding: 10px 14px;
}

/* Врезка «Читайте еще» */
.entry-content .related-inline,
.entry-content .wp-block-quote.is-style-large,
.reboot-read-more,
.entry-content .rl_related-posts {
    background: var(--fs-accent-050);
    border-left: 4px solid var(--fs-accent);
    border-radius: 0 var(--fs-radius-sm) var(--fs-radius-sm) 0;
}

/* Кнопки соцсетей */
.social-buttons {
    gap: 8px;
}

.social-button {
    border-radius: 10px;
    transition: transform .15s, filter .15s;
}

.social-button:hover {
    transform: translateY(-2px);
    filter: saturate(1.15);
}

/* Рейтинг */
.star-rating-item.ico-star {
    color: var(--fs-accent);
}

/* Похожие записи */
.related-posts .related-posts__header,
.comments-title,
.comment-reply-title {
    font-size: 1.5em;
    position: relative;
    padding-left: 18px;
    text-align: left;
    margin-bottom: 24px;
}

.related-posts .related-posts__header:before,
.comments-title:before,
.comment-reply-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--fs-green-500), var(--fs-green-700));
}

/* Комментарии */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
    border: 1px solid var(--fs-line);
    border-radius: var(--fs-radius-sm);
    padding: 12px 14px;
    font-family: var(--fs-text-font);
    transition: border-color .15s, box-shadow .15s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus,
.search-field:focus {
    border-color: var(--fs-green-500);
    box-shadow: 0 0 0 3px rgba(67, 160, 99, .18);
    outline: none;
}

.comment-form .submit,
.btn, button[type="submit"]:not(.search-submit) {
    background: var(--fs-green-600);
    border: 0;
    border-radius: var(--fs-radius-sm);
    color: #fff;
    font-weight: 700;
    padding: 13px 26px;
    transition: background .2s, transform .1s;
}

.comment-form .submit:hover,
.btn:hover,
button[type="submit"]:not(.search-submit):hover {
    background: var(--fs-green-700);
}

.comment-form .submit:active {
    transform: translateY(1px);
}

/* -----------------------------------------------------------------------------
   8. Сайдбар
   -------------------------------------------------------------------------- */

.sidebar .widget,
#secondary .widget {
    margin-bottom: 28px;
}

.widget-header {
    font-size: 1.05em;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--fs-green-100);
}

#secondary .widget_block ul li,
.sidebar .widget ul li {
    border-bottom: 1px solid var(--fs-line);
    padding: 9px 0;
}

#secondary .widget_block ul li:last-child,
.sidebar .widget ul li:last-child {
    border-bottom: 0;
}

#secondary .widget a,
.sidebar .widget a {
    color: var(--fs-ink);
    text-decoration: none;
    line-height: 1.45;
}

#secondary .widget a:hover,
.sidebar .widget a:hover {
    color: var(--fs-green-600);
}

/* -----------------------------------------------------------------------------
   9. Подвал
   -------------------------------------------------------------------------- */

.site-footer {
    background-color: var(--fs-green-800);
    color: rgba(255, 255, 255, .8);
}

.site-footer,
.site-footer a,
.site-footer .pseudo-link {
    color: rgba(255, 255, 255, .82);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .widget-header {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .18);
    font-size: .95em;
    letter-spacing: .02em;
}

.site-footer .footer-widget ul li {
    border-bottom: 0;
    padding: 5px 0;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, .14);
    margin-top: 26px;
    padding-top: 20px;
    font-size: .85em;
    color: rgba(255, 255, 255, .62);
}

/* -----------------------------------------------------------------------------
   10. Мобильные
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .entry-title {
        font-size: 1.65em;
    }

    .entry-content {
        font-size: 17px;
        line-height: 1.72;
    }

    .section-block__title {
        font-size: 1.35em;
    }

    /* Одинаковые поля у всех типов карточек — края перестают «прыгать» */
    .post-cards--grid {
        margin-left: 0;
        margin-right: 0;
    }

    .post-card--grid,
    .post-card--vertical,
    .post-card--small {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100%;
    }

    .post-card--grid:nth-child(6n),
    .post-card--grid:nth-child(6n+1) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Обычные карточки на телефоне — строкой: картинка слева, заголовок справа.
       Так на экран помещается вчетверо больше материалов. */
    .post-card--grid:not(:nth-child(6n)):not(:nth-child(6n+1)),
    .post-card--vertical {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        min-width: 0;
        margin-bottom: 18px !important;
    }

    .post-card--grid:not(:nth-child(6n)):not(:nth-child(6n+1)) > a,
    .post-card--vertical > a {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .post-card--grid:not(:nth-child(6n)):not(:nth-child(6n+1)) .post-card__body,
    .post-card--vertical .post-card__body {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
    }

    .post-card--grid:not(:nth-child(6n)):not(:nth-child(6n+1)) .post-card__title,
    .post-card--vertical .post-card__title {
        font-size: 1em;
        margin-bottom: .35em;
    }

    .post-card--small {
        margin-bottom: 18px;
    }

    /* В архиве на телефоне картинка сверху, текст под ней */
    .post-card--standard {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px 14px 18px;
    }

    .post-card--standard > *:not(.post-card__thumbnail),
    .post-card--standard.post-card--thumbnail-no > * {
        grid-column: 1;
    }

    .post-card--standard .post-card__thumbnail {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 14px;
    }

    .post-card--standard .post-card__title {
        font-size: 1.2em;
    }

    .entry-meta {
        padding: 12px 14px;
    }
}


/* -----------------------------------------------------------------------------
   11. Перекраска фирменного цвета темы (#4d3bfe -> зелёный)
   Автосгенерировано из style.min.css темы reboot 1.4.7: те же селекторы,
   только цвет. Правила ниже перекрывают тему за счёт порядка подключения.
   -------------------------------------------------------------------------- */

.input:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime-local]:focus,
input[type=datetime]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=range]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
select:focus,
textarea:focus {
    border-color:#2C8B54;
}

.btn,
.comment-respond .form-submit input {
    background:#2C8B54;
}

.star-rating-item.hover {
    color:#2C8B54;
}

.star-rating--score-1:not(.hover) .star-rating-item:nth-child(1) {
    color:#2C8B54;
}

.star-rating--score-2:not(.hover) .star-rating-item:nth-child(1),
.star-rating--score-2:not(.hover) .star-rating-item:nth-child(2) {
    color:#2C8B54;
}

.star-rating--score-3:not(.hover) .star-rating-item:nth-child(1),
.star-rating--score-3:not(.hover) .star-rating-item:nth-child(2),
.star-rating--score-3:not(.hover) .star-rating-item:nth-child(3) {
    color:#2C8B54;
}

.star-rating--score-4:not(.hover) .star-rating-item:nth-child(1),
.star-rating--score-4:not(.hover) .star-rating-item:nth-child(2),
.star-rating--score-4:not(.hover) .star-rating-item:nth-child(3),
.star-rating--score-4:not(.hover) .star-rating-item:nth-child(4) {
    color:#2C8B54;
}

.star-rating--score-5:not(.hover) .star-rating-item:nth-child(1),
.star-rating--score-5:not(.hover) .star-rating-item:nth-child(2),
.star-rating--score-5:not(.hover) .star-rating-item:nth-child(3),
.star-rating--score-5:not(.hover) .star-rating-item:nth-child(4),
.star-rating--score-5:not(.hover) .star-rating-item:nth-child(5) {
    color:#2C8B54;
}

.spoiler-box {
    border-left:2px solid #2C8B54;
}

.spoiler-box__title:after {
    color:#2C8B54;
}

::-moz-selection {
    background-color:#2C8B54;
}

::selection {
    background-color:#2C8B54;
}

.pseudo-link:active,
.pseudo-link:focus,
.pseudo-link:hover,
a:active,
a:focus,
a:hover {
    color:#2C8B54;
}

.footer-navigation ul li>a [class*=" wci-"],
.footer-navigation ul li>a [class^=wci-],
.footer-navigation ul li>span [class*=" wci-"],
.footer-navigation ul li>span [class^=wci-],
.main-navigation ul li>a [class*=" wci-"],
.main-navigation ul li>a [class^=wci-],
.main-navigation ul li>span [class*=" wci-"],
.main-navigation ul li>span [class^=wci-] {
    color:#2C8B54;
}

.top-menu>ul>li>a:before,
.top-menu>ul>li>span:before {
    background:#2C8B54;
}

.page-links .page-numbers:not(.dots):not(.current):before,
.page-links .post-page-numbers:not(.dots):not(.current):before,
.pagination .nav-links .page-numbers:not(.dots):not(.current):before,
.pagination .nav-links .post-page-numbers:not(.dots):not(.current):before {
    background:#2C8B54;
}

.child-categories ul li a:hover {
    color:#2C8B54;
    border:1px solid #2C8B54;
}

.widget-area .widget_categories ul.menu li a:before,
.widget-area .widget_categories ul.menu li span:before,
.widget-area .widget_categories>ul li a:before,
.widget-area .widget_categories>ul li span:before,
.widget-area .widget_nav_menu ul.menu li a:before,
.widget-area .widget_nav_menu ul.menu li span:before,
.widget-area .widget_nav_menu>ul li a:before,
.widget-area .widget_nav_menu>ul li span:before {
    background:#2C8B54;
}

.search-icon:hover {
    color:#2C8B54;
}

.search-screen .search-form .search-field {
    border-bottom:1px solid #2C8B54;
}

.search-screen .search-form .search-field:focus {
    border-bottom:1px solid #2C8B54;
}

.search-screen .search-form .search-submit:before {
    color:#2C8B54;
}

.search-form .search-submit:hover:before {
    color:#2C8B54;
}

.search-form .search-submit:focus:before {
    color:#2C8B54;
}

.breadcrumb a,
.breadcrumb span {
    color:#2C8B54;
}

.scrolltop:before {
    color:#2C8B54;
}

.card-slider__category {
    background:#2C8B54;
}

.post-card__author:before,
.post-card__comments:before,
.post-card__date:before,
.post-card__like:before,
.post-card__views:before {
    color:#2C8B54;
}

.post-card:not(.post-card--small) .post-card__category {
    background:#2C8B54;
}

.post-card__thumbnail a:before {
    background:#2C8B54;
}

.post-card--view-overlay:before {
    background:#2C8B54;
}

.post-card--standard:after {
    border-bottom:3px double #2C8B54;
}

.post-card--small .post-card__category {
    color:#2C8B54;
}

.is-show-thumbnails-true .post-card--vertical.post-card--thumbnail-no:hover {
    border-color:#2C8B54;
}

.post-card--related.post-card--thumbnail-no:hover {
    border-color:#2C8B54;
}

.post-card--grid.post-card--thumbnail-no {
    border:1px solid #2C8B54;
}

.post-card--grid .post-card__thumbnail:before {
    background:#2C8B54;
}

.entry-author:before,
.entry-date:before,
.entry-time:before,
.entry-views:before {
    color:#2C8B54;
}

.entry-image--full .entry-image__body .post-card__category a,
.entry-image--fullscreen .entry-image__body .post-card__category a,
.entry-image--wide .entry-image__body .post-card__category a {
    background:#2C8B54;
}

.entry-content ul:not([class])>li:before,
.home-text ul:not([class])>li:before,
.taxonomy-description ul:not([class])>li:before {
    border:2px solid #2C8B54;
}

.entry-content ol:not([class])>li:before,
.home-text ol:not([class])>li:before,
.taxonomy-description ol:not([class])>li:before {
    color:#2C8B54;
}

.entry-content blockquote,
.home-text blockquote,
.taxonomy-description blockquote {
    border-left:3px solid #2C8B54!important;
}

.comment-list .bypostauthor>.comment-body .comment-author:after {
    color:#2C8B54;
}
