/*
Theme Name: dds_ufms-bryansk.ru
Theme URI: https://ufms-bryansk.ru/
Author: Диана Захарова
Description: Информационная тема для сайта вопросов и ответов на разные темы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ufmsqa
*/

:root {
    --bg: #F5F7FA;
    --bg-alt: #EBF0F8;
    --bg-head: #FFFFFF;
    --bg-deep: #1F2A3E;
    --ink: #1E2A3A;
    --accent: #2E86AB;
    --gold: #F2C14E;
    --muted: #8A9AA8;
    --line: #E5EAF0;
    --shadow: #D0D9E4;
    --shadow-hover: #A0B4C8;
    --grid-line: #E2E8F0;
    --font-head: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Roboto", "Noto Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--grid-line) 0, var(--grid-line) 0.5px, transparent 0.5px, transparent 40px);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -120px;
    bottom: -140px;
    width: 620px;
    height: 620px;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cpath fill='%232E86AB' d='M470 92c62 54 104 141 88 216-16 74-90 137-166 176-77 39-155 55-214 24-59-31-99-108-105-186-6-77 22-155 78-208 55-53 138-81 210-64 71 17 47-12 109 42z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.03;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
}

.entry-body a::after,
.widget a::after,
.crumbs a::after,
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.entry-body a:hover::after,
.widget a:hover::after,
.crumbs a:hover::after,
.main-nav a:hover::after { transform: scaleX(1); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: #FFFFFF;
    border-left: 4px solid var(--accent);
    color: var(--ink);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    border: 1px solid var(--shadow);
    background: #FFFFFF;
}

th, td {
    border: 1px solid var(--shadow);
    padding: 0.65rem 0.8rem;
    text-align: left;
}

th { background: var(--bg-alt); font-family: var(--font-head); }

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

.skip-link { position: absolute; left: -9999px; }

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 0.78rem 1.6rem;
    border-radius: 2px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-deep);
    transform: translateY(-1px);
    box-shadow: 4px 4px 0 rgba(31, 42, 62, 0.18);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 4px 4px 0 rgba(31, 42, 62, 0.18);
}

.btn-light {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-light:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-deep);
}

.btn::after, .btn-ghost::after, .btn-light::after { display: none; }

/* --- Шапка --- */
.site-top {
    background: var(--bg-head);
    border-bottom: 3px solid var(--accent);
}

.top-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

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

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

.brand-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--ink);
    display: block;
}

.brand-title:hover { color: var(--accent); }

.brand-desc {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: 2px;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--ink);
}

.main-nav a:hover { color: var(--accent); }

.main-nav .current-menu-item > a { color: var(--accent); }

/* --- Заголовки секций --- */
.sec-head { margin: 0 0 2.2rem; }

.sec-head h2, .sec-head .sec-h {
    text-align: center;
    margin: 0 0 0.9rem;
}

.sec-rule {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.sec-rule .line {
    flex: 1 1 auto;
    height: 1px;
    background: var(--shadow);
    min-width: 0;
}

.sec-rule .sq { flex: 0 0 auto; width: 8px; height: 8px; }
.sec-rule .sq-a { background: var(--accent); }
.sec-rule .sq-b { background: var(--gold); }

.sec-lead {
    text-align: center;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 2.4rem;
}

/* --- Секции --- */
.fs { padding: 80px 0; }
.fs-alt { background: var(--bg-alt); }

.fs-sep {
    height: 0;
    position: relative;
}

.fs-sep::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -3px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: translateX(-50%) rotate(45deg);
}

.pattern-dark {
    background-color: var(--bg-deep);
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 40px);
}

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 92px;
    color: #FFFFFF;
}

.hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.15;
}

.hero-inner { position: relative; text-align: center; }

