/*
Theme Name: dds_lasrecetasdeellayelabanico.com
Theme URI: https://lasrecetasdeellayelabanico.com/
Author: Юлия Кузьмина
Description: Тема для информационного сайта об одежде, обуви и аксессуарах: разборы, критерии выбора и практические материалы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: abnc
*/

/* ============================================================
   1. Переменные и база
   ============================================================ */

:root {
    --bg:        #F4F7FC;
    --bg-alt:    #E9EFF8;
    --bg-alt2:   #D4E0F0;
    --panel:     #FFFFFF;
    --foot:      #1E2A47;
    --ink:       #1F2A3E;
    --acc:       #0077B6;
    --acc-dark:  #005A8C;
    --acc2:      #48CAE4;
    --muted:     #6B7A8F;
    --line:      #DCE5F0;
    --dash:      #D0D9E8;
    --head-font: "Trebuchet MS", "Franklin Gothic Medium", "Segoe UI", Arial, sans-serif;
    --body-font: "Segoe UI", Verdana, "Helvetica Neue", 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: radial-gradient(rgba(31, 42, 62, 0.09) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.015em;
}

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

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

h1 { font-size: 3.8rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.15em;
}

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

li {
    margin-bottom: 0.45em;
}

a {
    color: var(--acc);
}

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

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

/* ============================================================
   2. Ссылки и кнопки
   ============================================================ */

.entry-content a,
.widget a,
.crumbs a,
.card-excerpt a {
    text-decoration: none;
    border-bottom: 1px dotted var(--acc);
    color: var(--acc);
    transition: border-color 0.18s ease, color 0.18s ease;
}

.entry-content a:hover,
.widget a:hover,
.crumbs a:hover,
.card-excerpt a:hover {
    border-bottom: 1px solid var(--acc2);
    color: var(--acc2);
}

.btn,
.btn-fill {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.72em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn {
    border: 3px solid var(--acc);
    background: transparent;
    color: var(--acc);
}

.btn:hover,
.btn:focus {
    background: var(--acc);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-fill {
    border: 3px solid var(--acc);
    background: var(--acc);
    color: #FFFFFF;
}

.btn-fill:hover,
.btn-fill:focus {
    background: var(--acc-dark);
    border-color: var(--acc-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ============================================================
   3. Шапка
   ============================================================ */

.site-head {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid var(--line);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
}

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

.brand-logo {
    width: auto;
    max-height: 56px;
}

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

.brand-name {
    display: block;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

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

.nav-toggle {
    display: none;
    font-family: var(--head-font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.6em 1.1em;
    border: 3px solid var(--acc);
    border-radius: 4px;
    background: transparent;
    color: var(--acc);
    cursor: pointer;
}

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

.main-nav a {
    font-family: var(--head-font);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

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

/* Приём 2: полоса состояния под шапкой */
.status-bar {
    height: 3px;
    background: var(--acc2);
}

/* ============================================================
   4. Каркас страниц
   ============================================================ */

.site-main {
    padding: 3.2rem 0 4.5rem;
}

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

.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.85rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.crumbs-sep {
    color: var(--acc2);
    margin: 0 0.2em;
}

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

.page-head h1 {
    font-size: 2.6rem;
    margin-bottom: 0.4rem;
}

.page-title-rule {
    display: block;
    width: 92px;
    height: 3px;
    background: var(--acc);
}

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

.entry-meta span + span::before {
    content: "·";
    margin: 0 0.55em;
    color: var(--acc2);
}

/* Приём 1: ромб-маркер перед заголовками */
.entry-content h2::before,
.entry-content h3::before,
.sec-title::before {
    content: "◆";
    color: var(--acc);
    font-size: 0.55em;
    vertical-align: middle;
    margin-right: 0.6em;
}

.sec-title {
    display: inline-block;
    padding-bottom: 0.35rem;
    border-bottom: 3px solid var(--acc);
    margin-bottom: 1.7rem;
}

.entry-content {
    margin-bottom: 2.5rem;
}

.entry-content h2 {
    margin-top: 2.1em;
}

.entry-content h3 {
    margin-top: 1.7em;
}

.entry-thumb {
    margin: 0 0 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.entry-content img {
    border-radius: 8px;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--acc2);
    border-radius: 8px;
    color: var(--ink);
}

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

.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    background: var(--panel);
    border: 1px solid var(--ink);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--ink);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

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

.tags-line {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
    border-top: 1px dashed var(--dash);
    border-bottom: 1px dashed var(--dash);
    margin-bottom: 2.4rem;
    font-size: 0.92rem;
}

.post-nav a {
    color: var(--acc);
    text-decoration: none;
    border-bottom: 1px dotted var(--acc);
}

.post-nav a:hover {
    color: var(--acc2);
    border-bottom: 1px solid var(--acc2);
}

/* ============================================================
   5. Карточки записей
   ============================================================ */

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 3rem;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    border-color: var(--acc2);
    transform: translateX(5px);
}

.card-thumb-wrap {
    flex: none;
    width: 100%;
    position: static;
    overflow: hidden;
    background: var(--bg-alt);
}

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

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

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

.card-title {
    font-size: 1.28rem;
    margin: 0 0 0.55rem;
}

.card-title::before {
    content: "◆";
    color: var(--acc);
    font-size: 0.55em;
    vertical-align: middle;
    margin-right: 0.55em;
}

.card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.18s ease;
}

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

.card-meta {
    font-size: 0.79rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.card-meta span + span::before {
    content: "·";
    margin: 0 0.5em;
    color: var(--acc2);
}

.card-excerpt {
    color: var(--ink);
    font-size: 0.96rem;
    margin-bottom: 1.1rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    font-family: var(--head-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--acc);
    border-bottom: 2px solid var(--acc2);
    padding-bottom: 2px;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.card-more:hover {
    color: var(--acc2);
    border-bottom-color: var(--acc);
}

/* ============================================================
   6. Пагинация
   ============================================================ */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.4rem 0 1rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.5em 0.85em;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--head-font);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--acc);
    color: var(--acc);
    transform: translateY(-2px);
}

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

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

/* ============================================================
   7. Сайдбар и виджеты
   ============================================================ */

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.12rem;
    color: var(--ink);
    display: inline-block;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid var(--acc);
    margin-bottom: 1.1rem;
}

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

.sidebar .widget li {
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--dash);
    line-height: 1.5;
}

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

.sidebar .widget a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px dotted var(--acc);
}

.sidebar .widget a:hover {
    color: var(--acc);
    border-bottom: 1px solid var(--acc2);
}

.sidebar .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

/* ============================================================
   8. Форма поиска и комментарии
   ============================================================ */

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form label {
    flex: 1 1 200px;
    min-width: 0;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 0.95rem;
}

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

.search-form button {
    border: 3px solid var(--acc);
    background: var(--acc);
    color: #FFFFFF;
    border-radius: 4px;
    padding: 0.6em 1.3em;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.search-form button:hover {
    background: var(--acc-dark);
    border-color: var(--acc-dark);
    transform: translateY(-2px);
}

.comments-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--dash);
}

