/*
Theme Name: dds_caremedicine.ru
Author: Анна Соколова
Description: Информационная тема для образовательного ресурса об уходе и сестринском деле. Японский минимализм, холодная сине-голубая палитра, акцентная медицинская графика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: caremed
*/

:root {
    --bg: #F2F6FA;
    --bg-alt: #FFFFFF;
    --bg-side: #E8EEF5;
    --bg-foot: #1A2735;
    --ink: #1F2A38;
    --accent: #2A7FAA;
    --accent-dark: #1D5A7A;
    --accent-soft: #6BAFC7;
    --accent-warm: #E8A87C;
    --muted: #7B8B9E;
    --line: #DCE4EC;
    --head-font: "Inter", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
    --body-font: "Public Sans", "Source Sans Pro", "Segoe UI", Roboto, Arial, sans-serif;
}

/* --- сброс и база --- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        90deg,
        rgba(31, 42, 56, 0.03) 0px,
        rgba(31, 42, 56, 0.03) 1px,
        transparent 1px,
        transparent 40px
    );
}

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

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

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

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

.entry-body a,
.widget .textwidget a,
.comment-text a {
    border-bottom: 1px dotted var(--accent);
    transition: border-bottom-color 0.2s ease, color 0.2s ease;
}

.entry-body a:hover,
.widget .textwidget a:hover,
.comment-text a:hover {
    border-bottom: 1px solid var(--accent-dark);
    color: var(--accent-dark);
}

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

blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(140deg, var(--bg) 0%, #E1E9F2 100%);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}

blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--line);
    background: var(--bg-alt);
}

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

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

pre {
    background: var(--bg-side);
    padding: 1rem 1.2rem;
    border-radius: 4px;
    overflow-x: auto;
}

/* --- контейнеры --- */

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

.page-shell { padding: 2.2rem 0 3.2rem; }

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
}

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

/* --- кнопки --- */

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 0.75rem 1.6rem;
    border-radius: 4px;
    border: 1.5px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(42, 127, 170, 0.18);
}

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

.btn-ghost:hover {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: none;
}

/* --- шапка --- */

.site-top {
    background: var(--bg-alt);
    box-shadow: 0 1px 0 var(--line);
}

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

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

.brand-link { display: block; flex: 0 0 auto; }

.brand-logo { display: block; max-height: 54px; width: auto; }

.brand-mark { display: block; }

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

.brand-name {
    display: block;
    font-family: var(--head-font);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}

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

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

.main-nav { flex: 0 1 auto; }

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

.nav-list a {
    font-family: var(--head-font);
    font-size: 0.97rem;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- хлебные крошки --- */

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { padding: 0 0.35rem; color: var(--line); }

/* --- заголовки секций --- */

.sec-title {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1.4rem;
    font-size: 1.75rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    width: 4px;
    height: 80%;
    background: var(--accent);
    border-radius: 2px;
}

h2.sec-title::before { width: 3px; background: var(--accent-soft); }

.sec-sub {
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 2rem;
}

.ma-divider {
    width: 25%;
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 2.6rem 0;
}

/* --- главная --- */

.front-section {
    padding: 3rem 0;
    position: relative;
}

.front-section.bg-alt {
    background: var(--bg-alt);
    padding: 3rem 2.2rem;
}

/* блок 1: hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    padding: 0;
    margin-top: 1rem;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(26, 39, 53, 0.82) 0%, rgba(26, 39, 53, 0.55) 55%, rgba(26, 39, 53, 0.35) 100%);
}

.hero-inner {
    position: relative;
    padding: 4.2rem 2.6rem;
    max-width: 40rem;
}

.hero-kicker {
    font-family: var(--head-font);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.08;
    color: #FFFFFF;
    margin-bottom: 1.1rem;
}

.hero-text {
    color: #D6E2EC;
    font-size: 1.03rem;
    margin-bottom: 1.4rem;
}

.hero-rule {
    width: 33%;
    height: 3px;
    background: var(--accent);
    margin-bottom: 1.6rem;
}

.hero-drop {
    position: absolute;
    right: 2%;
    bottom: -6%;
    width: 240px;
    opacity: 0.05;
    pointer-events: none;
}

/* блок 2: таймлайн */

.path-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.2rem;
    border-left: 4px solid var(--accent);
}

.path-step {
    position: relative;
    padding: 0 0 2.2rem 0;
}

.path-step:last-child { padding-bottom: 0; }

.path-step::before {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: 0.9rem;
    width: 11px;
    height: 11px;
    margin-left: -7.5px;
    border-radius: 50%;
    background: var(--accent-warm);
}

.path-num {
    display: block;
    font-family: var(--head-font);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
}

.path-name {
    font-family: var(--head-font);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.path-text {
    color: var(--muted);
    max-width: 70ch;
    margin: 0;
}

/* блок 3: статистика */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

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

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

.stat-num {
    display: block;
    font-family: var(--head-font);
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* блок 4: рубрикатор */

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

.topic-plate {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1.5rem 1.4rem 1.5rem 2.2rem;
    background: var(--bg-alt);
    border-bottom: 2px solid var(--accent);
    transition: padding 0.2s ease, background 0.2s ease;
}

.topic-plate svg { flex: 0 0 auto; transition: color 0.2s ease; color: var(--accent); }

.topic-plate:hover {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    background: #EEF4F9;
}

.topic-plate:hover svg { color: var(--accent-warm); }

.topic-name {
    font-family: var(--head-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    min-width: 0;
}

.topic-note {
    display: block;
    font-family: var(--body-font);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* --- карточки записей --- */

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-top: 3px solid var(--line);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.card::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-warm);
    z-index: 2;
}

.card:hover { border-color: var(--accent); }

.card-row {
    display: flex;
    flex: 1;
    min-width: 0;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-side);
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.card-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

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

.post-meta {
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent); }

.meta-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-warm);
    vertical-align: middle;
    margin: 0 0.35rem;
}