.hero h1 { color: #FFFFFF; margin-bottom: 0.5em; }

.hero-sub {
    color: #A9BBCB;
    font-size: 1.12rem;
    max-width: 760px;
    margin: 0 auto 2.2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Рубрикатор (сетка карточек тем) --- */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.topic-item {
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    box-shadow: 4px 4px 0 var(--shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--shadow-hover);
}

.topic-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.topic-body { flex: 1; padding: 1.4rem 1.5rem 1.6rem; min-width: 0; }

.frac {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.7rem;
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
}

.frac .num { font-size: 1.9rem; color: var(--accent); }
.frac .bar { font-size: 1.5rem; color: var(--muted); }
.frac .den { font-size: 1.2rem; color: var(--gold); }

.topic-body h3 { margin-bottom: 0.5rem; }
.topic-body p { margin: 0; color: #47586B; font-size: 0.97rem; }

/* --- Карточки записей --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.card {
    background: #FFFFFF;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 4px 4px 0 var(--shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--shadow-hover);
}

.card-thumb { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, #DCE4EF 0, #DCE4EF 1px, transparent 1px, transparent 22px);
}

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

.card-title { font-size: 1.22rem; margin: 0 0 0.5rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    font-family: var(--font-head);
    letter-spacing: 0.03em;
    margin-bottom: 0.7rem;
}

.card-excerpt { color: #47586B; font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
    align-self: flex-start;
}

.card-more:hover { color: var(--gold); }

.grid-anchor {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.4rem;
}

.grid-anchor span { width: 7px; height: 7px; }
.grid-anchor span:first-child { background: var(--accent); }
.grid-anchor span:last-child { background: var(--gold); }

/* --- Статистика --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
}

.stat {
    text-align: center;
    padding: 0.6rem 1rem;
    border-left: 1px solid var(--shadow);
    min-width: 0;
}

.stat:first-child { border-left: 0; }

.stat b {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    line-height: 1.05;
    color: var(--accent);
    font-weight: 700;
}

.stat span {
    display: block;
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.stats-under {
    height: 2px;
    background: var(--gold);
    margin-top: 2.4rem;
}

/* --- Текст + иллюстрация --- */
.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.duo-text { min-width: 0; }
.duo-text h2 { text-align: left; }

.duo-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }

.duo-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.85rem;
}

.duo-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 11px;
    height: 11px;
    background: var(--accent);
}

.duo-list li::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.55em;
    width: 5px;
    height: 2px;
    background: #FFFFFF;
    transform: rotate(45deg);
}

.duo-art { min-width: 0; }
.duo-art svg { display: block; width: 100%; height: auto; }

/* --- Приём «Синий угол» --- */
.accent-note {
    position: relative;
    background: #FFFFFF;
    padding: 1.5rem 1.7rem;
    margin: 1.8rem 0;
}

.accent-note::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 70%;
    background: var(--accent);
}

/* --- Раскладка --- */
.site-main { padding: 52px 0 70px; }

.layout-single { display: block; }

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3rem;
    align-items: start;
}

.content-area { min-width: 0; }

/* --- Хлебные крошки --- */
.crumbs {
    font-size: 0.87rem;
    color: var(--muted);
    padding: 1.2rem 0 0;
}

.crumbs a { color: var(--accent); }
.crumbs .sep { margin: 0 0.35rem; color: var(--shadow-hover); }

/* --- Записи --- */
.entry-head { margin-bottom: 1.6rem; }
.entry-head h1 { margin-bottom: 0.45rem; }

