/*
Theme Name: dds_celltiss.ru
Author: Елена Воронцова
Description: Тема научно-образовательного портала о клеточных технологиях и регенеративной медицине. Лесная палитра, лабораторная сетка, акцент на длинных текстах и архивных материалах.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: celltiss
*/

/* ==== Переменные ==== */
:root {
    --bg: #F4F7F2;
    --bg-alt: #E7EFE4;
    --bg-alt-2: #D4E6D4;
    --head-bg: #0F2A1D;
    --foot-bg: #0A1F15;
    --side-bg: #EDF3EA;
    --ink: #1C2B22;
    --accent: #1F8A5B;
    --accent-dark: #146B45;
    --accent-2: #A3C9A8;
    --muted: #5E6F63;
    --card-shadow: 0 6px 20px rgba(15, 42, 29, .08);
    --card-shadow-hover: 0 14px 34px rgba(15, 42, 29, .16);
    --font-head: 'Manrope', 'Inter Tight', 'Segoe UI', Arial, sans-serif;
    --font-body: 'IBM Plex Sans', 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

/* ==== Скрытие через атрибут hidden (см. правило JS) ==== */
.cookie-banner[hidden] { display: none !important; }
.main-nav[hidden] { display: none !important; }

/* ==== База ==== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(31, 138, 91, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 138, 91, .04) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.home::after {
    content: '';
    position: fixed;
    right: -50px;
    bottom: -50px;
    width: 340px;
    height: 340px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='94' fill='%231F8A5B'/%3E%3Ccircle cx='122' cy='84' r='32' fill='%230F2A1D'/%3E%3Ccircle cx='68' cy='128' r='12' fill='%230F2A1D'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .06;
    pointer-events: none;
    z-index: 0;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.22;
    color: var(--ink);
    margin: 0 0 .8rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 3px; text-decoration-color: var(--accent-2); }

.shell { width: min(92%, 1180px); margin-inline: auto; }

.site-main { position: relative; z-index: 1; padding: 2.2rem 0 3.5rem; }

.btn {
    display: inline-block;
    padding: .72rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); text-decoration: none; color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ==== Шапка ==== */
.topline { height: 3px; background: var(--accent); }

.site-header {
    position: relative;
    z-index: 2;
    background: var(--head-bg);
    color: #fff;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 320px;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; max-height: 62px; width: auto; }

.brand-text { min-width: 0; }

.site-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
a.site-title:hover { color: var(--accent-2); text-decoration: none; }

.site-desc {
    margin: .3rem 0 0;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--accent-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(163, 201, 168, .5);
    color: #fff;
    font-family: var(--font-head);
    font-size: .92rem;
    padding: .5rem .9rem;
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent-2); color: var(--accent-2); }

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--accent-2); border-bottom-color: var(--accent); }

/* ==== Хлебные крошки ==== */
.breadcrumbs {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs .sep { color: var(--accent-2); margin: 0 .35rem; }

/* ==== Раскладки ==== */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-with-sidebar > * { min-width: 0; }

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

/* ==== Заголовки секций ==== */
.section-title {
    font-size: 1.9rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
    margin: 0 0 1.5rem;
}
.section-title.on-dark { color: #fff; border-left-color: var(--accent-2); }

.page-title {
    font-size: 2.2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
    margin: 0 0 1.4rem;
}

/* ==== Карточки записей ==== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

.card-thumb { position: relative; display: block; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(15, 42, 29, .5), rgba(15, 42, 29, 0));
    pointer-events: none;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.5rem;
}

.rubric {
    display: inline-block;
    align-self: flex-start;
    background: var(--bg-alt);
    color: var(--accent);
    border-radius: 4px;
    padding: .18rem .6rem;
    font-size: .78rem;
    font-family: var(--font-head);
    font-weight: 600;
    text-decoration: none;
}
.rubric:hover { background: var(--accent-2); color: var(--head-bg); text-decoration: none; }

.card-title { font-size: 1.18rem; margin: .7rem 0 .55rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-excerpt { flex: 1; color: var(--muted); font-size: .95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-meta { font-size: .82rem; color: var(--muted); margin-top: .7rem; }
.card .btn { align-self: flex-start; margin-top: 1.1rem; }

/* ==== Пагинация ==== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.4rem;
}
.pager .page-numbers {
    display: inline-block;
    padding: .48rem .9rem;
    border: 1px solid var(--accent-2);
    border-radius: 8px;
    background: #fff;
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    line-height: 1.3;
}
.pager .page-numbers:hover { background: var(--bg-alt); text-decoration: none; }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; background: transparent; color: var(--muted); }

/* ==== Сайдбар и виджеты ==== */
.sidebar {
    background: var(--side-bg);
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    min-width: 0;
}
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title {
    font-size: 1.12rem;
    color: var(--ink);
    padding-left: .8rem;
    border-left: 4px solid var(--accent);
    margin-bottom: 1rem;
}
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--ink); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed rgba(163, 201, 168, .8); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--accent); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); }