.comments-title {
    font-size: 1.5rem;
    display: inline-block;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid var(--acc);
    margin-bottom: 1.6rem;
}

.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;
}

.cmt {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.1rem;
}

.cmt-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.cmt-author {
    font-family: var(--head-font);
    font-weight: 700;
}

.cmt-date,
.cmt-wait {
    font-size: 0.8rem;
    color: var(--muted);
}

.cmt-actions a {
    font-size: 0.83rem;
    color: var(--acc);
    text-decoration: none;
    border-bottom: 1px dotted var(--acc);
}

.cmt-actions a:hover {
    color: var(--acc2);
    border-bottom: 1px solid var(--acc2);
}

.comment-respond {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 1.8rem 1.8rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 0.95rem;
}

.comment-respond textarea {
    min-height: 150px;
}

.comment-respond .submit {
    border: 3px solid var(--acc);
    background: var(--acc);
    color: #FFFFFF;
    border-radius: 4px;
    padding: 0.7em 1.5em;
    font-family: var(--head-font);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.comment-respond .submit:hover {
    background: var(--acc-dark);
    border-color: var(--acc-dark);
    transform: translateY(-2px);
}

/* ============================================================
   9. Подвал
   ============================================================ */

.site-foot {
    background: var(--foot);
    color: #DCE5F0;
    padding: 3.2rem 0 1.8rem;
    margin-top: 3rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.2rem;
    margin-bottom: 2.4rem;
}

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

.site-foot .widget {
    color: #DCE5F0;
    font-size: 0.94rem;
}

.site-foot .widget-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    display: inline-block;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid var(--acc2);
    margin-bottom: 1rem;
}