.card-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--head-font);
    font-size: 0.9rem;
    color: var(--accent);
    border-bottom: 1px dotted var(--accent);
}

.card-more:hover { border-bottom: 1px solid var(--accent-dark); color: var(--accent-dark); }

/* --- записи и страницы --- */

.entry {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 2.2rem;
}

.entry-title { font-size: 2.2rem; }

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

.entry-body h2,
.entry-body h3 {
    position: relative;
    padding-left: 1rem;
    margin-top: 1.8rem;
}

.entry-body h2::before,
.entry-body h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    width: 3px;
    height: 80%;
    background: var(--accent-soft);
    border-radius: 2px;
}

.entry-body img { border-radius: 4px; }

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

/* --- сайдбар и виджеты --- */

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--bg-side);
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.4rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--ink);
    position: relative;
    padding-left: 0.85rem;
    margin-bottom: 0.9rem;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    width: 3px;
    height: 80%;
    background: var(--accent);
    border-radius: 2px;
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #D5DFEA;
}

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

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; font-size: 0.8rem; color: #64748B; }
.sidebar .widget p { color: var(--ink); }

/* --- пагинация --- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.2rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    font-family: var(--head-font);
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

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

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* --- поиск --- */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button {
    font-family: var(--head-font);
    font-size: 0.92rem;
    padding: 0.65rem 1.2rem;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form button:hover { background: var(--accent-dark); }

/* --- комментарии --- */

.comments-area {
    margin-top: 2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.8rem 2rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.comment-list ul.children {
    list-style: none;
    margin: 0;
    padding-left: 1.6rem;
}

.comment-item {
    border-top: 1px solid var(--line);
    padding: 1rem 0;
}

.comment-head {
    font-family: var(--head-font);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.comment-author { font-weight: 700; }
.comment-head time { color: var(--muted); margin-left: 0.6rem; }
.comment-actions { font-size: 0.86rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.comment-form .submit {
    font-family: var(--head-font);
    padding: 0.7rem 1.5rem;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
}

.comment-form .submit:hover { background: var(--accent-dark); }

/* --- 404 --- */

.notfound {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2.4rem 2.2rem;
}

.notfound-code {
    font-family: var(--head-font);
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6rem;
}

/* --- подвал --- */

.site-foot {
    background: var(--bg-foot);
    color: #C3D0DC;
    padding: 3rem 0 1.6rem;
    margin-top: 3rem;
}

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

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

.site-foot .widget { margin-bottom: 1.2rem; color: #C3D0DC; }
.site-foot .widget p { color: #C3D0DC; }
.site-foot .widget a { color: #E3EBF2; }
.site-foot .widget a:hover { color: var(--accent-warm); }

.site-foot .widget-title {
    font-size: 1rem;
    color: #FFFFFF;
    position: relative;
    padding-left: 0.85rem;
    margin-bottom: 0.9rem;
}

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    width: 3px;
    height: 80%;
    background: var(--accent-warm);
    border-radius: 2px;
}

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

.site-foot .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-foot .widget li:last-child { border-bottom: 0; }
.site-foot .widget .post-date { display: block; font-size: 0.8rem; color: #93A6B8; }

.foot-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.86rem;
    color: #93A6B8;
}

/* --- cookie-баннер --- */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: #16212D;
    border-top: 3px solid var(--accent);
    color: #D6E2EC;
    font-size: 0.9rem;
}

.cookie-banner p { margin: 0; max-width: 70ch; }

.cookie-accept {
    font-family: var(--head-font);
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-accept:hover { background: var(--accent-dark); }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-links { font-family: var(--head-font); font-size: 0.9rem; margin-top: 1rem; }
.page-links a { border-bottom: 1px dotted var(--accent); }

.comment-form label {
    display: block;
    font-family: var(--head-font);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.comment-form p { margin-bottom: 1rem; }

.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption { font-size: 0.85rem; color: var(--muted); }
.alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.2rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* --- адаптив --- */

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    .layout-single { width: 100%; }
    .hero-title { font-size: 2.6rem; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
    .stat-cell:nth-child(3) { border-left: 0; padding-left: 0; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    .nav-toggle { display: block; }

    .main-nav {
        flex: 1 1 100%;
        display: none;
    }

    .main-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.6rem;
    }

    .nav-list li { border-top: 1px solid var(--line); }
    .nav-list a { display: block; padding: 0.6rem 0; }

    .hero-inner { padding: 2.4rem 1.4rem; }
    .hero-title { font-size: 2.1rem; }
    .hero-drop { width: 150px; }

    .front-section { padding: 2rem 0; }
    .front-section.bg-alt { padding: 2rem 1.4rem; }

    .entry { padding: 1.4rem 1.2rem; }
    .comments-area { padding: 1.3rem 1.2rem; }
    .notfound { padding: 1.6rem 1.3rem; }
    .sidebar .widget { padding: 1.2rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }

    .stat-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: 0; padding-left: 0; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .topic-plate { padding: 1.2rem 1.2rem 1.2rem 1.4rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }

    .path-list { padding-left: 1.5rem; }
    .path-step::before { left: -1.5rem; }
    .path-num { font-size: 2.1rem; }

    .card-row { flex-direction: column; }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a { position: static; }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .card-body { padding: 1.2rem 1.2rem; }
    .entry-title { font-size: 1.6rem; }
    .sec-title { font-size: 1.4rem; }
}