.entry-meta {
    font-family: var(--font-head);
    font-size: 0.86rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry-body { background: #FFFFFF; padding: 2.2rem 2.4rem; box-shadow: 4px 4px 0 var(--shadow); }
.entry-body h2, .entry-body h3 { margin-top: 1.6em; }
.entry-body h2:first-child, .entry-body h3:first-child { margin-top: 0; }
.entry-body img { display: block; }

.entry-taxes {
    margin-top: 1.6rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.page-head { margin-bottom: 1.8rem; }

.archive-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }

.no-posts { background: #FFFFFF; padding: 2rem; box-shadow: 4px 4px 0 var(--shadow); }

/* --- Пагинация --- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
    align-items: center;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--shadow);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.95rem;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pager a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.current {
    background: var(--bg-deep);
    border-color: var(--bg-deep);
    color: #FFFFFF;
}

.pager .page-numbers.dots {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

.pager .page-numbers::after { display: none; }

/* --- Сайдбар --- */
.sidebar { min-width: 0; }

.widget {
    background: #FFFFFF;
    color: var(--ink);
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.8rem;
    box-shadow: 4px 4px 0 var(--shadow);
}

.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget,
.sidebar .widget li,
.sidebar .widget p { color: var(--ink); }
.sidebar .widget .post-date { color: var(--muted); font-size: 0.85rem; }

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

.widget li {
    padding: 0.55rem 0 0.55rem 1.1rem;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.widget li:last-child { border-bottom: 0; }

.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: rotate(45deg);
}

/* --- Поиск --- */
.search-form { display: flex; gap: 0.6rem; }

.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--shadow);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 0; }

.search-form button {
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 2px;
    padding: 0.7rem 1.2rem;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.search-form button:hover { background: var(--gold); border-color: var(--gold); color: var(--bg-deep); }

/* --- Комментарии --- */
.comments-area { margin-top: 2.6rem; background: #FFFFFF; padding: 2rem 2.2rem; box-shadow: 4px 4px 0 var(--shadow); }
.comments-area h2 { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-box { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-date { font-size: 0.82rem; color: var(--muted); margin-left: 0.5rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--shadow);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--ink);
}
.comment-form .submit {
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--gold); border-color: var(--gold); color: var(--bg-deep); }

/* --- 404 --- */
.err-box { background: #FFFFFF; padding: 2.4rem; box-shadow: 4px 4px 0 var(--shadow); text-align: center; }
.err-code { font-family: var(--font-head); font-size: 4.5rem; color: var(--accent); line-height: 1; margin: 0 0 0.4rem; }
.err-box .search-form { max-width: 460px; margin: 1.6rem auto 1.6rem; }

/* --- Подвал --- */
.site-foot {
    background-color: var(--bg-deep);
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 0.5px, transparent 0.5px, transparent 40px);
    color: #C6D2DE;
    padding: 60px 0 28px;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.foot-col { min-width: 0; }

.foot-col .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1.6rem;
    color: #C6D2DE;
}

.foot-col .widget-title {
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.foot-col .widget a { color: #C6D2DE; }
.foot-col .widget a:hover { color: var(--gold); }
.foot-col .widget p,
.foot-col .widget li { color: #C6D2DE; }
.foot-col .widget .post-date { color: #93A5B6; font-size: 0.85rem; }

.foot-col .widget li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.foot-col .widget li::before { background: var(--gold); }

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
    color: #93A5B6;
}

/* --- Cookie-баннер --- */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--bg-deep);
    color: #D7E0EA;
    border-top: 3px solid var(--accent);
    padding: 1rem 0;
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cookie-inner p { margin: 0; flex: 1 1 320px; min-width: 0; font-size: 0.92rem; }
.cookie-inner a { color: var(--gold); }

/* --- Адаптив --- */
@media (max-width: 960px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.65rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single > .content-area { width: 100%; }
    .topic-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .duo { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .stat:nth-child(3) { border-left: 0; }
    .fs { padding: 60px 0; }
    .hero { padding: 70px 0 66px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    .top-inner { padding: 0.9rem 0; }
    .nav-toggle { display: inline-block; margin-left: auto; }
    .main-nav { flex: 1 1 100%; display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a { display: block; padding: 0.65rem 0; }
    .topic-grid, .card-grid, .archive-list { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat { border-left: 0; border-top: 1px solid var(--shadow); padding-top: 1.2rem; }
    .stat:first-child { border-top: 0; }
    .stat b { font-size: 2.5rem; }
    .entry-body { padding: 1.5rem 1.3rem; }
    .comments-area { padding: 1.4rem 1.3rem; }
    .fs { padding: 48px 0; }
    .hero { padding: 56px 0 52px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .err-box { padding: 1.6rem 1.3rem; }
    .accent-note { padding: 1.2rem 1.2rem; }
    .widget { padding: 1.2rem 1.2rem; }
}