.site-foot .widget p,
.site-foot .widget li {
    color: #C6D3E6;
}

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

.site-foot .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(220, 229, 240, 0.22);
}

.site-foot .widget li:last-child {
    border-bottom: none;
}

.site-foot .widget a {
    color: #A9D8EE;
    text-decoration: none;
    border-bottom: 1px dotted rgba(169, 216, 238, 0.6);
}

.site-foot .widget a:hover {
    color: var(--acc2);
    border-bottom: 1px solid var(--acc2);
}

.site-foot .post-date {
    display: block;
    font-size: 0.78rem;
    color: #94A6C0;
}

.foot-bottom {
    border-top: 1px solid rgba(220, 229, 240, 0.2);
    padding-top: 1.4rem;
    font-size: 0.85rem;
    color: #A3B3CB;
}

/* ============================================================
   10. 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: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--foot);
    border-top: 3px solid var(--acc2);
    color: #DCE5F0;
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
}

.cookie-banner a {
    color: var(--acc2);
}

.cookie-accept {
    border: 3px solid var(--acc2);
    background: transparent;
    color: var(--acc2);
    border-radius: 4px;
    padding: 0.55em 1.3em;
    font-family: var(--head-font);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cookie-accept:hover {
    background: var(--acc2);
    color: var(--foot);
    transform: translateY(-2px);
}

/* ============================================================
   11. Главная страница
   ============================================================ */

.front {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.front-section {
    position: relative;
    padding: 120px 0;
}

.front-section + .front-section,
.front-latest + .front-section,
.front-latest {
    border-top: 1px dashed var(--dash);
}

/* геометрический разделитель: линия с жирной точкой по центру */
.front-section + .front-section::before,
.front-latest + .front-section::before,
.front-latest::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 13px;
    height: 13px;
    margin-left: -6.5px;
    border-radius: 50%;
    background: var(--acc);
}

.front-latest {
    position: relative;
    padding: 120px 0;
}

.plate {
    position: relative;
    background-image: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-alt2) 100%);
    border-radius: 10px;
    padding: 3.4rem 3rem;
    overflow: hidden;
}

.plate::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 320px;
    height: 320px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%230077B6' d='M100 4l24 16 26-6 10 26 25 12-9 26 16 22-20 18 3 28-28 4-14 24-25-12-25 13-15-24-28-3 2-28-20-17 15-23-10-25 25-13 9-26 27 7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* --- Hero --- */

.fs-hero {
    padding: 3.4rem 0 120px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 3.2rem;
    align-items: end;
}

.hero-manifest {
    min-width: 0;
}

.hero-manifest h1 {
    margin: 0;
    font-size: 3.8rem;
    line-height: 1.06;
}

.hero-line-1 {
    display: block;
    color: var(--muted);
}

.hero-line-2 {
    display: block;
    color: var(--acc);
}

.hero-kicker {
    font-family: var(--head-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--acc2);
    margin-bottom: 1.4rem;
}

.hero-aside {
    min-width: 0;
    border-left: 3px solid var(--acc2);
    padding-left: 2rem;
    color: var(--muted);
}

.hero-aside p:last-of-type {
    margin-bottom: 1.6rem;
}

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

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