/* ==== Подвал ==== */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--foot-bg);
    color: #DCE8DE;
    padding: 3rem 0 1.6rem;
    margin-top: 3rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
}
.footer-cols .widget-title {
    font-size: 1.05rem;
    color: #fff;
    padding-left: .8rem;
    border-left: 4px solid var(--accent);
    margin-bottom: .9rem;
}
.footer-cols,
.footer-cols p,
.footer-cols li,
.footer-cols .textwidget { color: #C7D8CB; font-size: .94rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: .35rem 0; }
.footer-cols a { color: #DCE8DE; text-decoration: none; }
.footer-cols a:hover { color: var(--accent-2); text-decoration: underline; }
.footer-cols .post-date { display: block; font-size: .8rem; color: #8FA694; }

.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(163, 201, 168, .3);
    font-size: .88rem;
    color: #97AE9C;
}

/* ==== Cookie-баннер ==== */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: var(--head-bg);
    color: #DCE8DE;
    padding: 1rem 1.4rem;
    box-shadow: 0 -6px 24px rgba(10, 31, 21, .28);
}
.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(92%, 1180px);
    margin-inline: auto;
}
.cookie-inner p { margin: 0; font-size: .92rem; }
.cookie-inner a { color: var(--accent-2); }

/* ==== Главная ==== */
.front-wrap {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.fs { padding: 5rem 0; }
.fs:first-child { padding-top: 2rem; }

.fs-alt {
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(135deg, rgba(212, 230, 212, .85), rgba(231, 239, 228, .2)),
        linear-gradient(rgba(31, 138, 91, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 138, 91, .05) 1px, transparent 1px);
    background-size: auto, 16px 16px, 16px 16px;
    border-radius: 12px;
    padding: 3.4rem 2.4rem;
}

.fs-divider {
    width: 40%;
    border-top: 1px dashed var(--accent-2);
    margin: 0;
}

.fs-lead { color: var(--muted); max-width: 780px; }

/* Hero */
.hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: 4rem 2.6rem;
}
.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-shade {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(100deg, #0F2A1D 12%, rgba(15, 42, 29, .78) 46%, rgba(15, 42, 29, .15) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; min-width: 0; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: #D7E6DA; font-size: 1.05rem; }
.hero .btn { margin-top: .6rem; }
.hero-cell {
    position: absolute;
    right: 1.6rem;
    bottom: 1rem;
    width: 150px;
    height: 150px;
    opacity: .14;
    z-index: 2;
    pointer-events: none;
}

/* Статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat { padding: .6rem 1.4rem; min-width: 0; text-align: center; }
.stat + .stat { border-left: 1px dashed var(--accent-2); }
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--accent);
}
.stat-cap { display: block; margin-top: .4rem; font-size: .92rem; color: var(--muted); }

/* Зигзаг */
.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}
.zz-row + .zz-row { margin-top: 3.2rem; }
.zz-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}
.zz-text { min-width: 0; }
.zz-text h3 {
    padding-left: .9rem;
    border-left: 4px solid var(--accent);
    margin-bottom: .9rem;
}
.zz-text p { color: var(--muted); }
.zz-row.rev .zz-media { order: 2; }

/* FAQ */
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: .8rem;
    box-shadow: 0 2px 10px rgba(15, 42, 29, .05);
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.3rem;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid var(--bg-alt);
    position: relative;
    padding-left: 2.1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    top: 1.45rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-2);
}
.faq-item summary:hover { color: var(--accent-dark); }
.faq-answer {
    background: var(--bg-alt);
    padding: 1.1rem 1.4rem;
    border-radius: 0 0 8px 8px;
    color: var(--muted);
}
.faq-answer p:last-child { margin-bottom: 0; }

/* ==== Контент записей и страниц ==== */
.entry-header { margin-bottom: 1.4rem; }
.entry-title { font-size: 2.35rem; margin-bottom: .7rem; }
.post-meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }

.entry-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.6rem;
}