.icon-card {
    min-width: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.8rem 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.icon-card:hover {
    border-color: var(--acc2);
    transform: translateY(-3px);
}

.icon-card svg {
    width: 46px;
    height: 46px;
    margin-bottom: 1.1rem;
}

.icon-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
}

.icon-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* --- Плюсы и минусы --- */

.pm-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    position: relative;
}

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

.pm-col + .pm-col {
    border-left: 5px solid var(--acc);
    padding-left: 3rem;
}

.pm-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
}

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

.pm-col li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 0.9rem;
    font-size: 0.97rem;
}

.pm-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 11px;
    height: 11px;
    border-radius: 2px;
}

.pm-plus li::before {
    background: var(--acc2);
}

.pm-minus li::before {
    background: var(--acc);
}

/* --- Карта тем --- */

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

.topic-tile {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 118px;
    padding: 1.5rem 1.2rem;
    border: 3px solid var(--acc);
    border-radius: 4px;
    background: transparent;
    color: var(--acc);
    font-family: var(--head-font);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topic-tile:hover {
    background: var(--acc);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.front-lead {
    max-width: 62ch;
    color: var(--muted);
    margin-bottom: 2.4rem;
}

.front-latest .card-list {
    margin-bottom: 2.2rem;
}

.front-cta-line {
    margin-top: 2rem;
}

/* ============================================================
   12. 404 и служебное
   ============================================================ */

.err-code {
    font-size: 5.4rem;
    line-height: 1;
    color: var(--acc);
    margin-bottom: 0.4rem;
}

.err-box {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 2.2rem 2.2rem;
    margin-bottom: 2rem;
}

.no-posts {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem 2rem;
}

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

/* ============================================================
   13. Адаптив
   ============================================================ */

@media (min-width: 961px) {
    .main-nav[hidden] {
        display: block !important;
    }
}

@media (min-width: 601px) {
    .card {
        flex-direction: row;
        align-items: stretch;
    }

    .card-thumb-wrap {
        flex: 0 0 210px;
        width: 210px;
        aspect-ratio: 1 / 1;
        position: relative;
    }

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

    .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: center center;
    }
}

@media (max-width: 960px) {
    h1 { font-size: 2.9rem; }
    h2 { font-size: 1.8rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .layout-single,
    .front {
        width: 100%;
    }

    .fs-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
        padding-bottom: 70px;
    }

    .hero-manifest h1 { font-size: 2.9rem; }

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

    .front-section,
    .front-latest {
        padding: 70px 0;
    }

    .plate {
        padding: 2.6rem 2rem;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        flex-basis: 100%;
    }

    .main-nav[hidden] {
        display: none !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.9rem;
        padding-top: 0.6rem;
    }
}

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

    h1 { font-size: 2.15rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.25rem; }

    .hero-manifest h1 { font-size: 2.15rem; }

    .page-head h1 { font-size: 1.9rem; }

    .site-main { padding: 2.2rem 0 3rem; }

    .front-section,
    .front-latest {
        padding: 48px 0;
    }

    .plate {
        padding: 1.8rem 1.4rem;
        border-radius: 8px;
    }

    .fs-hero { padding: 2rem 0 48px; }

    .hero-aside {
        border-left: none;
        border-top: 3px solid var(--acc2);
        padding-left: 0;
        padding-top: 1.4rem;
    }

    .fs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pm-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .pm-col + .pm-col {
        border-left: none;
        border-top: 5px solid var(--acc);
        padding-left: 0;
        padding-top: 1.6rem;
    }

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

    .topic-tile {
        min-height: 92px;
        font-size: 0.95rem;
        padding: 1.1rem 0.8rem;
    }

    .card-body { padding: 1.2rem 1.2rem; }

    .comment-respond { padding: 1.4rem 1.2rem; }

    .err-box { padding: 1.6rem 1.4rem; }

    .cookie-banner {
        padding: 1rem 1.2rem;
        font-size: 0.85rem;
    }

    .entry-content blockquote { padding: 1.3rem 1.3rem; }
}