.entry-content { min-width: 0; }
.entry-content h2 { margin: 2rem 0 .9rem; }
.entry-content h3 { margin: 1.6rem 0 .7rem; }
.entry-content h2::before,
.entry-content h3::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: .55rem;
}
.entry-content ul, .entry-content ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.entry-content li { margin-bottom: .45rem; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 8px; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--accent-2);
}
.entry-content th, .entry-content td {
    border: 1px solid var(--accent-2);
    padding: .65rem .8rem;
    text-align: left;
}
.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

.table-scroll { overflow-x: auto; }

.entry-tags { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem; }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px dashed var(--accent-2);
    font-size: .95rem;
}

/* ==== Комментарии ==== */
.comments-area { margin-top: 2.8rem; }
.comments-title { font-size: 1.5rem; padding-left: 1rem; border-left: 4px solid var(--accent); margin-bottom: 1.3rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0; }
.comment-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
}
.comment-head { display: flex; flex-wrap: wrap; gap: .7rem; align-items: baseline; margin-bottom: .5rem; }
.comment-author { font-family: var(--font-head); font-weight: 700; }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-hold { font-size: .86rem; color: var(--muted); }
.comment-actions { font-size: .88rem; }

.comment-respond { background: var(--bg-alt); border-radius: 12px; padding: 1.6rem 1.7rem; }
.comment-reply-title { font-size: 1.3rem; margin-bottom: .8rem; }
.comment-form label { display: block; font-size: .9rem; font-family: var(--font-head); margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--accent-2);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: .96rem;
    color: var(--ink);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form p { margin-bottom: .9rem; }
.comment-form .submit {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: .72rem 1.5rem;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.comment-form .submit:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ==== Поиск ==== */
.search-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-form .search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: .65rem .85rem;
    border: 1px solid var(--accent-2);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: .96rem;
    color: var(--ink);
}
.search-form .search-submit {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: .65rem 1.2rem;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent-dark); }

/* ==== 404 и пустые состояния ==== */
.notice-box {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2.4rem 2.2rem;
}
.notice-box .big { font-size: 4rem; color: var(--accent); font-family: var(--font-head); font-weight: 800; line-height: 1; margin-bottom: .6rem; }
.notice-actions { margin-top: 1.4rem; }

/* ==== Адаптив ==== */
@media (max-width: 960px) {
    h1 { font-size: 2.2rem; }
    .entry-title { font-size: 1.9rem; }

    .nav-toggle { display: inline-block; }
    .main-nav { flex: 1 1 100%; }
    .main-nav ul { flex-direction: column; gap: .2rem; }
    .main-nav li { border-bottom: 1px dashed rgba(163, 201, 168, .25); }
    .main-nav a { display: block; padding: .6rem 0; border-bottom: 0; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .front-wrap { width: 100%; }

    .zz-row { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .zz-row.rev .zz-media { order: 0; }

    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .stat:nth-child(3) { border-left: 0; }

    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.85rem; }
    h2, .section-title { font-size: 1.5rem; }
    .entry-title { font-size: 1.65rem; }

    .fs { padding: 2.6rem 0; }
    .fs-alt { padding: 2rem 1.3rem; }
    .fs-divider { width: 60%; }

    .hero { padding: 2.4rem 1.4rem; min-height: 320px; }
    .hero-cell { width: 92px; height: 92px; right: .8rem; }

    .stats { grid-template-columns: minmax(0, 1fr); }
    .stat { border-left: 0 !important; padding: .4rem 0; }
    .stat + .stat { border-top: 1px dashed var(--accent-2); padding-top: 1rem; }

    .cards-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .sidebar { padding: 1.2rem 1.1rem; }
    .notice-box { padding: 1.6rem 1.3rem; }
    .comment-respond { padding: 1.2rem 1.1rem; }
    .cookie-inner { justify-content: flex-start; }
}

/* ==== Служебные классы WordPress ==== */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pager .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }

.alignleft { float: left; margin: .4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { margin-left: 0; margin-right: 0; }

.wp-caption { max-width: 100%; margin-bottom: 1.2rem; }
.wp-caption img { display: block; border-radius: 8px; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

.sticky .card-title::after {
    content: 'Закреплено';
    display: inline-block;
    margin-left: .5rem;
    font-family: var(--font-head);
    font-size: .68rem;
    color: var(--accent);
    background: var(--bg-alt);
    border-radius: 4px;
    padding: .1rem .45rem;
    vertical-align: middle;
}

.bypostauthor > .comment-item { border-left: 4px solid var(--accent-2); }

@media (max-width: 600px) {
    .alignleft, .alignright { float: none; margin: .4rem 0 1rem; }
}
